2007 Feb 27 9:25 AM
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
2007 Feb 27 10:00 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |