Accounting document generate
hi
I have used a funtion module to generate a Accounting document .The generation is working perfectively.
but I also use a fm called AC_document _check to check whether the document exists.it always giving me sy-subrc = 0 even if docu exist
what should i do
sarang
Tags:
Former Member replied
The function module AMBU_CALL_AC_DOCUMENT_CHECK does not have an exception as such so sy-subrc will always be 0.
The function module will execute regardless of any error.
In order to handle exceptions, use an internal table of errors and pass it to T_RETURN of the TABLES parameter in the fuction module.
Then you can find whether the function module is being executed correctly or not.