Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

bapi error log file

Former Member
0 Likes
656

below is my code , please tell me how to create error log file if bapi fails with code example .

call function 'BAPI_ACC_DOCUMENT_POST'

exporting

documentheader = l_documentheader

tables

accountgl = lt_accountgl

accountpayable = lt_accountpayable

currencyamount = lt_currencyamount

return = lt_return

extension2 = lt_extension2.

loop at lt_return.

if lt_return-type = 'S'.

call function 'BAPI_TRANSACTION_COMMIT'.

else.

" create err log file.

endif.

endloop.

1 REPLY 1
Read only

Former Member
0 Likes
399

Hi,

I have a similar requirement.How did you achieve this?I want to place the error log file in the menu.

Regds,

Vijaya