Populating select-options in a variant through selection variable

I have a select-options on the selection screen of a report. I have created a variant for this report. Now i want to populate this variant field through selection variable (entries of table TVARVC). How can i manage to populate multiple values in this. Suppose i want the variant to hold a range of values, how do i set the variable in the table so that the multiple values can be set dynamically?

Hi Ravi,
I know how to populate select-options but i want to know how to set up the selection variable in table TVARVC for using it in populating a select-option in a report variant. we populate these selection variables using the transaction STVARV where we specify a value against a particular variable. How can this variable multiple values (for example a range) so that a select-option can be populated dynamically through this?
regards,
Priyank

Similar Messages

  • Values of select-option in various variants

    Hi all,
    does anybody know a report to determine the values of a specific select-option in various variants of a program?
    I know the function module RS_VARIANT_CONTENTS to get the values of select-options in one variant of a program (TABLES-parameter VALUTAB), but I need it for many variants (like a prgram which calls the function module for all variants of a program).
    Does anybody know a possibility?
    Thanks
    Daniel

    You will probably have to write your own code for this. You could still check the where-used-list of RS_VARIANT_CONTENTS (or related function modules in the same function group) to see if there is any available standard program for your purpose.
    If you find one, please let us know here in this thread.
    Thomas

  • Select-Options and check box on Selection Screen

    Hi Guru's,
    I have to develop a webdynpro report(static). I have a combination of select options and checkboxes on the selection screen. Can you please help me how to design this static selection screen.
    Thanks,
    Pradeep

    Hi Pradeep,
    WDP ABAP does not directly provide the selection screen options as in ABAP programming.
    You can achieve the selection screen functionality using the WDR_SELECT_OPTIONS component usage. Go through the WDP component WDR_TEST_SELECT_OPTIONS.
    Regards
    Wenonah

  • Hiding of Select Options in screen based on selection in selection list box

    Hi People,
             I have a screen where i have put a selection list box, it is pre-filled with values, Now based on the value which user selects, I want to show/hide some select-options fields. I have declared the select options in the top include of my program,
    SELECT-OPTIONS: so_user FOR ls_rsp_user-user_id MODIF ID 222,
                    so_userg FOR ls_rsp_usergrp-user_grp_id MODIF ID 333,
                    so_ccode FOR ls_vdmp-bukrs MODIF ID 444,
    then in the PBO of my screen, I have written a module, set screen in which I loop over screen & check the group id's
    LOOP AT SCREEN.
        IF screen-group1 = '111'.
          IF gv_hier_resp_fields_flag IS NOT INITIAL.
            screen-active = 1.
          ELSE.
            screen-active = 0.
          ENDIF.
        ELSEIF screen-group1 = '222'.
          IF gv_user_fields_flag IS NOT INITIAL.
            screen-active = 1.
          ELSE.
            screen-active = 0.
          ENDIF.
        ELSEIF screen-group1 = '333'.
          IF gv_user_group_fields_flag IS NOT INITIAL.
            screen-active = 1.
          ELSE.
            screen-active = 0.
        ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    I am setting some flags based on the value which user selects in the selection list box, When I debugged I found that the flags were being set correctly, but the screen group value never set to '222' or '333', these are id's i have used for select options. Hence I am unable to hide/show the select options fields.  Kindly suggest some solutions for this.
    Thanks & Regards,
    Deepak

    then in the PBO of my screen
    Your SELECT-OPTIONS are defined in a SELECTION-SCREEN so the PBO actions must be maintained in a AT SELECTION-SCREEN OUTPUT block.
    I suppose the selection-screen is a subscreen, if you dont want to get unwanted interactions with a main selection-screen of the report, check sy-dynnr
    AT SELECTION-SCREEN OUTPUT.
       CASE sy-dynnr.
         WHEN '1000'. " main screen of report
         WHEN '0100'. " selection-screen defined as subscreen
           LOOP AT SCREEN.
             CASE SCREEN-GROUP1.
               WHEN '111'.
             ENDCASE.
           ENDLOOP.
       ENDCASE.
    Regards,
    Raymond

  • Disable the select-options dynamically based on value selected in listbox

    Hi friends,
    I have a peculiar problem in my program.
    I have a list box with two values.
    1) With Ref to Reservation No.
    2) Production order.
    I am doing the object for Transfer Posting ( Similar to MIGO).
    The contents of the listbox here are acting as the label to my select-options.
    I have two select-options in my program.
    1) Reservation No (s_rsnum for rsnum)
    2) Production Order (s_porder for aufnr)
    In runtime, based on the label selected in the listbox, the corresponding select-option should be in visible mode.
    for eg: if i select "With ref to Reservation No" S_rsnum should be enabled and vice-versa.

    Hi,
    here an example with listbox:
    TABLES: MARA.
    PARAMETERS: P0 DEFAULT 'KAUF' LIKE MARA-MTART AS LISTBOX VISIBLE LENGTH 8 USER-COMMAND DUMMY.
    SELECTION-SCREEN: SKIP 3.
    SELECT-OPTIONS: S_MATNR FOR MARA-MATNR MODIF ID DI1.
    SELECTION-SCREEN: SKIP 3.
    SELECT-OPTIONS: S_MATKL FOR MARA-MATKL MODIF ID DI2.
    AT SELECTION-SCREEN OUTPUT.
      IF P0 = 'KAUF'.
        LOOP AT SCREEN.
          IF SCREEN-GROUP1 EQ 'DI1'.
            SCREEN-ACTIVE      = '1'.
            SCREEN-INPUT       = '1'.
            MODIFY SCREEN.
          ENDIF.
          IF SCREEN-GROUP1 EQ 'DI2'.
            SCREEN-ACTIVE      = '0'.
            SCREEN-INPUT       = '0'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
      IF P0 <> 'KAUF'.
        LOOP AT SCREEN.
          IF SCREEN-GROUP1 EQ 'DI1'.
            SCREEN-ACTIVE      = '0'.
            SCREEN-INPUT       = '0'.
            MODIFY SCREEN.
          ENDIF.
          IF SCREEN-GROUP1 EQ 'DI2'.
            SCREEN-ACTIVE      = '1'.
            SCREEN-INPUT       = '1'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    use your own listbox in If-Clauses.
    Regards, Dieter

  • Add new select option for VT04 variants

    Hi Experts,
    Want to know the process of how we add a new select option (say sold-to/KUNAG) to the existing set of selection criteria in the variants in VT04 apart from implicit enhancements.
    Even if we create a new implicit enhancement in LV56LSCR, the new field (sold-to/KUNAG) has to be further added to the select statements also. The select statement in the subroutine INDEX_SELEKTIEREN in LV56LF01 has to be enhanced for the same.
    Also should this new field has to be added to the EXPORT TO and IMPORT FROM MEMORY ID MEMORY_LFSL statements in the other includes of SAPLV56L ?
    Is there a better/recommended way to do this? Any pointers are much appreciated. Thank You.
    Regards,
    Narendra.

    Hi Ravi,
    This is infact the program for the txn VT04, would you be able to shed any other info? Thanks.
    Regards,
    Narendra.
    Edited by: Narendra Daka on Dec 7, 2011 9:00 AM

  • How to modify a select option without range and mutiple selection??

    hi all,
    i need to modify a select option by removing the range and option for multiple entry. i other words i need to make select option as parameter.( because i cannot use parameter in my program due to some constraints.)
    is it possible to change the select option as per my requirement if yes please let me know how is it possible.
    Thanks in advance.
    Sreekanth.

    hi,
            Yes u can use code like following way..
    select-options : s_matnr for mara-matnr no-extension no intervals.
    Reward if helpful.
    Regards
    Gagan

  • How to display selected options in lookup F4  query selection screen

    i have to provide selected options  infoprovider specific than all values from database.

    in our company let there is PMACTIVITY TYPE and there is 140 activities, for aspecific group of our manager /users reports designed
    they have specific list of activities ,can i restrict by some ways to show only those relevant options in F4 selection screen
    Regards
    satish

  • Select Options: How to preallocate the select options values?

    Hi All,
    I have been trying to preallocate my select options. I want to read all values a user is authorized for and set them in the range of the select options fields (before the are actually shown to the user). However, I wasn't able to..
    Does anybody know how to do that and can provide codong examples?
    Thanks, Johannes

    Hi Johannes,
    Refer to the below link which has an article on the same topic with code snippets-
    http://www.divulgesap.com/blog.php?p=NjY=
    Regards,
    Ravikiran

  • I have the latest version of photoshop cc . Why is the focus select option not available ? (for selecting the in focus area)a)

    I have the latest version of photoshop cc. Why is the focus selection option not available ?

    Use CC 2014 menu Help>System Info... use its copy option and paste the info here.  So we know your running CC 2014 not CC and that you have an enabled GPU....and latest device drivers.

  • Select option , want to hide the selection field

    hi all,
    I have a select option
    s_flight  low to high
    as per my requirement i just want to show the low and high fields.
    I dont want "s_flight" to be displayed on the screen.
    Can someone please help me with this

    Goto Selection Text and in Text window infront of that selection text make text field blank..

  • How to get the data into select options if we have 10 select options

    Hi Experts,
         I facing problem to get the data from diffrent tables and different select options.
    I have to pass different parameter ranges.
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: rb1 RADIOBUTTON GROUP g1.     "Existing Key Accounts
    PARAMETERS: rb2 RADIOBUTTON GROUP g1.     "Potential Key Accounts
    SELECT-OPTIONS: s_part FOR but000-partner."Business Partner Number
    PARAMETERS: p_bpkind LIKE but000-bpkind.    "Business Partner Type
    PARAMETERS: p_but000 LIKE but000-partner.   "Key Account Manager
    SELECT-OPTIONS : s_vkont FOR fkkvkp-vkont. "Contract Account
    SELECT-OPTIONS : s_ktokl FOR fkkvkp-ktokl. "Debtor Type
    SELECT-OPTIONS : s_sparte FOR ever-sparte.  "Division
    SELECT-OPTIONS : s_vertra FOR ever-vertrag. "Contract
    SELECT-OPTIONS : s_budat FOR erdk-budat.   "Invoice Date
    SELECT-OPTIONS : s_netto FOR dberchv-nettobtr."Billing Amount
    SELECT-OPTIONS : s_abrm FOR abc.               "Consumption Value
    SELECTION-SCREEN: END OF BLOCK b1.
    need response asap.
    Thanking you.
    Regards Surya Ramireddy

    HI,
    You can use as many Select-options in the select statment,
    Select XXXX yyyy from TABLE where FIELD In S_FIELD1 and
    FIELD2 In S_FIELD2.
    Regards
    Sudheer

  • Select option values disappearing from the  Selection screen

    Dear experts
    I have a selection screen in a report which has push button in the Application toolbar . When I press the button in the application toolbar it should get the count of the output just like in se16 and display it as message.
    I have added the button and I am processing the same in the AT-SELECTION_SCREEN event
    ie
    AT SELECTION-SCREEN.
      IF sscrfields-ucomm = 'FC01'.
        PERFORM get_query_count.
      ENDIF.
    FORM get_query_count .
      CREATE OBJECT g_model.
    l_query_count  = g_model->get_query_count(
      MESSAGE s078  WITH l_query_count .
    ENDFORM.
    Here the problem is I am getting the message but the selection screen values are disappearing after the same .Now the strange thing I just hardcoded the l_query_count without going in to the class method , but then the selection screen values  are not disaapearing?
    Is there any limitation for using classes at AT SELECTION SCREEN event

    Hi,
        Try to write changing in perform.
    AT SELECTION-SCREEN.
    IF sscrfields-ucomm = 'FC01'.
    *PERFORM get_query_count changing p_count.*
    ENDIF.
    *FORM get_query_count changing l_query_count .*
    CREATE OBJECT g_model.
    l_query_count = g_model->get_query_count(
    MESSAGE s078 WITH l_query_count .
    ENDFORM.
    Regards,
    Srini.

  • Change values of select option in fuction of the variant

    Hi abappers,
    I want change the data that contain several select-options.
    I have a table internal (c_varint) that I obtain with the next code:
    CALL FUNCTION 'RS_VARIANT_CONTENTS'
         EXPORTING
              report                = '/1BCDWB/DBBKPF'
              variant               = p_varint
    *         MOVE_OR_WRITE         = 'W'
    *         NO_IMPORT             = ' '
    *         EXECUTE_DIRECT        = ' '
    *    IMPORTING
    *         SP                    =
         tables
    *         L_PARAMS              =
    *         L_PARAMS_NONV         =
    *         L_SELOP               =
    *         L_SELOP_NONV          =
              valutab               = c_varint
    *         OBJECTS               =
    *         FREE_SELECTIONS_DESC  =
    *         FREE_SELECTIONS_VALUE =
    *    EXCEPTIONS
    *         VARIANT_NON_EXISTENT  = 1
    *         VARIANT_OBSOLETE      = 2
    *         OTHERS                = 3
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    and my select-options:
    SELECT-OPTIONS I1 FOR BKPF-BUKRS.
    SELECT-OPTIONS I2 FOR BKPF-BELNR.
    SELECT-OPTIONS I3 FOR BKPF-GJAHR.
    SELECT-OPTIONS I4 FOR BKPF-BLART.
    SELECT-OPTIONS In ...
    Now I want change the values but I got not him to changed it to me :
    loop at c_varint where selname eq i1.
       MOVE-CORRESPONDING c_varint to i1.
    endloop.
    loop at c_varint where selname eq i2.
       MOVE-CORRESPONDING c_varint to i2.
    endloop.
    loop at c_varint where selname eq i3.
       MOVE-CORRESPONDING c_varint to i3.
    endloop.
    loop at c_varint where selname eq i4.
       MOVE-CORRESPONDING c_varint to i4.
    endloop.
    but I dont obtain the data
    Can you help me, please?
    Cordial greetings.

    Hi,
    the documentation of the fm you´re using says:
    RS_VARIANT_CONTENTS
    This function module checks whether any parameters or select options of the variant have changed. If they have, it outputs an error message (variant obsolete).
    have you checked fm RS_CHANGE_CREATED_VARIANT instead?
    the documentation of this fm says:
    RS_CHANGE_CREATED_VARIANT
    Functionality
    This function module enables modification of a variant without processing the selection screen. In the table VARI_CONTENTS, you must supply all select-options and parameters of the variant with values. Any selection criteria missing from this table are set to their initial values in the variant. If no value is specified for the structure description (parameter VARI_DESC), all fields - except the name of the last user to make the change, the time of the change, the version and the language - are set to their initial values. The table VARI_TEXT is optional
    Best regards

  • Selection OPTION: Date input problem in Module POOL through Subscreen

    Dear ALL,
    Being new to ABAP, I am struck in a Problem.
    Requirement:
    I want an option on the Screen( My Screen 9000) for Date Range. Through this Date-Range I want to filter and pull some data from
    Database.
    As Date Range Selection option is possible only through Sub-Screen integration. Hence I integrated a Sub-Screen 400 (as below) and named the Sub-Screen area as SEL on my screen.
    Problem: As soon as I enter the dates on the screen, then those dates are not taken up by the code.
    During debugging I saw the the S_datum-low and S_datum-high are empty (in fact 00000000)
    The code follows:
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_9000.
      Call SUBSCREEN SEL  INCLUDING sy-repid '400'.
    PROCESS AFTER INPUT.
      MODULE USER_COMMAND_9000.
    DATA:  gv_datum     Type   dats,
    SELECTION-SCREEN BEGIN OF SCREEN 400 AS SUBSCREEN.
        SELECT-OPTIONS: s_datum FOR gv_datum.
    SELECTION-SCREEN END OF SCREEN 400 .
    Plz help where I am missing something.
    Regards
    Chandan

    Call the subscreen during the AT SELECTION-SCREEN event.
    SELECTION-SCREEN BEGIN OF SCREEN 400 AS SUBSCREEN.
    SELECT-OPTIONS: s_datum FOR gv_datum.
    SELECTION-SCREEN END OF SCREEN 400 .
    AT SELECTION-SCREEN.
       CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
       SET PF-STATUS '0100'.
    *  SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
       CASE sy-ucomm.
         WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
           LEAVE TO SCREEN 0.
       ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT

Maybe you are looking for

  • Need Help Transferring/Syncing Contacts TO PC

    I feel like I have searched everywhere for a solution but haven't found one.  I am ultimately trying to export my contacts on my iphone 4 to an excel format. If I can do this directly, excellent.  If it's a 2-step process, fine. I did see that I can

  • Satellite C855D-S5237 Laptop HDMI Output Not Working

    Hi, I have a Toshiba Satellite C855D-S5237 Laptop and the HDMI Output is no longer working on my Toshiba TV. The TV does not recognize that anything is connected and the laptop doesn't recognize the TV as a display option. I have used this laptop man

  • 503 Service Unavailable when accessing port 80

    No matter what I try to connect to using port 80, the only response I get is a 503 error. I can connect to port 9090 without problems. I am running ifs v108 on Solaris, connecting using IE401 sp1a. My startup sequence on a newly booted server is: log

  • Counting lines in a text/csv file.

    Can you advice me, how I can get the total number of lines in a text/csv file please using java code. I will get the text/csv file content in a string variable not as a file. EX: string var = "123\n234\n123\n3456\nsdfsd\n" here \n is in the new line.

  • Erasing iMac before selling. Need Help.

    Hello, I'm selling my Mac. I'm going to do a clean install and am wondering if someone can look at what I'm going to do, and let me know if this is correct. First going to zero out the HD. Then doing a clean install with my restoration discs. Looking