on 10-15-2008 3:48 PM
Hi,
We are trying to connect to an SAP system and execute the BAPI. The BAPI_SALESORDER_CREATEFROMDAT2 does not return any error and is executed successfully. Immediately we are executing the COMMIT BAPI. Somehow it does not get committed to the database.
Here is the part of the code....
**************
JCO.Client system;
....
....
JCO.Function function = new JCO.Function(resp.getFunctionTemplate("BAPI_SALESORDER_CREATEFROMDAT2"));
....
system.execute(function);
JCO.Function BAPI_TRANSACTION_COMMIT = new JCO.Function(resp.getFunctionTemplate("BAPI_TRANSACTION_COMMIT"));//
system.execute(BAPI_TRANSACTION_COMMIT);
***************
Appreciate any help.
Regards
Pal
After the BAPI_SALESORDER_CREATEFROMDATA2 part is over, make sure that your client hasnt been disconnected and then connected again to execute BAPI_TRANSACTION_COMMIT.
If the client is disconnected and then connected again, the session is built anew, which is of course a problem because you need to call commit in the same session where you commit your sales order.
T00th
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.