2010 Apr 29 2:53 PM
Hi Experts,
My requirement is somewhat like this: I need to capture all the EBAN and EBKN data for a NEW PR created. Could you please tell me which User Exit or BADI or BAPI can be used to capture the details AFTER the SAVE button is pressed in ME51N (Create PR)? Most probably it should one of the last ones called just before insertion into the database??!!
Thanks a lot in advance. Your input would be of great help.
Amrita.
2010 Apr 29 3:06 PM
hello amrita,
these are the available user exits and badi's for me51n
it is encouraged to search the forums before posting ..
User exit
MEREQ001 Customers' Own Data in Purchase Requisition
Business Add-in
ME_COMMITMNT_PARKING BAdI for Redefining Commitment Interface When Parking
ME_MEREQ_PARKING BAdI Purchase Requisition: "Hold"
ME_REQ_HEADER_TEXT Copy Header Text: Enjoy Purchase Requisition
Best Regards
M.
2010 Apr 29 3:06 PM
hello amrita,
these are the available user exits and badi's for me51n
it is encouraged to search the forums before posting ..
User exit
MEREQ001 Customers' Own Data in Purchase Requisition
Business Add-in
ME_COMMITMNT_PARKING BAdI for Redefining Commitment Interface When Parking
ME_MEREQ_PARKING BAdI Purchase Requisition: "Hold"
ME_REQ_HEADER_TEXT Copy Header Text: Enjoy Purchase Requisition
Best Regards
M.
2010 Apr 29 4:12 PM
Hi Manthan,
I had already searched the whole forum before posting this question. .. The only thing I left out in the post was the listing of the BADIs I already searched into so that you could have saved the duplicate effort. The BADIs talked in here take care of a specific part of ME51n. My requirement is to capture the whole data pertaining to a PR after it is saved.. not just Header or PR Hold. I have also taken look into the User exits but none could help much since they are more useful for PR change and not PR create.
Would appreciate your feedback and sorry for the duplicate effort.
Amrita.
2010 Apr 29 4:25 PM
Hi
For PR creation ME51N will call BAPI_PR_CREATE.
For more information, refer to the interface documentation: IF_EX_ME_BAPI_PR_CREATE_02
Standard settings
The BAdI can be used multiple times.
There is no default implementation.
Information about the implementation of BAdIs in the context of the Enhancement Concept is available in the SAP Library for SAP NetWeaver under BAdIs - Implementation.
Example
The class CL_EXM_IM_ME_BAPI_PR_CUST is available for an example implementation
2010 Apr 29 4:45 PM
Hi Naresh,
That was very informative. Moreover, I found out that we can also use (with reference to your findings) BADI : ME_PROCESS_REQ_CUST and create a new implementation under POST. That would give us the generated new PR number and using that we can access the relevant tables.
Thanks to you and Manthan. I am relieved that ppl here are very proactive and fast in replying.
Amrita.
2010 Apr 29 5:11 PM
Hi Amrita,
Yes your right.
BADI - ME_PROCESS_REQ_CUST (POST) method is also works.
Thanks
Naresh