Skip to Content
0
Former Member
Jul 04, 2012 at 08:06 AM

.net Connector transaction commit issue

585 Views

Hello,

I am trying to commit a transaction that consists of a single BAPI (BAPI_ACC_GL_POSTING_POST)

When I invoke the function prior to the commit, the document is created with Document Number that is greater by 1 than the document number i got from the BAPI invocation output.

When I do not invoke the function prior to transaction commit, then I got Document Number that is MAX+1, however I do not receive any output data from the RfcFunction.

The steps for calling the function are as followed:

RfcTID tid = new RfcTID(Guid.NewGuid());

RfcTransaction transaction = new RfcTransaction(tid);

transaction.Add(fn);

fn.Invoke(destination);

transaction.Commit(destination);

Please advise.

Thanks in advance,

Aaron