Quantcast
Channel: SCN : Discussion List - Interoperability .NET
Viewing all 68 articles
Browse latest View live

NCO3 - Empty error message while connecting to Message server

$
0
0

Hello,

 

I can connect to SAP with application server connection, but I need to switch to Message server connection.

 

Connection config:

 

<SAP.Middleware.Connector>    <ClientSettings>      <DestinationConfiguration>        <destinations>                   <!--Application server-->          <!--<add NAME="DefaultDestination" USER="username" PASSWD="password" USE_SAPGUI="0" CLIENT="100" LANG="EN" ASHOST="vm-srv-crm.company.com" ASSERV="sapgw00" SYSNR="00" SYSID="CE1" POOL_SIZE="5" MAX_POOL_SIZE="10" IDLE_TIMEOUT="600" />-->                   <!--Message server-->          <add NAME="DefaultDestination" USER="username" PASSWD="password" CLIENT="100" LANG="EN" MSHOST="vm-srv-crm.company.com" MSSERV="sapgw00" GROUP="PUBLIC" SYSNR="00" SYSID="CE1"/>        </destinations>      </DestinationConfiguration>    </ClientSettings>    <ServerSettings>      <ServerConfiguration>        <servers>          <add NAME="DefaultServer" REPOSITORY_DESTINATION="DefaultDestination" GWHOST="vm-srv-crm.company.com" GWSERV="sapgw00" PROGRAM_ID="zcube_rfc" REG_COUNT="1" />        </servers>      </ServerConfiguration>    </ServerSettings>  </SAP.Middleware.Connector>

I always get an SAP.Middleware.Connector.RfcCommunicationException with following exception details:

 

EmptyErrorMessage.PNG

 

Because of empty error message I don't know what to do. It seems that nco3 can't get the application server from the message server, but why?


Anyone can help me???

Thanks a lot.


BAPI_XBP_JOB_START_IMMEDIATELY

$
0
0

So, this might be a stupid and basic question but I am puzzled by the fact that I can only run a Job once after I have created it. Is that how it works?

 

In my case, I have my own scheduler and I want to run Jobs from there. So I had the idea that Jobs where created once and then I can re-run them. But this is not the case?

 

If it is not the case, then I assume it is normal that you create job with all steps, run it right away, delete the job. I mean, if you do not delete it there will be leftovers of Jobs.

 

Have understood this correct - sorry for the basic question!

How to use RFC_REMOTE_EXEC in NCo RFC Server?

$
0
0

We are using the RFC SDK for RFC Server and in that we are calling the SDK function RFC_REMOTE_EXEC to pass a table parameter to the RFC server...

Now I want to move on to NCo 3.0 platform and I want to use the same server function RFC_REMOTE_EXEC as I dont want to discriminate the Servers running NCO and SAP SDK . Can anyone help me out in implementing this....

 

 

 

I am using the Below ABAP code at SAP:

 

 

CALL FUNCTION 'RFC_REMOTE_EXEC' DESTINATION DEST

           EXPORTING

                     COMMAND = 'LISTN'

          TABLES

                     PIPEDATA = TABLE                //Passing The Table

          EXCEPTIONS

            SYSTEM_FAILURE        = 2.

       ENDIF.

 

 

 

NCo Server Code:

 

 

[RfcServerFunction(Name = "RFC_REMOTE_EXEC")]

    public static void RfcServerFunction(RfcServerContext ctx, IRfcFunction function)

    {

        string reqtext = null;

        RfcDestination rfcDestination = RfcDestinationManager.GetDestination("Qua");

        RfcRepository rfcRepository = rfcDestination.Repository;

        IRfcStructure rfcStructure = rfcRepository.GetStructureMetadata("S_TABLE").CreateStructure();

          

        Console.WriteLine("Received function call {0} from system {1}.",

        function.Metadata.Name,

        ctx.SystemAttributes.SystemID);

        IRfcTable rfcServer = function.GetTable("TABLE");

 

        if (rfcServer.Count == 1)

        {

            reqtext = rfcServer.GetValue("SHNUMBER").ToString();

            Console.WriteLine("REQUTEXT = {0}\n", reqtext.ToString());

        }

   }

 

 

 

 

When I am calling this function at DEST SAP is giving SYSTEM_FAILURE excepection.

 

Error log generated at .Net Server is as below.

 

 

>> Error entry 2016-03-13 18:00:45.766 [Thread 8]

[NAME=QUA ASHOST=QUA500 CLIENT=500 USER=MILAN PASSWD=******** SYSNR=02 SYSID=qua LANG=EN POOL_SIZE=5 MAX_POOL_SIZE=10]

SAP.Middleware.Connector.RfcInvalidStateException: metadata for function RFC_REMOTE_EXEC not available: FU_NOT_FOUND: Function module RFC_REMOTE_EXEC does not exist

   at SAP.Middleware.Connector.RfcRepository.LookupFunctionMetadataNew(String name)

   at SAP.Middleware.Connector.RfcRepository.LookupFunctionMetadata(String name)

   at SAP.Middleware.Connector.RfcRepository.GetFunctionMetadata(String name)

>> Error entry 2016-03-13 18:00:45.772 [Thread 8]

SAP.Middleware.Connector.RfcInvalidStateException: metadata for function RFC_REMOTE_EXEC not available: FU_NOT_FOUND: Function module RFC_REMOTE_EXEC does not exist

   at SAP.Middleware.Connector.RfcRepository.LookupFunctionMetadataNew(String name)

   at SAP.Middleware.Connector.RfcRepository.LookupFunctionMetadata(String name)

   at SAP.Middleware.Connector.RfcRepository.GetFunctionMetadata(String name)

   at SAP.Middleware.Connector.ServerFunctionInfo.get_FunctionMetadata()

   at SAP.Middleware.Connector.RfcServer.InvokeServerFunction(RfcConnection conn, ServerFunctionInfo serverFuncInfo, RfcServerFunction functionImp)

   at SAP.Middleware.Connector.RfcServer.Dispatch(RfcConnection conn)

>> Error entry 2016-03-13 18:00:45.797 [Thread 8]

SAP.Middleware.Connector.RfcInvalidStateException: metadata for function RFC_REMOTE_EXEC not available: FU_NOT_FOUND: Function module RFC_REMOTE_EXEC does not exist

   at SAP.Middleware.Connector.RfcRepository.LookupFunctionMetadataNew(String name)

   at SAP.Middleware.Connector.RfcRepository.LookupFunctionMetadata(String name)

   at SAP.Middleware.Connector.RfcRepository.GetFunctionMetadata(String name)

   at SAP.Middleware.Connector.ServerFunctionInfo.get_FunctionMetadata()

   at SAP.Middleware.Connector.RfcServer.InvokeServerFunction(RfcConnection conn, ServerFunctionInfo serverFuncInfo, RfcServerFunction functionImp)

   at SAP.Middleware.Connector.RfcServer.Dispatch(RfcConnection conn)

   at SAP.Middleware.Connector.RfcConnection.Dispatch()

   at SAP.Middleware.Connector.RfcConnection.RfcServerWorkerThreadProc(Object rfcConnObj)

How to access SAP PM data in .NET application using SAP.NET connector

$
0
0

Hello,

I  would like to connect to SAP and display some Plant Maintenance data using SAP.NET connector. I am .NET developer working with SAP Plant Maintenance module for more than 5 years. I have access to SAP production and pre-production systems as  normal user (planner, super user and user administrator), not as developer. Appreciate your help to do connectivity between SAP and .NET.

Regards,

Moideen

Need to install the .Net Connector DLLs on the server ?

$
0
0

Hello,

 

I developped a .net c# service that connects to SAP via the SAP .Net Connector 3.0.

 

I added the dll in "reference" in my service project with copy local = true.

 

I installed my service on our .net application server and started the service.

 

When calling method of the service, I receive the following error (note that the dll's are in the application folder)

 

System.Exception: Configuration Load Error :

System.TypeInitializationException: The type initializer for 'SAP.Middleware.Connector.RfcConfigParameters' threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'sapnco_utils, Version=3.0.0.42, Culture=neutral, PublicKeyToken=50436dca5c7f7d23' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)

File name: 'sapnco_utils, Version=3.0.0.42, Culture=neutral, PublicKeyToken=50436dca5c7f7d23' ---> System.Runtime.InteropServices.COMException (0x800736B1): This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)

 

Searching, I just tried by installing the .Net Connector 3 on the server.

After this, my service works fine.

 

So I thought to remove the dll in the folder of my application.

By doing this, I receive the same error as above (note that the .net connector is installed on the server)

 

So to resume, it seems that my service only run correctly when the .net connector is installed on the server AND the .Net DLL's (sapnco.dll and sapnco_utils.dll) are present in the folder of the service.

 

Can someone explain why it is so or what am I doing wrong ?

 

We never had this problem with old version of the SAP .Net Connector as having the dll in the application folder was sufficient.

 

Thanks in advance all for time and help

 

Denis Willems

.net Sapconnector 3.0 for 64 bit windows

$
0
0

I am using .net connector 3.0 in 64-bit windows environment. I have created a new VS2008(3.5 framework) project and added the sapnco.dll and sapnco_utils.dll into my project reference and build the project, the build is successful and when I execute the application I get tbe error

 

Could not load file or assembly 'sapnco, Version=3.0.0.42, Culture=neutral, PublicKeyToken=50436dca5c7f7d23' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

 

Exception Details: System.BadImageFormatException: Could not load file or assembly 'sapnco, Version=3.0.0.42, Culture=neutral, PublicKeyToken=50436dca5c7f7d23' or one of its dependencies. An attempt was made to load a program with an incorrect format.

 

I have not written even a single like of code, just trying to execute but it is throwing the error. Need help asap.

SAP .NET C# Integration

$
0
0

Hi,

 

We have SAP NetWeaver 7.3 with ECC6, data replicated in BW for reporting purposes, and are trying to read the data (costs data for example) from BW using .NET. How can this be achieved programatically (using automation) ?

 

Thanks!

Retrieving General Ledger Items (FAGLL03) using NCo 3.0

$
0
0

Hi, I am looking to retrieve general ledger items for T-Code : FAGLL03 (G/L Line Items) with parameters as below ?

G/L Account : 10000000 to 39999999

Posting Date : 01.01.2016 to 31.01.2016

 

Btw, I have got my RFC Connection established and am able to download sample company data. I am wondering how to call the above T-Code (via BAPI or any means) and download information based on parameters USING .NET C# and NCo 3.0. Thanks

 

 


Viewing all 68 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>