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_ACC_DOCUMENT_POST in another SAP system

former_member184214
Contributor
0 Likes
1,024

Hello all,

I am connecting two SAP 4.7 systems. I am calling BAPI_ACC_DOCUMENT_POST from one system to another. I am getting result from called system that document is posted but I cannot find the document.

Code is

CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST' DESTINATION 'TST_QAS360'

EXPORTING

testrun = ''

documentheader = p_bapi_header

TABLES

accountgl = p_it_bapi_account_gl

currencyamount = p_it_bapi_curr

return = it_bapi_return.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' DESTINATION 'TST_QAS360'

EXPORTING

wait = 'X'.

I get same result in testing mode and actual execution. Can somebody explain to me what I am missing?

4 REPLIES 4
Read only

nablan_umar
Product and Topic Expert
Product and Topic Expert
0 Likes
918

Try importing parameters OBJ_TYPE, OBJ_KEY, and OBJ_SYS. See what it actually returned in this IMPORT parameters.

Read only

0 Likes
918

I am importing all of those parameters. Without them I am not able to post any document.

I am getting return message with those parameters that document is posted, but when I try to query with them Icannot find the posted document.

TIA

Gordan

Read only

Former Member
0 Likes
918

I want to execute the 'FB01' thru a report whose input data will inserted from an external file. BDC

wud be the last option , I want to do it using BAPI.

I have tried it thru BAPI 'BAPI_ACC_GL_POSTING_POST' but in that case no document no is generated and nothing gets updated in BKPF table even using 'BAPI_TRANSACTION_COMMIT'.

While using the BAPI_ACC_DOCUMENT_POST what shud i use for the object type when i use BSEG it says 'FI/CO interface: Object type BSEG not defined'.

Pl help what to do???

thanks in advance

anshul

Read only

0 Likes
918

Hello,

I have the same problem that the document is not created in the system. If anyone have a solution to this problem please let me know

Thanks in advance,

Regards,

Dries Yssel