2008 Dec 02 9:46 PM
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
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
2008 Dec 02 9:51 PM
are you sure the stock is there? what happens if you go to the sales order in SAP created by the BAPI, and do ATP check there?
2008 Dec 02 10:15 PM
Hi,
When I save the document through the BAPI and see it from the transaction in R3 it shows the following:
Item:10 Material: MAT1 Confirmed qty.:0 Mat.av.dt.:02.12.2008
Item:10 Material: MAT1 Confirmed qty.:100 Mat.av.dt.:02.01.2009
but when I create other document in R3 with the same data it throws the desired results.
Please help...
2008 Dec 03 5:20 AM
SEE THE CODE
Fill schedule lines
lt_schedules_in-itm_number = '000010'.
lt_schedules_in-sched_line = '0001'.
lt_schedules_in-req_qty = p_menge.
lt_schedules_in-REQ_DATE = sy-datum.
APPEND lt_schedules_in.
Fill schedule line flags
lt_schedules_inx-itm_number = '000010'.
lt_schedules_inx-sched_line = '0001'.
lt_schedules_inx-updateflag = 'X'.
lt_schedules_inx-req_qty = 'X'.
lt_schedules_inx-REQ_DATE = 'X'.
APPEND lt_schedules_inx.
2008 Dec 03 5:40 AM
Thanks Kupra,
I will try it and I´ll be back. Now I have doubts now is about the structures that end with INX, can you explain me what are they used for? Is there a reference of SAP Function Modules's structures?
Thanks again!!!
2008 Dec 03 2:25 PM
Hi Krupa,
I tested the function module entering the values in the fields you gave to me and it still doesn't work.
Any other idea?
Thanks
2009 Sep 09 2:34 PM
Hi Miguel,
did you ever checked the customer you want to make an order for?
It could be a problem if the customer is locked for delivery or he has
passt his credit limit.
Greetings
Edited by: Tobias Nell on Sep 9, 2009 3:34 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |