Function module to list out a report's input/output parameters

Hi experts,
I'd like to know if there is a function module which can list out all the input and output parameters (variables, tables, etc.) by giving the report name as input.
If not, please suggest a way to find out the input/output parameters.
Regards,
Ancy

Well, they're not input/output parameters, and really you shouldn't refer to them as such.  A variable is simple what it says - a variable.  You could, I suppose, refer to data sources.  But then, the report could be getting data from a set of function modules.
So my assumption is correct, you are talking about a where-used list.
>Check out tables like CROSS. To find other useful tables, put an SQL trace on, do the where used, and see what tables are hit.
matt

Similar Messages

  • Function Module to find out detail of open period of Finance (FI)

    Hi  All,
    I have a query that I want to know the existing function module to find out
    FI period detail thatis detail of opened period in FI.
    Regards,
    Rishi

    Hi Rishi
    Go to transaction SE37 and you can see the list of FM.
    Thanks
    Ashok
    Assign points for useful answer

  • Function module to list files

    Hii
    Can anyone help me in finding a function module that lists all the files form the application server directory along with the craetion date and time??
    I was using the function module SUBST_GET_FILE_NAME which lists all the files, but the date and time is not maintained here..I mean, the file creation date and time fields are available, but blank..I want the date and time as can be seen in AL11 when we browse for a file in a directory..
    Tx

    Hi,
    use this program or put the code in a function module if you want
    i have not provided any output, so put a breakpoint at the write:/ 'end'. statement and see the contents of the file_list internal table
    *& Report  ZKRIS_GET_DIRECTORY_FILES_ATTR
    REPORT  zkris_get_directory_files_attr.
    PARAMETERS: p_dir(128) DEFAULT 'write your dir name here'.
    TYPES: name_of_dir(1024)        TYPE c,
           name_of_file(260)        TYPE c,
           name_of_path(1285)       TYPE c.
    DATA: BEGIN OF file,
            dirname     TYPE name_of_dir,  " name of directory. (possibly
                                           " truncated.)
            name        TYPE name_of_file, " name of entry. (possibly
                                           " truncated.)
            type(10)    TYPE c,            " type of entry.
            len(8)      TYPE p,            " length in bytes.
            owner(8)    TYPE c,            " owner of the entry.
            mtime(6)    TYPE p, " last modification date, seconds since 1970
            mode(9)     TYPE c, " like "rwx-r-x--x": protection mode.
            useable(1)  TYPE c,
            subrc(4)    TYPE c,
            errno(3)    TYPE c,
            errmsg(40)  TYPE c,
            mod_date    TYPE d,
            mod_time(8) TYPE c,            " hh:mm:ss
            seen(1)     TYPE c,
            changed(1)  TYPE c,
          END OF file.
    DATA: sap_yes(1)  VALUE 'X'
        , sap_no(1)   VALUE ' '
        , srt(1)      VALUE 'T'
        , no_cs       VALUE ' '            " no MUST_ContainString
        , all_gen     VALUE '*'    " generic filename shall select all
        , strlen      LIKE sy-fdpos
    DATA: BEGIN OF file_list OCCURS 100,
            dirname     TYPE name_of_dir,  " name of directory. (possibly
                                           " truncated.)
            name        TYPE name_of_file, " name of entry. (possibly
                                           " truncated.)
            type(10)    TYPE c,            " type of entry.
            len(8)      TYPE p,            " length in bytes.
            owner(8)    TYPE c,            " owner of the entry.
            mtime(6)    TYPE p, " last modification date, seconds since 1970
            mode(9)     TYPE c, " like "rwx-r-x--x": protection mode.
            useable(1)  TYPE c,
            subrc(4)    TYPE c,
            errno(3)    TYPE c,
            errmsg(40)  TYPE c,
            mod_date    TYPE d,
            mod_time(8) TYPE c,            " hh:mm:ss
            seen(1)     TYPE c,
            changed(1)  TYPE c,
          END OF file_list.
    DATA: BEGIN OF searchpoints OCCURS 10,
            dirname     TYPE name_of_dir,  " name of directory.
            sp_name     TYPE name_of_file, " name of entry. (may end with *)
            sp_cs(10)   TYPE c, " ContainsString pattern for name.
          END OF searchpoints.
    searchpoints-dirname = p_dir.
    searchpoints-sp_name = '*'.
    searchpoints-sp_cs = ''.
    PERFORM fill_file_list USING searchpoints-dirname
                                 searchpoints-sp_name
                                 searchpoints-sp_cs
    WRITE:/ 'end'.
    *&      Form  fill_file_list
    *       text
    *      -->A_DIR_NAME      text
    *      -->A_GENERIC_NAME  text
    *      -->A_MUST_CS       text
    FORM fill_file_list USING a_dir_name a_generic_name a_must_cs.
      " Routine von M. Mittelstein
    ******************************************************************CAS***
    * Es wird eine Liste von Dateinamen in die Tabelle FILE_LIST gelesen.
    * A_DIR_NAME ....... directory name
    * A_GENERIC_NAME ... generic filename (may end with *)
    * A_MUST_CS ........ a contains pattern for legal filenames  OR NO_CS
      DATA: errcnt(2) TYPE p VALUE 0.
    *  call 'C_DIR_READ_FINISH'             " just to be sure
    *      id 'ERRNO'  field file_list-errno
    *      id 'ERRMSG' field file_list-errmsg.
    *  call 'C_DIR_READ_START' id 'DIR'    field a_dir_name
    *                          id 'FILE'   field a_generic_name
    *                          id 'ERRNO'  field file-errno
    *                          id 'ERRMSG' field file-errmsg.
      IF sy-subrc <> 0.
        sy-subrc = 4.
        EXIT.
      ENDIF.
      DO.
        CLEAR file.
        CALL 'C_DIR_READ_NEXT'
          ID 'TYPE'   FIELD file-type
          ID 'NAME'   FIELD file-name
          ID 'LEN'    FIELD file-len
          ID 'OWNER'  FIELD file-owner
          ID 'MTIME'  FIELD file-mtime
          ID 'MODE'   FIELD file-mode
          ID 'ERRNO'  FIELD file-errno
          ID 'ERRMSG' FIELD file-errmsg.
        file-dirname = a_dir_name.
        MOVE sy-subrc TO file-subrc.
        CASE sy-subrc.
          WHEN 0.
            CLEAR: file-errno, file-errmsg.
            CASE file-type(1).
              WHEN 'F'.                 " normal file.
                PERFORM filename_useable USING file-name file-useable.
              WHEN 'f'.                 " normal file.
                PERFORM filename_useable USING file-name file-useable.
              WHEN OTHERS.              " directory, device, fifo, socket,...
                MOVE sap_no  TO file-useable.
            ENDCASE.
            IF file-len = 0.
              MOVE sap_no TO file-useable.
            ENDIF.
          WHEN 1.                     " end of directory
            EXIT.
          WHEN 4.                     " filename too long
            MOVE sap_no TO file-useable.
          WHEN OTHERS.
            ADD 1 TO errcnt.
            IF errcnt > 90.
              EXIT.
            ENDIF.
            IF sy-subrc = 5.
              MOVE: '???' TO file-type,
                    '???' TO file-owner,
                    '???' TO file-mode.
            ELSE.
    *         ULINE.
    *         WRITE: / 'C_DIR_READ_NEXT', 'SUBRC', SY-SUBRC.
            ENDIF.
            MOVE sap_no TO file-useable.
        ENDCASE.
        PERFORM p6_to_date_time_tz(rstr0400) USING file-mtime
                                                   file-mod_time
                                                   file-mod_date.
    *   * Does the filename contains the requested pattern?
    *   * Then store it, else forget it.
        IF a_must_cs = no_cs.
          MOVE-CORRESPONDING file TO file_list.
          APPEND file_list.
        ELSE.
          IF file-name CS a_must_cs.
            MOVE-CORRESPONDING file TO file_list.
            APPEND file_list.
          ENDIF.
        ENDIF.
      ENDDO.
      CALL 'C_DIR_READ_FINISH'
          ID 'ERRNO'  FIELD file_list-errno
          ID 'ERRMSG' FIELD file_list-errmsg.
      IF sy-subrc <> 0.
        WRITE: / 'C_DIR_READ_FINISH', 'SUBRC', sy-subrc.
      ENDIF.
      IF srt = 'T'.
        SORT file_list BY mtime DESCENDING name ASCENDING.
      ELSE.
        SORT file_list BY name ASCENDING mtime DESCENDING.
      ENDIF.
      sy-subrc = 0.
    ENDFORM.                    "FILL_FILE_LIST
    *&      Form  filename_useable
    *       text
    *      -->A_NAME     text
    *      -->A_USEABLE  text
    FORM filename_useable USING a_name a_useable.
    *----================------------------------
      DATA l_name(75).
      l_name = a_name.
      IF l_name(4) = 'core'.
        a_useable = sap_no.
      ELSE.
        a_useable = sap_yes.
      ENDIF.
    ENDFORM.                    "FILENAME_USEABLE

  • Function Module to find out the release value in contract

    Dear All,
    I have to upload the contract with new accoutn assignment without changing the existing contract. For that i have to download all the existing contract data with value.
    In that case i have some issues regarding the value.
    For example : In the system old contract is created with value 1000 and the released value as 500.
    In that case i have to uload the new contract with all the details of existing contract with value of 500 (1000-500=500).
    How can i get the value (500) and from which table.Is there any functional module to find out the release value in contract.
    Thanks and regads,
    PM
    Edited by: PM on Jan 21, 2010 8:40 AM
    Edited by: PM on Jan 22, 2010 9:48 AM

    Hi
    You need to link the table VBFA and VBAK.
    For a contract you can check all the subsequent document (which you can filter whether you want to see Order / delivery / Billing) in VBFA and then from there pick the subsequent document no. and then from VBAK you can pick the Net value of these subsequent documents, and so you will have both the values (value of Contract and value in subsequent document) and you can determine the balance value.
    Regards
    Amitesh Anand

  • Table Name or Function Module to find out all the Screens & Subscreens for

    Hello Experts,
          Table Name or Function Module to find out all the Screens & Subscreens for all T-Codes
    Helpful Answer will b rewarded
    Arif Shaik

    Hi Balaji,
       But TSTC only Gives the Program Name , T-Code and Screen but not all the Subscreen details
    Any other which U know

  • Is there any function module that brings out profile planner

    Hello experts,
    Is there any function module that brings out profile planner (I want to set planner profile as u201CSAP800u201D. I am using 7KE1 transaction.
    Example: I know, the FM - K_KOKRS_SET_BATCHINPUT will set the controlling area to 'CTIC' for the entire batch input process.
    Thanks in advance.

    look at these fms..
    CACS_PROFILE_PARTNER_READ
    CACS_PROFILE_SHOW

  • Function module to find out DATA BASE size, free space, used size

    Is there any function module to find out DATA BASE , free space, used size
    FM that gives all the details of the Date base
    what data base, what is the size, free space, used space etc...
    instead of writing case by case for each data base. based on  CASE SY-DBSYS.

    Hi,
    Check this FM:
    DB02_ORA_SELECT_DBA_SEGMENT
    alternatively u can check the tcode: DB02
    thanks|
    Mahesh

  • Function module to find out the changed values from tables

    What is the standard function module to find out the changed values (the old & new values) from tables in SAP ?

    Hi Harish,
    Please elaborate your requirement...
    Please have a look on CDHDR AND CDPOS tables... it contains changed data... but all chages are not being tracked using it..
    Try Below FMs as well..
    For Header Level...
    CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
        EXPORTING
          date_of_change    = cdhdr-udate
          objectclass       = cdhdr-objectclas
          objectid          = cdhdr-objectid
          time_of_change    = cdhdr-utime
          username          = cdhdr-username
        TABLES
          i_cdhdr           = icdhdr
        EXCEPTIONS
          no_position_found = 1
          OTHERS            = 2.
    For Item Level
    CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
          EXPORTING
            changenumber      = icdhdr-changenr
          IMPORTING
            header            = cdhdr
          TABLES
            editpos           = icdshw
          EXCEPTIONS
            no_position_found = 1
            OTHERS            = 2.
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

  • Function Modules, for listing Cost centers Under a manager

    Hi All,
    1. Can any one please suggest me any Function Module available for listing the cost center under a manager, given only the Manager's username or pernr.
    2. And also the Function Group which has the collection of Function Modules which deals with operations and reporting on Cost centers from a Manager's Role (basically on budjet Monitoring aspects).
    Thanks and Regards,
    Girimurugan

    If this is the followup of the previous post (responsible person) and you wanted to get a list of cost centers based on that using a FM , i doubt that there is a FM available for that. You have to read the table to get the info.
    When you say manager, he could be a manager for a HR organisation but the cost organization may be different. in a typical set up it would be a cost center group (which will have set of cost centers under it) and this will be linked to a hr organization.
    All this is purely based on how cost center hierarchy (standard hierarchy) and hr organization maintained and how they are linked.
    Regards
    Raja

  • Function Module for listing Equipments based on Material Number

    Hi,
       I need to display list of Equipments based on the given Material Number.
       This can be done by simple query statement as given below,
              SELECT equnr matnr sernr FROM equi
              INTO CORRESPONDING FIELDS OF TABLE <Int Table>
              WHERE matnr IN im_matnr.
        But, I need Function module to acheive this. Can anyone suggest me the Standard Function module which works as mentioned above?

    Hi Shirlatha,
    If you need to  only above code  value  then you can create own FM  and pass the MATNR only.
    In SAP BAPI_EQMT_DETAIL  one FM is there to get complete Equipment details but need to pass matnr and Equipment  number.
    Please try to use this FM or you can create Own FM.
    Regards,
    Prasenjit

  • Executing a BDC Session using a Function Module from a Custom Z-Report

    Hello,
              I have a requirement where I need to Create a BDC Session for the given Transaction Code. But instead of executing the Session from SM35 manually, I need to Execute the Session Immediately from my Custom Z-Report itself.
             Is there any Function Module for this Activity? Please let me know.
    Thanks and Regards,
    Venkata Phani Prasad K

    1) fm job_open
    2) submit report
    3) fm job_close
    4) finally select table TBTCO
    example:
    DATA: jobcount_test LIKE tbtcjob-jobcount,
            job_released    LIKE btch0000-char1,
            rcode(2),
            strtimmed LIKE btch0000-char1 VALUE 'X'.
      DATA jobname  LIKE tbtcjob-jobname.
      CONCATENATE  'TEST_' sy-repid '_' sy-datum INTO jobname.
      CALL FUNCTION 'JOB_OPEN'
           EXPORTING
                jobname          = jobname
           IMPORTING
                jobcount         = jobcount_test
           EXCEPTIONS
                cant_create_job  = 1
                invalid_job_data = 2
                jobname_missing  = 3
                OTHERS           = 4.
      IF sy-subrc NE 0.
        MESSAGE x000(yp) WITH 'JOB-START ' jobname ' failed !!!'.
      ELSE.
    *--Step insert
        SUBMIT rsbdcsub
        USER sy-uname VIA JOB jobname NUMBER jobcount_test
        WITH mappe = map
        WITH von = pdatum
        WITH z_verarb = 'X'
        AND RETURN .
        CALL FUNCTION 'JOB_CLOSE'
             EXPORTING
                  jobcount             = jobcount_test
                  jobname              = jobname
                  strtimmed            = strtimmed
                  targetsystem         = sy-host
             IMPORTING
                  job_was_released     = job_released
             EXCEPTIONS
                  cant_start_immediate = 1
                  invalid_startdate    = 2
                  jobname_missing      = 3
                  job_close_failed     = 4
                  job_nosteps          = 5
                  job_notex            = 6
                  lock_failed          = 7
                  OTHERS               = 8.
        IF sy-subrc > 1.
          MESSAGE x000(yp) WITH 'JOB-CLOSE ' jobname ' failed!!!'.
        ENDIF.
      ENDIF.

  • Function module usage in vendor ageing report for ageing calculation

    hi everybody there
    as i have to calculate the vendor ageing
    which is nothing but
    AGEING = Currentdate - BLINE date
    so for this i have coded as follows and use the function module but couldn't get the result .it is alwayas showing 0 means ageing  is o but it is not like that
    parameter:p_date1 type dats.
    call function 'days_between_two_dates'
    exporting
    i_datum_bis = p_date1
    i_datum_von = itab-zfbdt
    importing
    e_tag = itab-ageing
    exceptions
    days_method_not_defined =1
    others = 2.
    so what is the bug in it.

    hi,
    <b>declare ur internal table field , of type BSIK-ZFBDT or sy-datum
    thats the only thing u want to do.
    the other parameter is sy-datum</b>
    <b>data: field like BSIK-ZFBDT.</b>
    DATA:lv_diff TYPE i.
    CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
    EXPORTING
    <b>i_datum_bis = sy-datum
    i_datum_von =  field</b>
    IMPORTING
    e_tage = <b>lv_diff</b>
    EXCEPTIONS
    days_method_not_defined = 1
    OTHERS = 2.
    IF sy-subrc = 0.
    WRITE:/ <b>lv_diff</b>.
    ENDIF.
    nw it will work.
    rgds'

  • Function module to find out dependent requirements

    Hello Experts,
    Any function module to determine the dependent requirements for process order...
    Pls let me know.
    Regards.

    use the following FM
    MD_STOCK_REQUIREMENTS_LIST_API
    give material no and  plant and following\
    DISPLAY_LIST_MDPSX = X
    DISPLAY_LIST_MDEZX =  X
    DISPLAY_LIST_MDSUX =  x
    o/p
    MDPSX filter for the values of here DELKZ(MRP element indicator) = AR
    you will get all depnedent reservation from process order.

  • WWI issue: function module with symbol doesn't work in conditional output

    Hi,
    I have created a function module to be used in combination with a symbol that represents the quantity of a composition item in a composition. In some cases a average quantity is not filled and the function module calculates the quantity based on the lower and upper limit of the composition item. This function works perfectly if managed in customising with a symbol or called with a symbol in WWI. When displaying the result of the symbol in a WWI word template it shows the expected value.
    However when I use the symbol with a function module (or the customised symbol with function module) in a conditional output expression, the value it represents in the expression is always equal to zero. It seems that a symbol value that is calculated using a functional module is not calculated properly when used in a conditional output expression. Setting a break in the functional module always shows the correct value, but the value as I already told, is not seen by the conditional output expression. Within the expression the value is always equal to zero.
    Does anyone know if this is a known issue in WWI? Is there any solution to handle this problem? I hope anyone can help.
    Thanks,
    Paul

    Dear Paul,
    only some add on high level ideas:
    if you look at:
    Example: Layout of an Abridged Material Safety Data Sheet - Basic Data and Tools (EHS-BD) - SAP Library
    you find the standard example of SAP for master and slave group:
    2  <11BRG003 (M,SAP_EHS_1012_004;*)> ¶
    3  <03EHS_L_TEXT(CED
      -SDB-01.002)> ¤
    <03EHS_L_TEXT(CED-
    SDB-02-07)> ¤
    <03EHS_L_TEXT(CED-
    SDB-02-05)> ¤
    4  <11BRG002 (S:POS;*)> ¿
    5 <01GESTRIDENT(I:NAM,
    6  IUPAC,;*)> <11ERG002>¤
    7
    8
    9
    <11BRG002 (S:POS; *)> ¿
    <01G1023001R2(C;*)
    ><11ERG002>¤
    <11BRG002 (S:POS;*)> ¿
    <01GESTVPRECL>
    <01GESTVCOMPL(N:" ZZ9,9")>
    <01GESTVCOMPE>
    <11ERG002> ¤
    10  <11ERG003>¶
    The "issue" is that you need to analyse by "line" of POS group; or precisely: it is easy to print lower, upper and average value if it exists.
    In conditional output this example is shown in SAP help:
    <15BIF001(AND:01G1013005VA GE 1)><01G1013005VA(;*/TL)[D:Value]>
    <15CIF001><03EHS_L_TEXT(CUST-100000000000031)[D:Density is less than 1]>
    <15EIF001>
    I believe you need a "clever" nesting together with your customer symbol
    E.g. you need first "test" the contents of the three values and decide about result
    The easiest way could be to use a "table" structure as above.
    Just use column header "lower"; "average"; "upper" value. Then you need to ask your self in which situation what need to printed.
    If you use the table structure and you print just what is there and leave simply lower / upper limit "field" empty if it does not exists (what is bad with this?) you need only this "conditional" output topic done for average value. You could check for: if value > 0.0001 then print the value (as then there is a value); if not use the report symbol in which you calculate something. In my opinion it is worth to try it.
    It is known that you can check "numeric values by using conditional output. I belive tis cintional one des work as well with the "composition" values (lwoer, upper, average),
    May be this approach might help.
    The "stack" examples which are discussed in SAP help and in the links shown are related to "characteristic" values of classes and not for composition ones.
    C.B.
    PS: If this really works you can clearly extend your solution. E.g. if lower value is empty may be print "0", If upper valus is empty may be print "100" etc. (or prepare a further costumer symbol calculating something).

  • Function module needed to schedule a report to run in background.

    Hi,
    I am in need of a basis fm ro schedule a report to run in the background.
    There exists a function group BTCH with fm MINI_JOB_WIZARD which is what I need.The problem is that all the import parameters is mandatory
    IN_JOBNAME
    IN_REPVARNT
    IN_REPORT
    The problem with the above fm is that it requires a report variant which my report doesnt have since my report has no selection screens.
    Can you please suggest me any alternative fms which does the above wizard like stuff without the annoyance of supplying a variant .
    Thanks

    Try to use the standard FM for submit of jobs :
    - [JOB_OPEN: Create a Background Processing Job|http://help.sap.com/saphelp_nwce711core/helpdata/en/fa/096ce5543b11d1898e0000e8322d00/frameset.htm]
    - [GET_PRINT_PARAMETERS|http://help.sap.com/saphelp_40b/helpdata/pt/9f/dba5d535c111d1829f0000e829fbfe/content.htm] for ... print parameters.
    - [JOB_SUBMIT, ABAP SUBMIT: Add a Job Step to a Job|http://help.sap.com/saphelp_nwce711core/helpdata/en/fa/096ce5543b11d1898e0000e8322d00/frameset.htm] -  Use the FM if you have a variant (or call an external program), else use a ABAP [SUBMIT |http://help.sap.com/abapdocu_70/en/ABAPSUBMIT.htm] [selscreen_parameters|http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm] [job_options|http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_VIA_JOB.htm] [spool_options|http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_PRINT_PARAMETERS.htm], you can pass parameters with the [WITH expr_syntax1 WITH expr_syntax2 ... |http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm#&ABAP_ADDITION_4@4@] option.
    - [JOB_CLOSE: Pass a Job to the Background Processing System|http://help.sap.com/saphelp_nwce711core/helpdata/en/fa/096eff543b11d1898e0000e8322d00/frameset.htm]
    Regards,
    Raymond

Maybe you are looking for

  • Issue with HDV m2v files and importprocessserver.exe

    I have 18 or so 40Min m2v files at 1440x1080 29.7P, These file go into premiere and edit with no problem. But when I close premiere and reopen it the project takes over 2 hours to load. The reason for the slowdown is that ImporterProcessServer.exe is

  • New Iphone 5 No srvice at all

    Hi guys last night my iphone 5 lost any signal and i cuold not make any calls or anything else I live in israel and i got my iphone 5 from the USA is ther is someone who can tell me what to do cose im lost PLS.....

  • XMLTable - passing in dynamic variables

    Hi, I am using XMLTable to shred XML data stored in external files into a virtual table so it can be imported into Oracle 10g. I am having problems trying to pass a dynamic file path parameter into the XMLTable function. E.g. DECLARE xml_file_name va

  • Acrobat Help | Signing PDFs

    This question was posted in response to the following article: http://helpx.adobe.com/acrobat/using/signing-pdfs.html

  • Installing Illustrator-trial version

    Hello,      I just tried to install Illustrator -trial version and what came up was ''You are running an operating system that Illustrator no longer supports''Whatdoes this mean?Thanks.Karen