cancel
Showing results for 
Search instead for 
Did you mean: 

*Automatically Delivery block on sales Order*

Former Member
0 Kudos

Hi

can you please tell me how to get delivery block automatically when creating sales order?

thanks

L.C

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

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

deepak_dave2
Participant
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Assign delivery block for your sales document type in VOV8.

Former Member
0 Kudos

Assign delivery block for your sales document type in VOV8.