RFC_READ_TABLE

Hello,
I´m quite new in xMII.
I tried the function module with a table.
I set an OPTION and 2 FIELDS. In SAP it worked. I get an entry for DATA/WA.
When i try this in MII and put a tracer to the response of the JCO/RFC_READ_TABLE/TABLES/DATA/item/WA there is no return!
For Request-Input I use the tablename in QUERY_TABLE and a xml-document with two rows for the FIELDS. Is this right? How can I tell the function module to use 2 entries in FIELDS (e.g. ARBPL and SUBSYS).
Thanks,
Martin

Hi!
The Execute Function is checked and i tried it in SAP and it worked. There is exact one output.
I just used the example from other threads which worked.
Tracer_0.Message = SAPJCOInterface_0.Response
But the result is this:
[INFO ]: <?xml version="1.0" encoding="UTF-8"?><RFC_READ_TABLE>
<INPUT><DELIMITER>S</DELIMITER><NO_DATA>S</NO_DATA><QUERY_TABLE>AFRU</QUERY_TABLE><ROWCOUNT>0</ROWCOUNT><ROWSKIPS>0</ROWSKIPS></INPUT>
<TABLES><DATA><item><WA/></item></DATA><FIELDS><item><FIELDNAME>AUFNR</FIELDNAME><OFFSET>000000</OFFSET><LENGTH>000012</LENGTH><TYPE>C</TYPE><FIELDTEXT>Order Number</FIELDTEXT></item><item><FIELDNAME>VORNR</FIELDNAME><OFFSET>000013</OFFSET><LENGTH>000004</LENGTH><TYPE>C</TYPE><FIELDTEXT>Operation/Activity Number</FIELDTEXT></item></FIELDS><OPTIONS><item><TEXT>RUECK EQ '0000181547'</TEXT></item></OPTIONS></TABLES>
</RFC_READ_TABLE>
Still no entry in the WA section.

Similar Messages

  • BRF+ - Help Needed for Procedure Call for FM RFC_READ_TABLE

    Dear Guru,
    This is meant to be a prototype.  Scenario is this based on a Centralize BRF+ Services with Satalite Systems.  In this context lets assume two SAP Box. Box A (SAP ERP), Box B (BRF+ Server 7.02 NW SP6)
    Busienss Rule is simple - Expose Customer Validation Service in BRF+ with Input of One Field (KUNNR) and Output of BOOLEAN (Yes, No).
    Suggested Function Module - RFC_READ_TABLE with Destination in Box A(SAP ERP).
    RFC_READ_TABLE
    My question is:
    1. Is Procedure Call Expression the right object to use for RFC?
    2. Where can I specify the RFC Destination?
    3. If not, should I create a New Function Module Wrapper that meant to call RFC_READ_TABLE with Destination?
    4. Procedure Call Expression WebDynpro,  I am not able to specify "Assigned Value" for Parameter "OPTIONS" which is a table.
    I am able to specify other Parameters such as "QUERY_TABLE" and "OPTIONS"
    Thanks
    Leonard
    Edited by: Leonard Tan on Mar 19, 2011 6:26 AM

    I would create a local wrapper FM on BOX B to call into Box A for the table read. Maybe this would also allow to buffer the data locally in case it has to be read multiple times.
    The procedure call as of today does not allow to do remote calls. Therefore you have no option to specify an RFC destination.
    For the use of tables maybe create an error message. I could not follow your instructions.
    Also consider to implement SP7 as soon as it is available. We did quite some corrections.

  • Call RFC_READ_TABLE via VBA.

    I try to get data from table LFBK (bank data for vendor).
    Here is my VBA code to get data, it's not works.  Anyone can suggest me what's wrong?  Thank you very much.
    Anek
    Public Sub RFC_Read_Table()
        Dim Functions As Object
        Dim RfcCallTransaction As Object
        Dim Messages As Object
        Dim BdcTable As Object
        Dim tblOptions
        Dim tblData
        Dim tblFields
        Dim strExport1
        Dim strExport2
        Dim filOutput
        Dim intRow As Integer
        Set Functions = CreateObject("SAP.Functions")
        Functions.Connection.System = "PDS"
        Functions.Connection.client = "240"
        Functions.Connection.user = "S0110028"
        Functions.Connection.Password = "0603cacc"
        Functions.Connection.Language = "EN"
        If Functions.Connection.Logon(0, False) <> True Then
            Exit Sub
        End If
           Set RfcCallTransaction = Functions.Add("RFC_READ_TABLE")
           Set strExport1 = RfcCallTransaction.exports("QUERY_TABLE")
           Set strExport2 = RfcCallTransaction.exports("DELIMITER")
           Set tblOptions = RfcCallTransaction.Tables("OPTIONS") '
           Set tblData = RfcCallTransaction.Tables("DATA") '
           Set tblFields = RfcCallTransaction.Tables("FIELDS") '
           strExport1.Value = "LFBK"
           strExport2.Value = ";"
           tblOptions.AppendRow
           tblOptions(1, "TEXT") = "LIFNR EQ '41'" ' Suppose I want to bank data from vendor number 41.
           tblFields.AppendRow
           tblFields(1, "FIELDNAME") = "LIFNR"
           tblFields.AppendRow
           tblFields(2, "FIELDNAME") = "BANKS"
           tblFields.AppendRow
           tblFields(3, "FIELDNAME") = "BANKL"
           tblFields.AppendRow
           tblFields(4, "FIELDNAME") = "BANKN"
           tblFields.AppendRow
           tblFields(5, "FIELDNAME") = "BUTYP"
           If RfcCallTransaction.Call = True Then
               If tblData.RowCount > 0 Then
                    Dim DatTxt, OutputTxt As String
                    OutputTxt = "Vendor, Bank Country, Bank Key, Book No., Run No."
                    DatTxt = "c:\bankdata.txt"
                    Open DatTxt For Output As #1
                        Print #1, OutputTxt
                   For intRow = 1 To tblData.RowCount
                        OutputTxt = tblData(intRow, "WA")
                        Print #1, OutputTxt
                   Next
                    Close #1
               Else
                    MsgBox "No records returned"
               End If
           Else
                MsgBox "Error"
           End If
              Set filOutput = Nothing
            Functions.Connection.Logoff
    End Sub

    Hi Raj,
    I've looking a long time on the web, i would like some direction on this,
    Im facing excatly the same trouble above, just a little different,  i need to place several numbers on the list, when i type more than 2  number on: tblOptions(1, "TEXT") = "LIFNR IN ('0000000041','0000000060')"   , it fires an error "system failure".
    I need to pull out about 1k data numbers and i wrote a piece of code to add several numbers in a string variable:
    Dim material as String
    dim myMaterialNumber(10000) as String
    i = 1
    j = 0
    Do While Worksheets("Sheet1").Range("M2").Cells(i, 1) <> ""
        material = Worksheets("Sheet1").Range("M2").Cells(i, 1)
        j = j + 1
        If Len(material) = 10 Then
            myMaterialNumber(j) = "00000000" & Replace(material, "-", "")
        Else
            myMaterialNumber(j) = "00000" & Replace(material, "-", "")
        End If
         If j = 1 Then
            eljuntos = "'" & myMaterialNumber(j)
         Else
            eljuntos = eljuntos & "','" & myMaterialNumber(j)
         End If
    i = i + 1
    Loop
    eljuntos = eljuntos & "'"
    But when i try to use the sentence IN(, it appears a "system failure error", and doing it one by one takes too long.
    objOptTab.Rows.Add
    objOptTab(objOptTab.RowCount, "TEXT") = "MATNR IN (" & eljuntos & ") and "
    objOptTab.Rows.Add
    objOptTab(objOptTab.RowCount, "TEXT") = "WERKS EQ '7034'"
    This passes with no error,
    But when the function is called:
    If objRfcFunc.call = False Then
          MsgBox objRfcFunc.Exception
    End If
    It fires a "System Failure" Error.
    I've found that the sentence OR could be helpful but i haven't found how this sentece works.
    Please help Raj!
    Many thanks in advance!

  • RFC Lookup using RFC_READ_TABLE

    Hi,
    I'm doing RFC lookup using RFC_READ_TABLE to read data from table "LIPS". I am getting the following error with the XML signature
    DVEBMGS01/j2ee/cluster/server0/./temp/classpath_resolver/Mapb16b89b090ec11debb52001e0b450820/source/com/sap/xi/tf/_MM_GetCompanyDetails_.java:72: ';' expected String rfcXML = "<?xml version="1.0" encoding="UTF-8"?><ns0:RFC_READ_TABLE xmlns:ns0="urn:sap-com:document:sap:rfc:functions"><QUERY_TABLE>"+ DBTABLE + "</QUERY_TABLE><DATA></DATA><FIELDS><item><FIELDNAME>"+ FIELDS "</FIELDNAME></item></FIELDS><OPTIONS><item><TEXT>" WHERE_CLAUSE +"</TEXT></item></OPTIONS></ns0:RFC_READ_TABLE>" ; ^ 1 error.
    Please let me know how this works
    Regards,
    Ravi

    Hi Ravi,
    This seems to me like a syntax error. Fix that and it should work fine.
    Regards,
    Neetesh

  • RFC_READ_TABLE dump while reading T006- Urgent

    Hi,
    I am using fm RFC_READ_TABLE ( cloned copy) to get values from another client. But while accessing T006 table it is giving following dump.
    Error Analysis
    In the current program "SAPLSDTX", an ASSIGN statement is supposed to         
    assign a field or structure to a field symbol (using either                   
    FIELD-SYMBOLS ... STRUCTURE s ... or ASSIGN...CASTING....). When              
    converting the base entry of the field symbol "<WA>" (number in base table:   
    33836), it was found that the structure s requested a memory alignment of    
    8.                                                                           
    The calculated offset within the source structure causes an invalid           
    memory alignment. (The offset must be exactly divisible by 8).                
    by 8.)                                                                               
    Can anybody give a info how to correct this. I am using the clone copy of RFC_READ_TABLE fm.
    Thanks
    aRs
    null

    chk this  OSS NOTE
    Symptom
    Function Module does not work in Unicode systems.
    Reason and Prerequisites
    Change of dynamic assign in new versions and row size limited
    Solution
    Please Note warning:
    This function module is only for internal purpose !
    Using this function module is at customers own risk and customer is responsible for adjusting this code to his system.
    No warrenty is given on this Functionmodule RFC_READ_TABLE.
    Symptons:
    Due to Unicode compatibility and no support on the function module RFC_READ_TABLE
    the standard RFC_READ_TABLE does not function any more and causes short dumps.
    Included in this note there is a program to repair the
    function RFC_READ_TABLE and add additional functionality.
    What is changed: the row size is now 4000 positions and
    will fit for most of the tables.
    Additional functionality:
         1   Reading and selecting from the tables is now
            possible with the DISTICT parameter, which will
             prevent double entries.
             If the flag is crossed the SELECT DISTICT is used for the
            read on the database.
         2   Possible to select FIXED row size or compressed
            If the flag is crossed no compressing is used and fields are
             written in full length.
        3   All fields are character fields no other formats are retrieved.
    Implementation:
    There are two ways to implement this extra functionality:
    - 1 Changing of the original function module RFC_READ_TABLE.
        Retrieve a change key from the OSS system to be able
        to change the function module !
    - 2 Implementing the changes into a customer copy of the
        RFC_READ_TABLE function.
         How to make a copy of a the function module ?
         1 First create a function group in the customer name range:
           (X or Y) example YSDTX (SDTX = original from RFC_READ_TABLE).
           SE37 --> Goto --> Function groups --> Create group
          Name function group (example YSDTX) and Short text are
          to be supplied.
           Save and activate the function group (depending on version
           the main program will be activated separate, in the example
           SE38  program SAPLYSDTX --> function activate.
        2 Copy function module RFC_READ_TABLE to YRFC_READ_TABLE.
          SE37 --> function copy
           Supply: From function module = RFC_READ_TABLE
                  To   function module = YRFC_READ_TABLE
                  Function group = YSDTX
          Function Copy and activate the function module.
    For both the methods the rest of the change is the same !
    Implementing and explanation:
    Step 1. Create a structure in the Data Dictionary
            SE11 --> name YTAB4000 --> function create
            Apply a text and field:
            Field --> WA component type CHAR4000
            Activate the structure.
    Step 2. Make sure the setting of your editor are not flagged to 72 pos.
            SE38 --> Utilities --> settings --> Tab editor
                    Don't flag line length 72
    Step 3. SE37 --> supply the function module name.
            Go into change mode for the function modules (SE37) **
            Function --> change and go to the Tab Import (parameters)
            Add 2 new parameters:
            Name: DISTINCT  like SONV-FLAG default SPACE
                  FIX      like SONV-FLAG default 'X'
            Flag for both parameters: Optional and Pass Value.
    Step 4. Go into the tab Tables
            Change into the parameter name DATA the
            associated type into the new created structure YTAB4000.
    Step 5. Go into the tab Source Code.
    Step 6. Check that the top of the source the newly added
            parameters are displayed !
    Step 7. Delete the existing source.
    Step 8. Insert the source from this note (see below) into your program.
    Step 9. Save and activate your function module.
    When asked, get registration key from SAP

  • Problems w. RFC_READ_TABLE and TABLE_ENTRIES_GET_VIA_RFC  - 4.6c to 4.7

    Hello,
    i've used, although it's not recommended, RFC_READ_TABLE successfully with 4.6c to read various QM tables, like 'QALS', 'QAVE' etc.
    Now the company migrated from 4.6c to 4.7 and my modules stopped working partially.
    When trying to read 'QALS', the function now throws back the following error: "Message:Error in ASSIGN-statement in program SAPLSDTX". While some other tables work flawlessy (like 'QAVE'). I'm pretty sure it's something related to floating point fields or some unicode transition, though i don't know any solution yet.
    I tried to use TABLE_ENTRIES_GET_VIA_RFC instead, but this function throws another quite strange error, after the call: "Message:The types of the Operators dbtab and itab are not convertable into each other". Again, only with some tables.
    Can anyone point me into the correct direction? Any help is very appreciated. By the way: writing own FMs is NOT an option.
    Regards
    Julian

    Resolved myself

  • Alternative for RFC_READ_TABLE FM

    Hello All,
    SAP has asked not to use RFC_READ_TABLE function module (not to be used by SAPu2019s customers) directly or indirectly. Can anybody please suggest me what will be the alternative for this FM. Or what is the replacement for RFC_READ_TABLE FM?
    Thanks in Advance.

    Hi,
    you can use  RFC_GET_TABLE_ENTRIES  for the same

  • How to specify PACKAGE SIZE for to RFC_READ_TABLE from PyRFC?

    I'm trying to use PyRFC to extract large tables via RFC_READ_TABLE (due to an uncooperative/unsupportive basis team).
    I know that RFC_READ_TABLE supports calling it with PACKAGE SIZE since ERPConnect does it by default.
    In Python for Basis (Part 1), I learned how to specify an Open SQL where clause using the OPTIONS:
    result = connector.call('RFC_READ_TABLE',
                           QUERY_TABLE=tablename,
                           DELIMITER=delimiter,
                           OPTIONS = [{'TEXT':where_clause}])
    Is there a way, and how to specify PACKAGE SIZE in this case?
    Thanks

    Hi,
    the package size works, but you need to call the function module multiple times in a loop. Here's an excerpt of the attached script:
    recordcounter = 1          #needs to be >0 to get the while loop going
    iteration = 0              #the number of times the function module got called
    while recordcounter > 0:  #as long as the function module calll returns rows...
        tempresult = self.call('RFC_READ_TABLE',             
                                ROWSKIPS=iteration*fetchsize,  #defines the number of rows to skip
                                **parameters)
        iteration=iteration+1  #increase the iteration
        data = tempresult['DATA']    #assign the returned rows to a variable
        if len(data) > 0:      #have there been any rows?
            for row in data:      #Do something with them
        else:
            recordcounter=0    #set recordcounter to 0 to end the while loop.
    The script is far away from being perfect. It doesn't deal with RAW fields and the data types it returns are all strings. It does what I needed it to do but it may not be sufficient for what you may be trying to achieve.
    Best regards
    Lars

  • Regarding Remote Function Module RFC_READ_TABLE

    HI,
    Can any one please let me know that whether Remote function Module RFC_READ_TABLE work in uni code system.
    In notes 382318 stated some problem regarding the Long run structure and security problem.
    So please let me know how to overcome this problem.
    Please reply. it is urgent.
    Thanks in advance.
    Best Regds,
    zubera

    Go to SAP Service Marketplace (service.sap.com) and SAP Notes Search. Put in the note number 758278 and hit display.
    However to be able to access service marketplace you need a s-user registered for the company you are working for. Please contact your basis team to find out what user is available to you.
    Regards,
    Michael

  • Problem while working with function module RFC_READ_TABLE

    Dear Experts,
                     I am facing a problem while working on the FM RFC_READ_TABLE, in which there is a tables parameter options which is of table type, to which I am passing the condition of selection.  In the debugg mode I found the select quiry in the source code of function module is not executing the condition passed in the options parameter.
    My actual requirement is to fetch all the custom programs in a remote server, the code I have written is below.
    TYPES :
             BEGIN OF ty_tadir,
               pgmid  TYPE pgmid,
               object TYPE  trobjtype,
               obj_name  TYPE  sobj_name,
             END OF ty_tadir.
    DATA : it_tadir TYPE STANDARD TABLE OF ty_tadir,
            wa_tadir TYPE ty_tadir.
      data: stmp_dokhl  like TAB512       occurs 100000 with header line.
      data: options1    like rfc_db_opt occurs     10 with header line.
    data: wa_options1 like line of options1.
      data: nametab1    like rfc_db_fld  occurs     10 with header line.
    START-OF-SELECTION.
    DATA : W_VALUE(5)  TYPE C,
           W_VALUE1(20) TYPE C.
    W_VALUE1 =  'OBJ_NAME like'.
    W_VALUE = 'z*'.
    CONCATENATE 'OBJ_NAME LIKE' ' ''' W_VALUE '''' INTO OPTIONS1-TEXT.
    CONCATENATE W_VALUE1 W_VALUE INTO wa_OPTIONS1-TEXT SEPARATED BY SPACE.
    APPEND wa_OPTIONS1 to OPTIONS1.
    CLEAR wa_OPTIONS1.
        call function 'RFC_READ_TABLE'
             destination                'zard'
             exporting
                  query_table          = 'TADIR' "'ZBANK_GUARANTEE'
             tables
                  options              = options1
                  fields               = nametab1
                  data                 = stmp_dokhl
             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 .
    Please give me some inputs on this,
    With warm regards,
    Murthy.
    Edited by: pr murthy on Sep 18, 2008 1:49 PM
    Edited by: pr murthy on Sep 18, 2008 2:14 PM

    Hi
    I have tried this and with small change this is working fine.
    TYPES :
    BEGIN OF ty_tadir,
    pgmid TYPE pgmid,
    object TYPE trobjtype,
    obj_name TYPE sobj_name,
    END OF ty_tadir.
    DATA : it_tadir TYPE STANDARD TABLE OF ty_tadir,
    wa_tadir TYPE ty_tadir.
    data: stmp_dokhl like TAB512 occurs 100000 with header line.
    data: options1 like rfc_db_opt occurs 10 with header line.
    data: wa_options1 like line of options1.
    data: nametab1 like rfc_db_fld occurs 10 with header line.
    START-OF-SELECTION.
    DATA : W_VALUE(5) TYPE C,
    W_VALUE1(20) TYPE C.
    W_VALUE1 = 'OBJ_NAME LIKE ''Z%'''.
    wa_options1-text = w_value1.
    APPEND wa_OPTIONS1 to OPTIONS1.
    CLEAR wa_OPTIONS1.
    call function 'RFC_READ_TABLE'
    *destination 'zard'
    exporting
    query_table = 'TADIR' "'ZBANK_GUARANTEE'
    tables
    options = options1
    fields = nametab1
    data = stmp_dokhl
    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 .

  • How to fetch all fields with RFC_READ_TABLE ?

    I can use RFC_READ_TABLE to fetch specified fields with the TABLE parameter "FIELDS". If I want to fetch all fields of the table, I must specified each field name. However, I can not use "*" in FIELDS, and I can not left the table empty (Error will be generated).  Is there other method to fetch all fields ?
    language: VB.NET
    tblT = New TAB512Table
            tblTField = New RFC_DB_FLDTable
            tblTOption = New RFC_DB_OPTTable
            Dim stuTFieldRow As New RFC_DB_FLD
            Dim stuTOptionRow As New RFC_DB_OPT
            Sapproxy.Rfc_Read_Table("", "", strTN, 0, 0, tblT, tblTField, tblTOption)

    Hi:
    Do like this
    CALL FUNCTION 'RFC_READ_TABLE'
    EXPORTING
    query_table = Table
    delimiter = ''
    no_data = ''
    rowskips = 0
    rowcount = 0
    TABLES
    options = i_options
    fields = i_fields
    data = t_data.
    Regards
    Shashi

  • Problme in Using RFC_READ_TABLE

    Hello
      I am calling FM RFC_READ_TABLE.In that in the otions structure I need to pass the date range. So I am passing the date reange like AS4DATE >= '01/01/2008' and AS4DATE <= '13/01/2008'.But its not returning any values although the table E070 contain values for these date ranges.If I only pass one date (i.e.AS4DATE >= '01/01/2008'  then it gives the results properly.
    Kindly suggest.
    Regards
    Davinder Singh

    Hi Martin
       Its working fine when I changed the date format.But if I give the date range along with another selecton criteria it doenot give any result for e.g. in E070 table I have to restrict the entries by TRKORR and AS4DATE(Date). So I have given in the options like this:
    TRKORR EQ 'GLDK967876' AND
    AS4DATE >= 20080101 AND
    AS4DATE <= 20080113.
    Now the above code doenot work.
    If I write like this beow then it works.
    TRKORR EQ 'GLDK967876' AND
    AS4DATE >= 20080101.
    Could you please advise.
    Regards
    Davinder Singh

  • C++ Runtime error on Rfc_Read_Table

    Hi,
    I got C++ Runtime Error on RFC_Read_Table. The following is the error message:
    "Program:
    This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information."
    The connection was opened fine but I got this error when I am trying to read the table. I would appreciate if anyone can tell me how I can solve this problem.
    Thank you in advance,
    Sunny

    >Do you think regenerating the code for Rfc_Read_Table using the new system will solve this problem?
    Yes. Most likely you generated the proxy on a non-Unicode system and the ERP 2004 that causes the crash is Unicode.
    You can easily see this when you open the generated proxy code and look into the RfcParameter and RfcField custom attributes. If they don't contain Length2 and Offeset2 parameters, but only Length and Offset, this error will happen on Unicode system.
    Regenerating the proxy with the new system makes the proxy work with both Unicode and non-Unicode system and should work the same with older system. If you want to be sure, Windiff the new proxies with the old ones. They should be identical except the Lenght2 and Offset2 parameters.

  • Querying CGPL_HIERARCHY using RFC_READ_TABLE

    Hi,
    Does anyone has any idea how this could be done?
    It seems CGPL_HIERARCHY.GUID is a RAW data type and when using RFC_READ_TABLE and providing a where clause - GUID EQ '5D29E4460A487750' (as an example) doesn't yield any result , when the fact is that a record with the mentioned GUID does exist in the database.
    I am sure it has to do something with GUID being a RAW data type.
    Would appreciate any thoughts on this.
    Regards
    Udayan

    With the domain (CGPL_PROJECT_GUID) of the field GUID  convertion exit (CGPLP) is attached
    CONVERSION_EXIT_CGPLP_INPUT
    CONVERSION_EXIT_CGPLP_OUTPUT
    So I think u need to convert the GUID to its internal form using
    CONVERSION_EXIT_CGPLP_INPUT. Then u can use it in the where clause.

  • Question about the function module (RFC_READ_TABLE)

    Dear everyone
    Could I ask you a question about the function module (RFC_READ_TABLE)?
    I was asked if it's possible to create a report which compares the data between different SAP systems (both production systems).
    Now, the easiest way would be to use the function module (RFC_READ_TABLE) within a SAP infoset query (SQ01 type query).
    But I heard the rumor that using the function module (RFC_READ_TABLE) is not advisable due to the security reason.
    However, I am not exactly sure what sort of security problems this function module can possibly have...
    Would you help me on this?
    I also would like to know if using "remote enabled module" type function module can always overcome this possible security issue.
    Or, are there any points that I need to be careful about even when I use "remote enabled module" function module?
    Thank you very much in advance.
    Takashi

    Dear Fred-san
    Thank you very much for your support on this.
    But, may I double check about what you mentioned above?
    So, what you were mentioning was that if some user executes the query with
    the function module (RFC_READ_TABLE), under the following conditions, he can access to
    the HR data even when he does not have the authorizations for HR transactions?
    <Conditions>
    1. the user has the authorization for HR database tables themselves
    2. RFC_READ_TABLE is called to retrieve the data from HR database
    <example>
    Data: LF_HR_TABLE like  DD02L-TABNAME value 'PA0000'.
    CALL FUNCTION 'RFC_READ_TABLE'
       EXPORTING
        query_table                = LF_HR_TABLE
      TABLES
       OPTIONS                    =
       fields                     =
       data                       =    .
    But then, as long as we call this function module for a non-critical tables such as
    VBAP (sales order) or EKKO (purchase order) within our query, it wouldn't seem to be
    so security risk to use RFC_READ_TABLE...
    Besides, each query (infoset query) has got the concept of user groups, which limits
    the access to the queries within the user group.
    ※If someone does not belong to the user group, he cannot execute the queries within that
       user group, etc
    So, my feeling is that even infoset queries does have authorization concept...
    Would you give me your thought on this?
    I also thank you for your information for SCU0.
    That is an interesting transaction
    Kind regards,
    Takashi

Maybe you are looking for