SAP RFC SDK 7.10 Compilation Issues

Hello ,
We have a Pro*C program that is using the RFC SDK 7.10
When we are compiling our program with Pro*C Compiler in HP UX 11iv2 os we are getting the following errors:
SAP_U16_PROTOTYPE_STDC(mkstemp)..1 PCC-S-02201, Encountered the symbol "mkstemp" when expecting one of the following: Error at line 1895, column 1 in file /home/psoni/rfcsdk-710/orgseclib/sapuc.h  SAP_U16_PROTOTYPE_UO(dirname) 1 
PCC-S-02201, Encountered the symbol "SAP_U16_PROTOTYPE_UO_HLP" when expecting on
e of the following: ; , = ( [ * ? | & < > + - / % . ^ *= /= %= += -= <<= >>= &&=
   ||= ^= | & == != <= >= << >> ++ -- ->
The symbol ";" was substituted for "SAP_U16_PROTOTYPE_UO_HLP" to continue.
Syntax error at line 1901, column 1, file /home/psoni/rfcsdk-710/orgseclib/sapuc.h:
Error at line 1901, column 1 in file /home/psoni/rfcsdk-710/orgseclib/sapuc.h
SAP_U16_PROTOTYPE(ecvt) 1
PCC-S-02201, Encountered the symbol "extern" when expecting one of the following
:   ; , = ( [ * ? | & < > + - / % . ^ *= /= %= += -= <<= >>= &&=
   ||= ^= | & == != <= >= << >> ++ -- ->
I had checked the files sapuc.h and sapucx.h are correctly included in my program.
Also I checked for the errors : that the reference of some constants like 
SAP_U16_PROTOTYPE is present is sapuc.h - However I am not able to
identify the cause of compilation issues.
Please can anyone guide me - or give any hints as to how this compilation issues can be resolved.
On sap rfc sdk version 6.20 with HPUnix 11iV1  we did not face such problems. Post that release  we have tried all libraries including 6.40  and all of them are giving the above errors.
Thanks for the help.
Regards,
Shivani

This compiler error looks really strange.
Without your sources (of the affected file) and the full command line it's impossible to suggest something.
Markus

Similar Messages

  • SAP RFC SDK 7.1 Unicode - Supported OS

    Hi,
    Where can I find info about the list of Supported OS for sap rfc sdk.
    Specifically, I am looking for info about RfcSdk support for Windows 7 and WIndows 2008 R2.
    Any help would be highly appreciated.
    Thanks,
    Jeevitha

    Hi Jeevitha,
    please have a look at the rfc library guide:
    http://service.sap.com/~form/sapnet?_SHORTKEY=01200252310000047816&_OBJECT=011000358700001892452002E
    There you can find on page 2:
    RFCSDK is available on all SAP supported platforms.
    I am not sure if the mentioned OS are already supported - in order to get that info please have a look at
    http://service.sap.com/pam
    Best regards,
    Nils Buerckel
    SAP AG

  • Unable to extract SAP RFC SDK 6.x/7.x

    Hi,
    I downloaded SAP RFC SDK 6.2,6.4,7 and 7.1 and tried to extract it using SAPCAR.Unfortunately I can't extract it. SAPCAR says: "error opening <filename>
    Using Windows XP, IIS 5.1
    Thanks in advance

    Hi,
    thanks for answering that quickly. Unfortunately, there's still the same error ;( Any suggestions?
    Edit: Here's a screenshot: http://img507.imageshack.us/my.php?image=3006nb4.png
    As far as I know, it should be possible to open the .sar file with winzip/winrar, right? If I'm trying to open the .sar file with winrar, an error pops up: "corrupted file...:"
    Thanks in advance,
    Martin
    Edited by: Martin Hornstein on Jun 30, 2008 1:57 PM
    Edited by: Martin Hornstein on Jun 30, 2008 1:59 PM

  • SAP RFC SDK - install help

    Hi,
    I'm trying to install saprfc for PHP <http://saprfc.sourceforge.net/>.
    I've downloaded the SDK file as a .SAR archive from <https://websmp206.sap-ag.de/SWDC>.  I understand that I need SAPCAR to decompress this file.
    I've downloaded the SAPCAR file appropriate to my 'NIX operating system.  However, the file is a ".EXE" Windows file which I cannot run or open with any utility.
    Is there something I'm missing when trying to download and install SAPCAR?
    Thanks,
    Rob

    you need to move the .SAR file and the SAPCAR.exe on the same folder (ie. x:\<name_of_the_folder> )
    then open a command prompt go to the folder you created  and type:
    SAPCAR -xvf <b><name of the .SAR file></b>
    This will uncompress the file and then you can move the contents to any other OS via telnet.
    Hope this help!
    Juan Reyes

  • RFC SDK support on solaris-intel?

    I have some questions about the “C”  SAP RFC SDK. I cannot seem to find a complete list of supported UNIX platforms.
    What is the current version of the “C” RFC SDK?
    Is it supported on the solaris intel platform?
    I notice that the dynamic version of the RFC library (rfc32.dll)  is installed with SAP Netweaver on Windows.  Is the equivalent dynamically loaded library (i.e. librfc.so) always included with a SAP installation on UNIX as well?  Does this mean that the static libraries provided in the RFC SDK are no longer required to build a client RFC application, since a client application can dynamically load the run-time library instead?

    We don't certify Solaris on NT.
              You can find this information on platform support page.
              -- Prasad
              Puneet Maini wrote:
              > Hi
              > Is Clustering comfiguration supported for this System Requirement?
              > :
              >
              > Processor: Intel
              > Operating system: Solaris 8
              >
              > Thanks & Regards
              > Puneet Maini
              

  • RFC SDK download

    I'm a newbie and purchased ABAP Objects book that has mini-basis system. Is there a way for me to get a copy of the RFC SDK so I can interface programs to my mini-basis system without having purchased a real system? I know there is a service marketplace but registering requires a customer number. 'Initial' is the customer number for a mini-basis system but the site won't accept that.

    Hello,
    you can get it via the SAP Service Marketplace (SMP). Please have a look at these links:
    SAP NetWeaver RFC SDK (SAP note 1025361):
    http://service.sap.com/swdc
    -> Download
    -> Support Packages and Patches
    -> Entry by Application Group
    -> Additional Components
    -> SAP NW RFC SDK
    -> SAP NW RFC SDK 7.10
    -> SAP NW RFC SDK 7.10
    SAP RFC SDK:
    http://service.sap.com/swdc
    -> Download
    -> Support Packages and Patches
    -> Entry by Application Group
    -> Additional Components
    -> SAP RFC SDK UNICODE
    Please reward points if helpful.
    Regards,
      Juergen

  • RFC SDK Functionality

    Currently I am investigating the feasibility of introducing a SAP coupling in our middleware product.
    We want to use the RFC SDK to achieve this.
    Therefore I have some questions about the functionality of this interface:
    1. Is it possible to retrieve data from a SAP system using this interface?
    2. Is it possible to retrieve 'all changes since a certain timestamp' using this interface?
    3. Is it possible to retrieve a list of all objects /tables in the system?
    4. Is it possible to perform a 'describe' of an object (what attributes does it have? what keys?).
    Thanks!
    Simon

    Hello,
    you can get it via the SAP Service Marketplace (SMP). Please have a look at these links:
    SAP NetWeaver RFC SDK (SAP note 1025361):
    http://service.sap.com/swdc
    -> Download
    -> Support Packages and Patches
    -> Entry by Application Group
    -> Additional Components
    -> SAP NW RFC SDK
    -> SAP NW RFC SDK 7.10
    -> SAP NW RFC SDK 7.10
    SAP RFC SDK:
    http://service.sap.com/swdc
    -> Download
    -> Support Packages and Patches
    -> Entry by Application Group
    -> Additional Components
    -> SAP RFC SDK UNICODE
    Please reward points if helpful.
    Regards,
      Juergen

  • SAP NW RFC SDK throws RFC_INVALID_PARAMETER when running sample programs?

    Hi there,
    I have just downloaded the latest version of the SAP NW RFC SDK (NWRFC_7-20004565.SAR) for Linux 64 bit from the Service Marketplace and am trying to run the demo programs.
    NOTE: I removed the "sapnwrfc.ini" from the current directory so that it would not be used at all..
    Also note that I can use the OLD RFC SDK and connect happily to the same SAP system I am trying to connect to below using the SAP NW RFC SDK....so I definetly have the cirrect settings.....
    So I compiled a CLIENT test program like:
    gcc -m64 -Wall -g ./sflightClient.c -I/home/lynton/Desktop/nwrfcsdk/include -L/home/lynton/Desktop/nwrfcsdk/lib -lsapnwrfc -lsapucum -o ./sflightClient
    And then passed in VALID paramters to an SAP system I have access to and I keep getting RFC_INVALID_PARAMETER even though I have not touched the code below in the sflightClient.c program
         loginParams[0].name = cU("ashost");     loginParams[0].value = argc > 1 ? argv[1] : cU("hostname");
         loginParams[1].name = cU("sysnr");     loginParams[1].value = argc > 2 ? argv[2] : cU("50");
         loginParams[2].name = cU("user");     loginParams[2].value = argc > 3 ? argv[3] : cU("user");
         loginParams[3].name = cU("passwd");     loginParams[3].value = argc > 4 ? argv[4] : cU("******");     
         loginParams[4].name = cU("client");     loginParams[4].value = argc > 5 ? argv[5] : cU("800");
         loginParams[5].name = cU("lang");     loginParams[5].value = cU("EN");
    I have also tried the stfcDeepTableServer.c program....and there I put in VALID settings....(and made the parameters UPPERCASE just like the settings in the "sapnwrfc.ini" file....
    serverCon[0].name = cU("PROGRAM_ID");     serverCon[0].value = cU("TEST_SERVER");
            serverCon[1].name = cU("GWHOST");     serverCon[1].value = cU("test.server");
         serverCon[2].name = cU("GWSERV");     serverCon[2].value = cU("sapgw00");
         repoCon[0].name = cU("CLIENT");     repoCon[0].value = cU("000");
         repoCon[1].name = cU("USER");          repoCon[1].value = cU("BCUSER");
         repoCon[2].name = cU("PASSWD");     repoCon[2].value = cU("minisap");
         repoCon[3].name = cU("LANG");          repoCon[3].value = cU("EN");
         repoCon[4].name = cU("ASHOST");     repoCon[4].value = cU("test.server");
         repoCon[5].name = cU("SYSNR");     repoCon[5].value = cU("00");
            repoCon[6].name = cU("TRACE");     repoCon[6].value = cU("3");
    I have the UUIDD daemon running perfectly on my box, but yet I keep getting this RFC_INVALID_PARAMETER regardless if I just test the SERVER REGISTRATION or a simple client connection.
    I am connecting to a NON unicode system but that would not make a difference.....
    Any idea what would cause this? Any help would be greatly appreciated ....
    Thanks
    Lynton

    I have similar problem. My simply program use 7.10_x64_nwrfcsdk for Linux x64 and 7.10_IA32_nwrfcsdk for 32bit Linux. I has been prepared subroutine to convert ASCII to UTF16LE and control 2-byte Unicode length.
    Program is working perfectly on x64 environment but didn't work on 32bit. I prepared log for it. In log converted to UTF16LE data are present as hex
    x64
    =================================================
    Open library libsapnwrfc.so done, handle 0x1ccac00
    ahost=10.146.0.53
    61 0 73 0 68 0 6F 0 73 0 74 0
    31 0 30 0 2E 0 31 0 34 0 36 0 2E 0 30 0 2E 0 35 0 33 0
    sysnr=01
    73 0 79 0 73 0 6E 0 72 0
    30 0 31 0
    client=500
    63 0 6C 0 69 0 65 0 6E 0 74 0 
    35 0 30 0 30 0
    user=dybikowskiz
    75 0 73 0 65 0 72 0
    64 0 79 0 62 0 69 0 6B 0 6F 0 77 0 73 0 6B 0 69 0 7A 0
    lang=EN
    6C 0 61 0 6E 0 67 0
    45 0 4E 0
    Start login to SAP
    Login to SAP done, handle 0x1d863b0
    ================================================
    x32
    ================================================
    Open library libsapnwrfc.so done, handle 0x900fb78
    ahost=10.146.0.53
    61 0 73 0 68 0 6F 0 73 0 74 0
    31 0 30 0 2E 0 31 0 34 0 36 0 2E 0 30 0 2E 0 35 0 33 0 
    sysnr=01
    73 0 79 0 73 0 6E 0 72 0
    30 0 31 0
    client=500
    63 0 6C 0 69 0 65 0 6E 0 74 0 
    35 0 30 0 30 0
    user=dybikowskiz
    75 0 73 0 65 0 72 0
    64 0 79 0 62 0 69 0 6B 0 6F 0 77 0 73 0 6B 0 69 0 7A 0
    lang=EN
    6C 0 61 0 6E 0 67 0
    45 0 4E 0
    Start login to SAP
    ----Error handling begin-----
    errorInfo.code: 20
    RFC_INVALID_PARAMETER
    errorInfo.group: 5
    EXTERNAL_RUNTIME_FAILURE
    errorInfo.key: R
    errorInfo.message:
    -----Error handling end -----
    No connect to SAP
    Because ASCII conversion to UTF16LE (http://en.wikipedia.org/wiki/UTF-16) is very simple, I prepared function
    char* ascii2utf16le( char *text_ascii)
        int rec=-1;
        int i=0;
        int j=0;
        int n=0; 
      size_t inbufsize = strlen(text_ascii);
      size_t outbufsize=(2*inbufsize);
       i=2*inbufsize;
      char *converted = calloc(outbufsize, sizeof(char));
        for(j=0;j<i;j++)
            if(0==(j%2))
                converted[j]=text_ascii[n];
                n++;
            } else {
              converted[j]=0;
            printf("%X ",converted[j]);
      printf("\n");
        char *converted_str = converted;
        return converted_str;
    and next I use it to loginParams[0].name = ascii2utf16le("ashost"), etc.
    Fixed-length Unicode representation expected by SAP R/3 is under control, but on Linux 32bit not work.
    I haven't where is possible problem?

  • SAP NW RFC SDK

    Dear All
    I have unpacked SAP NW RFC SDK inside the /Program Files/SAP/FrontEnd/SAPgui/.
    As a result new Folder nwrfcsdk is created.
    When I tried to run(at the command prompt) the one of the EXE file present inside the /nwrfcsdk/bin, I get a message "This application has failed to start because SAPNWRFC.dll was not found".
    But I can see the said DLL inside the /nwrfcsdk/lib folder.
    Is their anything needed to link the /nwrfcsdk/lib and /nwrfcsdk/bin folders ?
    Please help to over come this issue !
    RJ
    System : Windows XP

    Hello,
    Could you please post the solution as well, I encounter the same issue.
    Thanks, best regards
    Tobias

  • Errors compiling program with RFC SDK 700 for ECC 6.0

    Hi,
    We are getting an error when trying to compile a program on HP_UX HP9000.  We downloaded the RFC SDK for 700.  The command we are using is:
    cc sapsockets.c librfc.a -o sapsockets -lm -lcl +DA2.0W
    The error we receive is:
    ld: Unsatisfied symbol "xdr_string" in file librfc.a[cpictlib.o]
    ld: Unsatisfied symbol "__nw__FUl" in file librfc.a[cpictlib.o]
    ld: Unsatisfied symbol "__dl__FPv" in file librfc.a[cpictlib.o]
    ld: Unsatisfied symbol "xdr_free" in file librfc.a[cpictlib.o]
    ld: Unsatisfied symbol "[Vtable]key:__dt__21__versioned_type_infoFv" in file librfc.a[cpictlib.o]
    ld: Unsatisfied symbol "__PureVirtualCalled" in file librfc.a[cpictlib.o]
    ld: Unsatisfied symbol "__dla__FPv" in file librfc.a[cpictlib.o]
    ld: Unsatisfied symbol "__nwa__FUl" in file librfc.a[cpictlib.o]
    ld: Unsatisfied symbol "__ConstructMarkedArray__FPvUiUlPFv_vT4" in file librfc.a[cpictlib.o]
    9 errors.
    I don't have much experience in this area.  Sorry I couldn't supply more information.
    Any help is appreciated.
    Thanks,
    Domenick

    See note 1056696 - Compiling and Linking RFC Programs with the SAP NW RFC SDK
    HP-UX (PA-RISC, 64 bit)
    aCC -DSAPonUNIX -DSAPonHPPA -DSAPwithUNICODE +DD64 -Aa +W392,829,818,887 -DSAPwithTHREADS -mt -w +O2 -DNDEBUG +inst_compiletime -c <program>.cpp
    aCC -Wl,+n,-z -Wl,-a,default +DD64 -o <program> <program>.o libsapnwrfc.sl libsapucum.sl [and possibly libicudecnumber.sl]
    Markus

  • SAP Netweaver RFC SDK bindings for Node.js

    Hi all,
    I have just completed a first version of bindings to the SAP Netweaver RFC SDK for [Node.js|www.nodejs.org].
    You are encouraged to inspect and download the source code on [https://github.com/jdorner/node-sapnwrfc|https://github.com/jdorner/node-sapnwrfc]. For further convenience, I have also supplied a package for use with the node package manager (npm). Nevertheless, you will have to download the SAP NW RFC SDK beforehand. Thus, you should carefully read the README on GitHub for more detailed instructions.
    Please let me know if you have problems installing/compiling the module. At the moment it has only been tested on a x86_64 linux platform.
    Regards,
    Joachim

    Thanks Mike,
    For example we want to executie Function Module and need to prepare/allocate TABLE parameter.
    In doing so we need to invoke function RfcGetStructureDescHandle is described in doc.
    However, we cannot find it anywhere in H files under SAP NW SDK 7.10 dir structure.
    Do you have an example of how to create a TABLE parameter (export for example).
    We are going to reproduce the symptom with the demo source distributed with the SDK.
    Any help/suggestions is greatly appreciated,
    Alfonso

  • NW RFC SDK: Non-SAP to ABAP with username (trust relationship)

    Hello,
    I have a quite challenging non-SAP-to-ABAP RFC scenario with a trust relationship.
    Hereu2019s the scenario:
    An Oracle database server acts as an RFC client and calls RFC function modules in an ABAP server. (I assume the Oracle programmers are going to use NW RFC SDK 7.1 or JCo 3.0 on the Oracle server and call that from their PL/SQL based database application.)
    The challenge is that I donu2019t want to use a single u201Ctechnical useru201D on the ABAP side because that would mean that all the users on the Oracle side would be mapped to one single ABAP user. Also, I donu2019t want to have to store individual ABAP passwords on the Oracle side.
    Instead, I want the ABAP server to trust the RFC client the same way it might
    a) trust a NetWeaver AS Java server after installing the Java serveru2019s certificate in transaction STRUSTSSO2 or
    b) the way it might trust another ABAP server after configuring a trust relationship (transaction SMT1?)
    The ABAP server should accept incoming RFC connections from the Oracle RFC client with just the user name and no password given and run the resulting processes in the ABAP system under the user id given in the RFC call.
    I imagine the ideal solution somehow along the following lines (simplified scenario for a PC-based prototype):
    - I download run a program that creates a certificate file (public key?) which I import into the ABAP system.
    - The same program creates a matching file (private key?) for the RFC client.
    - For reasons of simplicity, let us imagine the RFC client as a stand-alone Java SE application running on a PC.
    - The Java SE application uses the JCo library to connect to the ABAP system.
    - When opening the connection, it passes a username, but no password. Instead, it passes a Base64-encoded string that was generated by our key/certificate generator program.
    - On the ABAP side, the function modules are run under the username used by the Java SE application when establishing the RFC connection.
    Is that possible at all? How would you solve this?
    Thank you very much in advance and best regards,
    Thorsten

    Hello,
    Thanks a lot for your extremely high-quality replies. Iu2019ve been trying to work with them.
    Frankly, just when (after Gregoru2019s and Timu2019s posts) I was hoping that working my way deeply enough into SNC, I would be able to solve my problem, Wolfgang comes along and tells me what Iu2019m aiming at wonu2019t work. Now Iu2019m confused.
    The way I understand Wolfgang, the special trust an AS ABAP can put into another AS ABAP or an AS Java (u201Cremote RFC client, give me one certificate and I will accept every username if they come from youu201D) can not be put into a custom-made remote server software (such as the Oracle server application) acting as the RFC client, because when acting as RFC clients, the remote AS Java or AS ABAP use proprietary elements of the RFC protocol which are not available to me when I program my RFC client in the Oracle application.
    @Wolfgang, is that correct?
    Solution 1: Individual X.509 Certificates
    Instead, I can establish X.509-based trust relationships at the level of individual usernames: create a certificate for each Oracle user, import them into the AS ABAP, map them to an ABAP user, and store the certificate on the Oracle side (Iu2019m still note sure about the different certificates and keys used publicly and privately here).
    Solution 2: AS ABAP as User Management Engine for the Oracle Application
    I can also see an alternative that would spare me the trouble of generating, importing, mapping and storing the certificates: delegate the user management to the AS ABAP and delete the (custom-built) logon and password-checking mechanism in the PL/SQL application:
    Users are created centrally in CUA and distributed along with their passwords into (among others) the AS ABAP.
    When a user logs on to the PL/SQL application, the username and password are sent for validation to an ABAP BAPI.
    If authentication is successful, the AS ABAP returns a SAPLogon ticket which can be stored in the session context of the PL/SQL application and used in subsequent RFC calls. The password (a hash?) would only be transferred once during logon.
    What do you think? Would both solutions work or am I still getting something wrong? Can you see a better alternative that would reduce
    for solution 1 the administrative overhead for synchronization
    for solution 2 the run-time dependency Oracle-ABAP and the change impact on the Oracle applicationu2019s user management concept?
    Thanks a lot,
    Thorsten

  • Crash in SAP NetWeaver RFC SDK DLL

    Hello community,
    I have a problem with the SAP NetWeaver RFC SDK. Once in a while I get a crash with such error message:
    Unhandled exception at 0x000007FEF1D3DD6E (sapnwrfc.dll) in bridgeserver.exe.22108.dmp: 0xC0000005: Access violation reading location 0x0000000000000008.
    Basically I get function metadata, set the call parameters using the API calls and call RfcInvoke. It crashes. The callstack is:
    sapnwrfc.dll!000007fef1d3dd6e()
    sapnwrfc.dll!000007fef1d56613()
    msvcr80.dll!_CallSettingFrame ()
    msvcr80.dll!__CxxCallCatchBlock ()
    ntdll.dll!RcConsolidateFrames ()
    sapnwrfc.dll!000007fef1d5653a()
    sapnwrfc.dll!000007fef1d2c4f7()
    call RfcInvoke from my code
    I've got the call stack from one of the two crash dumps I've got. I took a look on the registers and assembly of the top frame and it looks like an indirect acces to a field of a structure but the pointer to structure is NULL.
    Is there any way I can debug it further? I'm already pretty sure that the parameters to RfcInvoke are correct (no messed-up pointers).

    Thanks Mike,
    For example we want to executie Function Module and need to prepare/allocate TABLE parameter.
    In doing so we need to invoke function RfcGetStructureDescHandle is described in doc.
    However, we cannot find it anywhere in H files under SAP NW SDK 7.10 dir structure.
    Do you have an example of how to create a TABLE parameter (export for example).
    We are going to reproduce the symptom with the demo source distributed with the SDK.
    Any help/suggestions is greatly appreciated,
    Alfonso

  • Download latest SAP NW RFC SDK

    Hello,
    I need to know where I can download the latest SAP NW RFC SDK (7.20). According to note 1025361 it should be available for the following platforms I need:
        Windows x86 32-Bit (Versionen: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7)
        Windows x86_64 64-Bit (Versionen: Windows Server 2003, Windows Vista, Windows Server 2008, Windows Server 2008 R2, Windows 7)
    I followed the path mentioned there
    http://service.sap.com/patches
    -> Browse our Download Catalog
    -> Additional Components
    -> SAP NW RFC SDK
    -> SAP NW RFC SDK 7.11
    -> <Plattform>
    -> NWRFC_9-20004xxx.SAR
    But there is no NW RFC SDK download for Windows x86 32bit, only Windows x64 64bit. But I also need the 32bit SDK. Where can I find it?

    I think Windows Server I32 32bit should do it...
    I'm trying this out now...

  • Getting metadata for RFCs using RFC SDK (with position of parameters)

    Hi!
    I'm currently using the RFC SDK Function "RfcGetFunctionInfoAsTable" to retrieve metadata for RFCs from SAP. What i see is that the "Position" field in the RFC_FIELDS_U structure contains arbitrary values, and so I am not able to determine what is the actual ordering of the parameters.
    What can I do to determine the exact ordering of the parameters of an RFC? (ordering as in - I want to obtain the parameters in the same order as they appear in SAP GUI).
    Thanks,
    Mustansir

    Hi,
    I think you can use the code similar to the one below...
    some of the things not covered in this are
    1. all types for which   CALL FUNCTION 'RFC_GET_NAMETAB' is not returning result, you can call CALL FUNCTION 'RFC_GET_STRUCTURE_DEFINITION' directly. I have not covered that in this code. Hope this is helps in resolving your issue.
    Also, the code is not optimized. So there is some scope for optimization of this code.
    REPORT  ZTEST_GET_SREUCTURE.
    DATA : PARAMS     type table of     RFC_FUNINT,
          ls_params like line of params.
    data: NAMETAB     type table of     X031L,
          ls_NAMETAB like line of NAMETAB.
    data: FIELDS  type table of RFC_FIELDS,
          ls_fields like line of fields.
    CALL FUNCTION 'RFC_GET_FUNCTION_INTERFACE'
      EXPORTING
        FUNCNAME                      = 'fm_test_fm'
      TABLES
        PARAMS                        = PARAMS
    IF SY-SUBRC <> 0.
    ENDIF.
    loop at params into ls_params.
      CALL FUNCTION 'RFC_GET_NAMETAB'
        EXPORTING
          TABNAME                     = LS_PARAMS-TABNAME
        TABLES
          NAMETAB                     = NAMETAB
      IF SY-SUBRC <> 0.
      ENDIF.
      loop at NAMETAB into ls_NAMETAB.
        CALL FUNCTION 'RFC_GET_STRUCTURE_DEFINITION'
      EXPORTING
        TABNAME                     = LS_NAMETAB-ROLLNAME
      TABLES
        FIELDS                      = FIELDS
        loop at fields into ls_fields.
          write: ls_fields-FIELDNAME.
        endloop.
      endloop.
      endloop.

Maybe you are looking for

  • Accounting Document not released

    Hi gurus, i created a Credit Memo, for a sales order, and accounting document is not cleared, can some body please guide me how i can check and release? here is the Order Sttus looks like, . Credit Memo Request 62987215 / 10         06/26/07         

  • IPhone 5c in Recovery Mode

    So i put my iPhone 5c in Recovery Mode because it when i turned it on it did not go through the boot screen. So I put in Recovery Mode. Its says it will erase everything, and I just backed my iPhone to my laptop. Is there a way i can restore from tha

  • EPM 11.1.1.3 installation on Windows 2008 32 bit

    Hi, getting the following errors when trying to install epm 11.1.1.3 on windows 2008 32 bit. D:\downloads\download_location\assemblies\essbase_administration_services_webapp... Not exists D:\downloads\download_location\assemblies\svc_client... Not ex

  • Can't convert pdf to microsoft word

    I cannot convert pdf to microsoft word says convert failure I cleared browser cache and still does not work was working fine a couple of weeks ago

  • How do i get the time to stopping coming on and off on my black screen. is that daydream

    how do i get the time to stop coming on and off on my black screen. is that daydrea