cancel
Showing results for 
Search instead for 
Did you mean: 

release of proccess order with 'BAPI_PROCORD_RELEASE'

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Dear Itzik,

I understand that I am really late in replying to this post. Wish I knew ABAP in 2008

Had I known ABAP then, I would have certainly helped you.

Coming to your question, there are two ways of making your BAPI work. I have used it and it works fine for me in real time now.

Method 1:

Method 2:

Please try doing it in one of these ways and I am sure it will work. If it does not, lets make it work

All the very best!!

Regards,

Ram

Former Member
0 Kudos

Hi

Did you get the solution yet?

Thanks

Former Member
0 Kudos

Not yet, if you can help please do it.

Best Regards,

Itzik Eshed.

Former Member
0 Kudos

Hello,

Not yet, if you can help please do it.

Best Regards,

Itzik Eshed.