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

.NET Configuration in SAP EP 7.3

$
0
0

We are trying to run a component in 7.3 that was deployed with the PDK 3.0 for Microsoft .NET.  The component deploys to the portal fine, but then it gives a portal runtime error when we try to execute it, saying "Could not connect to host tcp://localhost:8050".

 

Our BASIS consultant already installed the PDK on the portal server, and he confirmed that the service is running on port 8050.

 

The only thing I can think of is that on 7.0 we checked "Production Mode" in the ".NET Runtime Service Configuration".  However, we can't find any .NET configuration options on the 7.3 portal anywhere. 

 

Does anyone know if we need to make some configurations for using .NET on 7.3, and if so, where we make those changes?

 

Thanks,

Owen


NCO 3.0 doesn't work with .NET Version 4.6 RC

$
0
0

Hi folks,

 

after installing VS2015 RC for evaluation on one of our dev machines, some of our unit tests stopped working there (they continued working on other machines with exactly the same config, user, SAP-System, etc..)

 

On the machine with VS2015 RC installed, NCO threw an RfcSerializationException with message End mark RFCID.Header (0x0101) expected, but RFCID.FunctionName (0x0102) received when trying to connect (detailed stacktrace at the end of this post).

 

After some investigation it turned out to be the new .NET Framework-Version 4.6 RC which automatically was installed with VS2015 RC. After removal of both, the test worked again, so it seems there's a problem with NCO and the .NET Framework 4.6 RC

 

Will this be fixed in the next patch-release?

 

 

Thanks,

 

Tobias

 

 

 

**** Log file opened by process 396 at 2015-06-18 15:08:14 (UTC+02:00 Mitteleuropäische Sommerzeit)

 

SAP .NET Connector 3.0 with file version 3.0.15.0 running on 64-bit .NET Framework 4.0.30319.0

Program: C:\Program Files (x86)\JetBrains\ReSharper\v8.2\Bin\JetBrains.ReSharper.TaskRunner.CLR4.x64.exe

Working directory: <removed>

Operating system: Windows 7 Enterprise 64-bit Service Pack 1

Processor: 8x AMD64 (or x64)

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

Hostname: <removed>, IP address: <removed>, IP_v6 address:

 

Default trace level: None

 

>> Error entry 2015-06-18 15:08:14.624 [Thread 7 (xUnit.net STA Test Execution Thread)]

SAP.Middleware.Connector.RfcCommunicationException

   bei SAP.Middleware.Connector.CpicConnection.ThrowCpicErrorMsg(Int32 length, Int32 dataReceived)

   bei SAP.Middleware.Connector.CpicConnection.CpicReceive(Int32 timeout)

   bei SAP.Middleware.Connector.CpicConnection.Read(Byte* buffer, Int32 offset, Int32 count)

   bei SAP.Middleware.Connector.RfcConnection.ReadBytes(Byte* buffer, Int32 count)

>> Error entry 2015-06-18 15:08:14.638 [Thread 7 (xUnit.net STA Test Execution Thread)]

Failure to create pool for destination default (ORIGINAL) [USE_SAPGUI=0 SNC_LIB=<removed> CLIENT=100 LANG=DE POOL_SIZE=2 MAX_POOL_SIZE=5 IDLE_TIMEOUT=1 MAX_POOL_WAIT_TIME=100 POOL_IDLE_TIMEOUT=1 IDLE_CHECK_TIME=1 SNC_MODE=1 GROUP=<removed> MSHOST=<removed> SYSID=<removed> NAME=default]

SAP.Middleware.Connector.RfcSerializationException: End mark RFCID.Header (0x0101) expected, but RFCID.FunctionName (0x0102) received

   bei SAP.Middleware.Connector.RfcConnection.ReadRfcIDEnd(RFCID expectedRid, RfcParameter& param, RfcTable& table)

   bei SAP.Middleware.Connector.RfcConnection.ReadUpTo(RFCGET readState, RfcFunction function, RFCID toRid)

   bei SAP.Middleware.Connector.RfcConnection.ReadBytes(Byte* buffer, Int32 count)

   bei SAP.Middleware.Connector.RfcConnection.ReadRfcIDBegin(Int32& length)

   bei SAP.Middleware.Connector.RfcConnection.ReadUpTo(RFCGET readState, RfcFunction function, RFCID toRid)

   bei SAP.Middleware.Connector.RfcConnection.RfcReceive(RfcFunction function)

   bei SAP.Middleware.Connector.RfcConnection.ConnectAsClient(RfcDestination destination, Boolean forRepository)

   bei SAP.Middleware.Connector.RfcConnectionPool..ctor(RfcDestination destination, Boolean forRepositoryCalls)

Microsoft Active Directory Integration

$
0
0


Hi experts

We have two issue for our customer:

 

1-Integration of SAP User Administration into Microsoft Active Directory: Our customer wants to synchronize their SAP users and passwords with Microsoft Active Directory but they dont want to use Single Sign-on.

 

2-Creating and Synchronize Users in Active Directory from Employee Data Stored in SAP HR

 

We found two document related with this issue but their version is very old. Is there any new version of this document or we have to use different technology (for example Netweaver Identity Management)?

 

Related links are:

 

Integration of SAP Central User Administration into Microsoft Active Directory

Creating Users in Active Directory from Employee Data Stored in SAP HR.pdf

 

Best Regards....

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

Does the License model for NCo 2.0 differ to License model of NCo 3.0?

$
0
0

We use SAP .NET Connector 2.0 (NCo 2.0) for communication with SAP software.

 

We want to migrate our existing application to latest SAP .NET Connector 3.0 (NCo 3.0)?

 

Does the license model for NCo 2.0 differ to License model of NCo 3.0?

 

Does the existing license of NCo 2.0 can be used for NCo 3.0?

How to change SAP RegisterDestinationConfiguration assigned parameter values on runtime

$
0
0

<b>Requirement:</b><br>

The requirement is to make a transaction through a BAPI

using the username and password

of the user everytime, who calls a BAPI function,

so that the transactions are logged by the user, not by the

test/development username. This user activity/transaction

will differ from other user.

 

 

<b>Details:</b><br>

a) We're using .NET connector (to call BAPIs) in a webservice call.

<br>

    i)  sapnco.dll (ver: 3.0.0.42)<br>

    ii) sapnco_utils.dll (ver: 3.0.0.42)<br>

b) The username & password will be sent as arguments in a web-method.

 

 

<b>Approach:</b><br>

Our approach was to make new registration (RegisterDestinationConfiguration)

everytime we call the BAPI function.

 

 

But this approach is not recommended by senior members

(like Markus Tolksdorf & Hynek Petrak) on the SCN forum.

They say to register once.

 

 

We followed an example mentioned in the link below, but it doesn't work

(the comment with the 'AddOrEditDestination' example):

http://scn.sap.com/thread/3674375

 

 

We'll need to un-Register the previous 'registration'

(using the exact username and password as was used during its registration),

to then register a new one. To do this we will need to keep a record

(in a separate table) of the users

who have called the BAPI.

But we will need to check for concurrency of the resource.

i.e. Handle issue when two users register at the same time.

 

 

<b>Q: Is there a simpler way and/or better than the one mentioned above?</B>

 

 

- - - - - - - - - - - - - - - - - -

Here's the code, we use:

- - - - - - - - - - - - - - - - - -

 

 

    [WebMethod]

        public bool authenticateUser(string un, string pw)

        {

            bool result = false;

            InMemoryDestinationConfiguration objDestConfig = new InMemoryDestinationConfiguration();

                try

                {

                    #region "Register/Unregister Destination Configuration"

 

 

                    if (!(RfcDestinationManager.IsDestinationConfigurationRegistered()))

                        RfcDestinationManager.RegisterDestinationConfiguration(objDestConfig);

 

 

                    objDestConfig.AddOrEditDestination("mySAP", 15, un, pw, "EN", "50", "100.170.14.59", "03", "DEVELOPER");

                    #endregion

 

 

                    RfcDestination dest = RfcDestinationManager.GetDestination("mySAPdestination");

                    dest.Ping();

                    objDestConfig.RemoveDestination("mySAP");

                    result = true;

 

 

                }

                catch (Exception ex)

                {

     // log Error using user made function

                    logError(ex.ToString(), "authenticateUser()");

                }

 

 

            return result;

        }

 

 

    /* - - - - - - - - - - - - - - */

    /* AddOrEditDestination Code: */

    /* - - - - - - - - - - - - - */

 

 

    public class InMemoryDestinationConfiguration : IDestinationConfiguration

    {

        Dictionary<string, RfcConfigParameters> availableDestinations;

        RfcDestinationManager.ConfigurationChangeHandler changeHandler;

 

 

        public InMemoryDestinationConfiguration()

        {

            availableDestinations = new Dictionary<string, RfcConfigParameters>();

        }

 

 

        public RfcConfigParameters GetParameters(string destinationName)

        {

            RfcConfigParameters foundDestination;

            availableDestinations.TryGetValue(destinationName, out foundDestination);

            return foundDestination;

        }

 

 

        //our configuration supports events

        public bool ChangeEventsSupported()

        {

            return true;

        }

 

 

        public event RfcDestinationManager.ConfigurationChangeHandler ConfigurationChanged

        {

            add

            {

                changeHandler = value;

            }

            remove

            {

                //do nothing

            }

        }

 

 

        //removes the destination that is known under the given name

        public void RemoveDestination(string name)

        {

            if (name != null && availableDestinations.Remove(name))

            {

                //Console.WriteLine("Successfully removed destination " + name);

                //Console.WriteLine("Fire deletion event for destination " + name);

                changeHandler(name, new RfcConfigurationEventArgs(RfcConfigParameters.EventType.DELETED));

            }

        }

 

 

        //allows adding or modifying a destination for a specific application server

        public void AddOrEditDestination(string name, int poolSize,

            string user, string password, string language, string client,

            string applicationServer, string systemNumber, string systemID)

        {

            //in productive code the given parameters should be checked for validity, e.g. that name is not null

            //as this is not relevant for the example, we omit it here

            RfcConfigParameters parameters = new RfcConfigParameters();

            parameters[RfcConfigParameters.Name] = name;

            //parameters[RfcConfigParameters.MaxPoolSize] = Convert.ToString(poolSize);

            //parameters[RfcConfigParameters.IdleTimeout] = Convert.ToString(1); // we keep connections for 10 minutes

            parameters[RfcConfigParameters.User] = user;

            parameters[RfcConfigParameters.Password] = password;

            parameters[RfcConfigParameters.Client] = client;

            parameters[RfcConfigParameters.Language] = language;

            parameters[RfcConfigParameters.AppServerHost] = applicationServer;

            parameters[RfcConfigParameters.SystemNumber] = systemNumber;

            parameters[RfcConfigParameters.SystemID] = systemNumber;

            RfcConfigParameters existingConfiguration;

 

 

            //if a destination of that name existed before, we need to fire a change event

            if (availableDestinations.TryGetValue(name, out existingConfiguration))

            {

                availableDestinations[name] = parameters;

                RfcConfigurationEventArgs eventArgs = new RfcConfigurationEventArgs(RfcConfigParameters.EventType.CHANGED, parameters);

                //MessageBox.Show("Fire change event " + eventArgs.ToString() + " for destination " + name);

                changeHandler(name, eventArgs);

            }

            else

            {

                availableDestinations[name] = parameters;

            }

 

 

            //MessageBox.Show("Added application server destination " + name);

 

 

        }

    }

BAPI_SALESORDER_CREATEFROMDAT2 and Commit-Issue

$
0
0

Hi,

 

I've a problem with BAPI_TRANSACTION_COMMIT after BAPI_SALESORDER_CREATEFROMDAT2.

 

BAPI_SALESORDER_CREATEFROMDAT2 is working fine.

In the Return-Vars I've a message "Salesorder create Number 9999999'.

The Salesordernumbers are reserved in the system.

 

But the BAPI_TRANSACTION_COMMIT gives no result back and the Salesorder is not created.

 

I've read somewhere that the two BAPIs have to be called in one Process, but I don't know how to do this.

 

Many many thanks in advance for helping.

 

CODE:

 

 

Dim _ecc = RfcDestinationManager.GetDestination(strSAPSystem)

Dim setOrderAPI AsIRfcFunction = _ecc.Repository.CreateFunction("BAPI_SALESORDER_CREATEFROMDAT2")

Dim setCommit AsIRfcFunction = _ecc.Repository.CreateFunction("BAPI_TRANSACTION_COMMIT")


Dim SAPStrucOrder_Header_In As SAP.Middleware.Connector.IRfcStructure = setOrderAPI.GetStructure("ORDER_HEADER_IN")


SAPStrucOrder_Header_In.SetValue("DOC_TYPE", "ZEDI")

SAPStrucOrder_Header_In.SetValue("SALES_ORG", "0100")

SAPStrucOrder_Header_In.SetValue("DISTR_CHAN", "10")

SAPStrucOrder_Header_In.SetValue("DIVISION", "10")

Dim datLieferdatum AsDate

datLieferdatum = strLieferdatum

SAPStrucOrder_Header_In.SetValue("REQ_DATE_H", datLieferdatum)


Dim SAPTableOrder_Partners As SAP.Middleware.Connector.IRfcTable = setOrderAPI.GetTable("ORDER_PARTNERS")

SAPTableOrder_Partners.Append()

SAPTableOrder_Partners.SetValue("PARTN_ROLE", "AG")

SAPTableOrder_Partners.SetValue("PARTN_NUMB", gstrSAPKDNR)

SAPTableOrder_Partners.Append()

SAPTableOrder_Partners.SetValue("PARTN_ROLE", "WE")

SAPTableOrder_Partners.SetValue("PARTN_NUMB", strSAPKunnrWE)


Dim SAPTableOrder_Items_In As SAP.Middleware.Connector.IRfcTable = setOrderAPI.GetTable("ORDER_ITEMS_IN")

Dim SAPTableOrder_Schedule_In As SAP.Middleware.Connector.IRfcTable = setOrderAPI.GetTable("ORDER_SCHEDULES_IN")


lngTmpPosNr = 0

For z4 AsInteger = 0 To PosTabelle.lngPosnr.Length - 1

            lngTmpPosNr = PosTabelle.lngPosnr(z4) * 10

            SAPTableOrder_Items_In.Append()

            SAPTableOrder_Items_In.SetValue("ITM_NUMBER", lngTmpPosNr)

            SAPTableOrder_Items_In.SetValue("MATERIAL", PosTabelle.strSAPArtNr(z4))

            SAPTableOrder_Schedule_In.Append()

            SAPTableOrder_Schedule_In.SetValue("ITM_NUMBER", lngTmpPosNr)

            SAPTableOrder_Schedule_In.SetValue("REQ_QTY", PosTabelle.lngMenge(z4))

            SAPTableOrder_Schedule_In.SetValue("REQ_DATE", datLieferdatum)

Next


setOrderAPI.Invoke(_ecc)
setCommit.Invoke(_ecc)


Dim strVBELN AsString

Dim strReturnType AsString

Dim strReturnID AsString

Dim strReturnNumber AsString

Dim strReturnMessage AsString

Dim strReturnType2 AsString

Dim strReturnID2 AsString

Dim strReturnNumber2 AsString

Dim strReturnMessage2 AsString


Try

            strVBELN = setOrderAPI.GetValue("SALESDOCUMENT").ToString

            strReturnType = setOrderAPI.GetTable("RETURN").GetString("TYPE")

            strReturnID = setOrderAPI.GetTable("RETURN").GetString("ID")

            strReturnNumber = setOrderAPI.GetTable("RETURN").GetString("NUMBER")

            strReturnMessage = setOrderAPI.GetTable("RETURN").GetString("MESSAGE")

            strReturnType2 = setCommit.GetStructure("RETURN").GetString("TYPE")

            strReturnID2 = setCommit.GetStructure("RETURN").GetString("ID")

            strReturnNumber2 = setCommit.GetStructure("RETURN").GetString("NUMBER")

            strReturnMessage2 = setCommit.GetStructure("RETURN").GetString("MESSAGE")

Catch

'nix

EndTry

NCO 3.0 SapLogonIniConfiguration and the SAPUILandscape.xml

$
0
0

Hi all,

I use and develop some programs that uses the NCO 3.0 and the SapLogonIniConfiguration class.

Last time I updated on my windows 7 the SAPGUI from 7.3 to 7.4 and installed additionally the netweaver business client.

Now I see that changes at the saplogon to the properties of the servers are saved not to the saplogon.ini but to the SAPUILandscape.xml and the SapLogonIniConfiguration of the NCO use still the saplogon.ini.

 

Can I persuade the NCO to use the SAPUILandscape.xml?

Or is there a SapUILandscapeConfiguration class at the NCO?

How can I decide which configuration file is active?

 

Many thanks for answers!


Error "Start sapgui failed" when using NCO 3.0 with WCF

$
0
0

Hello,

 

i am trying to upload a file using SAP .Net Connector 3.0 with a WCF Service, so i enabled the sapgui for this case.

The problem is that my application times out once i try to create a function.

 

IRfcFunction BAPI_DOCUMENT_CREATE2 = _destination.Repository.CreateFunction("BAPI_DOCUMENT_CREATE2");

 

The gui gets started in the background, but it looks like it is not accessible for the service. When i try the same code in a console application it works just fine.

 

After a little research i found an old discussion with a nco and wcf problem:

Error when using SAP .Net Connector NCO 3.0 with WCF service

 

So i tried to change the web.config as suggested, but nothing changed.

 

<system.serviceModel>

        <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />

</system.serviceModel>

 

Any suggestions how to fix this problem?

How to Call a .NET API in SAP?

$
0
0

<b>How to Call a .NET API in SAP?</b>

Unable to ping SAP from .NET SAP connector

$
0
0

Hi,

 

I use SAP.NET connector 32bit to SAP system from .NET. Here is the message we get when we try to connect SAP [using singlesignon]

 

ERROR       no conversation found with id XXXXXXXX

 

TIME        Sun Sep 13 11:50:21 2015

RELEASE     720

COMPONENT   CPIC (TCP/IP) with Unicode

VERSION     3

RC          473

MODULE      r3cpic.c

LINE        9101

COUNTER     6

 

My configuration details:

            RfcConfigParameters parms = new RfcConfigParameters();

            parms.Add(RfcConfigParameters.Name, "Test");

            parms.Add(RfcConfigParameters.AppServerHost, "xxxxxxxxx.com");

            parms.Add(RfcConfigParameters.SystemNumber, "00");

            parms.Add(RfcConfigParameters.SystemID, "ECQ");

            parms.Add(RfcConfigParameters.Client, "300");

            parms.Add(RfcConfigParameters.Language, "EN");

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

            parms.Add(RfcConfigParameters.SncMode,"1");

            parms.Add(RfcConfigParameters.SncPartnerName, "p:username@xxxxxxxxx.COM");

            parms.Add(RfcConfigParameters.SncLibraryPath, @"C:\Windows\SysWOW64\gsskrb5.dll");

 

 

thanks,

Ramesh

i cant find SAP Netweaver Gateway Productivity accelerator for microsoft 1.0

$
0
0

dear all

 

 

i am trying to download "SAP Netweaver Gateway Productivity accelerator for microsoft 1.0"

 

i followed the instructions on this link: How to Download SAP Gateway for Microsoft?

 

and i didnt found the "GWPAM"

 

i need your help.

 

thanks,

Can Sap net connector deploy on Windows Mobile Pocket Pc

$
0
0

Hi all,

   I'm developing application on Mobile with VS.net 2005 & Window Mobile 5.0 Pocket PC and i want to use rfc from SAP. Can Sap.net connector (Sap.Connector.dll, Sap.Connector.rfc.dll) run on this platform

 

 

BR,

Prachya.

Consume SAP Web Service (WSDL) in C# windows Mobile

$
0
0

Hi

 

Please Help Me to Consume Sap Web Service in windows Mobile app ..

when i Add web service and call it  , I get this Error :

 

2015-10-06 10-04-26 ق.png

whats problem ?

is that need to use IIS ?

Nco 3.0 has problem calling function BAPI_USER_GET_DETAIL

$
0
0

Hi all,

 

I'm trying to create program using NCo 3.0. I am able to call function modules, except this particular BAPI_USER_GET_DETAIL. I have to call it few times in order to get the results. Most of time it gives the following error. Strangely, I have no problem calling other funtional modules like BAPI_USER_EXISTENCE_CHECK etc.

 

 

SAP.Middleware.Connector.RfcInvalidStateException: Lookup of function BAPI_USER_GET_DETAIL metadata failed for destination NCO_TESTS

---> SAP.Middleware.Connector.RfcInvalidStateException: Lookup of StructureOrTable BAPIAGR metadata failed for destination NCO_TESTS

---> SAP.Middleware.Connector.RfcCommunicationException: destination NCO_TESTS failed when calling DDIF_FIELDINFO_GET -- see log for details

   at SAP.Middleware.Connector.RfcRepository.Execute(RfcFunction function)

   at SAP.Middleware.Connector.RfcRepository.LookupRecordMetadataClassic(String name, RecordType recordType)

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

   at SAP.Middleware.Connector.RfcRepository.LookupRecordMetadataClassic(String name, RecordType recordType)

   at SAP.Middleware.Connector.RfcRepository.LookupRecordMetadata(String name, RecordType recordType)

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

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

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

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

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

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

 

Edited by: VBEXPERT on Mar 23, 2011 2:14 PM


SAP Net Connector 3.0 example for VB.Net

$
0
0

Dear All,

 

I would like to start using SAP Net Connector 3.0 with VB.Net

Unfortunattely - I can't find any complete example written in VB.Net

(All examples are coded in C). Do you have such one?

 

Best regards,

Kordian

"A row already exists with this key." when inserting an IRfcTable with multiple records

$
0
0

Hello,

 

I'm using VB.NET and the NCo3 connector to send an IRfcTable with two records to a SAP environment. When I do this I get the error: A row already exists with this key". Here's (the main part of) my code

Dim ScheduleTable As IRfcTable = ScheduleAPI.GetTable("SCHEDULE")

ScheduleTable.Clear()

For Each _Schedule As SAPScheduleData In _ListOfSchedules    

  ScheduleTable.Insert()    

  ScheduleTable.CurrentIndex = ScheduleTable.Count - 1    

  ScheduleTable.SetValue("START_TIME", ConvertTimeSpanToString(_Schedule.StartTime))   

  ScheduleTable.SetValue("END_TIME",  ConvertTimeSpanToString(_Schedule.EndTime))    

  ScheduleTable.SetValue("PLANNING_TYPE", _Schedule.PlanningType.Planning_Type)

Next _Schedule

 

ScheduleAPI.Invoke(_SAPGsdObject.RfcDest)

 

When I try the same code with only one record in the table it's working fine. Also an older version of the code, which connects with the same kind of SAP environment, is working fine also when the table SCHEDULE contains more than one record. The code of that older version is as follows: 
oFunction.Tables("SCHEDULE").Rows.RemoveAll()        
For Each _Schedule As SAPScheduleData In _ListOfSchedules            
  oRow = oFunction.Tables("SCHEDULE").Rows.Add            
  oRow("START_TIME") = ConvertTimeSpanToString(_Schedule.StartTime)            
  oRow("END_TIME") = ConvertTimeSpanToString(_Schedule.EndTime)            
oRow("PLANNING_TYPE") = _Schedule.PlanningType.Planning_Type        
Next _Schedule :

 

In the new code I also tried replacing
ScheduleTable.CurrentIndex = ScheduleTable.Count - 1 
with
ScheduleTable.CurrentIndex = ScheduleTable.RowCount - 1
but this didn't help. Can anyone see what's wrong with the new code?

Lock table from .net

$
0
0

Dear all,

 

I'm currently facing an issue where i try to lock the VBAK table via FM ENQUEUE_EZ_VVBAKE from a C#.NET project.

 

 

 function = moRfcDestination.Repository.CreateFunction("ENQUEUE_EZ_VVBAKE");                function.SetValue("vbeln", vbeln);                function.SetValue("_SCOPE", 2);

 

 

The lock is set, but when the FM ends execution,the lock is released.

 

How can I set the lock and keep it for the entire execution of the windows program ?

 

Thank you.

Andrei

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

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.

Viewing all 68 articles
Browse latest View live


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