Passing values to a dynamic selection screen via a report

Hi,
I have the following problem and need to seek your expertise urgently.
In my program, I need to call another report by passing in parameters to the selection screen of other report. However, I could not pass values into a dynamic selection screen. I tried to use submit (report) with free selection but do not know how it works.
Currently, I tried calling the function RS_REFRESH_FROM_DYNAMICAL_SEL and FREE_SELECTIONS_RANGE_2_EX. Using the object the first function has returned to me, I tried to append values such as fieldname etc to it. However, I realised the field names of a dynamic selection screen keeps changing. So I would not know how to pass a particular value to a selection field.
Appreciate any help given.
Thanks,
CK

Hello CK,
Are you using logical database in your selection screen program attributes? If it is, look at include file DBxxxSEL for parameter named xxxDYNSE where xxx = logical database. Debug the program that has that dynamic selection, and look at field xxxDYNSE. This should give you a hint on how to populate the parameter when you submit the program.

Similar Messages

  • MSS report not passing values from portal to selection screen fields

    Hello Gurus,
    We have a problem with Sickness Absences report in MSS which is a Z copy of the standard report RPTABS20.
    The problem is when the manager defines the selection criteria and selects the other period dates and under Organizational View - selects All Organizational Units and highlights one org unit and report results, then the report displays the employees which are currently not part of same org unit as selected in selection criteria. But these employees were present in this org unit in past when they took leave, which comes under the same period as given on selection screen. So in a way it seems to be right. But the requirement is to only display the employees which are currently present in this org unit.
    The report seems to be working fine in backend where we specified the same date range and org unit on selection screen.
    On our investigation in portal we came to know that the org unit field on selection screen PNPORGEH is not getting filled with org unit number selected on portal.
    On further investigation in debugging we came across the fm HRWPC_RPT_START_REPORT which calls fm HRWPC_RPT_FCODE_EXEC which in turn calls fm HR_HIS_EXECUTE and it executes the report with following code:
        SUBMIT (repos-repid)  AND RETURN
               USING SELECTION-SET repos-varit
               WITH pnpindex IN objid_ranges
               WITH pnptimed eq ' '
               WITH pnpbegps eq act_begda
               WITH pnpendps eq act_endda
               WITH pnpbegda eq act_begda
               WITH pnpendda eq act_endda
               WITH p_super  eq space.
    Looks like the standard code is not passing the org unit to the selection screen of the report.
    Request you to kindly guide if this is a SAP standard problem or the report is not configured properly ?

    Please check steps as mentioned here
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=199820849
    and report variant, check your evaluation paths if it is being refreshed correctly, click twice to refresh.
    check tje note 1431691
    When the report is launched from
    the portal, the program is reading the table:T77eo for the object
    type-'O' , since there are no entries for the object 'O' in the table,
    the switch INREL is not set, therefore the structure pchobjid is not
    filled while calling the report as shown below. Now I know the
    rootcause, but I don;t know the reason behind the table: T77EO not
    having entries for object "O".
    ==============================================================
        SUBMIT (fcode_rec-progname)
        USING SELECTION-SET fcode_rec-variant
        AND RETURN
                       WITH pchplvar EQ act_plvar
                       WITH pchotype EQ act_otype
                       WITH pchobjid IN pchobjid
                       WITH pchsobid IN pchsobid
                       WITH pchobeg  EQ act_begda
                       WITH pchoend  EQ act_endda
                       WITH pchbegda EQ act_begda
                       WITH pchendda EQ act_endda.
    try to use PNP database for seleciton only these paramters are passed to backend!

  • How to call dynamic selection screen from another report

    hi,
    i have transaction ZFAGLL03.
    it has got standard selection screen.. and dynamic selection screen...
    i am calling this transaction from another report, now how do i display this dynamic selection screen.....

    Try following code and see if it helps:
    TYPE-POOLS : rsds.
    TABLES:tgsb.
    DATA: trange TYPE rsds_trange,
           trange_line
             LIKE LINE OF trange,
           trange_frange_t_line
             LIKE LINE OF trange_line-frange_t,
           trange_frange_t_selopt_t_line
             LIKE LINE OF trange_frange_t_line-selopt_t,
              trange_line1
             LIKE LINE OF trange,
           trange_frange_t_line1
             LIKE LINE OF trange_line-frange_t,
           trange_frange_t_selopt_t_line1
             LIKE LINE OF trange_frange_t_line-selopt_t,
           texpr TYPE rsds_texpr.
    DATA: seltab TYPE TABLE OF rsparams WITH HEADER LINE,seltex TYPE rsds_texpr.
    SELECT-OPTIONS:so_gsber FOR tgsb-gsber.
    LOOP AT so_gsber.
       trange_line-tablename = 'FAGLFLEXA_FS'.
       trange_frange_t_line-fieldname = 'RBUSA'.
       MOVE-CORRESPONDING so_gsber TO trange_frange_t_selopt_t_line.
       APPEND trange_frange_t_selopt_t_line
       TO trange_frange_t_line-selopt_t.
    ENDLOOP.
    APPEND trange_frange_t_line TO trange_line-frange_t.
    APPEND trange_line TO trange.
    CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
       EXPORTING
         field_ranges = trange
       IMPORTING
         expressions  = texpr.
    submit FAGL_ACCOUNT_ITEMS_GL with FREE SELECTIONS texpr   AND RETURN .

  • Passing values to FM froma selection screen

    Hi Guys,
    I have a selection screen in which i have 'From' and 'To' input fields.Also using multiple select button i can select discrete values.In the function module they have a table type in the import param.
    Is it possible to send the  values within the range plus the discrete values selected? If yes, then please help.
    Thanks,
    tubai.

    Hi,
    You can below code:
      DATA: rt_ranges TYPE REF TO data.
      FIELD-SYMBOLS:  <fs_select> TYPE table,
                                <fs_wa>  TYPE ANY,
                                <fs_wa1> TYPE ANY.
      DATA: lt_select  TYPE TABLE OF rsdsselopt,
                wa_sel_opt TYPE rsdsselopt.
    Retrieve the data from the select option
      rt_ranges = wd_this->w_handler->get_range_table_of_sel_field(
                               i_id = 'SELECT' ).
    Assign it to a field symbol
      ASSIGN rt_ranges->* TO <fs_select>.
      IF NOT <fs_select> IS INITIAL.
        LOOP AT <fs_select> ASSIGNING <fs_wa>.
          ASSIGN COMPONENT 'SIGN' OF STRUCTURE <fs_wa> TO <fs_wa1>.
          lwa_sel_opt-sign = <fs_wa1>.
          ASSIGN COMPONENT 'OPTION' OF STRUCTURE <fs_wa> TO <fs_wa1>.
          lwa_sel_opt-option = <fs_wa1>.
          ASSIGN COMPONENT 'LOW' OF STRUCTURE <fs_wa> TO <fs_wa1>.
          lwa_sel_opt-low = <fs_wa1>.
          ASSIGN COMPONENT 'HIGH' OF STRUCTURE <fs_wa> TO <fs_wa1>.
          lwa_sel_opt-high = <fs_wa1>.
          APPEND lwa_sel_opt TO lt_select.
        ENDLOOP.
      ENDIF.
    You then pass lt_select to your FM.
    Regards,
    Priya

  • Value Request in Dynamic selection selection screen

    Hello Gurus,
    Please let me know whether we can add F4 - > Value request in Dynamic Selection screen.
    If Yes please do let  me know how to do it. If posssible please give me the code.
    Thanks
    Mac

    Hi Mac,
    It is pssible to have F4 help for fields in dynamic selection screen.
    Please find the sample code below.
    PROGRAM  ZTESTABC1                               .
    DATA : GV_VBELN LIKE VBAK-VBELN,
           GV_AUART LIKE VBAK-AUART.
    DATA : BEGIN OF I_VBAK OCCURS 0,
             VBELN LIKE VBAK-VBELN,
             AUART LIKE VBAK-AUART,
             NETWR LIKE VBAK-NETWR,
           END OF I_VBAK.
    ranges : r_auart for vbak-auart.
    data : begin of value_tab occurs 0,
             vbeln like VBAK-VBELN,
           end of value_tab.
    data :  ret_tab type ddshretval OCCURS 0 WITH HEADER LINE.
    DATA : GV_REPID LIKE SY-REPID,
           GV_DYNNR LIKE SY-DYNNR.
    Static selection screen
    SELECTION-SCREEN begin of block b1.
    parameters : p_rb RADIOBUTTON GROUP G1,
                 p_gb RADIOBUTTON GROUP G1.
    SELECTION-SCREEN end of block b1.
    Dynamic selection screen
    selection-screen:begin of screen 110.
    parameter:P_VBELN type vbak-vbeln,
              P_AUART type vbak-AUART.
    selection-screen: end of screen 110.
    INITIALIZATION.
    GV_REPID = SY-REPID.
    GV_DYNNR = SY-DYNNR.
    at SELECTION-SCREEN.
      if P_auart is not initial.
        r_auart-low = gv_auart.
        r_auart-sign = 'I'.
        r_auart-option = 'EQ'.
        append r_auart.
      endif.
      if p_rb = 'X'.
        IF P_AUART IS INITIAL AND P_VBELN IS INITIAL.
          call SELECTION-SCREEN 110 STARTING AT 10 10.
        ENDIF.
      endif.
    at SELECTION-SCREEN on VALUE-REQUEST FOR p_VBELN.
       SELECT VBELN FROM VBAK
              INTO TABLE VALUE_TAB.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
         DDIC_STRUCTURE         =
          RETFIELD               = 'P_VBELN'
        PVALKEY                = ' '
         DYNPPROG               = 'ZTESTABC1'  "Report name
         DYNPNR                 = '0110'   "Screen Number of dynamic Screen
         DYNPROFIELD            = 'VBELN'
        STEPL                  = 0
        WINDOW_TITLE           = 'Sales Order'
        VALUE                  =
         VALUE_ORG              = 'S'
        MULTIPLE_CHOICE        = ' '
        DISPLAY                = 'X'
        CALLBACK_PROGRAM       = ' '
        CALLBACK_FORM          = ' '
        MARK_TAB               =
      IMPORTING
        USER_RESET             =
        TABLES
          VALUE_TAB              = value_tab
        FIELD_TAB              =
         RETURN_TAB             = ret_tab
        DYNPFLD_MAPPING        =
       EXCEPTIONS
         PARAMETER_ERROR        = 1
         NO_VALUES_FOUND        = 2
         OTHERS                 = 3
      IF SY-SUBRC = 0.
        p_vbeln = ret_tab-fieldval.
        CLEAR VALUE_TAB. REFRESH VALUE_TAB.
      ENDIF.
      START-OF-SELECTION.
      SELECT VBELN AUART NETWR
             FROM VBAK
             INTO TABLE I_VBAK
             WHERE VBELN = p_VBELN
               AND AUART IN R_AUART.
    END-OF-SELECTION.
      READ TABLE I_VBAK INDEX 1.
      WRITE:/ I_VBAK-VBELN, I_VBAK-AUART, I_VBAK-NETWR.
    Thanks,
    Jyothi

  • Dynamic selection screen for custom ABAP report

    Hi,
    His it possible to create a custom ABAP report with a dynamic selection screen. The report doesnot use a logical database. If possible sample code will be appreciated.
    Regards,
    Chandra Kumar

    hi
    use this link
    Dynamic selection screen
    Cheers
    Snehi

  • How to retrieve values from Dynamic Selection screen while using LDB  - PSJ

    I am having problem in PSJ Logical database. In a custom report which is using PSJ LDB, we are using PROJ and PRPS_R tables.
    When I run program it displays one dynamic selection screen, there we are giving selection criteria for PRPS (Master data WBS element) - Created on (giving some range like 2011/01/01 to 2011/01/31).
    So I want to display all WBS element which are created during the period (2011/01/01 - 2011/01/31).
    How do I retrieve the select-option low and high value of the field Created on Of WBS element if we Select data from any table based on this condition.
               Please help me.
    Thanks.

    in fact you don't have to get the values, you only need to tell to the program to take them into account :
    GET PRPS.
      CHECK SELECT-OPTIONS.

  • Dynamic selection screen fetching the value from table fields

    hi gurus,
    i have one table say ztable...and i should create a dynamic selection screen which should populate the selection screen by the table field names.
    example..if i have 3 fields im my table..my selection screen should have three selection option fields..and in future if i add one more field in my table it should automatically create another slection-option in selection screen..
    thanks
    Sudheer

    Do you mean like SE16 works. If so, you should notice that if you  amend the selection fields, the screen program is actually re-generated.
    That is what is happening. A program is being created and re-generated.
    To create a dynamic selection screen in a single program is not possible ( I may be wrong ). If it is possible, then you would have problems in defining selection screen field names and using them.

  • How to generate a dynamic selection-screen

    Hi folks,
    I have a itab with all fields and descriptions of a database-table. Now i want to generate a selection screen dynamically. I want to create a select-option for every field of the table.
    First I read all fields of a database table into my intern table:
    CALL FUNCTION 'DDIF_FIELDINFO_GET'
      EXPORTING
        tabname              = 'database_tabname'
      TABLES
        dfies_tab            = it_tabname_fields.
    Then I tried to generate a dynamic selection-screen with a select-options statement per field of the itab, but it doesn't work:
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001 NO INTERVALS.
    LOOP AT it_tabname_fields INTO s_tabname_fields. "should be 14 loops and 14 lines
      SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT (25) s_tabname_fields-SCRTEXT_S FOR FIELD var1. "the name of the field should be set dynamically from the itab
      SELECT-OPTIONS var1 FOR tabname-s_tabname_fields-fieldname. "s_tabname_fields-fieldname should be set dynamically for each line
      SELECTION-SCREEN END OF LINE.
    ENDLOOP.
    SELECTION-SCREEN END OF BLOCK b2.
    I know that this doesn't work but it should help you to understand what i want to do. It doesn't create more than one select-option (it should be 14 because there are 14 lines in the table) and it doesn't get the values from the table.
    I hope you can help me...
    Regards,
    Sebastian

    hi
    Firstly, have a look at the following code to see how this can be implemented -
    REPORT ZTEST.
    perform test.
    class test definition.
      public section.
        methods: create_screen.
    endclass.
    class test implementation.
      method create_screen.
        data:  report_line(72),
               report_source like table of report_line.
        data: err_message(240),
              err_line type i,
              err_word(100).
        report_line = 'REPORT TEST.'.
        append report_line to report_source.
        report_line = 'PARAMETERS: P_TEST TYPE I.'.
        append report_line to report_source.
        report_line = 'START-OF-SELECTION.'.
        append report_line to report_source.
        report_line = 'WRITE : P_TEST.'.
        append report_line to report_source.
        syntax-check for report_source message err_message
                                       line    err_line
                                       word    err_word.
        if err_message is initial.
          INSERT REPORT 'ZZZTESTZZZ' FROM REPORT_SOURCE.
          SUBMIT ZZZTESTZZZ VIA SELECTION-SCREEN AND RETURN.
        endif.
      endmethod.
    endclass.
    form test.
      data test type ref to test.
      CREATE OBJECT TEST.
      call method test->create_screen.
    endform.
    As you can see, the report is being written dynamically. Once the INSERT REPORT statement is executed, the program is available. you can you external subroutine calls to pass the data between the programs now.
    Regards,
    ravish
    <b>plz dont forget to reward points if helpful</b>

  • How to display the sort value in the selection screen in the report title

    Dear All,
    How to display the sort value in the selection screen in the report title? I have selected a value in the selection screen for sorting , but i need that values by which i have sorted with in the report title. Can you please throw some light on this!!
    Good day,
    Thanks and regards
    Arun S

    Hi Arun,
    Try this.
    1, Set one dynamic parameter,
    2, Drag and drop that parameter into  your report title.
    3, Pass the value(sort value) dynamically from your application,
    4, Cheers..
    Other wise Try with Dataset, create a dataset and fill thev alue into that.. Then  set the data source from CR designer. and darg and drop that data column into the report.
    Hope this will work,
    Regards,
    Salah
    Edited by: salahudheen muhammed on Mar 25, 2009 11:13 AM

  • Issue with MB25 BDC for Dynamic Selection Screen

    Hi Experts,
    I recorded one BDC for MB25 Tcode regarding to determine Open Reservation(s) in E Mode (Display Mode). I am passing 3 parameters.
    1. Plant,
    2. Requirement Date
    3. Multiple Reservation Numbers i.e. RSNUM from Dynamic Selection i.e. 2nd Button -> Header Data for Reservation -> Reservation -> Multiple Selection Icon.
    But while executing that BDC, I need to manually click every time on 'Header Data for Reservation' Tree and then Multiple Selection for Reservation Icon.
    I want below steps automatically while executing:
    - Open 'Header Data for Reservation' Tree
    - Click Reservation
    - Open Popup for 'Multiple Selection'.
    So no need to click every time on Dynamic Selection Screen i.e. Header Data for Reservation -> Reservation -> Multiple Selection Icon.
    Please find attached screen shot for your reference.
    Please guide.
    Thanks and Regards,
    Emon Master

    Hello Jainam,
    submit (sy-repid) with selection-table v_sp
                             with free selections EXPRESSIONS
                             via selection-screen.
    Without going through the details, dont you think this will cause an inifinite loop as the calling & the called programs are the same.
    Please enlighten me !!
    BR,
    Suhas

  • Dynamic selection screen with ABAP web dynpro

    Hi all.
        How can I create dynamic selection screen with ABAP web dynpro? Thank you in advance.

    hi yinglak.....
             this is possible........ all the ui elelments has the property called visible and enabled.... just assign an attribute of type wdui_visibility to the visible property....
    in the wddomodify method..... check for the radio button value and pass the value true or false to this attribute and it gets changed automatically.
    ---regards,
       alex b justin

  • Business Place in Dynamic Selection Screen

    Dear Gurus,
    I want to bring Business Place field in Dynamic Selection Screen of Transaction code FBL3N. Please guide how to do this.
    Regards,
    VS

    HI,
    The fields which are eligible for dynamic selection can be reviewed for
    the related logical database via trans SE36, e.g., using logical data-
    base SDF (G/L accounts), select Extras -> Dynamic selections.  The
    following tables are available:
         SKA1 G/L Account Master (Chart of Accounts)
         SKB1 G/L Account Master (Company Code)
         BSIS Accounting: Secondary Index for G/L Accounts <   Use for BUPLA
    Table BSIS contains the BUPLA (Business place) field which can be
    added to the dynamic selections for trans FBL3N (see note 310886 for
    additional info).
    Please perform the following steps to add the line item (BSIS-BUPLA)
    field to dynamic selections:
    1)  Run trans SE36 using logical database SDF.  Select Extras ->
        Selection views.  Enter origin of view CUS.  Click on Create.
    2)  Under Tables/Nodes, scroll down to table BSIS and double click on
        it.  This will display the available fields from table BSIS below.
    3)  Under Functional groups, enter functional group ID / text:
        Functional groups
    ->   01  BSIS
    4)  Under Table fields/Node fields, enter functional group ID from
        step 3 to the left of the BUPLA field:
        Table fields/Node fields
    -> 01  BUPLA            Business place
        Click on Save.  Msg S3404 "Selection view saved" should appear.
    5)  Run trans FBL3N.  Click on Dynamic selections -> BSIS.  Double
        click on Business place.  A popup box should appear allowing entry
        of a single business place value.  Click on Multiple selection ->
        Ranges to enter business place range.
    I hope above will resolve your issue.
    Regards
    Madhu M

  • Dynamic selection screen

    Hello all,
    I have a requirement to create a 'dynamic' selection screen with 2 sections(vertical).
    The first section contains set of selection options for which the type comes from the values stored in the internal table(populated at runtime). The second section contains checkbox corresponding to each selection option generated/created in the first section mentioned above.
    So the number of fields and checkboxes to be created are identified only at the runtime.
    Note: I already tried to use FMs FREE_SELECTIONS* but it is not serving my purpose.
    Looking forward to your inputs.
    Thanks & Regards,
    Rajat
    Edited by: rajat.sap123 on Feb 7, 2012 7:18 PM

    Why don't you use the At selection-screen output event.
    As i have understood your scenario you have two sections. with the first one containing the select-options. The second will change on basis of the first section selection.
    Hope it helps you.
    Elaborate a bit more so i can paste a code.

  • Specific criteria in dynamic selection screen.

    Hi experts.
    I have a requirement to build dynamic selection screen fields. For these I would like to use FREE_SELECTIONS_INIT and FREE_SELECTIONS_DIALOG function modules.
    The problem is that all fields could be single field or as a range... Is there any chance to make specific fields (DATS) as a single field and others as a range ?
    Thanks a lot.
    Daniel.

    yes
    you need to pass fields in parameter FIELDS_TAB of function FREE_SELECTIONS_DIALOG
    in this structure you have the field type P or S

Maybe you are looking for

  • Pages 5 not opening

    I downloaded Pages 5 but when I reopened Pages, version 4.3 was still active although App Store says Pages 5 is "installed". I can't locate version 5 on my MacBook Pro (Maverick).

  • Convert standard video files in to flv file at run time

    Hello All How can we convert standard video files in to flv file at run time like you tube and Google Video is there any script or tool to do this. This is urgent. I have one project in this project client requiring function like whatever standard vi

  • D700 RAW update not working?

    I just installed the new raw update which adds support for D700 RAW files. When I try to view these, it now generates a mini-thumbnail (128x128px?) but won't generate anything larger than that... any ideas what's going on? I can apply adjustments and

  • FM to read proxy xml data

    Hi All, Is there any FM or class-method to read XML proxy message for a given message id? Scenario: An inbound interface coming from XI to ECC system using ABAP proxy method.While processing this inbound proxy it will trigger create another response

  • Application client contents

    I have a J2EE application consisting of several war modules, an EJB module, a number of client modules, and several helper class jars, all packaged in an ear file. When it is deployed, I noticed that one huge client jar is created which contains stub