Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

AC_DOCUMENT_DIRECT_INPUT

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

Former Member
0 Kudos

Former Member
0 Kudos

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!!!!!

0 Kudos

I have not used this BAPI, but you can have a look at the sample code in the links I have provided.

ashish

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please check this batch input RFBIBL01 for sample code perhaps it may help.

Regards,

Ferry Lianto