Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

badi test

Former Member
0 Likes
548

hi all,

while executing the zbadi_test given in the one of the site iam getting error the

type zif_ex_badi_spfli is unknown

where is error how do i declare it?

code is as follows

Tables: spfli.

*types: ZIF_EX_BADISPFLI1 type TABLE OF SPFLI.

Data: wa_spfli type spfli,

it_spfli type table of spfli with key carrid connid.

*Initialize the object of the interface.

Data: exit_ref type ref to ZCL_IM_IM_LINESEL,

exit_ref1 type ref to ZIF_EX_BADISPFLI1.

Selection-screen begin of block b1.

Select-options: s_carr for spfli-carrid.

Selection-screen end of block b1.

Start-of-selection.

Select * from spfli into corresponding fields of table it_spfli

where carrid in s_carr.

End-of-selection.

Loop at it_spfli into wa_spfli.

Write:/ wa_spfli-carrid,

wa_spfli-connid,

wa_spfli-cityfrom,

wa_spfli-deptime,

wa_spfli-arrtime.

Hide: wa_spfli-carrid, wa_spfli-connid.

Endloop.

At line-selection.

Check not wa_spfli-carrid is initial.

Create object exit_ref.

exit_ref1 = exit_ref.

Call method exit_ref1->line selection

EXPORTING

i_carrid = wa_spfli-carrid

i_connid = wa_spfli-connid.

Clear wa_spfli.

u can check syntax error and give me final one

hi all,

while executing the zbadi_test given in the one of the site iam getting error the

type zif_ex_badi_spfli is unknown

where is error how do i declare it?

code is as follows

Tables: spfli.

*types: ZIF_EX_BADISPFLI1 type TABLE OF SPFLI.

Data: wa_spfli type spfli,

it_spfli type table of spfli with key carrid connid.

*Initialize the object of the interface.

Data: exit_ref type ref to ZCL_IM_IM_LINESEL,

exit_ref1 type ref to ZIF_EX_BADISPFLI1.

Selection-screen begin of block b1.

Select-options: s_carr for spfli-carrid.

Selection-screen end of block b1.

Start-of-selection.

Select * from spfli into corresponding fields of table it_spfli

where carrid in s_carr.

End-of-selection.

Loop at it_spfli into wa_spfli.

Write:/ wa_spfli-carrid,

wa_spfli-connid,

wa_spfli-cityfrom,

wa_spfli-deptime,

wa_spfli-arrtime.

Hide: wa_spfli-carrid, wa_spfli-connid.

Endloop.

At line-selection.

Check not wa_spfli-carrid is initial.

Create object exit_ref.

exit_ref1 = exit_ref.

Call method exit_ref1->line selection

EXPORTING

i_carrid = wa_spfli-carrid

i_connid = wa_spfli-connid.

Clear wa_spfli.

u can check syntax error and give me final one

1 REPLY 1
Read only

Former Member
0 Likes
435

IT IS URGENT PLS HELP ME A LOT