‎2010 Oct 01 4:34 AM
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.
‎2012 Feb 02 9:59 AM
Hi,
I have a similar requirement.How did you achieve this?I want to place the error log file in the menu.
Regds,
Vijaya