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

Function Module for Condition Value Calculation

Former Member
0 Likes
1,054

Hi Experts,

Can you please tell me there is any function module to calculate condition value in SAP Purchase order?

Let say I have amount and tax code. I need to calculate final cost of the material

Is there any FM for this?  PO is not created in SAP, so not possible to use any kind of BAPI_PO_GETDETAILS

Thanks

1 ACCEPTED SOLUTION
Read only

JackGraus
Active Contributor
0 Likes
830

Hi, you could call BAPI_PO_CREATE1 in simulate mode by setting input parameter TESTRUN to 'X'.

Then all the data that is normally available in a PO and that is also returned by BAPI_PO_GETDETAILS is returned by the CREATE BAPI. Condition values will be returned in input / output parameter POCOND.

Regards Jack

1 REPLY 1
Read only

JackGraus
Active Contributor
0 Likes
831

Hi, you could call BAPI_PO_CREATE1 in simulate mode by setting input parameter TESTRUN to 'X'.

Then all the data that is normally available in a PO and that is also returned by BAPI_PO_GETDETAILS is returned by the CREATE BAPI. Condition values will be returned in input / output parameter POCOND.

Regards Jack