Application Development and Automation 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: 
Read only

User Exit/BADI/BAPI for ME51n

Former Member
0 Kudos
2,473

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.

1 ACCEPTED SOLUTION
Read only

manthanraja
Active Participant
0 Kudos
1,623

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.

5 REPLIES 5
Read only

manthanraja
Active Participant
0 Kudos
1,624

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.

Read only

0 Kudos
1,623

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.

Read only

former_member206439
Contributor
0 Kudos
1,623

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

Read only

0 Kudos
1,623

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.

Read only

0 Kudos
1,623

Hi Amrita,

Yes your right.

BADI - ME_PROCESS_REQ_CUST (POST) method is also works.

Thanks

Naresh