Skip to Content
0
Former Member
Dec 02, 2008 at 09:46 PM

SD_SALESDOCUMENT_CREATE required data to get correct schedules data

314 Views

Hi all!!

I need to create sales documents through this function module. I Entered the following data:

SALES_HEADER_IN: All required data

SALES_ITEMS_IN: ITM_NUMBER=000010, MATERIAL=MAT1.

SALES_SCHEDULES_IN: ITM_NUMBER=000010, REQ_QTY=100, REQ_DATE= 02.12.2008 (today).

I expect that the table SCHEDULE_EX throws the following lines:

ITM_NUMBER=000010, REQ_QTY=100,COMMIT_QTY=49, TP_DATE= 02.12.2008

ITM_NUMBER=000010, REQ_QTY=100,COMMIT_QTY=51, TP_DATE= 02.01.2009

These lines are because 49 units are in stock and 51 are not and they can be delivered one month after.

But after I execute the function I check the SCHEDULE_EX table and I have this:

ITM_NUMBER=000010, REQ_QTY=100,COMMIT_QTY=0, TP_DATE= 02.12.2008

ITM_NUMBER=000010, REQ_QTY=0,COMMIT_QTY=0, TP_DATE= 02.01.2009

Do I have to put more data in the function to accomplish the desired result?

Please help!

Thanks