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

probelm in BAPI for Accounting: Posting-BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
934

Hi ,

We have a problem in BAPI for Accounting: Posting-BAPI_ACC_DOCUMENT_POST.

Problem:- While we executing this BAPI in SE37 , and we are giving all our req data .

in DOCUMENTHEADER--- BAPIACHE09

ACCOUNTGL----


BAPIACGL09

CURRENCYAMOUNT----BAPIACCR09

In return type (BAPIRET2) this message is coming "Document posted successfully: BKPFF 0024000002"

But While checking the database IN "BFPF" table, there is no records for the same...

that means database is not updating

So can any body help on this matter, what can be the solution for this...

Thanks,

Rakesh

Hi ,

We have a problem in BAPI for Accounting: Posting-BAPI_ACC_DOCUMENT_POST.

Problem:- While we executing this BAPI in SE37 , and we are giving all our req data .

in DOCUMENTHEADER--- BAPIACHE09

ACCOUNTGL----


BAPIACGL09

CURRENCYAMOUNT----BAPIACCR09

In return type (BAPIRET2) this message is coming "Document posted successfully: BKPFF 0024000002"

But While checking the database IN "BFPF" table, there is no records for the same...

that means database is not updating

So can any body help on this matter, what can be the solution for this...

Thanks,

Rakesh

7 REPLIES 7
Read only

prasenjit_sharma
Active Contributor
0 Likes
902

Hi,

Did you use commit after the BAPI call?

Regards

Prasenjit

Read only

0 Likes
902

yes i am using Coomit statement also...

still same problem...

Thanks,Rakesh

Read only

gaursri
Active Contributor
0 Likes
902

Hi Rakesh,

Execute external Commit when using BAPIs BAPI_TRANSACTION_COMMIT

Wishing the query resolves soon.

Have a best day ahead.

Read only

Former Member
0 Likes
902

yes i am using Coomit statement also...

as u mentioned..

still same problem...

pls give me some other solutin if u have...

Thanks,

Rakesh

Read only

ThomasZloch
Active Contributor
0 Likes
902

How are you using the commit statement from within SE37? If you call it from SE37 as well, then the context of the previous BAPI call was already lost. You could try calling the BAPI in debug mode, proceed to the very last statement, and invoke a commit work from the debugger menu. Please let us know if this works

Thomas

Read only

Former Member
0 Likes
902

Hi Thomas,

Commit stmt i am using in SE38 after calling BAPI..

But in SE37 i am not using this commit stmt...

Pls tell me if u have any solution for the same

Thanks,

Rakesh

Read only

gaursri
Active Contributor
0 Likes
902

Hi Rakesh,

Go through this wiki

Link: [WiKi|http://wiki.sdn.sap.com/wiki/display/stage/Postingmorethan999recordsthroughBAPI]

Praying your query resolves.

Have a best day ahead.