Application Development 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: 

User Exit / Badi for VA01/VA02 : Costing

prajyotp_demapure
Participant
0 Kudos
650

Hello Experts,

I need to implement validation on attaching base planning object in VA01/02 through costing.

Requirement is when user imports the Base Planning object and continues that time need to check one Z-table for authorization. If not authorized user then throw error message.

Please suggest how can I achieve this.

Please find attachment of pop up where I'm entering the base planning object.

VA02->Extras->Costing.

3 REPLIES 3

former_member946717
Contributor
0 Kudos
137

Hi Prajyot,

Maybe you can put a break-point in User Exit MV45AFZZ or in User-Exits of program SAPMV45A and execute and see what the correct position is to add your logic. The User Exit for Sales Order is very different and is present in SAPMV45A or SAPMV45B.

Hope this helps!

former_member201275
Active Contributor
0 Kudos
137

I assume you know of cl_exithandler, but I post here in case not:

1. Go to the TCode SE24 and enter CL_EXITHANDLER as object type.

2. In 'Display' mode, go to 'Methods' tab.

3. Double click the method 'Get Instance' to display it source code.

4. Set a breakpoint on 'CALL METHOD cl_exithandler=>get_class_name_by_interface'.

5. Then run your transaction.

6. The screen will stop at this method.

7. Check the value of parameter 'EXIT_NAME'. It will show you the BADI for that transaction.

This won't give you the name of all enhancements but most will be here.

former_member201275
Active Contributor
0 Kudos
137

Hi Prajyot,

Is your question answered?

regards,

Glen.