Skip to Content
avatar image
Former Member

*Automatically Delivery block on sales Order*

Hi

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

thanks

L.C

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Feb 08, 2011 at 07:56 AM

    Assign delivery block for your sales document type in VOV8.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 08, 2011 at 07:56 AM

    Assign delivery block for your sales document type in VOV8.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 08, 2011 at 07:59 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 08, 2011 at 08:24 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 08, 2011 at 10:01 AM

    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

    Add comment
    10|10000 characters needed characters exceeded