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

EXIT_SAPLMEREQ_005

Former Member
0 Likes
632

I can debug abap objects but I'm not good at programming it.

Can anyone show me how to change the contents of

REFERENCE(IM_REQ_ITEM) TYPE REF TO IF_PURCHASE_REQUISITION_ITEM

in this user exit? I need to be able to change the item and itemx data.

Thanks in advance!

I can debug abap objects but I'm not good at programming it.

Can anyone show me how to change the contents of

REFERENCE(IM_REQ_ITEM) TYPE REF TO IF_PURCHASE_REQUISITION_ITEM

in this user exit? I need to be able to change the item and itemx data.

Thanks in advance!

1 REPLY 1
Read only

Former Member
0 Likes
422

Hi,

Please try something like this.


DATA: LS_ITEM TYPE MEREQ_ITEM,
      LS_ITEMX TYPE MEREQ_ITEMX.

CALL METHOD IM_REQ_ITEM->GET_DATA
  RECEIVING
    RE_DATA = LS_ITEM.

CALL METHOD IM_REQ_ITEM->GET_DATAX
  RECEIVING
    RE_DATAX = LS_ITEMX.


* Do your modification to LS_ITEM and LS_ITEMX information.
...


CALL METHOD IM_REQ_ITEM->SET_DATA
  EXPORTING
    IM_DATA = LS_ITEM.

CALL METHOD IM_REQ_ITEM->SET_DATAX
  EXPORTING
    IM_DATAX = LS_ITEMX.

Regards,

Ferry Lianto