on 07-21-2008 2:50 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Did you get the solution yet?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.