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

Debugging a Sales Order

Former Member
0 Likes
1,708

Hello,

         I would like to find out the process of debugging a sales order creation to find out how plant is determined. And, how does one determine the SAP function modules, forms and master data used in the plant determination process?

1 ACCEPTED SOLUTION
Read only

former_member223981
Active Contributor
0 Likes
1,178

SAPFV45P FORM VBAP-WERKS_ERMITTELN (Include FV45PF0V_VBAP-WERKS_ERMITTELN).

This is where the plant is determined for a sales order item.

To find this location,

> After entering all the data in the sales order screen, type /h into the ok command field before pressing enter.

> Then set a watchpoint on field VBAP-WERKS

> If this field is being filled, it will be hit.

Normally, plant is filled from the customer master or the material master.

5 REPLIES 5
Read only

Former Member
0 Likes
1,178

Hi,

if you create or Change a saleorder use first tcode /h.

Regards, Dieter

Read only

0 Likes
1,178

go to se24 and open the class CL_EXITHANDLER and double click on the method GET_INSTANCE  and put a break-point in CALL METHOD cl_exithandler=>get_class_name_by_interface.

We can get all d exits used as well...

Thanks And regards,

A.S

Read only

former_member223133
Active Participant
0 Likes
1,178

Hi,

Please check include MV45AF0T_T001W_SELECT. It may help you.

Thanks

Gangadhar

Read only

former_member223981
Active Contributor
0 Likes
1,179

SAPFV45P FORM VBAP-WERKS_ERMITTELN (Include FV45PF0V_VBAP-WERKS_ERMITTELN).

This is where the plant is determined for a sales order item.

To find this location,

> After entering all the data in the sales order screen, type /h into the ok command field before pressing enter.

> Then set a watchpoint on field VBAP-WERKS

> If this field is being filled, it will be hit.

Normally, plant is filled from the customer master or the material master.

Read only

0 Likes
1,178

Thank you for the solution. It helped!