To get Accounting document of an Invoice.
The requirement is to get the accounting document generated for a invoice . Please help me this .
Edited by: sunitha j on Sep 8, 2008 6:26 AM
You can use the FM "AC_DOCUMENT_RECORD" which will take the following Parameters.
CALL FUNCTION 'AC_DOCUMENT_RECORD'
i_awtyp = 'VBRK'
i_awref = wa_invoices-vbeln
i_awtyp_incl = 'BKPF'
x_dialog = wa_boole
t_documents = i_docnum "-> This will contain the Acc.
"-> Doc Number(s).
no_reference = 1
no_document = 2
OTHERS = 3.
Thanks and Regards,
Venkat Phani Prasad Konduri