Skip to Content

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

To get Accounting document of an Invoice.

Hi experts,

The requirement is to get the accounting document generated for a invoice . Please help me this .

Thanx,

Sunitha

Edited by: sunitha j on Sep 8, 2008 6:26 AM

Tags:
Former Member
replied

Hello,

You can use the FM "AC_DOCUMENT_RECORD" which will take the following Parameters.

CALL FUNCTION 'AC_DOCUMENT_RECORD'

EXPORTING

i_awtyp = 'VBRK'

i_awref = wa_invoices-vbeln

i_awtyp_incl = 'BKPF'

x_dialog = wa_boole

TABLES

t_documents = i_docnum "-> This will contain the Acc.

"-> Doc Number(s).

EXCEPTIONS

no_reference = 1

no_document = 2

OTHERS = 3.

Thanks and Regards,

Venkat Phani Prasad Konduri

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