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_SALESORDER_CREATEFROMDAT2 and Confirmed quantity

Former Member
1,827

Hi,

While creating Sales Order using BAPI BAPI_SALESORDER_CREATEFROMDAT2 process end successfully, but the Confirmed quantity field in Scheduled line remains 0;

I guess BAPI bypassing the Availability check; because if I craete the same manually(VA01) "Confirmed quantity" field filed up automatically.

Please help.

Hi,

While creating Sales Order using BAPI BAPI_SALESORDER_CREATEFROMDAT2 process end successfully, but the Confirmed quantity field in Scheduled line remains 0;

I guess BAPI bypassing the Availability check; because if I craete the same manually(VA01) "Confirmed quantity" field filed up automatically.

Please help.

6 REPLIES 6
Read only

Former Member
0 Likes
1,296

Hi,

Please check this link will help you

http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bapi_salesorder_createfromdat2-225875

If this link is not supported then please delete it.

Cheers.

Read only

0 Likes
1,296

Hi,

did you fill correctly the the schedules/schedulesx structures?

You have to populate the field itm_number with the position also in the X structure.

Bye

Andrea

Read only

0 Likes
1,296

in Scheduled line structure, i filled item number and required quantity field and also set "X" in the corresponding fields of Scheduled lineX structure.

I am passing the following fields:-

order_header_in --> Sales Org, Dist. Chan, Division.

order_items_in --> item no., Material, target_qty, Sales unit.

order_partners --> Sold-to and Ship-to

order_schedules_in --> itm no., req_quantity

order_schedules_inx --> X in above fields.

Please note, sales order is creating successfully with all the pricing calculation, but if we check the "Confirmed quantity" field in Scheduled line (VA01), value remains 0.

Read only

0 Likes
1,296

sorry , not working.

Read only

former_member404244
Active Contributor
0 Likes
1,296

Hi,

U have to fill the structure schedulesx . The fields which u want to update u have to make them 'X' in the structure i sspecified..

Regards,

Nagaraj

Read only

0 Likes
1,296

I did but problem remains... Could you please try this out in your system and check whether it is populating the confirmed qty field or not.