Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Accounting document generate


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 always giving me sy-subrc = 0 even if docu exist

what should i do


Former Member
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.

0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question