10-24-2007 6:11 PM
Hi experts!
This is an urgent one..
Could you please explain as detailed as you can how the f.m. : AC_DOCUMENT_DIRECT_INPUT works and the parameters that should be passed, especially the tables: t_bbkpf , t_bbseg.
What i need to do is to post reversed documents...
Thank you in advance!!!!
Title was edited by:
Alvaro Tejada Galindo
10-24-2007 6:18 PM
Hi,
c_back TYPE c VALUE '/',
t_bbkpf TYPE TABLE OF bbkpf WITH HEADER LINE,
t_bbseg TYPE TABLE OF bbseg_di WITH HEADER LINE,
t_bbtax TYPE TABLE OF bbtax WITH HEADER LINE,
Here is the sample code.
*----for checking of the data
CALL FUNCTION 'AC_DOCUMENT_DIRECT_INPUT'
EXPORTING
i_nodata = c_back
i_testrun = c_mark
IMPORTING
e_bukrs = l_bukrs
e_gjahr = l_gjahr
e_belnr = l_belnr
TABLES
t_bbkpf = t_bbkpf
t_bbseg = t_bbseg
t_bbtax = t_bbtax
EXCEPTIONS
error_message = 1
OTHERS = 2.
This function module actually posts FI document. So if you pass the header and line items it is goign to create one FI document.
Thanks
Lincon
10-24-2007 6:20 PM
10-24-2007 6:47 PM
Thank you for your answers.
If possible, please provide me with a simple program in which the f.m. is used (if of course you've used it), because the standard SAP programs i've found in the where-used list are too difficult for me to understand..
Thank you!!!!!
10-24-2007 6:48 PM
I have not used this BAPI, but you can have a look at the sample code in the links I have provided.
ashish
10-24-2007 6:59 PM
Hi,
Please check this batch input RFBIBL01 for sample code perhaps it may help.
Regards,
Ferry Lianto