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 Create sale odrer - order quantity

Former Member
0 Likes
654

Hi ,

Which structure or fields should i use for the sale order quantity in BAPI_SALESORDER_CREATEFROMDAT2??

i tired the schedule line order quantity and item line target quantity. It still not success.

Regards,

Kit

Hi ,

Which structure or fields should i use for the sale order quantity in BAPI_SALESORDER_CREATEFROMDAT2??

i tired the schedule line order quantity and item line target quantity. It still not success.

Regards,

Kit

4 REPLIES 4
Read only

Former Member
0 Likes
616

Hi Kit,

Are you passing data to X structures?

Regards,

Atish

Read only

0 Likes
616

Dear Atish,

Could you give me some guide on that??

Thx

Regards,

Kit

Read only

Former Member
0 Likes
616

You need to pass following data:

SALESDOCUMENTIN

ORDER_HEADER_IN

<b>ORDER_HEADER_INX</b>

RETURN

ORDER_ITEMS_IN

<b>ORDER_ITEMS_INX</b>

ORDER_SCHEDULES_IN

<b>ORDER_SCHEDULES_INX</b>

Parameters marked in Bold holds the update information.

Read only

0 Likes
616

Thx for your reply.

I have created a sale order with 3 items and its associated schedule line. But, only the first item have the required quantity in the result. Then, i hard code the item number (10,20,30) in item and schedule line table in runtime. The result is correct. Is there any way to assign the item number in runtime?? Or any other way to create the schedule line??

Regards,

Kit