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

Create a schedule line in sales order using Bapi

Former Member
0 Likes
1,912

Hi Guys,

Here the requirement is automating the process of creating the schedule lines using Bapi.

I am using the bapi BAPI_SALESORDER_CHANGE for the same.

I could able to create a schedule line but the problem is,its not updating the CONFIRMED QUANTITY and COMMITTED QUANTITY on

sales order schedule line tab,its updating ORDER QUANTITY and ROUNDED QUANTITY.

the structures and tables parameters i have updated are:

IMPORT PARAMETERS: SALESDOCUMENT,ORDER_HEADER_INX-UPDATEFLAG= 'U'(change sales order).

TABLES:SCHEDULE_LINES(ITM_NUMBER,REQ_DATE,REQ_QTY,DLV_DATE)

SCHEDULE_LINESX(ITM_NUMBER,UPDATEFLAG='I',REQ_DATE,REQ_QTY,DLV_DATE).

Please help me out if i need to fill up any other parameters or anything am missing out here.

Would appreciate your help.

Thanks in Advance

Ramu

Hi Guys,

Here the requirement is automating the process of creating the schedule lines using Bapi.

I am using the bapi BAPI_SALESORDER_CHANGE for the same.

I could able to create a schedule line but the problem is,its not updating the CONFIRMED QUANTITY and COMMITTED QUANTITY on

sales order schedule line tab,its updating ORDER QUANTITY and ROUNDED QUANTITY.

the structures and tables parameters i have updated are:

IMPORT PARAMETERS: SALESDOCUMENT,ORDER_HEADER_INX-UPDATEFLAG= 'U'(change sales order).

TABLES:SCHEDULE_LINES(ITM_NUMBER,REQ_DATE,REQ_QTY,DLV_DATE)

SCHEDULE_LINESX(ITM_NUMBER,UPDATEFLAG='I',REQ_DATE,REQ_QTY,DLV_DATE).

Please help me out if i need to fill up any other parameters or anything am missing out here.

Would appreciate your help.

Thanks in Advance

Ramu

4 REPLIES 4
Read only

Former Member
0 Likes
1,091

Confirmed quantity and committed quantity are a result of availability check not something you can influence. Your schedule line quantity is what you request and the confirmed quantity will be determined by the system based on the availability of the material.

Read only

0 Likes
1,091

Thanks for your reply.

But when i create a schedule line manually the confirmed and committed quantity are getting updated.

There is plenty of stock available in the given period.

My question here is if i do it through BAPI,why its not upadting those fields on sales order.

Thanks

Ramu

Read only

0 Likes
1,091

You may have to put a breakpoint at the beginning of the function module SD_SALES_DOCU_MAINTAIN and see what values are coming in when you are doing it manually and what values are coming in when you do it through BAPI.

Read only

Former Member
0 Likes
1,091

Dear Ramu ,

Any solution to this Issue i have the same Requirement and faceing the very same problem.

Thanks in advance for reply .

Thanks alot.

regards

Prashant Singh