saprfc

SAP: Port-Number for msserv (RFC)

假如想象 提交于 2019-12-24 23:13:55
问题 How to determine the correct port for the msserv connection parameter? According to the docs of RfcOpenConnection : msserv is only needed, if the service of the message server is not defined as sapms in /etc/services. In my case I run a standard linux distribution with unmodified /etc/services file. This means I need the matching value for msserv . On one system I was lucky I tried 3600 and it worked. But on a second system this failed. I can connect to the system via SAP-GUI. How to

List allowed methods while connecting via RFC?

好久不见. 提交于 2019-12-23 08:38:24
问题 I can connect as user "foo" with password "bar" via SAP-RFC from my machine to the SAP server. Is introspection possible via SAP-RFC?nI would like to know which methods user "foo" is allowed to execute. I am using PyRFC, but AFAIK this should not matter for this question. According to user Suncatcher it is not available out of the box. My SAP knowledge is limited up to now. But wouldn't it be possible to loop like this pseudo code? (This code should run (as ABAP) inside in SAP and could be

PyRFC: Connect via mshost (not ashost)

淺唱寂寞╮ 提交于 2019-12-13 08:34:42
问题 I would like to use PyRFC to do remote procedure call on SAP using the Python programming language. conn = pyrfc.Connection(user='foouser', passwd='xxxx', mshost='sap.example.com', sysid='TE1', client='220', group='EXAMPLE', ) But it fails like this: RFC_COMMUNICATION_FAILURE (rc=1): key=RFC_COMMUNICATION_FAILURE, message= ERROR service 'sapmsTE1' unknown TIME Tue Dec 18 15:49:40 2018 RELEASE 753 COMPONENT NI (network interface) VERSION 40 RC -3 MODULE /bas/753_REL/src/base/ni/niuxi.c LINE

Retrieve texts from a sales order by using RFC_READ_TEXT

跟風遠走 提交于 2019-12-12 14:01:59
问题 I'm using SAP .NET Connector 3.0 to read data from SAP(R/3). I need to get some header texts from sales orders: A lot of information I found regarding READ_TEXT function which can be used for this purpose. Here you can find some sample how to do it by using ERPConnect. I'm trying to do the same and I have following function which returns IRfcTable: static IRfcTable ReadFunction(string destName, int rowCount) { // get the destination RfcDestination dest = RfcDestinationManager.GetDestination

Set SAP RFC import table parameter using php multidimensional array

江枫思渺然 提交于 2019-12-12 06:04:44
问题 I am trying to call a SAP RFC function which has import parameters as a table. Currently I am using saprfc for communication between SAP-PHP but it is not accepting table in import parameter. It is giving following error for import parameter EX_ORDER_HEADER: Can't find interface name EX_ORDER_HEADER, __cal_refresh_internal_buffer(); 来源: https://stackoverflow.com/questions/29078015/set-sap-rfc-import-table-parameter-using-php-multidimensional-array

Table_not_available when using JAVA SAP RFC_READ_TABLE

会有一股神秘感。 提交于 2019-12-12 04:14:29
问题 There are three different tables (OPTIONS, FIELDS and DATA) in import parameter "QUERY_TABLE" = "LTAP". I created a java program to display column FIELDNAME from the table FIELDS with helping function RFC_READ_TABLE. It always appears Error com.sap.conn.jco.AbapException: (126) TABLE_NOT_AVAILABLE: TABLE_NOT_AVAILABLE Message 300 of class DA type E , when I call the method step2WorkWithTable(). Can anybody explain the error? And how to fix it? My codes: import java.util.Properties; import com

Determine the number of characters which are allowed in a field?

别来无恙 提交于 2019-12-11 14:32:05
问题 The is a follow-up question of SAP RFC: nuc_length vs uc_length With PyRFC I can get the func_description like this: get_function_description(rfc_name) Per field I can read uc_length and nuc_length . How can I determine the number of unicode characters which I can put into the field if nuc_length=40 and uc_length=80? 回答1: Unfortunately this is not possible, I think. From the given length in bytes you can only calculate a maximum number of characters which would fit into this field. For

SAP RFC: nuc_length vs uc_length

送分小仙女□ 提交于 2019-12-11 14:32:01
问题 My favorite search engine (ecosia) could not find the canonical docs from upstream (SAP) about the meaning of uc_length vs nuc_length . What is the difference between both? I get these parameters with a modified version of clientPrintDescription.py 回答1: I can't be sure what they do in the Python script, but based on my ABAP/SAP knowledge, I can easily say that: nuc_length : length of the parameter in a non-Unicode ABAP-based system, in number of bytes uc_length : length of the parameter in a

Searching for a .NET SAP RFC tutorial for remote capable SAP modules

◇◆丶佛笑我妖孽 提交于 2019-12-08 03:54:48
问题 Is there a tutorial which explains step by step how to connect to a remote capable SAP module? Thanks :) 回答1: there is a tutorial on codeproject here and a SAP description of the process on help.sap Hope this help, regards Guillaume Edit : there is also a tutorial here 来源: https://stackoverflow.com/questions/3610169/searching-for-a-net-sap-rfc-tutorial-for-remote-capable-sap-modules

SAPNWRFC Connection how to WRITE DATA php

大兔子大兔子 提交于 2019-12-07 23:40:00
问题 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' =>