Skip to Content
avatar image
Former Member

Remove Delivery Block from Outbound Delivery using BAPI

Hi all,

I'd like to use BAPI_OUTB_DELIVERY_CHANGE to remove the delivery block from an outbound delivery.

I've used it to change the delivery block numerous times, but never to remove it. There are numerous discussions online for the former, but not the latter, so here goes...

Where I'd normally set header_data-dlv_block = 'QA' to change the block to 'Awaiting Inspection', I've tried header_data-dlv_block = ' ' to remove it, but with no luck.

I've set header_control-dlv_block_flg = 'X' and passed in the delivery number for both structures. Are there any additional parameters for just clearing the delivery block?

Any help much appreciated,

Cheers

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 15, 2017 at 10:06 AM
    -1

    Here's my code:

    I've highlighted where I'm currently passing in '.' as a workaround, although I'm unsure whether this will truly be effective moving forward. Ideally I'd set it to ' ' and clear the delivery block completely.

    Cheers,

    Sam

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Veselina Peykova

      Veselina,

      Finally fixed the issue! An include in MV45AFZZ had been resetting the delivery block. It's an old piece of code that a contractor had left in.

      We compare against T180-TRTYP to determine whether or not an include is to be run, however this include was comparing against SY-TCODE and was being activated by changes in VA02.

      Thanks for your help.

      Sam

  • Mar 09, 2017 at 09:12 PM

    Have you tried to debug it? Could there be some user exit in your system that causes this?

    Otherwise - transaction ANST to search for the applicable notes and contact SAP Support if none found.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Jelena,

      Yes, I've tried debugging and there's no user exit affecting the value. I'm currently getting around the issue by setting the delivery block to ' . ' (full stop/period), but it's bothering me that clearing the value doesn't appear to work. I also don't trust the robustness of this 'quick fix' going forward.

      We don't appear to have transaction ANST available.

      Thanks for stopping by,

      Sam

  • Mar 08, 2017 at 12:18 AM

    Hey SAM

    Can you try this one BAPI_OUTB_DELIVERY_REJECT?

    Regards

    Vinita

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Vinita,

      I'm not sure this is going to suit our requirements - we don't want to undo any changes to our delivery, just remove the delivery block once the items have been checked.

      The block is being placed on deliveries for replacement items - where the original order was defective or damaged in transit. We want these replacements to be QA'd before they leave the warehouse, to ensure they're 100% ready to go.

      If you still think this is suitable, can you tell me anything about parameter techn_control ? Where can I find the rejection control to pass into this parameter? There's very limited documentation about this BAPI online.

      Cheers,

      Sam