I am getting the error while calling BAPI_XBP_JOB_START_IMMEDIATELY
IRfcFunction rfcFunc = repository.CreateFunction("BAPI_XMI_LOGON");
rfcFunc.SetValue("extcompany", "testC");
rfcFunc.SetValue("extproduct", "testP");
rfcFunc.SetValue("interface", "XBP");
rfcFunc.SetValue("version", "3.0");
rfcFunc.Invoke(dest);
rfcFunc = repository.CreateFunction("BAPI_XBP_JOB_START_IMMEDIATELY");
rfcFunc.SetValue("jobname", "MYSCHEDULEDJOB");
rfcFunc.SetValue("jobcount", "15530600");
rfcFunc.SetValue("external_user_name", "username");
rfcFunc.SetValue("target_server", "devsapsystem");
rfcFunc.Invoke(dest);
first function module is giving sessionid in output, but the second xbp call is giving the message "Not logged on in interface XBP". Is there any problem parameters that I am passing or do I need maintain some session during these sequential calls.