Skip to Content

Unable to set data on Badi "ME_PROCESS_REQ_CUST - PROCESS_ITEM ".

Hi Experts,

We have a business requirement that during creation of cost center purchase requisition the cost center field should be auto populated based on username for certain users. We will maintain an username and cost center details in a "z" table which can be referenced upon during creation of cost center purchase requisition.

Issue:

We tried using BADI~ME_PROCESS_REQ_CUST -PROCESS_ITEM interface for this requirement but we are unable to populate the kostl data in the structure ,since

LS_ITEM_DATA = IM_ITEM->GET_DATA( ) does not have kostl data so im unable to use SET_DATA against the same,

Kindly advice how to display the value in cost center field based on SY-UNAME.

Regards,

Sathesh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Apr 17 at 05:21 AM

    Look at ME_PROCESS_REQ_CUST interface Method PROCESS_ACCOUNT and then methods GET/SET_EKKN[X].

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 17 at 06:09 AM

    Also note the purchase requisition BAdI is not used by some Interfaces, e.g. the creation from Plant Maintenance Order or from APO. You might have to implement the logic in user exits to cover those cases.

    JNN

    Add comment
    10|10000 characters needed characters exceeded