on 01-27-2015 2:34 PM
Dear Gurus,
We are having the following problem. We have a shell program that creates deliveries for STO's by calling trs VL10D in the background. There's no problem when the stock is sufficient. But when there's no enough stock, VL10D refuses to create a delivery, saying that "only X pieces of material A are available".
We want the system to deliver the available quantity. When the user runs VL10D manually, this is not a problem, because s/he can just change the quantity on VL10D screen before proceeding to delivery generation, but this doesn't seem to be possible in CALL TRANSACTION.
Hence my question. Is it possible to let the system create a partial delivery in VL10D automatically? I have already checked the customer master ("max. no. deliveries" = 9 and "partial deliveries" = space, i.e. no restriction). I have also tried setting the avail. check rule = C (Delivery proposal) in the IMG option "Define Default Settings" under Avail. check (table TVTA).
Nothing helps.
If you don't see a possibility to let VL10D create partial delivery for the available quantity, maybe you know other way of creating deliveries for STO's by a program? Any BAPI or something?
TIA
Raf
Hi Raf,
Can't you simply check available stock before calling transaction in your abap code (simple selection on table MARD, depending what you allocate as available for STO ) and then pass the right value into call transaction parameters (assuming the qty is there)?
BR,
Tomek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi everybody,
Many thanks again for your tips. Just want to update you that I decided to exhaust option #2, i.e. tell VL10D which quantity to deliver. If the programmer doesn't manage to pass the value to the report screen that VL10D has, we will change the program to use BAPI_OUTB_DELIVERY_CREATE_STO instead of CALL TRANSACTION.
I am closing this thread.
BR
Raf
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm guessing the message you are getting is VL150. A quick where used on that message from SE91 suggests it's only used in one place. It looks like your problem is definitely coming from availability checking, I'm no expert in this area but try setting up a break point and examining the variables used in the if statement:
PERFORM AVAILABILITY_CHECK USING RESBD_B
WADAT_TMP
LFMNG_TMP
RESBQ_TMP
VBELN_TMP
POSNR_TMP
SPACE.
IF LFMNG_TMP GT RESBQ_TMP-VFMNG AND
RESBQ_TMP-VERPR EQ SPACE.
WRITE RESBQ_TMP-VFMNG TO MENGE_TMP UNIT RESBQ_TMP-MEINS.
MESSAGE E150(VL) WITH MENGE_TMP " Liefermg. > Verf. Mg.
RESBQ_TMP-MEINS
RESBD_B-MATNR.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Robyn,
No, I am satisfied with the results of the ATP check. It reports correctly the available quantity. What I want is that the system will also use this available quantity for the generation of the delivery (instead of the open STO quantity).
But I will definitely check the place that you showed - maybe there's possibility to alter the delivery quantity there. Many thanks for the tip.
BR
Raf
The settings about partial deliveries and max number of deliveries is not considered in deliveries, see 842829 - Characteristics of replenishment deliveries from STOs
Instead you have similar fields (5% of this functionality) in a purchase order delivery tab, explained in a bit more detail in 1889803 - Complete delivery for STO not working in every case.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Robyn,
My problem is not to close the STO after the first delivery. The field "partial delivery" works well for this purpose. My problem is to let the system generate the first delivery with the available quantity only (lower than the STO quantity).
As I wrote, this functionality is available when one runs VL10D manually (get the message about unavailability, then back off and change the quantity). But I would like the system to do it automatically. I believe thi sis possible for deliveries for sales orders.
BR
Raf
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
6 | |
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.