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.

有帮助吗?

解决方案

It was an error in our abab code.

Sorry guys for wasting your time. When using the BAPI from outside, there is one flag missing, which is nessesary for our programm.

Know we add the flag, an everything works fine.

Thanks for all your answers, the external Breakpoint was a good idea.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top