Application Development 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: 

*Regarding Badi implementation *

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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

0 Kudos

The value is not getting passed to the badi .... So could you tell me what exactly is the issue

Thanks and Regards,

Swetha

former_member223537
Active Contributor
0 Kudos

Hi Swetha,

PHEAD seems to be a structure.

Try this code

if phead-vto < sy-datlo.
clear phead.
endif.

Best regards,

Prashant