Skip to Content
0
Former Member
Jul 21, 2008 at 01:50 PM

release of proccess order with 'BAPI_PROCORD_RELEASE'

168 Views

I am trying to release a proccess order via the following

method, by calling function odule 'BAPI_PROCORD_RELEASE'.

in debug mode it works, and in runtime mode

it fails to release.

Can sombody help.

METHOD release.

DATA lt_ordnum TYPE TABLE OF bapi_order_key.

DATA ls_ordnum TYPE bapi_order_key.

ls_ordnum-order_number = i_ord_num.

APPEND ls_ordnum TO lt_ordnum.

COMMIT WORK AND WAIT.

DO.

IF sy-subrc = 0.

EXIT.

ENDIF.

ENDDO.

CALL FUNCTION 'BAPI_PROCORD_RELEASE'

IMPORTING

return = os_return

TABLES

orders = lt_ordnum.

ENDMETHOD.

best regards,

Itzik Eshed