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

Quantity in FM 'BAPI_PO_CREATE1' is rounding off to minimum lot from MARC-BSTRF

ghazal_jangid
Discoverer
887

Hi everyone,

I don't want the quantity field in the PO to be rounded off to rounding value of the material based on the receiving plant/receiving location.

I am using 'BAPI_PO_CREATE1' to create the POs.

Generally when we create through me21N, we can give custom quantity and it works, so user wants to be able to do that using the program as well, wherein this functional module is being used.

Example:

po_item-quantity = '15.000'.

po_itemx-quantity = 'X'.

Then calling the BAPI_PO_CREATE1 and passing the table po_item

When checking the PO created in ME23n, the quantity is rounded off to 60 (the round of value for my plant BE04 and material in MARC)

I also checked the functional module import parameters to understand if there is any parameter to enable or disable the rounding off but there wasn't any.

My question is:

Is it possible to disable the quantity round off while creating PO using BAPI_PO_CREATE1? and get the exact quantity as passed in the PO_ITEM internal table to BAPI_PO_CREATE1. If yes, pls enlighten on how?

3 REPLIES 3
Read only

lenastodal
Product and Topic Expert
Product and Topic Expert
0 Kudos
672

Thank you for visiting SAP Community to get answers to your questions. Since this is your first question, I recommend that you familiarize yourself with our Q&A Tutorial: https://developers.sap.com/tutorials/community-qa.html, as it provides tips for preparing questions that draw responses from our members. Should you wish, you can revise your question by selecting Actions, then Edit.

By adding a picture to your profile you encourage readers to respond: https://www.youtube.com/watch?v=46bt1juWUUM
Many thanks!

Keep in mind, when you receive an answer that was helpful to you, accept it as best answer.


Join or subscribe to SAP Community Groups to stay up-to-date, including SAP TechEd Group.
Read only

ghazal_jangid
Discoverer
0 Kudos
672

Any answers?

Read only

0 Kudos
672

Hi, I have the same issues, I voted positively the question, as I cannot find answers in the blog.
Did you solve the issue in the meantime?