<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Trying to get some table data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068778#M1177744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fields has the following structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELDNAME	CHAR	30	0	Field Name&lt;/P&gt;&lt;P&gt;OFFSET	                NUMC	6	0	Offset of a field&lt;/P&gt;&lt;P&gt;LENGTH		NUMC	6	0	Length (No. of Characters)&lt;/P&gt;&lt;P&gt;TYPE		CHAR	1	0	ABAP data type (C,D,N,...)&lt;/P&gt;&lt;P&gt;FIELDTEXT	CHAR	60	0	Short Description of Repository Objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Options:  ( must be filled with the where cllause)&lt;/P&gt;&lt;P&gt;TEXT		CHAR	72	0	Text line of a message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:  ( the returned data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA     	                CHAR	512	0	Character field length 512&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Greg Kern&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Jan 2009 21:09:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-27T21:09:51Z</dc:date>
    <item>
      <title>Trying to get some table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068766#M1177732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Im pretty new to SAP and RFC so please excuse me if I seem noob.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an external application that must use the rfc library to access some data in SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this moment I use RFCOpen to get a connection to the server (this seem to work correctly).&lt;/P&gt;&lt;P&gt;But now I have to use RFC_READ_TABLE.&lt;/P&gt;&lt;P&gt;to read 3 differents table &lt;/P&gt;&lt;P&gt;MAKT &lt;/P&gt;&lt;P&gt;MARD &lt;/P&gt;&lt;P&gt;MSLB &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and idealy I have to read only part of the table (with where clause in sql)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im using VS2005 c++ with the RFCSDK, and I have no real idea how to use RFC_READ_TABLE&lt;/P&gt;&lt;P&gt;the only thing I know is that I have to set export parameter to something that match what I want, and call callreceive()..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone put me on the right path &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 13:12:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068766#M1177732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T13:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get some table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068767#M1177733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did try to search forum but nothing found&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables[0].ithandle = ItCreate("MAKT", 200, 1, 0); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		exporting[0].name = "MAKT";&lt;/P&gt;&lt;P&gt;		exporting[1].name = " ";&lt;/P&gt;&lt;P&gt;		exporting[2].name = " ";&lt;/P&gt;&lt;P&gt;		exporting[3].name = "0";&lt;/P&gt;&lt;P&gt;		exporting[4].name = "0";&lt;/P&gt;&lt;P&gt;		exporting[5].name = "";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then call callreceive?&lt;/P&gt;&lt;P&gt;Then how can I see value returned in table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 14:44:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068767#M1177733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T14:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get some table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068768#M1177734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Julien&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A minimal call to RFC_READ_TABLE needs to include:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUERY_TABLE   -  the table name to read&lt;/P&gt;&lt;P&gt;OPTIONS - an ABAP internal table.  each line will be a line of the sql where.&lt;/P&gt;&lt;P&gt;FIELDS - an ABAP internal table containing the names of the fields to retrieve data for.&lt;/P&gt;&lt;P&gt;DATA - the data returned by the function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg QUERY_TABLE    --- PA0001&lt;/P&gt;&lt;P&gt;OPTIONS                  --- PERNR = 999999    ( any valid value for PERNR)&lt;/P&gt;&lt;P&gt;FIELDS                     --- PERNR                   (return PERNR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure of the details from the external side . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps a bit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Greg Kern&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 15:32:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068768#M1177734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T15:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get some table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068769#M1177735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but for this i have to use more than 1 RFC_TABLE??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at this moment I got this now&lt;/P&gt;&lt;P&gt;tables[0].itmode = RFC_ITMODE_BYREFERENCE;&lt;/P&gt;&lt;P&gt;		tables[0].ithandle = ItCreate("MAKT", 100, 1, 0); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		exporting[0].name = "QUERY_TABLE";&lt;/P&gt;&lt;P&gt;		exporting[0].nlen = strlen("QUERY_TABLE");&lt;/P&gt;&lt;P&gt;		exporting[0].addr = "MAKT";&lt;/P&gt;&lt;P&gt;		exporting[0].leng = strlen("MAKT");&lt;/P&gt;&lt;P&gt;		exporting[0].type = RFCTYPE_CHAR;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		exporting[1].name = "DELIMITER";&lt;/P&gt;&lt;P&gt;		exporting[1].nlen = strlen("DELIMITER");&lt;/P&gt;&lt;P&gt;		exporting[1].addr = " ";&lt;/P&gt;&lt;P&gt;		exporting[1].leng = strlen(" ");&lt;/P&gt;&lt;P&gt;		exporting[1].type = RFCTYPE_CHAR;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		exporting[2].name = "NO_DATA";&lt;/P&gt;&lt;P&gt;		exporting[2].nlen = strlen("NO_DATA");&lt;/P&gt;&lt;P&gt;		exporting[2].addr = " ";&lt;/P&gt;&lt;P&gt;		exporting[2].leng = strlen(" ");&lt;/P&gt;&lt;P&gt;		exporting[2].type = RFCTYPE_CHAR;&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;		exporting[3].name = "ROWSKIPS";&lt;/P&gt;&lt;P&gt;		exporting[3].nlen = strlen("ROWSKIPS");&lt;/P&gt;&lt;P&gt;		exporting[3].addr = " ";&lt;/P&gt;&lt;P&gt;		exporting[3].leng = strlen(" ");&lt;/P&gt;&lt;P&gt;		exporting[3].type = RFCTYPE_CHAR;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		exporting[4].name = "ROWCOUNT";&lt;/P&gt;&lt;P&gt;		exporting[4].nlen = strlen("ROWCOUNT");&lt;/P&gt;&lt;P&gt;		exporting[4].addr = " ";&lt;/P&gt;&lt;P&gt;		exporting[4].leng = strlen(" ");&lt;/P&gt;&lt;P&gt;		exporting[4].type = RFCTYPE_CHAR;&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;		exporting[5].name = NULL;&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		RfcCallReceive(RFC_Handle, "RFC_READ_TABLE", exporting, &amp;amp;importing, tables, &amp;amp;ex);&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;But I get memory violation error at the call, &lt;/P&gt;&lt;P&gt;In where do i put the field option in table? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot for helping&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 15:42:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068769#M1177735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T15:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get some table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068770#M1177736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This may not help since you're working outside SAP, but here is an example of calling RFC_READ_TABLE from one SAP system to read data from another - on this occasion querying table LFA1 using LIFNR vendor reference (passed into this macro as &amp;amp;1) and sending back KTOKK account group (passed back as &amp;amp;2).  The WHERE clause here is LIFNR = "0000190211" and is passed in via the OPTIONS table; the query results are sent back in the DATA table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: lt_options TYPE TABLE OF rfc_db_opt,
         lv_options TYPE rfc_db_opt,
         lt_fields  TYPE TABLE OF rfc_db_fld,
         ls_fields  TYPE rfc_db_fld,
         lt_data    TYPE TABLE OF tab512,
         lv_data    TYPE tab512.

    CLEAR: lt_options,lt_fields, lt_data, lv_options.
    CONCATENATE 'LIFNR = ''' &amp;amp;1 '''' INTO lv_options.
    APPEND lv_options TO lt_options.
    ls_fields-fieldname = 'KTOKK'.
    APPEND ls_fields TO lt_fields.
    CALL FUNCTION 'RFC_READ_TABLE' DESTINATION lv_rfc_dest
       EXPORTING
         query_table          = 'LFA1'
       TABLES
         options              = lt_options
         fields               = lt_fields
         data                 = lt_data
       EXCEPTIONS
         table_not_available  = 1
         table_without_data   = 2
         option_not_valid     = 3
         field_not_valid      = 4
         not_authorized       = 5
         data_buffer_exceeded = 6
         OTHERS               = 7.
    CLEAR: lv_data.
    READ TABLE lt_data INTO lv_data
    INDEX 1.
    &amp;amp;2 = lv_data.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 15:42:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068770#M1177736</guid>
      <dc:creator>christine_evans</dc:creator>
      <dc:date>2009-01-27T15:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get some table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068771#M1177737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Julien&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like you would specify the fields to be returned somewhere in your 'tables'  data structure.&lt;/P&gt;&lt;P&gt;In the ABAP FM interface the table is called FIELDS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want you can leave it blank and you will get back all the fields of the table.&lt;/P&gt;&lt;P&gt;The other table that you need to fill is called OPTIONS.  This is where you must build your where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I beleive that you can only read one table at a time using this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg Kern&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 15:50:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068771#M1177737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T15:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get some table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068772#M1177738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you mean by one table? like MAKT table but many rows right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont have any fields or options table..&lt;/P&gt;&lt;P&gt;I have to create new indexes of rfc_tables and give them FIELDS name? like I did with exporting(which im not sure is the right way)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 15:55:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068772#M1177738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T15:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get some table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068773#M1177739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Julien,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, one table many rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does the variable/structure 'tables' look like from your side?&lt;/P&gt;&lt;P&gt;I do not know how you defined exporting but you may need to do something similar for tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Greg Kern&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 16:16:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068773#M1177739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T16:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get some table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068774#M1177740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know the two fields i need they are MATNR and MAKTX but I dont know the max size of them &lt;/P&gt;&lt;P&gt;in Options tables I created how do I put where clause? I do ItAppLine(tablehandler) &lt;/P&gt;&lt;P&gt;then write to this like something like MATNR = 'EU-0339B'??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 16:52:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068774#M1177740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T16:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get some table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068775#M1177741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello  Julien,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MATNR is defined as an 18 character string&lt;/P&gt;&lt;P&gt;MAKTX is defined as a 40 character string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry but I cannot help with the where clause. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christine's example shows how to pass the where clause in ABAP.  That's about all I know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg Kern&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 17:24:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068775#M1177741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T17:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get some table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068776#M1177742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Greg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now im able to reproduce the same result each time.&lt;/P&gt;&lt;P&gt;		tables[0].name = "OPTIONS";&lt;/P&gt;&lt;P&gt;		tables[0].nlen = 7;&lt;/P&gt;&lt;P&gt;		tables[0].type = TYPC;&lt;/P&gt;&lt;P&gt;		tables[0].leng = 100;&lt;/P&gt;&lt;P&gt;		tables[0].itmode   = RFC_ITMODE_BYREFERENCE;&lt;/P&gt;&lt;P&gt;		tables[0].ithandle = ItCreate("OPTIONS", 100, 0, 0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		tables[1].name = "FIELDS";&lt;/P&gt;&lt;P&gt;		tables[1].nlen = 6;&lt;/P&gt;&lt;P&gt;		tables[1].type = TYPC;&lt;/P&gt;&lt;P&gt;		tables[1].leng = 100;&lt;/P&gt;&lt;P&gt;		tables[1].itmode   = RFC_ITMODE_BYREFERENCE;&lt;/P&gt;&lt;P&gt;		tables[1].ithandle = ItCreate("FIELDS", 100, 0, 0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		tables[2].name = "DATA";&lt;/P&gt;&lt;P&gt;		tables[2].nlen = 4;&lt;/P&gt;&lt;P&gt;		tables[2].type = TYPC;&lt;/P&gt;&lt;P&gt;		tables[2].leng = 58;&lt;/P&gt;&lt;P&gt;		tables[2].itmode   = RFC_ITMODE_BYREFERENCE;&lt;/P&gt;&lt;P&gt;		tables[2].ithandle = ItCreate("DATA", 10000, 0, 0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		exporting[0].name = "QUERY_TABLE";&lt;/P&gt;&lt;P&gt;		exporting[0].nlen = strlen("QUERY_TABLE");&lt;/P&gt;&lt;P&gt;		exporting[0].addr = "MAKT";&lt;/P&gt;&lt;P&gt;		exporting[0].leng = strlen("MAKT");&lt;/P&gt;&lt;P&gt;		exporting[0].type = RFCTYPE_CHAR;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		exporting[1].name = "DELIMITER";&lt;/P&gt;&lt;P&gt;		exporting[1].nlen = strlen("DELIMITER");&lt;/P&gt;&lt;P&gt;		exporting[1].addr = " ";&lt;/P&gt;&lt;P&gt;		exporting[1].leng = strlen(" ");&lt;/P&gt;&lt;P&gt;		exporting[1].type = RFCTYPE_CHAR;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		exporting[2].name = "NO_DATA";&lt;/P&gt;&lt;P&gt;		exporting[2].nlen = strlen("NO_DATA");&lt;/P&gt;&lt;P&gt;		exporting[2].addr = " ";&lt;/P&gt;&lt;P&gt;		exporting[2].leng = strlen(" ");&lt;/P&gt;&lt;P&gt;		exporting[2].type = RFCTYPE_CHAR;&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;		exporting[3].name = "ROWSKIPS";&lt;/P&gt;&lt;P&gt;		exporting[3].nlen = strlen("ROWSKIPS");&lt;/P&gt;&lt;P&gt;		exporting[3].addr = " ";&lt;/P&gt;&lt;P&gt;		exporting[3].leng = strlen(" ");&lt;/P&gt;&lt;P&gt;		exporting[3].type = RFCTYPE_CHAR;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		exporting[4].name = "ROWCOUNT";&lt;/P&gt;&lt;P&gt;		exporting[4].nlen = strlen("ROWCOUNT");&lt;/P&gt;&lt;P&gt;		exporting[4].addr = " ";&lt;/P&gt;&lt;P&gt;		exporting[4].leng = strlen(" ");&lt;/P&gt;&lt;P&gt;		exporting[4].type = RFCTYPE_CHAR;&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;		exporting[5].name = NULL;&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		RfcCallReceive(RFC_Handle, "RFC_READ_TABLE", exporting, importing, tables, &amp;amp;ex);&lt;/P&gt;&lt;P&gt;		if(rfc_rc != RFC_OK)&lt;/P&gt;&lt;P&gt;		&lt;SPAN __jive_macro_name="MessageBox"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;		RFC_ERROR_INFO error_info;&lt;/P&gt;&lt;P&gt;		char * ptr;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		RfcLastError(&amp;amp;error_info);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with this I get System Failure each time in error_info&lt;/P&gt;&lt;P&gt;and the message say something about fields lenght is invalid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got the table and a handle created with 100 of size&lt;/P&gt;&lt;P&gt;but no row created (same as options)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 19:26:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068776#M1177742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T19:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get some table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068777#M1177743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Incorrect field length for 'Remote Function Call'.&lt;/P&gt;&lt;P&gt;this is the message I get when i call it&lt;/P&gt;&lt;P&gt;what is the correct field lenght? I dont want to specify any fields so I get them all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 20:48:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068777#M1177743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T20:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get some table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068778#M1177744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fields has the following structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELDNAME	CHAR	30	0	Field Name&lt;/P&gt;&lt;P&gt;OFFSET	                NUMC	6	0	Offset of a field&lt;/P&gt;&lt;P&gt;LENGTH		NUMC	6	0	Length (No. of Characters)&lt;/P&gt;&lt;P&gt;TYPE		CHAR	1	0	ABAP data type (C,D,N,...)&lt;/P&gt;&lt;P&gt;FIELDTEXT	CHAR	60	0	Short Description of Repository Objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Options:  ( must be filled with the where cllause)&lt;/P&gt;&lt;P&gt;TEXT		CHAR	72	0	Text line of a message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:  ( the returned data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA     	                CHAR	512	0	Character field length 512&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Greg Kern&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 21:09:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068778#M1177744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T21:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get some table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068779#M1177745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;great&lt;/P&gt;&lt;P&gt;must I specify the offset and length of each field i want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you know how you define a NUMC type variable in the code(48bit?)? with this I could make a fields struct for each field I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And thanks again each time im more close to something functional &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 22:33:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068779#M1177745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T22:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get some table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068780#M1177746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't think you need to specify offset. When I test from within an SAP system&lt;/P&gt;&lt;P&gt;I just leave blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure about delcaring NUMC externally.   NUMC is really just a character string that can&lt;/P&gt;&lt;P&gt;only contain numerics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Greg Kern&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 23:35:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068780#M1177746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T23:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get some table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068781#M1177747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did I understand the following correctly:&lt;/P&gt;&lt;P&gt;For the parameter transfer tables are used, especial for the sql statement. If I let it free, will RFC_READ_TABLE do a "select *" on the chosen table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During my searches I found some hints, that RFC_READ_TABLE is not compatible with unicode C requests, is this correct?&lt;/P&gt;&lt;P&gt;Is there any other, maybe easier way, to read simple table data by RFC C programm?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 08:38:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068781#M1177747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-11T08:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get some table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068782#M1177748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Julien.  I'm trying to do something fairly similar i.e. connect to a SAP system with C+&lt;EM&gt;.  I have more knowledge on the SAP side than with C&lt;/EM&gt;+.  If you're still struggling with this then let me know and I'm sure we can work a solution out together. John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 21:03:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-get-some-table-data/m-p/5068782#M1177748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-10T21:03:41Z</dc:date>
    </item>
  </channel>
</rss>

