saprfc

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

Accessing stack memory of RFC-called system

别等时光非礼了梦想. 提交于 2020-08-19 08:43:59
问题 When a program is running in SAP ECC, the "system stack" stores all global variable irrespective of what modules/programs are called in that single session. When it's calling RFC-enabled Function Modules (FM), a new system stack is created in the called system and only the export parameters defined in the called FM can be retrieved in ECC when the called FM has finished. Is there a way to access another system stack's global variables in ABAP? For example, in my case: The FM BAPI_MATERIAL

Accessing stack memory of RFC-called system

最后都变了- 提交于 2020-08-19 08:42:34
问题 When a program is running in SAP ECC, the "system stack" stores all global variable irrespective of what modules/programs are called in that single session. When it's calling RFC-enabled Function Modules (FM), a new system stack is created in the called system and only the export parameters defined in the called FM can be retrieved in ECC when the called FM has finished. Is there a way to access another system stack's global variables in ABAP? For example, in my case: The FM BAPI_MATERIAL

Accessing stack memory of RFC-called system

爷,独闯天下 提交于 2020-08-19 08:42:04
问题 When a program is running in SAP ECC, the "system stack" stores all global variable irrespective of what modules/programs are called in that single session. When it's calling RFC-enabled Function Modules (FM), a new system stack is created in the called system and only the export parameters defined in the called FM can be retrieved in ECC when the called FM has finished. Is there a way to access another system stack's global variables in ABAP? For example, in my case: The FM BAPI_MATERIAL

RFC-enabled function module to update the table JEST

╄→尐↘猪︶ㄣ 提交于 2020-02-29 07:08:44
问题 I need to update some fields of Physical samples in SAP ERP: List of columns which are in the table QPRS : ABINF: Storage Information ABDAT: Storage Deadline ABORT: Storage Location List of fields which correspond to statuses (table JEST ): Sample Was Stored: status I0363 (short code in Status History: "STRD") Sample Consumed/Destroyed: status I0362 (short code in Status History: "USED") Is there a RFC-enabled function module to update these fields? Thanks. 来源: https://stackoverflow.com

Calling BAPI_DOCUMENT_CHECKOUTVIEW2 using SAP.Net Connector 3.0 returns “RFC Callback server not available”

与世无争的帅哥 提交于 2020-01-17 01:31:04
问题 I am trying to get a document from SAP DMS using SAP.Net Connector 3.0. I need to get the document and display in ASP.Net. I am using "BAPI_DOCUMENT_CHECKOUTVIEW2" for calling the function. But when the invoke method is called, "RFC callback server not available" error is thrown. The code i have used is below. ... sap.RfcRepository repo = prd.Repository; sap.IRfcFunction testBapi = repo.CreateFunction("BAPI_DOCUMENT_CHECKOUTVIEW2"); testBapi.SetValue("DOCUMENTNUMBER", docNumber); testBapi

SAP RFC Connection with VBA - BAD VARIANT TYPE

早过忘川 提交于 2020-01-06 07:05:32
问题 I'm having a problem with the SAP RFC when I'm trying to download some tables. When I try to create the connection I get the following error: Bad Variant Type I checked the regedit registry for RFC and it is all right. The IT installed the SAP 7.50, but I'm unable to use such version cause it does not allow me to download some tables that I need, so I asked them to make the downgrade to the 7.40 version of SAP. The problem started just there. Public Sub conecta_sap() Set ctlLogon =

Need Help at Getting data from SAP to C#

自古美人都是妖i 提交于 2020-01-06 03:17:25
问题 I want to get some data from an SAP Server to my C# Programm in Visual Studio. The connection between the SAP and the program is already working but I don't really know how to get the data from the Server into the program. namespace ConsoleApp1 { class Program //: IDestinationConfiguration { static void Main(string[] args) { fn f = new fn(); RfcDestination destination = f.GetRfcDestination("vhcalnplci", "brachi", "Abap2017", "001", "EN", "vhcalnplci", "00", "20", "10"); RfcSessionManager

SAP RFC Connection “Bad Variant Type”

核能气质少年 提交于 2019-12-25 07:23:50
问题 Well, 'm using SapConnector dll to make RFC from .Net to SAP. When I use dll in a Windows form application, everything is fine, but when I try to make connection in ASP.Net Web Site or Web Applcation a get an error; Bad Variant Type if (Connector.StartConnection()) { try { Connector.AddFunction("Z_SCL_SOMETHING"); Connector.AddFunctionInputParameter("WPERNR", "999999"); Connector.CallFunction(); } } I get the error in this line; Connector.AddFunction("Z_SCL_SOMETHING"); Another weird case is