cancel
Showing results for 
Search instead for 
Did you mean: 

about BAPI_ACC_DOCUMENT_POST

Former Member
0 Kudos

I'm using sapJco3 and i'm trying to create a non po invoice using this Bapi: "BAPI_ACC_DOCUMENT_POST"

I then call BAPI_TRANSACTION_COMMIT to commit my transaction.

I've tried setting the wait param:

params.setValue("WAIT","X");

But no matter what i try the record nevers shows up in sap.

I get no errors and I get a success and a doc number in the return param of BAPI_ACC_DOCUMENT_POST.

Please help,thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

By default all RFC calls in JCo 3.x are stateless, i.e. executed in a new context. Therefore your commit is most likely in another session and that's why it doesn't work. You have to wrap your two RFC calls with the method calls JCoContext.begin(destination) and JCoContext.end(destination). Check out the help for class JCoContext, which gives further details.

Answers (1)

Answers (1)

Former Member
0 Kudos

ok