11-03-2010 12:27 PM
Hi All,
My reuirement is to changes BANFN-REVLV field based on some caculation thru ME51N/ME52N transaction code.
I have tried the exit MEREQ001 but its not useful.
I have writtent the code in EXIT_SAPLMEREQ_008 but its giving error message 'structure is not editable'. Please let me know any exit or BADI for this purpose.
Thanks.
11-03-2010 1:19 PM
11-03-2010 1:19 PM
11-03-2010 1:42 PM
Hi,
Iam new to BADI, Please let me know how to implement and use the BADI. and what to write inside the BADI.
11-03-2010 1:54 PM
Hi I have implemented the BADI..but how to change the value for field revision level at item level.
I have used the method PROCESS_ITEM and i have written the belwo code..
CALL METHOD im_item->GET_DATA
RECEIVING
RE_DATA = lt_item .
How to change the values in internal table???
11-03-2010 2:55 PM
11-03-2010 4:13 PM
Hi,
Check this [article|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f3202186-0601-0010-6591-b832b1a0d0de] in this site (SDN) to learn how to work a BADI.
You can check the BADI with tcode SE18. To implement it use tcode SE19. You have a sample. The idea behind BADI is ABAP OO (classes and methods).
If you need something else, tell me it.
Regards
Eduardo
11-03-2010 4:27 PM
Hi,
In this moment I don't have access to a system with this BADI, but I have access to ME_PROCESS_PO_CUST (very similar).
In method PROCESS_ITEM.
The declaration of data:
data: ls_mepoitem type mepoitem.
Get the data:
ls_mepoitem = im_item->get_data( ).
Set the data
im_item->set_data( ls_mepoitem ).
A sample of modification of data:
if ls_data_header-bsart = 'ZNK'.
ls_mepoitem-retpo = 'X'.
endif.
If my memory works, change MEPOITEM by MEREQ_ITEM. If I'm not right somebody will correct it.
I hope this helps you
Regards,
Eduardo