Application Development 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: 

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

0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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.

0 Kudos

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.

satyapriyanka_vana
Active Participant
0 Kudos

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.