Quantcast
Channel: SCN : Unanswered Discussions - Interoperability .NET
Viewing all 45 articles
Browse latest View live

Error: No symbolic destination specified when connecting to SAP using NCO3 connector

$
0
0

Hi All,

We are trying to connect to SAP using NCO3 connector using .net application. We have followed the blogs available and looked how to solve the errors but still no success. Can some one help me here? The same connection parameters are working fine when  I try from the SAP Logon pad.

 

All the blogs point to the connection parameters but the same is working fine when I use from the SAP Logon pad so not clear on why its not working from the application.

 

We are passing the below parameters.

 

            parms.Add(RfcConfigParameters.AppServerHost,

            parms.Add(RfcConfigParameters.SystemNumber,

            parms.Add(RfcConfigParameters.SystemID,

            parms.Add(RfcConfigParameters.User,

            parms.Add(RfcConfigParameters.Password,

            parms.Add(RfcConfigParameters.Client,

            parms.Add(RfcConfigParameters.Language,

 

 

Below is the Error description

 

 

LOCATION    CPIC (TCP/IP) on local host -PF01EFTK with Unicode

ERROR       no symbolic destination specified

TIME        Thu Oct 29 11:11:12 2015

RELEASE     721

COMPONENT   CPIC (TCP/IP) with Unicode

VERSION     3

RC          775

MODULE      r3cpic.c

LINE        4363

COUNTER     1

 

 

Thanks a lot in advance.

 

Br,

Vijay V


Non ABAP RFC Client not supported.

$
0
0

I've got the following error within my tRFC Server Integration.

 

"RfcServerError occured in RFC server: xxxx RFC Caller System ID: yyyy function Name: ARFC_DEST_SHIPError type: RfcUnsupportedPartnerExceptionError message: Non ABAP RFC Client not supported."

 

According to the Forum the Change from "NON-Unicode" to "Unicode" or vice versa in SAP in Settings of relevant Program-ID takes no affect.

Error: Non ABAP RFC Client not supported.

$
0
0

TRFC: Checking transaction ID XYZ--> New transaction or one that had failed previously

 

TRFC: Rollback transaction ID XYZ

 

>>>>> RfcServerError occurred in RFC server XYZserver:

RFC Caller System ID: XYZid

RFC function Name: ARFC_DEST_SHIP

Error type: RfcUnsupportedPartnerException

Error message: Non-ABAP RFC client not supported

 

>>>>> RfcServerApplicationError occurred in RFC server XYZserver:

RFC Caller System ID: XYZid

RFC function Name: ARFC_DEST_SHIP

Error type: RfcServerApplicationException

Error message: Uncaught exception SAP.Middleware.Connector.RfcUnsupportedPartner

Exception thrown in SAP.Middleware.Connector.RfcServer.ARfcDestShipImp when exec

uting RFC server function ARFC_DEST_SHIP

Inner exception type: RfcUnsupportedPartnerException

Inner exception message: Non-ABAP RFC client not supported

 

TRFC: Confirm transaction ID XYZ

 

>>> This is the Message from the StepByStep Sample Code provided by SAP.

WSAENOBUFS: No buffer space available

$
0
0

Hi to all

 

I need youradviseplease

 

We have EWM system connected to external system withsqlserver and .net connector

Nowevrytime we have themicrosoftevent 4227

 

 

TCP/IP failed to establish an outgoing connection because the selected local endpoint was recently used to connect to the same remote endpoint. This error typically occurs when outgoing connections are opened and closed at a high rate, causing all available local ports to be used and forcing TCP/IP to reuse a local port for an outgoing connection. To minimize the risk of data corruption, the TCP/IP standard requires a minimum time period to elapse between successive connections from a given local endpoint to a given remote endpoint.

 

 

andin the logs of the .net connector I have the error

 

 

2015-11-08 16:29:48.879 [Thread 4] RfcDestination.GetClient threw RfcCommunicationException:

LOCATION    CPIC (TCP/IP) on local host with Unicode

ERROR       internal error

TIME        Sun Nov 08 16:29:48 2015

RELEASE     721

COMPONENT   NI (network interface)

VERSION     40

RC          -1

MODULE      nixxi.cpp

LINE        2896

DETAIL      NiIConnectSocket

SYSTEM CALLconnect

ERRNO       10055

ERRNO TEXT  WSAENOBUFS: No buffer space available

 

 

I openedincidentto sap andmicrosoftand all therecommendationdidn't help me. (changeparameter of the registry MaxUserPort,  TcpTimedWaitDelay)

 

 

wetry to upgrade the .net connector to version 3.0.16 but it didn't help

 

 

I need youradvise.

Maybeitsa problem in the configuration of the .net connector

PoolSize>50</PoolSize>

   <PeakConnectionsLimit>100</PeakConnectionsLimit>

   <ConnectionIdleTimeout>150</ConnectionIdleTimeout>

   <IdleCheckTime>60</IdleCheckTime>

 

maybeit'sproblemin the code weusingin the .net connector

 

 

doyou have any idea?

 

 

 

 

Thanks

naor

ERROR: handshake with saprouter

$
0
0

Hi,

 

I run into a strange problem with .net Connector version:

SAP Connector for Microsoft .NET 3.0.16.0 for Windows 64bit (x64)

 

The connector should establish a connection through an SAP Router with password and returned this error message:

 

2015-11-23 10:38:57.526 RfcConnectionPool.GetPool threw RfcCommunicationException:

LOCATION    SAP-Gateway on host develop.sap.topimagesystems.com / sapgw00

ERROR       handshake with saprouter

            (/H/w.x.y.z/S/3299/W/x§xxxxx/H/192.168.s.t) failed

            (NIECONN_BROKEN)

TIME        Mon Nov 23 10:35:53 2015

RELEASE     742

COMPONENT   NI (network interface)

VERSION     40

RC          -6

MODULE      /bas/742_REL/src/base/ni/nixxi.cpp

LINE        5129

DETAIL      NiIRead: P=w.x.y.z:3299; L=192.168.s.t:41599

SYSTEM CALL recv

COUNTER     11

--- see log for details

 

The error can be reproduced with the example program from Tutorial:

 

I entered the destination ("2 Add Or Change Destination") as follow and the error comes up with "4 Ping Destination".

 

Name: test

User: myuser

Password: abc123

Client: 800

AS/MS Host: /H/w.x.y.z/S/3299/W/x§xxxxx/H/192.168.s.t

System Nr/ID: 00

Trace: 3

 

After playing a little bit around, I fixed the problem by replacing the '§' in SAP Router password with '$'.

The connection string /H/w.x.y.z/S/3299/W/x$xxxxx/H/192.168.s.t works fine.

 

The ugly thing is, SAP Logon accepted the "x§xxxxx" in password and connected without problem and Visual Basic components (wdtfuncs.ocx, SAP.Functions) work without problem with '§' in password. JCO not yet tested.

Mapping printers from external application

$
0
0

Dear Sir or Madam,

 

we have a solution for managing printers in our client's environment.

 

We now want to expand our abilities to pushing these printer connections from our application into their SAP systems.

 

Is there a way to accomplish this task using the sap .net connector?

 

If not, what would be the appropriate approach to accomplishing this task?

 

Thanks in advance for your assistance.

PARAMETER I_MGEIG of FUNCTION ZSL_QMFM_003 (SETTER): cannot convert Decimal into BCD[7:3]

$
0
0

I am trying to call the SAP RFC ZSL_QMFM_003 remotely using SAP .NET Connector 3.0.16

When set the values get exception

PARAMETER I_MGEIG of FUNCTION ZSL_QMFM_003 (SETTER): cannot convert Decimal into BCD[7:3]
Cannot convert 123456789112.333 into a BCD: maximal integer length (10) is exceeded
//ZSL_QMFM_003
decimal qty = 123456789112.333M;
func.SetValue("I_MGFRD", qty);  //I_MGFRD   type:   MGFRD   Data Type:  QUAN  Length:  13   Decimal Places:  3

the integer length of value "I_MGEIG" is 13,but use SetValue() input more than 10 ,get the exception.How  to solve this?

How to set new table to exporting parameter?

$
0
0

I'm using the RFC RSDRI_INFOPROV_READ_RFC to read some data from DATACUBES.

Question is, I need to pass a custom table to the E_T_RFCDATA parameter, but I'm getting some error messages.

 

My code is:

 

IRfcFunction funcaoRT = repo.CreateFunction("RSDRI_INFOPROV_READ_RFC");

 

funcaoRT.SetValue("I_INFOPROV", "/CPMB/Z0IMVWV");

 

RfcStructureMetadata strucmetadata =newRfcStructureMetadata("RSDRI_S_RFCDATA");

strucmetadata.AddField(newRfcFieldMetadata("P_CONTA", RfcDataType.CHAR, 32, 32, 32, 32));

strucmetadata.AddField(newRfcFieldMetadata("CENTROCUSTO", RfcDataType.CHAR, 32, 32, 32, 32));

strucmetadata.AddField(newRfcFieldMetadata("VALOR", RfcDataType.CHAR, 32, 32, 32, 32));

 

RfcTableMetadata metadata =newRfcTableMetadata("RSDRI_T_RFCDATA", strucmetadata);

var export = metadata.CreateTable(500);

 

funcaoRT.SetValue("E_T_RFCDATA", export); ERROR HERE

 

var t = funcaoRT.GetTable("I_T_SFC");

 

t.Append();

t.SetValue("CHANM", "/CPMB/Z0DRB3Y");

t.SetValue("CHAALIAS", "P_CONTA");

 

var t3 = funcaoRT.GetTable("I_T_SFC");

 

t3.Append();

t3.SetValue("CHANM", "/CPMB/Z0DRB3Y__/CPMB/Z0PDBCY");

t3.SetValue("CHAALIAS", "CENTROCUSTO");

 

 

var t4 = funcaoRT.GetTable("I_T_SFK");

 

t4.Append();

t4.SetValue("KYFNM", "/CPMB/SDATA");

t4.SetValue("KYFALIAS", "VALOR");

 

 

funcaoRT.Invoke(meurfc);

 

The exception is:

 

{"Cannot convert TABLE RSDRI_T_RFCDATA [STRUCTURE RSDRI_S_RFCDATA] (from custom repository) into TABLE RSDRI_T_RFCDATA [STRUCTURE RSDRI_S_RFCDATA] (from BWD repository)"}


RfcCustomDestination stays logged in

$
0
0

Hi there.  We have a number of Web Applications that perform basic read-only RFC calls to SAP through the .NET Connector using a basic system user login created specifically for our web apps.  Occassionally, however, we create CustomDestinations using SSO to perform various write RFC functions using the actual user's SAP login.

 

This works great.  However, I am noticing in T-Code AL08 which shows all users logged on that the Custom Destinations persist.  Should we dispose of these somehow in our .NET code?  Is there a safe way of disposing of the Custom Destination after it is no longer needed?

 

For example, should I use the Shutdown() method after the Custom Destination is finished invoking the SSO RFC? Or RemoveDestination() possibly?

 

Thanks!

NCO 3 Connection Pool Issue

$
0
0

Hello everybody!

 

I'm calling a RFC using the nco 3.0, but I'm having a problem with the amount of connections when testing concurrent calls.

 

I am using the following parameters regarding the pool size and connection limit in the destination configuration:

 

parms.Add(RfcConfigParameters.PoolSize, "5");
parms.Add(RfcConfigParameters.PeakConnectionsLimit, "20");                        

My problem is that if, for instance, I have 10 threads calling a RFC at the same time from the same server and with the same user, for some reason I would like to know, only 2 of those requests are executed at a time. Also if I check the SM04 transaction, I see 3 rows corresponding to the user and server I'm using to call the RFC with nco.

 

So, to me it looks like those parameters are not having any effect at all, and even the default value of 10 for those parameters is not working.

 

What am I missing? Need some light in my way! :-)

 

Thanks in advance.

Listen to SAP RFC calls in a C# web Service. looking for C# code

$
0
0

Hi ,

 

I am pretty new to SAP, and I have got a new requirement where I have to Implement a C# windows service that would be called from SAP RFC.

the work on SAP side is almost done by SAP team, I am looking forward for a C# code to a windows service that would receive some parameters from SAP. Any hekp would be appreciated.

PS: I am trying to connect SAP via SAP.NET 2.0

 

Thanks in advance!

BAPI_PRODORD_GET_DETAILS - How to obtain values from a RfcStructureMetadata?

$
0
0

Hi to everybody,

I'm using:

- Visual Studio 2013

- nco30 x64

The aim is obtain the values from some fields from table "header" and table "components" relevat to the BAPI_PRODORD_GET_DETAIL

Surfing in the web, I found a post from Ronald Lim and I followed the steps described by Yearden Jacobson

 

I'm trying to use BAPI_PRODORD_DETAIL this is my code:

 

Private Sub GetProdOrdDetails(ByVal odp As String)

        Try

            Dim funcAPI As IRfcFunction = _ecc.Repository.CreateFunction("BAPI_PRODORD_GET_DETAIL")

            funcAPI.SetValue("Number", odp)

            Dim myTable As IRfcTable = funcAPI.GetTable("Header")

            Dim myElementMetadata As RfcStructureMetadata

            myElementMetadata = myTable.Metadata.LineType

            funcAPI.Invoke(_ecc)

            For i As Integer = 1 To myElementMetadata.FieldCount - 1

                MsgBox(myElementMetadata.Item(i).Name)

                MsgBox(myElementMetadata.Item(i).Documentation)

            Next

        Catch ex As Exception

            MsgBox("Error:" & ex.Message)

        End Try

    End Sub

No matter to get the fields name, description and so on, but I need getting the values for each field in the tables, but I don't know how to do.

Is there anybody who knows how?

 

I thank you in advance

Kind Regards

Celeghin Denis

SAP .NET connector with BizTalk Adapter for .NET application

$
0
0

Hi,

 

I am using SAP BizTalk adapter with NCO to connect with SAP. I have followed all the instructions on the BizTalk adapter (https://support.microsoft.com/en-us/kb/3100811). I have also installed the SAP .NET connector.

When I try to connect I am getting the following error:

 

Connecting to the LOB system has failed. Destination NCoConnection does not exist.

 

 

Note: I can successfully connect to SAP using BizTalk adapter for SAP with the SAP librRFC assembly


Any idea on why I am getting the above error. Thanks in advance.


Regards,

Nikhil

SAP .net connector DLL not referenced in VS 2003

$
0
0

help required urgently!!


hi All,

I have installed SAP.net connector 2.0 in my system and i am trying to reference the SAP dlls in my VS 2003, but i am unable to do so.

can some one please help me what am i missing here?

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)


Sap log on info while adding new application server using NCo 2.0

$
0
0

Hi,

 

can someone please throw some light on what all necessary SAP log on info do we require while adding a new application server using the NC0 2.0

 

In the below steps I am currently stuck at "d."

 

Add an SAP proxy to the application as follows:

a. `From the VS.NET menu, choose Project Add New Item

b. Select the SAP Connector Proxy template and choose Open.

c. In the VS .NET Server explorer, right-click on SAP Servers and select Add Server.

d. Complete the SAP logon information and choose ENTER.

e. The folders BOR and Functions appear. If not, recheck your logon information.

 

when i enter the username, password, system number HTTP Host details then the folders BOR, Functions appear in server explorer but none of the RFC in the SAP Server appear in the list. Am i missing any necessary Log on info here.

any help would be much appreciated!

thanks!

IDOC_INBOUND_ASYNCHRONOUS - How to get the response status code - .Net

$
0
0

Hi,

I'm pushing IDOCs through the Sap Connector from .Net.

For doing this I'm using the IDOC_INBOUND_ASYNCHRONOUS function.

 

Is there a way to get the response status code of the IDOC push?

I'm expecting something like this:

 

Inbound status of an Idoc

 

50     IDoc added

51     Application document not posted

52     Application document not fully posted

53     Application document posted

54     Error during formal application check

55     Formal application check OK

56     IDoc with errors added

57     Test IDoc: Error during application check

58     IDoc copy from R/2 connection

59     Not used

60     Error during syntax check of IDoc (inbound)

61     Processing despite syntax error (inbound)

62     IDoc passed to application

63     Error passing IDoc to application

64     IDoc ready to be transferred to application

65     Error in ALE service

66     IDoc is waiting for predecessor IDoc (serialization)

67     Not used

68     Error - no further processing

69     IDoc was edited

70     Original of an IDoc which was edited

71     IDoc reloaded from archive

72     Not used, only R/2

73     IDoc archived

74     IDoc was created by test transaction

75     IDoc is in inbound queue.

 

Thanks!

SSO setup with SAP portal/ ECC6

$
0
0

Hello we are trying to setup SSO for .NET based application which will be accessed from iview in SAP portal and will be connecting to SAP ECC6 for data using RFCs.

we have SSO setup between SAP portal (Ticket issuing system) and SAP ECC6 EHP6 (as trusted system). Now when we login to iview which has our app URL it asks for user name and password.

we are using MYSAPSSO2 cookie to login but its not working; is there any other setting or trust relationship required between IIS and SAP portal or IIS and SAP ECC6?

We haven't done anything with respect to IIS to set up any trust relationship and we think this could be the reason we are not able to login yet using SSO logon ticket. Appreciate any help.

Do we have to configure SNC on SAP ECC6 EHP6 in order to have SSO work with .NET app?

 

Mani

SPML library for .NET developer

$
0
0

Hi,

 

Is there any .NET library available for SAP Netweaver AS Java - SPML connector.

 

SAP provides mxopenspml.jar for java developers to create and send SPML requests to Netweaver AS Java systems from a standalone Java application.

Is there a similar library available for .NET developers to create and send SPML requests from standalone .NET application.

 

Thanks in Advance.

 

Regards,

Shivam

Problem with .Net web app (IIS) using SNC and delegation for SSO

$
0
0

I have a very similar problem to the one posted below from a few years ago but has been unanswered.

Re: SAP.Net Connector 3.0 with SSO failed

 

We have a .Net4.0 web app running on IIS7.5. It runs in a corporate environment (with Kerberos/Windows Auth) and needs to connect into an SAP backend using RFC via the .Net Connector. I'm trying to use SNC and delegate/impersonate the users through the web app.

 

The web app (IIS) is configured very similar to the instructions here:

http://blogs.msdn.com/b/chiranth/archive/2014/04/17/setting-up-kerberos-authentication-for-a-website-in-iis.aspx

 

I'm using a service account for my app pool have it setup with unconstrained delegation. It has a SPN to my webserver. I think my delegation is configured correctly because I have tested it connecting to other IIS servers and I'm able to pass my user's Kerberos information.

 

In my web app, I have the SNC configuration set as so:

RfcConfigParameters.SncMode = "1";

RfcConfigParameters.SncLibraryPath = @"C:\qgsskrb5.dll";

RfcConfigParameters.SncPartnerName = "p:sap@sub.contoso.com";

RfcConfigParameters.SncMyName, "p:myId@sub.contoso.com";

 

 

The SNC library we are using was taken from a SAP GUI client. When I run my web app locally, it is able to connect into SAP. However, when I deploy the app to my webserver and try to connect through it, i get the following error:


GSS-API(maj): No valid credentials provided (or available)

GSS-API(min): No Kerberos SSPI credentials available for requested name="p:myId@sub.contoso.com"

 

I'm guessing there is a delegation problem in the SNC connection but I'm having troubles determining why.

 

Any help would be much appreciated!

Viewing all 45 articles
Browse latest View live


Latest Images

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