Skip to Content
1
Former Member
Sep 17, 2011 at 12:17 PM

BAPI_SALESORDER_CHANGE - how to change item delivery block(VBEP-LIFSP)

2389 Views

HI all,

I have to change on item delivery block (VBEP-LIFSP) and header level delivery block (VBAK-LIFSK) ,

In my report i`am using BAPI_SAILBOARDER_CHANGE,

for header:

LT_BAPISDH1X-UPDATEFLAG = 'X'.
         LT_BAPISDH1X-DLV_BLOCK = 'X'.
        LT_BAPISDH1-DLV_BLock = '

'.

for item

LT_BAPISCHDLX-UPDATEFLAG = 'U'.
      LT_BAPISCHDLX-REQ_DLV_BL = 'X'.
      LT_BAPISCHDLX-SCHED_LINE = '0001'.
      LT_BAPISCHDLX-ITM_NUMBER = '10'.

      LT_BAPISCHDL-REQ_DLV_BL = ' '.
      LT_BAPISCHDL-SCHED_LINE = '0001'.
      LT_BAPISCHDL-ITM_NUMBER = '10'.

For header it`s working properly, but for item - not at all - message: "Field header_inx-updateflag is not an input field"

CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        SALESDOCUMENT               = L_SPETAB-vbeln
        ORDER_HEADER_IN             = LT_BAPISDH1
        ORDER_HEADER_INX            = LT_BAPISDH1X
      TABLES
        RETURN                      = LS_RETURN
        SCHEDULE_LINES              = LT_BAPISCHDL
        SCHEDULE_LINESX             = LT_BAPISCHDLX
             .

Any suggestions? Thank you