Skip to Content

Remove Schedule line Block

Hi,

thru ABAP, is it possible to remove 'schedule line' for item(s) (make this field blank) using BAPI_SALESORDER_CHANGE ?

I tried using it, may be am missing something.

Aditya V

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Dec 12, 2017 at 08:21 AM

    I do not know what exactly you passed as parameters, so I will share what I populated for a blocked schedule line from 06 to ' ' via a test sequence of this bapi and bapi_transaction_commit:

    SALESDOCUMENT = '13761'

    ORDER_HEADER_INX-UPDATEFLAG = 'U'

    SCHEDULE_LINESX:

    ITM_NUMBER = '000010'

    SCHED_LINE = '0001'

    UPDATEFLAG = 'U'

    REQ_DLV_BL = X

    SCHEDULE_LINES:

    ITM_NUMBER = '000010'

    SCHED_LINE = '0001'

    REQ_DLV_BL = ' '

    Is it possible that you are trying to modify the wrong schedule line? I used BAPISDORDER_GETDETAILEDLIST to check the right schedule line number for my item.

    Add comment
    10|10000 characters needed characters exceeded

    • Sometimes developers get offended if you ask them to check something that they have already done :)

      If I understood correctly, the reason why the delivery block is not cleared is the error that you get in the return table.

      I only used a test sequence, I did not try your code. :)

      It is strange that you receive an error for updateflag0 (if this is not a typo), because in my system there is no such field in header_inx, I have just header_inx-updateflag.

      This is probably a dumb question, but you set ls_bapisdhlx-updateflag = 'U', but when you call the first BAPI you use ORDER_HEADER_INX = lt_bapisdhlx. I do not see in the code sample where you populate lt_bapisdhlx with values and I did not understand why you need to use lt_bapisdhlx instead of ls_bapisdhlx when you require a single line. My guess is that this is where your problem lies, because I tried with a test sequence with the same data and only removed updateflag. As a result I got E 00 347 "Field header_inx-updateflag is not an input field". If the message that you have is exactly like mine - please try using ls instead of lt.

  • Dec 12, 2017 at 08:15 AM

    You need to brief more on what exactly your requirement is. Also, I am not sure, whether you have already discussed with the SD functional consultant if you are not a functional consultant. If discussed, share the screen where you want the control.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Lakshmipathi,

      my requirement is that thru ABAP I want to remove the entry for schedule line (VBEP-LIFSP, which you see under Schedule lines tab and field is 'Delivery Block') item to blank.

      Thanks,

      Aditya V

  • Dec 12, 2017 at 01:11 PM

    You can try with USEREXIT_MOVE_FIELD_TO_VBEP

    Add comment
    10|10000 characters needed characters exceeded