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 not generating accounting document

Former Member
0 Likes
1,442

HI All

I'm calling function module 'BAPI_ACC_DOCUMENT_POST'

to upload accounting dcoument data and passing below parameters for header section. I'm getting 605 success message in RETURN table, but accounting document is not being generated.

obj_type = FKKSU

obj_KEY = '$'

obj_sys = t000-logsys.

Message is here:

S |RW |605 |Document posted successfully: FKKSU $ PRO

Kindly suggest me what could be the problem.

Thanks in advance,

Vijaya

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
885

As already posted.

Call this after the FM u have called.

call function 'BAPI_TRANSACTION_COMMIT'

exporting

wait = 'X'.

WIll work

Edited by: Sabu Samuel on Mar 24, 2008 2:04 PM

4 REPLIES 4
Read only

ravisankara_varaprasad
Active Participant
0 Likes
885

Hi ,

You need to execute BAPI_TRANSACTION_COMMIT after this Function module.

otherwise go to before executing BAPI BAPI_ACC_DOCUMENT_POST

go to 'Function Modules ->other Function module -> ( enter BAPI_TRANSACTION_COMMIT) and then choose SAVE.

now execute your test variant BAPI_ACC_DOCUMENT_POST.

Hope this helps you.

Thanking You.

Kind Regards,

Ravi Sankar.Z

Read only

Former Member
0 Likes
885

Hi,

Have you executed BAPI_TRANSACTION_COMMIT after your BAPI 'BAPI_ACC_DOCUMENT_POST'?

Chang

Read only

Former Member
0 Likes
886

As already posted.

Call this after the FM u have called.

call function 'BAPI_TRANSACTION_COMMIT'

exporting

wait = 'X'.

WIll work

Edited by: Sabu Samuel on Mar 24, 2008 2:04 PM

Read only

0 Likes
885

Hi,

This worked for me. Thank you for the solution.

Kiruthika