Auto-Commit Connection in BSSV

saikiran

Active Member
Hello All,

I created a business service from where it will call a BSFN.

BSFN internally calls few other BSFN's (which creates the order in F4211) and UBE's (Changes status of the order).

Inside the UBE it will change the status of the order and it will further process.

From BSSV point of view, it is following the transaction processing and the order in the JDE is committing to the database only after the web service is getting completed.

But the problem is whenever the UBE is getting called, it is not getting processed because of the order not available / not committed in the database.

After reading few docs, i came to know that this can be accomplished only through "Auto commit Connection" process.

How to implement "Auto commit connection" in BSSV or is there any other process to resolve this issue ?

-Thank you & Regards,
 
In your manager change this bit

context = startPublishedMethod(context, "GetGTSWOCompletions", vo);

to

context = startPublishedMethod(context, "GetGTSWOCompletions", vo, IConnection.AUTO );
 
Hi,
As say johndanter you can to declarate starPublishedMethod as AUTO.

You could force commit with:
Code:
connection.commit();

And you also could control transactions manually as:

Code:
        //Explicit Manual TP Connection
        IConnection connection = context.getNewConnection(IConnection.MANUAL);
        // do things
        ....
        // commit transaction
        connection.commit();

       // finally
       connection.close();

Regards
 
Last edited:
Back
Top