asp.net mvc - SAP .NET Connector, Connect to a Single RFC destination using multiple SAP user accounts -
I have one. Net application that uses SAP to make sales order through it. When I used a (normal) single SAP user account to create rfcDestination , it works perfectly with many users. But when I use the login user's user account, it gives the following exception.
RFC online standout exception: Portal. Infrastructure.Data. Bangalore context ScreenPop Sp. the provider. SPEPHATION: Destination MACU is invalid - - & gt; SAP.Middleware.Connector.RfcInvalidStateException: Destination is invalid SAP.Middleware.Connector.RfcFunction.Invoke (RfcDestination destination) on MAQ Portal.Infrastructure.Data.BoundedContext.ScreenPop.SAP.Provider.SapConectionProvider.Invoke [T] (IDataRequet request , string username, string password, IRfcFunction & amp; rfcFunction) --- inner exception end of the stack trace --- Portal.Infrastructure.Data.BoundedContext.ScreenPop.SAP.Provider.SapConectionProvider.Invoke [T] (IDataRequet on request , String Username, String Password, IRfcFunction & amp; rfcFunction) Portal.Infrastructure.Data.BoundedContext.ScreenPop.SAP.SapDataRepository2.Invoke [T] (IDataRequet Request, Site Tring User, String Password) 08: 20: 52.016 [23] Error General - ATP Check Exception: Portal.Infrastructure.Data.BoundedContext.ScreenPop.SAP.Provider.SapException: Destination MAQ Invalid --- & gt; SAP.Middleware.Connector.RfcInvalidStateException: Destination is invalid SAP.Middleware.Connector.RfcFunction.Invoke (RfcDestination destination) on MAQ Portal.Infrastructure.Data.BoundedContext.ScreenPop.SAP.Provider.SapConectionProvider.Invoke [T] (IDataRequet request , string username, string password, IRfcFunction & amp; rfcFunction) --- inner exception end of the stack trace --- Portal.Infrastructure.Data.BoundedContext.ScreenPop.SAP.Provider.SapConectionProvider.Invoke [T] (IDataRequet on request , String Username, String Password, IRfcFunction & amp; rfcFunction) Portal.Infrastructure.Data.BoundedContext.ScreenPop.SAP.SapDataRepository2.Invoke [T] (IDataRequet Request, Site Tring user, string password)
and this happens only when multiple users are called RFCs at the same time.
Does the SAP .net connector support for many SAP user accounts ??
You will need to use RfcCustomDestination for valuable F. Lobon:
Web.config
& lt; ConfigSections & gt; & Lt; Section group name = "SAP.Middleware.Connector" & gt; & Lt; Section group name = "client settings" & gt; & Lt; Section name = "destination configuration" type = "sap.modelware.connector.rfcdistribution configuration, sapnake" & gt; & Lt; / SectionGroup & gt; & Lt; / SectionGroup & gt; & Lt; / ConfigSections & gt; & Lt; SAP.Middleware.Connector & gt; & Lt; ClientSettings & gt; & Lt; DestinationConfiguration & gt; & Lt; Destinations & gt; & Lt ;! - Several ways to do this ... - & gt; & Lt; ADD NAME = "DEV" SYSID = "DEV" ASHOST = "mysapashost.com" SYSNR = "00" client = "0000" LANG = "EN" MAX_POOL_SIZE = "5" IDLE_TIMEOUT = "10" USER = "anything" PASSWD = "Nothing has been used" /> & Lt; / Sights & gt; & Lt; / DestinationConfiguration & gt; & Lt; / ClientSettings & gt; & Lt; /SAP.Middleware.Connector> & Lt; / Configuration & gt;
IP address:
Personal stable RfcCustomDestination mydestination () the name of the destination {// "DEV" web.config RfcDestination rfcDest = RfcDestinationManager.GetDestination ( "God"); RfcCustomDestination _customDestination = rfcDest.CreateCustomDestination (); _customDestination.User = "Log on on SAPUscreened"; _customDestination.Password = "Log On Oneppassword"; Return __CustomDestination; } Public String Run MIRFC (String MyInput) {RFC CustDestination _customDestination = mydestination (); IRFCFunction Results = _customDestination.Repository.CreateFunction ("Z_SOME_RFC"); Results .set value ("RFCInput", myInput); Results.Invoke (_customDestination); String threResult; // . . Return return; }
Comments
Post a Comment