saprfc

SAPNWRFC Connection how to WRITE DATA php

烂漫一生 提交于 2019-12-06 11:58:04
Below code used to fetch and display data from PHP <?php use SAPNWRFC\Connection as SapConnection; use SAPNWRFC\Exception as SapException; //print_r($_POST); $config = [ 'ashost' => '###.###.###.###', 'sysnr' => '##', 'client' => '###', 'user' => '####', 'passwd' => '*******', 'trace' => SapConnection::TRACE_LEVEL_OFF ]; $sap = false; $sapMTList = ""; try { $sap = new SapConnection($config); $result=$sap->getFunction("ZBAPI_SAMPLE_LIST_V1"); $parms = [ // 'I_MATTYPE' => 'FERT', 'I_PLANT' => 'XXXX' "I_MATTYPE" => "FERT", "I_PLANT" => "XXXX" ]; if(isset($_POST['submit']) && $_POST['submit'] ===

VBA program executing SAP RFCs works in Excel 2016 on-prem, but not in Office 365 (Run-time error 20080008…Bad Variant Type)

我只是一个虾纸丫 提交于 2019-12-04 06:43:43
问题 Let me first say that I saw the other two threads that mentioned this issue here and here, but they didn't help me solve my problem. I've been testing a program for several weeks in the on-prem Excel 2016 environment (32-bit) with no problems. My company is making the move to Office 365 soon, so I decided to test it over there as well. On that system, I'm getting a run-time error on the line Functions.Connection = objConnection Option Explicit Public Functions As SAPFunctionsOCX.SAPFunctions

DATA_BUFFER_EXCEEDED error when calling RFC_READ_TABLE?

别等时光非礼了梦想. 提交于 2019-12-01 16:48:15
My java/groovy program receives table names and table fields from the user input, it queries the tables in SAP and returns its contents. The user input may concern the tables CDPOS and CDHDR . After reading the SAP documentations and googling, I found these are tables storing change document logs. But I did not find any remote call functions that can be used in java to perform this kind of queries. Then I used the deprecated RFC Function Module RFC_READ_TABLE and tried to build up customized queries only depending on this RFC. However, I found if the number of desired fields I passed to this

DATA_BUFFER_EXCEEDED error when calling RFC_READ_TABLE?

故事扮演 提交于 2019-12-01 14:47:56
问题 My java/groovy program receives table names and table fields from the user input, it queries the tables in SAP and returns its contents. The user input may concern the tables CDPOS and CDHDR . After reading the SAP documentations and googling, I found these are tables storing change document logs. But I did not find any remote call functions that can be used in java to perform this kind of queries. Then I used the deprecated RFC Function Module RFC_READ_TABLE and tried to build up customized