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

Error : Creating PO's using BAPI_PO_CREATE1

Former Member
0 Likes
724

Hi Friends ,

I have created a program to create PO's using a load program . This program is set up to have POs created for each Company Code Vendor, Purchase Org, Plant, Buyer combination. The input fields for the load program are:

LIFNR Vendor Number

EKORG Purchasing Organization

EKGRP Purchasing Group

BUKRS Company Code

WERKS Plant

EMATN Material Number

MENGE PO Quantity

The input file i have has 3 material nos. 2material nos belong to the same vendor and create 1 PO . The third material no belongs to different vendor and creates a 2nd PO .

The problem i have is that when i run the progam it creates 2 PO's . The PO which contains 2 material Nos gives me the 2nd line with quantity 1000 instead of 1 .

The first line and the second line in the PO should have the quantity 1 .

The first line correctly shows the Po quantity 1 EA.

The second one shows the PO quantity 1000 LB .

The error in the return BAPI t_return is :

"Order quantity violates rounding rules (See long text)"

Please advise .

Thank you

2 REPLIES 2
Read only

Former Member
0 Likes
419

in that case u have to check the BSU of the material in MM03.

regards

Prabhu

Read only

0 Likes
419

Hi Prabhu ,

The rounding value for one of the material is 1000.000 and the unit is LB in /NMM03 .

When i try to upload this material with order quantity 1 . It creates a PO with order quantity 1000.000 and order unit LB . It gives me a warning when creating the PO that

"Order quantity violates rounding rules (See long text)"

Please advise .