10-08-2008 9:52 AM
Hello All,
I have a query regarding the implementation of the BADI
Steps followed :-
1.Using transaction se19 , I have created a implementation fo the badi ( just the layout )
I have to write abap coding in the method of this particular badi . I have a parameter defined in the badi
parameter - phead
type - changing
type method - type
associated type - ABCD ( referencing to a structure )
2. I am trying to use this parameter in this method like
delete phead where vto<sy-datlo.
3. Following error occurs -
phead is not an internal table -the"OCCURS n " specification is missing .
Could you kinldy tell me the reason for this error ? I am not supposed to use this parameter inside the program ?
thanks and Regards,
Swetha
10-08-2008 10:06 AM
Hi,
Just comment the statement Delete.
delete phead where vto<sy-datlo. <--comment it.
Set a breakpoint in this method and Check whether phead is getting multiple values or not ( i.e internal table or not).
if only 1 value is populated in phead, then ur delete statement is not correct.
Revert back,.
Regards,
Naveen
10-08-2008 10:28 AM
The value is not getting passed to the badi .... So could you tell me what exactly is the issue
Thanks and Regards,
Swetha
10-08-2008 10:07 AM
Hi Swetha,
PHEAD seems to be a structure.
Try this code
if phead-vto < sy-datlo.
clear phead.
endif.
Best regards,
Prashant