‎2018 Oct 25 10:26 AM
Hi,
I want to update the PR item text from contract data (Zfields) based on certain conditions like EKBN-PS_PSP_PNR = VBAP-PS_PSP_PNR , I can use the BADI ME_PROCESS_REQ_CUST -> Process item , but how do i read the VBAP/EKBN data here in this method? to update the text we have defined methods SET_TEXT, but before updating i need to have VBAP/EKBN data in hand?
i read many SCN posts before writing here, not received the answer am looking for.
Appreciate your help!.
Regards,
Sailaja
‎2018 Oct 25 1:12 PM
Hello Sailaja,
first of all, I think this BADI you are referring to is an 'Enjoy' Badi, that is only processed when the user works in the corresponding transactions.
Having that said, You didnt state exactly wich methods of the BADI you like to implement. From what you write I would guess its the process_item method, which should be helpful. This method gives you an object, that refers to nearly everything you're asking for.
You should have a look at the data you are getting, since this is highly dependent on your process. But usually you should expect to find the connection to the sales order using the IF_ACCT_CONTAINER_MM~GET_ITEMS method.
Just some ideas, maybe it helps.
Cheers,
Peter