07-11-2017 1:17 PM
Dear Experts,
I have a requirement while Creating PO(ME21N) Account Assignment Category(Asset) class in Purchase Order Item line based on the Document type selected on the Purchase Order header.
Like if user selects Purchase Order document type "ZCAP" (Customized created) , then Account Assignment Category( Asset class) is always as 'A'. based on the Purchase Document type but other Document type it should not take.
Client wants When the user select the Doc type 'ZCAP' in the Header then Asset class as 'A' automatically in ITEM.
Kindly Suggest me how can we do with ABAP coding .
Thanks and Regards,
Chinna
07-11-2017 2:39 PM
You should use user-exits or badi.
User-exit: MM06E005
Badi: IF_EX_ME_PROCESS_PO_CUST . You can use IF_EX_ME_PROCESS_PO_CUST~OPEN method.
you can put debug points and determine the exact method or component to enhance.
Thanks.
07-11-2017 3:23 PM
Dear Oguz Karademirci,
thank you for giving suggestion.
I tried with you suggestion and above are(User-Exit and BADI) not suitable for my requirement .
Thanks and Regards
Chinna.
07-13-2017 4:27 AM
Hi,
Try SET_DATA method of IF_PURCHASE_ORDER_ITEM_MM in PROCESS_ITEM method of BADI ME_PROCESS_PO_CUST.
You can pass MEPOITEM-KNTTP as 'A' to set_data method.
Regards,
Priyanka.