Associated table type of the Table parameters in function module

Hi,
If I want to select all the associated table types of the Table parameters used in a given function module in a report, how can that be done ?
Thanks.
Regards,
Rajesh

Try this.
report zrich_0001 .
data: import type table of rsimp with header line,
      change type table of rscha with header line,
      export type table of rsexp with header line,
      tables type table of rstbl with header line,
      except type table of rsexc with header line,
      docume type table of rsfdo with header line,
      source type table of rssource with header line.
parameters: p_func type rs38l-name.
call function 'RPY_FUNCTIONMODULE_READ'
  exporting
    functionname             = p_func
  tables
    import_parameter         = import
    changing_parameter       = change
    export_parameter         = export
    tables_parameter         = tables
    exception_list           = except
    documentation            = docume
    source                   = source
exceptions
   error_message            = 1
   function_not_found       = 2
   invalid_name             = 3
   others                   = 4.
loop at tables.
  write:/ tables-parameter,
          tables-dbstruct,
          tables-types,
          tables-optional,
          tables-typ,
          tables-class,
          tables-ref_class,
          tables-line_of,
          tables-table_of.
endloop.
Regards,
Rich Heilman

Similar Messages

  • What are  the input parameters for Function Module

    Dear Experts,
    I want to generate a Sales Tax returns report,those fields are not available in my existing Datasources.
    For that i want to write a Generic Datasource with Function Module.
    audat
    bukrs
    vkorg
    vtweg
    spart
    aurat
    auart
    netwr
    mwsbp
    kschl zedp(consition type)
    kschl zvat(condition type)
    ksch   zcst(condition type)
    matkl     material group
    Here what are the Input parameters for Function Module.
    Thanks in Advance.
    Srinivasan.

    Srinivasan-
    For creating a Generic extractor based on a FM, you first of all need to know what is going to be your structure.. i.e. what all fields you need to pull from what all tables. A functional consultant may help you identify the exact DB tables.
    Once you know them, hand over the requirement and the pdf mentioned by Krishna to the ABAP guy, he would be able to take this up further.
    Also decide 1st whether you would be using a full load or delta. There is a slight difference in the way they are built.
    Let me know how it goes.
    -Bhushan.

  • Table type in import parameter in rfc function module

    Hi we don't have the table type in our system which exist in the other system which is the import parameter of the rfc function module.so how can we pass the parameter. shell we create the same table type in our system also.it is a table type for a deep structure.

    Hello,
    I donot have access to CRM box I cannot view the FM. You can verify with the CRM counterpart what exactly is the TYPE for param DATA.
    Else you can define a generic internal table (TYPE TABLE) & try calling the FM.
    BR,
    Suhas

  • Difference between Import and Export parameters in Function Module

    Hi All,
    I am unclear about the import and export parameters, when i create a function module. Can anyone explain abt this. However when i call the function module in any program the import parameters in Function module are displayed as exporting in program amd the export parameters as importing.
    Any help on this would be appericiated.
    Shejal.

    HI,
    Import parameter in FM is the value u provide to FM for processing.
    export is the value u get from FM after processing.
    when u call a FM in a progam the import parameter will appear as Export bcos u r giving value to the FM.
    and u r getting value from FM in import parameter(bcos u r importing).
    rgds,
    latheesh
    Message was edited by: Latheesh Kaduthara

  • In "LOOP ... WHERE ..." the line type of the table must be statically defin

    Hi All,
            I have written the code, for greater than (GJAHR) 2007 and restricted company codes ( table name = ZGLCCODE).
         Here I have written the following the code which is giving an error
    In "LOOP ... WHERE ..." the line type of the table must be statically defin
    ZGLCCODE Contains only restricted company codes.
    Code is as follows
    TABLES : ZGLCCODE. 
    DATA : LT_DATAPACKAGE TYPE TABLE OF DTFIGL_4.
    DATA : LS_PACKAGE TYPE DTFIGL_4.
    TYPES: BEGIN OF LS_TZGLCCODE,
           ZBUKRS type BUKRS,
            END OF LS_TZGLCCODE.
    DATA : LT_ITZGLCCODE TYPE LS_TZGLCCODE OCCURS 0 WITH HEADER LINE.
    DATA : LI_NUM TYPE I,
           LC_ZGJAHR TYPE BSEG-GJAHR VALUE '2007'.
    SELECT ZBUKRS INTO TABLE LT_ITZGLCCODE FROM ZGLCCODE.
    Note:  "C_T_DATA" dynamic structure = "DTFIGL_4" structure
    *-  Remove from the DataSource Company Code -
    LOOP AT C_T_DATA INTO LS_PACKAGE WHERE GJAHR GE '2007'.
    READ TABLE LT_ITZGLCCODE WITH KEY ZBUKRS = LS_PACKAGE-BUKRS.
    IF SY-SUBRC <> 0.
       APPEND LS_PACKAGE TO LT_DATAPACKAGE.
    ENDIF.
      CLEAR LS_PACKAGE.
    ENDLOOP.
    IF LT_DATAPACKAGE[] IS NOT INITIAL.
    DESCRIBE TABLE LT_DATAPACKAGE LINES LI_NUM.
    IF LI_NUM GT 0.
       REFRESH C_T_DATA.
       APPEND LINES OF LT_DATAPACKAGE TO C_T_DATA.
       REFRESH LT_DATAPACKAGE.
       FREE LT_DATAPACKAGE.
    endif.
    ELSE.
       REFRESH C_T_DATA.
    ENDIF.
    Please give me your valuable suggestions.
    Thanks
    Ganesh Reddy.

    Hi Ganesh,
    whatever you do, you can try like this:
    1 - any code posted should be wrapped in \
    then try something like this:
    field-symbols:
      <tabrec> type any,
      <field>   type any.
    sort ITZGLCCODE by bukrs.
    LOOP AT C_T_DATA ASSIGNING <tabrec>.
      ASSIGN component 'GJAHR' of structure <tabrec> to <field>.
      check <field> <= 2007.
      ASSIGN component 'BUKRS' of structure <tabrec> to <field>.
      READ TABLE LT_ITZGLCCODE WITH KEY ZBUKRS = <field>
        BINARY SEARCH TRANSPORTING NO FIELDS. "speed up the volume.
      IF SY-SUBRC 0.
        MOVE-CORRESPONDING <tabrec> to  LS_PACKAGE.   
        APPEND LS_PACKAGE TO LT_DATAPACKAGE.
      ENDIF.
    ENDLOOP.
    Regards,
    Clemens

  • How to declare variable for Table type in the ABAP Editor

    Hi!
    I have Table Type 'FIELDNAME_TAB' (Table of fieldnames). I want to pass the list of fieldnames to this Table Type in the ABAP Editor.
    Can anyone help me in this?

    You would declare the internal table like so.
    data: itab type FIELDNAME_TAB.
    data: wa like line of itab.
    wa = 'This_value'.
    append wa to itab.
    Regards.
    Rich Heilman
    Message was edited by:
            Rich Heilman

  • What is standard table type for the BAPIRET2

    Hi all,
    what is standard table type for the BAPIRET2
    Thanks,
    Mythily

    >
    Vikranth.Reddy wrote:
    > Hey Suhas, you edited your example after my post
    As the cliche goes, "Great minds think alike "
    Out of the 94 hits for table types i could have chosen BAPIRET2TAB, BAPIRET2_TT, BAPIRET2_TAB etc. but as luck would have it i chose BAPIRET2_T.
    Cheers,
    Suhas

  • Storing the output of a function module into a custom table

    Hi Gurus,
    Is it possible to store the output of a function module into a custom table.How can this be done?Is it complex?

    hi,
    After u execute the FM and get values in the internal table ITAB_RESULT. Create a custom table having structure same as ITAB_RESULT call it ZRESULT.
    data :wa type ITAB_RESULT.
    call FM and get result it ITAB_RESULT
    loop at itab_result.
    move-corresponding itab_result to wa.
    insert wa to ZRESULT.
    endloop.
    Regards,
    Mansi.

  • Which tables, apart from the tables of class UPC, are used by STS ?

    Hello, all,
    does anybody know which tables, apart from the tables of class UPC, are used by STS in BW-BPS?
    Merry X-Mas and best regards
    Nina

    Hi Nina,
    there are 20 tables starting with UPS_* that are used by STS.
    Regards,
    Marc
    SAP NetWeaver RIG

  • Will table delete remove the table maintenance screens also ??

    hi,
    i created a table. also generated the table maintanence for that. Now if i delete that table will the table maintenance objects also deleted with that ?
    if not then how do i delete them ?
    thks

    Yes, system will ask you if you want to delete it as well.
    Thomas

  • [SMARTFORMS] Table interface is not seen in generated function module

    (I am using SAP ECC 6.0)
    I have created a test smartform which prints the contents of the sflight table.
    In the Tables tab of the Form Interface page, I have defined a table i_data of type FLIGHTTAB. In the Global Data tab of the Global Definitions page, I have defined a row variable wa_data (Type Assignment: LIKE;  Associated Type: LINE OF i_data). The form activates but when I test it, I encounter a SYNTAX_ERROR.
    Here is a fragment of the message:
    The following syntax error occurred in program "/1BCDWB/SAPLSF00000007 " in
    include "/1BCDWB/LSF00000007TOP " in
    line 68:
    "Field "I_DATA" is unknown. It is neither in one of the specified table"
    "s nor defined by a "DATA" statement. ."
    Here is a fragment of the error location (see the TABLES part of the CALL FUNCTION):
       82 IF DESTI IS INITIAL.
       83 IF DEBUG = '1'. BREAK-POINT AT NEXT APPLICATION STATEMENT.
       84 ENDIF.
       85 DEBUG = SPACE.
       86 GET RUN TIME FIELD TIME1.
    @@@ CALL FUNCTION '/1BCDWB/SF00000007'
       88 EXPORTING
       89 ARCHIVE_INDEX = %_IARCHIVE_INDEX
       90 ARCHIVE_INDEX_TAB = %_IARCHIVE_INDEX_TAB
       91 ARCHIVE_PARAMETERS = %_IARCHIVE_PARAMETERS
       92 CONTROL_PARAMETERS = %_ICONTROL_PARAMETERS
       93 MAIL_APPL_OBJ = %_IMAIL_APPL_OBJ
       94 MAIL_RECIPIENT = %_IMAIL_RECIPIENT
       95 MAIL_SENDER = %_IMAIL_SENDER
       96 OUTPUT_OPTIONS = %_IOUTPUT_OPTIONS
       97 USER_SETTINGS = %_IUSER_SETTINGS
       98 IMPORTING
       99 DOCUMENT_OUTPUT_INFO = %_ODOCUMENT_OUTPUT_INFO
      100 JOB_OUTPUT_INFO = %_OJOB_OUTPUT_INFO
      101 JOB_OUTPUT_OPTIONS = %_OJOB_OUTPUT_OPTIONS
      102 TABLES
      103 I_DATA = %_OI_DATA
      104 EXCEPTIONS
      105 FORMATTING_ERROR = 001
      106 INTERNAL_ERROR = 002
    Does this mean I cannot use the TABLES part of the interface?
    In addition, can you tell me more about the visibility of data between the Form Interface and Global Definitions? Are the data in the Form Interface globally visible inside the smartform? In the Form Interface, can I use a type defined in the TYPES tab of the Global Definitions page?

    HI,
    Form Interface what ever the Import or Export or Table Parameters u pass It should be defined in ur Driver Program with same Type.
      Say I_DATA TYPE MARA      In Form Interface
      In Driver Program T_DATA TYPE TABLE OF  MARA.
    The Global Definition Fields are used within the Smartform .
    Form Interface is where U interface ur Smartform and ur Driver Program.
    Suppose U have defined ur own Internal Table in Driver Program, then u need to define ur own Types in the Types tab in the Global Definitions.
    Whatever the parameters that u pass to the Form Interface those are to be passed while calling the FM SSF_FUNCTION_MODULE_NAME.
    Regards,
    Vijaya Lakshmi.T

  • What are the parameters of Function Module

    Hi,
    What are the parameters of Function Module?

    Function Modules are special external subroutine stored in a central library. The R/3 system provides numerous predefined function modules that you can call from the ABAP/4 programs.
    All the function Modules are created under the Function Groups. Function Groups are nothing but the related group of function modules.
    The function modules can be maintained through T.CodeSE37 and T.Code SE80.
    In general the function module has the following components.
    Documentation:
    This is the place where you can find the discription/purpose of the function module.
    Import & Export Parameters.
    Import parameters correspond to the formal input parameters of subroutines. They pass data from the calling program to the function module.
    Export parameters correspond to the formal input parameters of subroutines. They pass data from the function module back to the calling program.
    Table Parameters.
    Table parameters are internal tables. Internal tables are treated like changing parameters and are always passed by reference.
    Exceptions.
    Exceptions are used to handle error scenarios which can occur in the function modules. The function modules checks for any type of error and raise exception and returns SY-SUBRC value to the calling program.
    Source Code:
    the programming logic of the function module is written in this source code.
    Rewards if useful.

  • Finding the related field for "Leave Type"  from the BI content in HR modul

    Hi good after-noon!!
    Can any one help me out in finding the related field for "Leave Type"  from the BI content in HR module?
    Regards,
    Suman.

    Hi Suman ,
       U can get the information in KTART field in PA2006 table in SAP. This field can take values like annual leave type, long service leave, study leave etc....
    Regards
    vamsi

  • How to log input parameters for Function Modules?

    Hi,
    I need to create a Logging system to trace input parameters for function modules.
    The log functionality could be done by developing a class method or a function module (For example 'write_log'), and calling it within each function module that I want to log. The 'write_log' code should be independent from the interface of the Function Module that I want to log.
    For example, I'd like to write a function/class method that can log both these functions modules:
    Function DummyA
       Input parameters: A1 type char10, A2 type char10.
    Function DummyB
       Input parameters: B1 type char20, B2 type char20, B3 type char20, B4 type Z_MYSTRUCTURE
    Now the questions...
    - Is there a "standard SAP" function that provide this functionality?
    - If not, is there a system variable in which I can access runtime all parameters name, type and value for a particular function module?
    - If not, how can I loop at Input parameters in a way that is independent from the function module interface?
    Thank you in advance for helping!

    check this sample code. here i am capturing only parameters (import) values. you can extend this to capture tables, changin, etc.
    FUNCTION y_test_fm.
    *"*"Local Interface:
    *"  IMPORTING
    *"     REFERENCE(PARAM1) TYPE  CHAR10
    *"     REFERENCE(PARAM2) TYPE  CHAR10
    *"     REFERENCE(PARAM3) TYPE  CHAR10
      DATA: ep TYPE STANDARD TABLE OF rsexp ,
            ip TYPE STANDARD TABLE OF rsimp ,
            tp TYPE STANDARD TABLE OF rstbl ,
            el TYPE STANDARD TABLE OF rsexc ,
            vals TYPE tihttpnvp ,
            wa_vals TYPE ihttpnvp ,
            wa_ip TYPE rsimp .
      FIELD-SYMBOLS: <temp> TYPE ANY .
      CALL FUNCTION 'FUNCTION_IMPORT_INTERFACE'
        EXPORTING
          funcname                 = 'Y_TEST_FM'
    *   INACTIVE_VERSION         = ' '
    *   WITH_ENHANCEMENTS        = 'X'
    *   IGNORE_SWITCHES          = ' '
    * IMPORTING
    *   GLOBAL_FLAG              =
    *   REMOTE_CALL              =
    *   UPDATE_TASK              =
    *   EXCEPTION_CLASSES        =
        TABLES
          exception_list           = el
          export_parameter         = ep
          import_parameter         = ip
    *   CHANGING_PARAMETER       =
          tables_parameter         = tp
    *   P_DOCU                   =
    *   ENHA_EXP_PARAMETER       =
    *   ENHA_IMP_PARAMETER       =
    *   ENHA_CHA_PARAMETER       =
    *   ENHA_TBL_PARAMETER       =
    *   ENHA_DOCU                =
       EXCEPTIONS
         error_message            = 1
         function_not_found       = 2
         invalid_name             = 3
         OTHERS                   = 4
      IF sy-subrc = 0.
        LOOP AT ip INTO wa_ip .
          MOVE: wa_ip-parameter TO wa_vals-name .
          ASSIGN (wa_vals-name) TO <temp> .
          IF <temp> IS ASSIGNED .
            wa_vals-value = <temp> .
          ENDIF .
          APPEND wa_vals TO vals .
        ENDLOOP .
      ENDIF.
    ENDFUNCTION.

  • Use of Interface parameters in Function module in ECC 6.0

    Hello all,
    In ECC 6.0 Version we do not use Changing/Tables interface parameters. Instead we declare a table type and use Exporting Parameters.
    Can any one send me the link to sap help where this is mentioned.
    Thanks,
    Salil

    Should be straight forward. Here's a sample...
    Exporting...
    VBSK_E     LIKE     VBSK
    ET_SPLITPROT     TYPE     VLIKP_T_SPLITPROT
    If not enough, do application help from function module....
    http://help.sap.com/saphelp_nw04/helpdata/en/d1/801e9a454211d189710000e8322d00/frameset.htm

Maybe you are looking for

  • Page break for a group and sub group based on page length

    Hi I have a requirement where in I need to develop a report which has the following requirement. I am attaching the sample xml and rtf files for reference: 1) There are 3 groups in the Data Model. G1, G2 and G3. G1 contains G2 and G2 contains G3. I n

  • A service with no support

    Had a wierd issue where I downloaded a bunch of rental films for a holiday, transferred them to Iphone, tried the first and it was just a black screen.  Didn't try another as figured it was a bad transfer, and upon getting back sent them all back to

  • Portal Upgrade and Bi iviews not working

    Dear All, Initially the portal version was nw2004s sp 12, and it has been upgraded to nw2004s sp18.Now, the BI iviews which are under the migrated content do no work for a preview as well. It throws the following error when I preview The initial exce

  • 11.0.10 constantly crashing

    Reader 11.0.10 on Windows 8.1 has been constantly crashing over past 24 hours. Anyone else facing this issue ? I downloaded and installed some Windows updates over this period and I guess that has messed up the reader installation. Any help appreciat

  • K-map simplification confusion

    I'm building a k-map simplifier for a class and was a little bit confused as to how to fix my program. I think I'm pretty close, probably missing something obvious. Here's the code (part1), sorry it's a mess: * @Jon(your name) * @.1 (a version number