首页 > 其他分享 >BAPI_RESERVATION_CHANGE 删除预留

BAPI_RESERVATION_CHANGE 删除预留

时间:2022-11-02 15:44:34浏览次数:45  
标签:BAPI gt reservationitems reservationitemsx reservation resb RESERVATION CHANGE

CLEAR: reservationitems[],reservationitems.
      CLEAR: reservationitemsx[],reservationitemsx,reservation.

      reservation = gt_resb-rsnum.
      reservationitems-res_item = gt_resb-rspos.
      reservationitems-delete_ind = 'X'.
      APPEND reservationitems.

      reservationitemsx-res_item = gt_resb-rspos.
      reservationitemsx-delete_ind = 'X'.
      APPEND reservationitemsx.

      CALL FUNCTION 'BAPI_RESERVATION_CHANGE'
        EXPORTING
          reservation               = reservation
*         TESTRUN                   =
          atpcheck                  = atpcheck
        TABLES
          reservationitems_changed  = reservationitems
          reservationitems_changedx = reservationitemsx
*         RESERVATIONITEMS_NEW      =
          return                    = it_return
          extensionin               = extensionin.
      LOOP AT it_return WHERE type = 'E' OR  type = 'A' .
        EXIT.
      ENDLOOP.

 

标签:BAPI,gt,reservationitems,reservationitemsx,reservation,resb,RESERVATION,CHANGE
From: https://www.cnblogs.com/sapSB/p/16851194.html

相关文章