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

Method call in BADI

Former Member
0 Likes
582

Hi

I am implementing the badi ME_PROCESS_PO_CUST in the ZMM_FOR_TAXCODE

I need to access field MWSKZ which is in GET_PREVIOUS_DATA method of PROCESS_ITEM

Can u plz write the proper syntax

Points will be awarded

Hi

I am implementing the badi ME_PROCESS_PO_CUST in the ZMM_FOR_TAXCODE

I need to access field MWSKZ which is in GET_PREVIOUS_DATA method of PROCESS_ITEM

Can u plz write the proper syntax

Points will be awarded

2 REPLIES 2
Read only

Former Member
0 Likes
559

hi

Read only

uwe_schieferstein
Active Contributor
0 Likes
559

Hello Narendra

This is quite simple (see below):


method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM.
  DATA: ls_item   TYPE mepoitem.
  

  CALL METHOD im_item->get_previous_data
    IMPORTING
      ex_data = ls_item. 

  IF ( ls_Item-mwskz = '...' ).
...
  ENDIF.

endmethod.

Regards

Uwe