on 02-08-2011 7:48 AM
Hi
can you please tell me how to get delivery block automatically when creating sales order?
thanks
L.C
Hi
Use user exit MV45AFZZ and take a help of ABAPER to add the program in it
IF sy-tcode EQ 'VA02' AND vbak-lifsk IS INITIAL AND ( sy-uname NE ' ADD ur own user ID ' AND sy-uname NE 'ADD ur own user ID ' ) AND
vbak-vkorg EQ '1000' AND vbak-vtweg EQ '10' AND vbak-spart EQ '01'.
DATA : BEGIN OF lt_item_old OCCURS 0,
posnr TYPE vbap-posnr, " SD Document Item Number
zmeng TYPE vbap-zmeng, " Quantity Of that Item
END OF lt_item_old.
CLEAR : lt_item_old[], lt_item_old.
SELECT posnr
zmeng
FROM vbap INTO TABLE lt_item_old
WHERE vbeln EQ vbak-vbeln.
IF sy-subrc EQ 0.
LOOP AT xvbap.
READ TABLE lt_item_old WITH KEY posnr = xvbap-posnr.
IF sy-subrc EQ 0 AND lt_item_old-zmeng NE xvbap-zmeng.
vbak-lifsk = 'Z8'. " Delivery Block - Authorization Await
EXIT.
ELSEIF sy-subrc NE 0.
vbak-lifsk = 'Z8'.
EXIT.
ENDIF.
ENDLOOP.
ENDIF.
Regards
Santosh.AR
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The delivery block can be done for a sales document type in VOV8 (Sales Header Level).Here you specify the reason for block.
The same can be seen comes automatically in order in VA01 .This is used to block deliveries to happen.
Later you can check and remove the block in VA02.
Same can be done at Schedule line category level ,Delivery type and at the picking and goods issue.
Regards
Deepak
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi LC,
You can specify a delivery block for any of the following:
Sales document type
Schedule line category
Delivery type
Shipping activity, such as picking and goods issue.
For example if you wish to set at sales document type level:
SAP Customizing Implementation Guide>Sales and Distribution>Sales>Sales Documents>Sales Document Header.
The delivery block at header level is only effective if this block is assigned to the corresponding delivery type in the Customzing table (TVLSP).
Best regards,
Glynn
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Assign delivery block for your sales document type in VOV8.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Assign delivery block for your sales document type in VOV8.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
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.