Skip to Content
0

PO Document Type and Account Assignment Category as A automatic in Item level ?

Jul 11, 2017 at 12:17 PM

53

avatar image
Former Member

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

abap-me21n.jpg (96.6 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

satyapriyanka vana Jul 13, 2017 at 03:27 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Jul 11, 2017 at 01:39 PM
0

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.

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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.

0