a week ago
Hi Experts,
I have a requirement where when creating a PR by copying another PR values, all the fields would normally be copied into the new PR. But, I have a requirement to clear two field values, 1. EBAN-BEDNR 2. Custom Field.
So, when copying a PR, these two values should not be copied. Is there any way that I can clear these values before copying ?
Thanks and Regards.
Request clarification before answering.
Did you already look at BAdI ME_PROCESS_REQ_CUST or BADI ME_REQ_POSTED to find an event/method triggered at copy?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes Raymond,
I found a place to place my code, but how can I change these two values ?
Please note that this should not be done using BAPI_PR_CHANGE, because this triggers and outbound Idoc. When saving a PR, I have a code to trigger an Idoc to the external system. So, when we use this BAPI_PR_CHANGE and COMMIT for it, this will also trigger the outbound Idoc because I used the BAPI ME_REQ_POSTED to trigger an Idoc. This will create inconsistency in the System.
I found the exit EXIT_SAPLMEREQ_007 for MEREQ001 which contains item data in im_eban, but, I am unable to change this im_eban values, any idea on how to achieve this ?
Regards.
This Enhancement is provided mostly for customer fields, so should not be very useful.
Better use BAdi ME_PROCESS_REQ_CUS, in an event such as PROCESS_ITEM you can read current data, previous data of new PR and current data of referenced PR, so you should be able to update some fields even standard ones.
User | Count |
---|---|
74 | |
30 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.