Application Development and Automation 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: 
Read only

BAPI tables content

Former Member
0 Likes
533

Hi masters!

I am testing BAPI_ACC_DOCUMENT_DISPLAY (SE37)

I put import parameters:

OBJ_TYPE:BKPF

OBJ_KEY: 002201346500102006

OBJ_SYS: DEV_020_02

(I took them from existing FI document)

This BAPI returns me 000 (I can see acc.doc, profit center, cost acc. Doc and funds doc)

It works perfect.

My question is:

How I can get the content of TABLES for this existing document ?

(ACCOUNTGL, ACCOUNTRECEIVABLE, CURRENCYAMOUNT, etc…)

I don’t mean content in BKPF, BSEG – I mean Tables for BAPI_ACC_DOCUMENT_POST.

Regards.

Oleg.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
430

Well, I don't think you can with this BAPI. BAPI_ACC_DOCUMENT_POST takes the tables as input, manipulates them, calculates taxes and posts documents. This BAPI will just return the various documents (FI, FM, CO, etc.) that the BAPI or other processing created. It would be pretty difficult to re-create the tables form BSEG and BKPF.

BAPI_ACC_DOCUMENT_DISPLAY does run another FM AC_DOCUMENT_RECORD which returns tables, but those tables are just a list of the various documents numbers.

Rob

1 REPLY 1
Read only

Former Member
0 Likes
431

Well, I don't think you can with this BAPI. BAPI_ACC_DOCUMENT_POST takes the tables as input, manipulates them, calculates taxes and posts documents. This BAPI will just return the various documents (FI, FM, CO, etc.) that the BAPI or other processing created. It would be pretty difficult to re-create the tables form BSEG and BKPF.

BAPI_ACC_DOCUMENT_DISPLAY does run another FM AC_DOCUMENT_RECORD which returns tables, but those tables are just a list of the various documents numbers.

Rob