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

BAPI_INQUIRY_CREATEFROMDATA

Former Member
0 Likes
1,340

Hi,

kwmeng field of table vbap is not updating while creating inquiry using the bapi BAPI_INQUIRY_CREATEFROMDATA

.And I am passing this values to the bapi

  • Order Type
  • Sales Organization
  • Distribution Channel
  • Division
  • Valid To Date
  • Material number
  • Target quantity
  • Sold to party number
10 REPLIES 10
Read only

Former Member
0 Likes
1,175

Hi,

I think you have to pass the BAPIITEMIN-req_qty.

REQ_QTY    WMENGC    NUMC    13    0    Order qty in sales units - 00009001 corresponds to 9.001

Thanks,

Kiran.

Read only

0 Likes
1,175

HI,

ya  I am passing the target quantity into the BAPIITEMIN-req_qty.How to solve this issue??

Read only

0 Likes
1,175

still you are facing the same issue!

Read only

0 Likes
1,175

Hi,

ya kwmeng field is not updating correctly

Read only

0 Likes
1,175

You can check the documentation of KWMENG

Corrected quantity in sales unit

Definition

Rounded quantity of the required quantity in the schedule line in the sales order.

Use

The system rounds the quantity using the rounding profiles from the customer-material info record or the material master record. The profile can be switched on for each customer.

If you change the rounded quantity, the system automatically performs an availability check and/or delivery scheduling and updates the confirmed quantity. The rounded quantity is cumulated in the total order quantity of the item. The required order quantity remains as the original quantity (before rounding) in the schedule line.

If the system does not round the quantity, the rounded quantity of the required order quantity in the schedule line is valid.

Read only

0 Likes
1,175

Hi,

Thanks kiran.

How to disable rounding profile in bapi BAPI_INQUIRY_CREATEFROMDATA?

Read only

0 Likes
1,175

Hi Kiran,

Just give me an example. what you are passing  the quantity and how it is updating in the table.

So that I can check it more!

Read only

0 Likes
1,175

Hi,

If I pass value in req_qty = 5.000(in the bapi)

then in vbap table is updating like .005(kwmeng field)

Read only

0 Likes
1,175

lets say LV_QTY has quanity value 5.000

Use write lv_qty to req_qty unit (Pass her the unit of measure) it will automatically work

Read only

0 Likes
1,175

Hi,

Better to use the FM MATERIAL_UNIT_CONVERSION.

If you want to check the usage of KWMENG, check the FM OI0_MCS_ORDER_QTY_IN_COND_UOM.

other wise directly you can directly multiply KWMENG * 1000  and pass the value to the bapi.