on 05-14-2018 3:07 PM
Hello,
I need to use the BAPI_SALESORDER_SIMULATE in order to get the availabilty stock per item in result.
In my example, I have 304 items on stock. I want to place an order for 1000 items. Through VA01, I got 2 schedule lines with confirmed quantity, first with 304 in confirmed quantity for required date and a second one with 696 after the replenishment lead time.
I got a different results through BAPI, I got 2 schedule lines but first with 0 in confirmed quantity and the second one with the total qty 1000 confirmed.
No partial delivery is taken into account
Lines in BAPI
DelDate Req_Quan Conf_Quan
14.05.2018 1000 0
22.05.2018 0 1000
Lines in VA01
DelDate Req_Quan Conf_Quan
14.05.2018 1000 304
22.05.2018 0 696
I used the same Sales area for both.
In OVZJ, the default parameter are : Fixed date and qty ='X'
Avail. check rule = ' '
Import parameters in BAPI
.....................
"ORDER_ITEMS_IN":
"ITM_NUMBER": "000010",
"PO_ITM_NO": "10",
"REQ_DATE": "20180514",
"MATERIAL": "000000000017010005",
"REQ_QTY": "0000001000000",
"DLVSCHDUSE": null
......................
Does anybody has an idea which parameter is missing, so I get two confirmed quantities?
Regards
Sébastien
Hi
You need to fill in the ORDER_SCHEDULE_IN structures as well with the appropriate information to get confirmed quantities.
Fields to populate include:
- ITM_NUMBER -> matches item numbers from the ORDER_ITEMS_IN.
- SCHED_LINE -> can just be 00001, 00002, etc.
- REQ_DATE -> same as the required delivery date values as populated on the ORDER_ITEMS_IN structures.
- REQ_QTY -> matching ORDER_ITEMS_IN values.
Hope this helps.
Thanks
Phil Cooley
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Phil,
Thank you for your feedback.
I already tested to add the structure ORDER_SCHEDULE_IN but this is worse because the BAPi manages twice qty (qty in ITEM and qty in SCHED) and not still partially.
========Result Lines in BAPI ==========
SchedL / DelDate / Req_Quan / Conf_Quan
0001 / 15.05.2018 / 1000 / 0
0003 / 15.05.2018 / 1000 / 0
0004 / 22.05.2018 / 0 / 1000
0005 / 22.05.2018 / 0 / 1000
===================================
Another idea please ?
Thanks
Regards
Sébastien
Whenever you add any post to your original query, please do so under "Comment" and not under "Answer", as you were not answering to a query but only providing additional informations as required by the member. Also, the member to whom you were responding will not be notified if you respond under "Answer". Meanwhile, I have converted your above post from Answer to Comment.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.