on 03-31-2010 2:53 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ok
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.