I've got a problem. When performing the Code below via RFC , our Background Code, developed by some externs, is not executed, but when starting the BAPIs via the SE37 via frequenzy, our backgroundprogram is started.
System: SAP R/3 / sapnco.dll in C#; librfc32.dll on drive C: (included with SAP installation)
... some Code ...
RfcSessionManager.BeginContext(rfcDest);
...
IRfcFunction myfun = rfcRep.CreateFunction("BAPI_EQUI_DISMANTLE");
myfun.SetValue(.....);
myfun.Invoke(rfcDest);
myfun = rfcRep.CreateFunction("BAPI_TRANSACTION_COMMIT");
myfun.Invoke(rfcDest);
RfcSessionManager.EndContext(rfcDest);
Any idea whats wrong? I am not allowed to post our ABAP Code , but I think that should not be a problem.