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

Architecture diagram for the SAP .NET connector

$
0
0

I was checking the architecture diagram regd. the SAP .NET connector on the SAP help website, but looks like it’s not updated and it’s still referring to SAP RFC library (which is end of support now). Here is the link.

 

Can you/someone from SAP team give me a latest architecture diagram of the SAP .NET connector?

Thanks.


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!

SAP.NET connector 3.0

$
0
0

Dear All,

 

Recently we had upgraded our web system from Visual Studio 2003 to Visual Studio 2013.  At the same time, we also applied the SAP.NET connector 3.0 instead of RFC call from the SAP function control to connect to the SAP system.

 

The method that we used to call SAP basically is register RFC -> Call BAPI -> Unregister RFC

 

<QUOTE>

...

RfcDestinationManager.RegisterDestinationConfigguration(objDestConfig)

...

bapiSOGetDetail.Invoke(destination1)

...

RfcDestinationManager.UnregisterDestinationConfiguration(objDestConfig)

...

<UNQUOTE>

 

Attached please find the VB source code for your reference.

 

For single user calling, there is no problem.  However, when there are more than one user calling the BAPI at the same time.  The register will be failed.

 

Error : Destination configuration already inialized.

 

Since we need multiple users to call and update SAP system from web system.  Please let me know there is any solution for us.

 

Look forward to your information.  Thank you very much.

 

Best Regards

David

Can't download SAP Connector for .NET

$
0
0

Hello,

I've registered for SAP Service Marketplace, got an account created and logged on, but when I click on the download link saying

 

SAP Connector for Microsoft .NET 3.0.17.0 for Windows 64bit (x64) as zip file (7.059 KB), March 01, 2016

 

I get asked for my credentials again, after which I see a blank page in Firefox and Chrome, and a 403 HTTP status code in Edge.

 

What should I do to get the package?

SAP RFC - Get steps for a Job

$
0
0

Hi,

 

I wonder if you have some code sample to get Steps for an existing Job?

 

Preferably I would like the code to include any details about which type (ExternalCommand, ExternalProgram etc), name of command, variant, parameter and target server and any step order.

 

Is this possible?

 

Thank you!

SAP RFC - add/update steps to existing Job

$
0
0

Hi,

 

if I have an existing Job in SAP is it possible, throught the .NET Connector, to add or update steps? If yes, do you have any code sample for that?

 

Thank you!

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 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

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

 

 

Culture-specific type conversion in .NET Connector

$
0
0

Hi everybody,

 

I think there is a bug in .NET Connector and here is how to reproduce it:

 

- Create function module with optional input parameter of type FLTP and default value '12345.67890' with comma as decimal separator (note that the value is surrounded with single quotation marks, otherwise the function module would not be activated.

- Make the function module accessible via RFC, enable support of basXML.

- Set decimal separator symbol as comma in regional options of your Windows system.

- Call the functional module using .NET Connector.

 

Expected behavior: the parameter would get its default value of 12345.6789

Actual behavior: the parameter gets value of 0

 

The reason is: the default value is explicitly applied to the parameter in the code of .NET Connector and current thread culture is used for conversion from the default string value to the default double value.

 

If I set the decimal separator symbol as point in settings of my Windows system, the parameter gets its default value as expected.

 

Here is the call stack:

 

mscorlib.dll!System.Number.ParseDouble(string value, System.Globalization.NumberStyles options, System.Globalization.NumberFormatInfo numfmt)    Unknown

sapnco.dll!SAP.Middleware.Connector.RfcScalarMetadataFloat.ConvertString(string value, ref object currentValue)    Unknown

sapnco.dll!SAP.Middleware.Connector.RfcParameter.SetDefaultValue()    Unknown

sapnco.dll!SAP.Middleware.Connector.RfcFunction.RfcFunction(SAP.Middleware.Connector.RfcFunctionMetadata metadata)    Unknown

sapnco.dll!SAP.Middleware.Connector.RfcFunctionMetadata.CreateFunction()    Unknown

sapnco.dll!SAP.Middleware.Connector.RfcRepository.CreateFunction(string name)    Unknown

 

Exception in ParseDouble():

 

System.FormatException occurred

  HResult=-2146233033

  Message=Input string was not in a correct format.

  Source=mscorlib

  StackTrace:

       at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)

  InnerException:

 

And then:

 

sapnco.dll!SAP.Middleware.Connector.RfcScalarMetadataFloat.ConvertString(string value, ref object currentValue)    Unknown

sapnco.dll!SAP.Middleware.Connector.RfcParameter.SetDefaultValue()    Unknown

sapnco.dll!SAP.Middleware.Connector.RfcFunction.RfcFunction(SAP.Middleware.Connector.RfcFunctionMetadata metadata)    Unknown

sapnco.dll!SAP.Middleware.Connector.RfcFunctionMetadata.CreateFunction()    Unknown

sapnco.dll!SAP.Middleware.Connector.RfcRepository.CreateFunction(string name)    Unknown

 

Exception in ConvertString():

 

SAP.Middleware.Connector.RfcTypeConversionException occurred

  HResult=-2146232832

  Message=Cannot convert "12345.67890" into FLOAT

  Source=sapnco

  StackTrace:

       at SAP.Middleware.Connector.RfcScalarMetadataFloat.ConvertString(String value, Object& currentValue)

  InnerException:

       HResult=-2146233033

       Message=Input string was not in a correct format.

       Source=mscorlib

       StackTrace:

            at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)

            at SAP.Middleware.Connector.RfcScalarMetadataFloat.ConvertString(String value, Object& currentValue)

       InnerException:

 

Disassembled code of SAP.Middleware.Connector.RfcScalarMetadataFloat.ConvertString():

 

internal override void ConvertString(string value, ref object currentValue)

{

  try

  {

    double num = double.Parse(value);

    if (num == 0.0)

      currentValue = (object) null;

    else

      currentValue = (object) num;

  }

  catch (Exception ex)

  {

    throw new RfcTypeConversionException("Cannot convert " + RfcUtilities.StringToLiteral(value) + " into FLOAT", ex);

  }

}

 

More info:

 

**** Log file opened by process 14276 at 2016-06-01 14:24:50 (UTC+02:00 W. Europe Summer Time)

 

SAP .NET Connector 3.0 with file version 3.0.16.0 running on 32-bit .NET Framework 4.0.30319.42000

Program: C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW\te.processhost.managed.exe

Working directory: D:\xxx\Out

Operating system:   64-bit

Processor: 8x AMD64 (or x64)

SAP release: 721, Kernel release: 721, Kernel patch level: 527

Hostname: xxx, IP address: xxx.xxx.xxx.xxx, IP_v6 address:

 

Default trace level: None

 

>> Error entry 2016-06-01 14:24:50.568 [Thread 6]

SAP.Middleware.Connector.RfcTypeConversionException: Cannot convert "12345.67890" into FLOAT ---> System.FormatException: Input string was not in a correct format.

   at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)

   at SAP.Middleware.Connector.RfcScalarMetadataFloat.ConvertString(String value, Object& currentValue)

   --- End of inner exception stack trace ---

   at SAP.Middleware.Connector.RfcScalarMetadataFloat.ConvertString(String value, Object& currentValue)

   at SAP.Middleware.Connector.RfcParameter.SetDefaultValue()

 

 

Regards,

 

Michael

SAP Connector For .NET-- SNC Library path

$
0
0

Hi Everyone,

 

I am new to devloping applications to connect with SAP.

 

We are trying to connect a .net application to a SAP Server. We were able to connect using RFC Connections without using SNC.

 

When we tried to connect to the server using SNC(SNCMyname, SNCPartnerName, SNCQop  mentioned), we get an error saying

Unable to load GSS-API DLL named "sncgss32.dll"

 

The SAP Server is using Common Crypto Library. We downloaded the CommonCryptoLibrary SAR File and extracted it.

We mentioned SAPLibrarypath pointing to sapcrypto.dll from the downloaded library.

 

But we still get the error and now the error says sapcrypto.dll is not a valid win32 application.

 

I have gone throught some of the posts in the internet but everyone are talking about pointing the sncgss32.dll in the c:\windows\system32 folder.

 

But we want to connect to SAP Server without having to install SAP GUI.

 

Can anyone here let me know the steps to connect to sap server using SNC?

 

Many Thanks,

 

Yvonne

How to do web service in sap to .net

$
0
0

Hi Expert's

                   

                  I need to do web service in sap abap system to .net system.Anyone please explain how to create webservice and send to  dotnet system . 

SNC Library path for .NET Application through RFC Connections

$
0
0

Hi Everyone,

 

I am new to devloping applications to connect with SAP.

 

We are trying to connect a .net application to a SAP Server. We were able to connect using RFC Connections without using SNC.

 

When we tried to connect to the server using SNC(SNCMyname, SNCPartnerName, SNCQop  mentioned), we get an error saying

Unable to load GSS-API DLL named "sncgss32.dll"

 

The SAP Server is using Common Crypto Library. We downloaded the CommonCryptoLibrary SAR File and extracted it.

We mentioned SAPLibrarypath pointing to sapcrypto.dll from the downloaded library.

 

But we still get the error and now the error says sapcrypto.dll is not a valid win32 application.

 

I have gone throught some of the posts in the internet but everyone are talking about pointing the sncgss32.dll in the c:\windows\system32 folder.

 

But we want to connect to SAP Server without having to install SAP GUI.

 

Can anyone here let me know the steps to connect to sap server using SNC?

 

Many Thanks,

 

Yvonne


Search lokal SAP Test System for ERPConnect

$
0
0

Hi, are there a cost free local SAP test system for Download, with which i can test ERPConnect  for .NET?

Only a simple BAPI, may be RFC-API calls and Webservice-Calls.

 

thanks Frank Dzaebel

SAP RFC - Get steps for a Job

$
0
0

Hi,

 

I wonder if you have some code sample to get Steps for an existing Job?

 

Preferably I would like the code to include any details about which type (ExternalCommand, ExternalProgram etc), name of command, variant, parameter and target server and any step order.

 

Is this possible?

 

Thank you!

SAP Table download to excel -> Columns restricted - > Call RFC twice

$
0
0

Hi Experts.

 

I do have a problem to download all columns of an SAP table to excel using RFC function module.

 

I found already the following thread: http://scn.sap.com/thread/3566737.

 

I would like to use the possibility to call RFC twice or more times. However I do not know to implement in my VBA script (closed file).

 

May somebody help me?

 

Cheers,

Christian

How to get Order costs with C#

$
0
0

Hello,

I am having huge problems with acquiring order cost data to my program in C#.

 

I run the "BAPI_PRODORD_COSTING" remote function module. I get an answer that Costing was executed. I also get all suborders from selected order, their texts and numbers.

 

IRfcFunction orderCosting = rfcRepo.CreateFunction("BAPI_PRODORD_COSTING");

IRfcTable orders = orderCosting.GetTable("ORDERS");

orders.Append();

codePO = codePO.PadLeft(12, '0'); //trailing zeros

orders.SetValue("ORDER_NUMBER", codePO);

orderCosting.Invoke(rfcDestination);

 

But regardless how much I try I can't get the actual costs.
I tried to get App log with "/SDF/GET_APP_LOG" and a log handle passed from previous function.

 

All I get is only some unclear data messages which does not correspond to actual cost data I'd expect.

 

Please help.

 

Thank you

Issues with SAP Nco 3.0 - RfcInvalidStateException

$
0
0

Hello,

at a customer i started to get RfcInvalidStateException and i am unable to connect to the customers SAP System. The message in full detail is:

 

Exception ocurred: SAP.Middleware.Connector.RfcInvalidStateException: Cannot get a client connection: invalid destination IRIS (REPLACED)

   at SAP.Middleware.Connector.RfcDestination.GetClient(Boolean forRepository)

   at SAP.Middleware.Connector.RfcDestination.SetAttributeValues(RfcSystemAttributes attribs)

   at SAP.Middleware.Connector.RfcDestination.get_SystemAttributes()

   at SAP.Middleware.Connector.RfcRepository.AddDestination(RfcDestination dest)

   at SAP.Middleware.Connector.RfcRepository.GetRepositoryForDestination(RfcDestination destination)

   at SAP.Middleware.Connector.RfcDestination.get_Repository()

 

I am pretty unsure about the cause of the issue as all my connection parameters seem to be correct.

 

We build the connection on every execution by using this code:

 

public void Init()

        {

 

 

            _rfc = new RfcConfigParameters();

            _rfc.Add(RfcConfigParameters.AppServerHost, _connection.AppServerHost);

            _rfc.Add(RfcConfigParameters.SystemNumber, _connection.SystemNumber);

            _rfc.Add(RfcConfigParameters.User, _connection.User);

            _rfc.Add(RfcConfigParameters.Password, _connection.Password);

            _rfc.Add(RfcConfigParameters.Client, _connection.Client);

            _rfc.Add(RfcConfigParameters.SystemID, _connection.SystemID);

            _rfc.Add(RfcConfigParameters.Name, _connection.Name);

            _rfcDest = RfcDestinationManager.GetDestination(_rfc);

 

            RfcSessionManager.BeginContext(_rfcDest);

            _rfcRepo = _rfcDest.Repository;

            _initCalled = true;

        }

 

Anything we obviously do wrong when building the connection?

Is anything cached here internally in Nco 3.0?

 

Thanks for any ideas/hints!

Wolfgang

Viewing all 45 articles
Browse latest View live


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