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

USEREXIT_SAVE_DOCUMENT_PREPARE - Calculation

Former Member
0 Likes
664

Hi Guys,

I have the request to check in the USEREXIT_SAVE_DOCUMENT_PREPARE that the quantity of the last

calculation is the same quantity as the quantity of the item.

But I can't find an internal table in this EXIT which contains the calculation.

Can anyone of you tell me how to read the calculation of this sales order in this USEREXIT ?!

Thanks

Manuel

Hi Guys,

I have the request to check in the USEREXIT_SAVE_DOCUMENT_PREPARE that the quantity of the last

calculation is the same quantity as the quantity of the item.

But I can't find an internal table in this EXIT which contains the calculation.

Can anyone of you tell me how to read the calculation of this sales order in this USEREXIT ?!

Thanks

Manuel

3 REPLIES 3
Read only

Former Member
0 Likes
588

what calculation are you talking about? Never heard of it in 12 years of SD/LE.

Read only

0 Likes
588

When you create a sales order (e.g. as a quotation)

you can start the calculation for this sales order item.

The result is saved in condition EK02 (that is the standard case).

FCODE is fcode_pkal which calls routine kalkulation_aufrufen(sapfv45p).

Greatings

Manuel

Read only

Former Member
0 Likes
588

Hi,

Worked with the user exit USEREXIT_SAVE_DOCUMENT_PREPARE forcreating or changing of the sales order.

Worked on USEREXIT_SAVE_DOCUMENT_PREPARE which will populate Sub Item Data with Main Item Data. The main item fields need to be copied to sub item during order creation process

Purchase orders created /changed in legacy system everyday are required to be replicated into SAP using the BAPI_PO_CREATE/ BAPI_PO_CHANGE.