sap

SAP GUI Scripting Error, “The Enumerator of the collection cannot find an element with the specified index.”

白昼怎懂夜的黑 提交于 2021-02-16 14:10:12
问题 A few weeks ago I generated a script via SAP's built in GUI scripting functionality, and then put the vba in an excel document and attached it to a button. this worked perfectly fine for few weeks, however now when I press the button I get this error: "The enumerator of the collection cannot find en element with the specified index." on the line that says Set session = Connection.Children(0) Here is a snippet of code If Not IsObject(Sap_Application) Then Set SapGuiAuto = GetObject("SAPGUI")

SAP GUI Scripting Error, “The Enumerator of the collection cannot find an element with the specified index.”

主宰稳场 提交于 2021-02-16 14:07:42
问题 A few weeks ago I generated a script via SAP's built in GUI scripting functionality, and then put the vba in an excel document and attached it to a button. this worked perfectly fine for few weeks, however now when I press the button I get this error: "The enumerator of the collection cannot find en element with the specified index." on the line that says Set session = Connection.Children(0) Here is a snippet of code If Not IsObject(Sap_Application) Then Set SapGuiAuto = GetObject("SAPGUI")

How do I found out the Host/Port when connecting to SAP HANA using python PyHDB

烈酒焚心 提交于 2021-02-11 16:40:46
问题 I'm trying to connect to a SAP HANA database, but I don't know where to find the host or port attributes for pyhdb.connect() Test Code Below import pyhdb connection = pyhdb.connect( host="", port="", user="exampleusername", password="examplepassword" ) cursor = connection.cursor() cursor.execute("SELECT 'Hello Python World'") cursor.fetchone() connection.close() Can someone please point me in the right direction? 回答1: HOST , PORT and DATABASENAME are part of the SAP HANA logon information,

How do I found out the Host/Port when connecting to SAP HANA using python PyHDB

穿精又带淫゛_ 提交于 2021-02-11 16:40:38
问题 I'm trying to connect to a SAP HANA database, but I don't know where to find the host or port attributes for pyhdb.connect() Test Code Below import pyhdb connection = pyhdb.connect( host="", port="", user="exampleusername", password="examplepassword" ) cursor = connection.cursor() cursor.execute("SELECT 'Hello Python World'") cursor.fetchone() connection.close() Can someone please point me in the right direction? 回答1: HOST , PORT and DATABASENAME are part of the SAP HANA logon information,

Reading csv file with double quote delimiter in SAP BODS

给你一囗甜甜゛ 提交于 2021-02-11 15:40:56
问题 I am trying to read a csv file in SAP BODS the file delimiter is ,(comma) and text delimiter is "(double quotes) the text withing the "" AND COMMAS also have double quotes in them due to which the column is being split into new column Is there any way i can only use header columns as a reference for the column definition? 来源: https://stackoverflow.com/questions/61456032/reading-csv-file-with-double-quote-delimiter-in-sap-bods

Create a material .NET Connector SAP

橙三吉。 提交于 2021-02-08 08:08:59
问题 Please tell me somebody out there has done this. I am trying to interface with SAP via .NET Connector 3.0. I can read data fine with the remote function calls, but I cannot figure out how to write anything, creating or editing a material for example. Through some research I have determined that BAPI_MATERIAL_SAVEDATA is the rfc I need to be using, but cannot for the life of me figure out how. Here's what I'm trying: function = destination.Repository.CreateFunction("BAPI_MATERIAL_SAVEDATA");

How to provide style for slots inside the template in sap Spartacus

老子叫甜甜 提交于 2021-01-29 04:30:57
问题 I have a new template LandingPage3Template. layoutSlots: { LandingPage3Template: { pageFold: 'Section2B', slots: [ 'Section2A', 'Section2B', 'Section2C', 'Section1', 'Section3', 'Section4', 'Section5' ], } } I just wanted to give styles for the slots. Can someone help me to write a custom CSS style to align it properly? I am using the below-mentioned code but it is not working. %cx-page-layout { // my code here width: 10%; } 回答1: thanks for asking at our SO channel. The CMS page template name

How to execute RFC function on explicit destination using JCo?

荒凉一梦 提交于 2021-01-28 06:29:13
问题 I would like to execute RFC function on explicit destination using JCo. I've modified existing JCo StepByStepClient.java and I'm able to execute RFC function exactly the same way like using Sap GUI "se37" when the "RFC target sys" field is empty . For my demo purposes I was invoking "TH_USER_LIST" function. Then I registered my own JCo server with Program Id "MY_PROG_ID", then added tcpip destination "MY_DEST" using "sm59" with "Registered Server Program"="MY_PROG_ID". I'm now able to invoke

How to securely consume APIs in S/4HANA?

纵然是瞬间 提交于 2021-01-28 06:03:44
问题 I know how to enable Communication Systems, -Arrangements and so on in S/4HANA Cloud Essentials to communicate with OData APIs. I like the process here. Now I have an S/4HANA Single Tenant Edition, that behaves more like an OnPrem System. I did not realy find a guide how to set up communication to consume APIs from SCP. Seems like people are using a Standard User with Basic Auth what seems a bit unsecure. Is there the same concept with communication system and arrangement in S/4Hana onPrem or