How to create variant for selection screen which is in subscreen

Hi,
How to create variant for selection screen which is in subscreen in a module pool program?
it is very urgent.
Thanks in advance.

Hi,
You can create the 'Parameter Transaction' so that whenever you run the particular transaction it will run with the initial value given when the Tcode was created and hence you can skip the initial screen of the module pool program.
To create Parameter transaction from SE93 you have to choose the last option i.e Parameter Transaction.
Regards
Sudheer

Similar Messages

  • How to create variant for table/view ?

    Hi,
    When I go through SM30, I find a radio button called variant. I don't know the effect.
    Can anyone tell me how to create variant for table / view ?
    I want to know when we need to create variant for table/view.
    Best regards,
    Chris Gu

    hi ,
    Whenever you start a program in which selection screens are defined, the system displays a set of input fields for database-specific and program-specific selections. To select a certain set of data, you enter an appropriate range of values.
    For further information about selection screens, refer to Selection Screens in the ABAP User's Guide.
    If you often run the same program with the same set of selections (for example, to create a monthly statistical report), you can save the values in a selection set called a variant
    Procedure
    To create a new variant:
           1.      On the ABAP Editor initial screen, enter the name of the program for which you want to create a variant, select Variants, and choose Change.
           2.      On the variant maintenance initial screen, enter the name of the variant to be created.
    Note the naming convention for variants (see below).
           3.      Choose Create.
    If the program has more than one selection screen, a dialog box for screen assignment appears. The dialog box does not appear if the program only has one selection screen. The selection screen appears in this case.
           4.      If there is more than one selection screen, select the screens for which you want to create the variant
    5.      Choose Continue.
    The (first) selection screen for the report appears.
    If your program has more than one selection screen, use the scroll buttons in the left-hand corner of the application toolbar to navigate between them and to fill the fields with values. If you keep scrolling forwards, the Continue button appears on the last selection screen.
           6.      Enter the desired selection values, including multiple selection and dynamic selection.
           7.      Choose Continue.

  • How to create a new selection screen IN LOGICAL DATABASE PNPCE

    how to create a new selection screen LDBS PNPCE

    Hello Ankit,
    Do you want to create a new selection screen in LDB PNPCE, or do you want to create a new selection screen in one of your reports using LDB PNPCE?
    For later (which is more common), you can use HR Report Category.
    Hope this helps.
    Best Regards,
    Biraju Rajyaguru

  • How to create a new selection screen LDBS PNPCE

    how to create a new selection screen LDBS PNPCE

    Hello Ankit,
    Do you want to create a new selection screen in LDB PNPCE, or do you want to create a new selection screen in one of your reports using LDB PNPCE?
    For later (which is more common), you can use HR Report Category.
    Hope this helps.
    Best Regards,
    Biraju Rajyaguru

  • Reg: How to create Variants for program SAPF120

    Hi SAP gurus,
    How to create variants for programm SAPF 120.
    with regards
    JK rao

    Hi,
    I suppose you intend to include 22 more Recurring Documents in the F.14 screen in an existing variant. Please check if these 22 are Recurring Docs in FBD3. And make sure that all 48 are appearing in the Document Number (Multiple Selection) tab of F.14. You can test (in a test system) by executing after inclusion and not necessarily saving as variant to make sure that BI session includes all 48 docs.
    Rgds.

  • HOW TO Create  variants for transaction MASS on LFA1 object?

    hOW TO Create  variants for transaction MASS on LFA1 object?
    Edited by: cheppalliakr on Nov 10, 2011 1:09 PM
    Moderator message: please do more research before asking, show what you have done yourself and provide more information when asking.
    Edited by: Thomas Zloch on Nov 10, 2011 3:10 PM

    Hi Oscar ,
    You need to create optional date prompt variable  in BW which fills your requirement .
    Ex : If you require report should always run for 1st of the month to last of month .Then create Optional date variable in BW with interval .write customer exit ,
    if from date is left blank it should take 1st of the month and if todate is left blank it should take last of the month .
    when creating webi schedules , leave prompts as blank.

  • Dinamic variant for selection screen

    Hi,
    I got a requirement where i need  a Dynamic variant for selection screen .There is a date field in the selection screen i want to create  a variant such that when i choose it,it should give the current day date in selection screen.can anyone help me.
    Regards,
    Ravi

    Hi,
    Using Customer Exit code you can give it.
    Create a Customer Exit Variable and write simple code in CMOD. See the usefull Exit code for reports in the following url.
    https://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    WHEN 'ZV_DAT'.
        IF i_step = 1 .
          CLEAR l_s_range.
          l_s_range-low = sy-datum.
          l_s_range-opt = 'EQ'.
          l_s_range-sign = 'I'.
          APPEND l_s_range TO e_t_range.
        ENDIF.
    Thanks
    Reddy

  • How to set default variant for selection screen

    Hi,
    I want to make one variant as default for selection screen for one user.
    For eg., take COOIS. For the selection screen, i have 3 variants. But i want one variant to be default. Thsi is not for all users. Thsi is for particular user.
    I am not seeing any way to do this. please help me..
    Thanks
    Srini

    Hi,
    If you are using Z program then you can ask your developer to get Variant name Runtime from Parameter ID.
    This means you decide a Parameter ID name : ZVAR in your Z program and ask your developer to load variant each time your Z program loads.
    Now, second step will be using SU01 transaction you can set value of ZVAR in Parameters tab for the user. This value will be the variant which you created for this user.
    This will solve your problem and you can make n number of variants and assign it to different users.
    Regards,
    Arpit

  • How to create Variant for braodcasting in BI 7.0

    Hi,
    As we create variants in BW 3.x using table TVARVC and
    t-code STVARV to enter variable to be updated as per requirement and a code for the same.
    And we will get variant in selection screen of report with updated values.
    Can some one tell me how can we do the same in BI 7.0?
    Please reply soon.
    Thanks.
    Santosh

    In the old SAP BW 3.5 version, we used a program that runs everyday after midnite that sets date variables in TVARVC.  The end user could specify which variable from TVARVC to fill the data field in the variant.  We have the user save the workbook and then distribute it via the Web Broadcaster.
    The workbooks are sent via email if things work OK.
    Are you saying we can do something similar using RSRVARIANT?  If we insert a row into RSRVARIANT, will the user be able to replace a field in their variant with the value?
    Here are some of our variables in TVARVC:
    Table:          TVARVC                                                   
    Displayed Fields:   9 of   9  Fixed Columns:                 4  List Width
                                                                                    MANDT NAME                           TYPE NUMB SIGN OPTI LOW                                                                               
    010   Z_PRIOR_FISCAL_PERIOD          P    0000           10/2005      
       010   Z_PRIOR_FISCAL_PERIOD          S    0000 I    EQ   10/2005      
       010   Z_PRIOR_WEEKLY_PERIOD          P    0000           43/2005      
       010   Z_PRIOR_WEEKLY_PERIOD          S    0000 I    EQ   43/2005                                                                               
    This would be for the October 2005 time frame.  In November the Z_PRIOR_FISCAL_PERIOD
    would get bumped up to 11/2005 which would have been November 2005.
    We have a batch procedure that updates the values in TVARVC table.  The user
    can choose with date value to run with.  In the old version everytime the variant
    is accessed, the current value of the variable Z_PRIOR_FISCAL_PERIOD would be fetched,
    so this is the way we could have monthly and weekly batch jobs run for precalculation
    and not get the same date range over and over again.
    How can be give the user an option to choose a variable like the above?
    Do we need to use Microsoft Excel VBA to call SAP BW to call custom code?
    Yes, we can update rsvariant table contents with a program.  But how will we "know"
    which date range the user wants unless they can choose which variable they want to use?
    Has anyone been able to do this?
    Thanks,
    Chris

  • How to set Variant as selection-screen

    I have a variant i want to set that variant as selection-screen can anyone please tell me how to do that

    Hi Pradeep,
    What is your requirement?
    If you just want to create the variant for the selection screeen, then after entering the values on selection screen just press SAVE button.
    Regards,
    Atish

  • Transaction Variant for Selection Screen

    Hi, experts!
    A question regarding transaction variants: Is it possible to create screen variants and transaction variants via SHD0 for selection screens? I' ve created a customer report with one selection screen including parameters and select options and would like to provide the users with a variant transaction for this.
    Utilizing the "Save as variant" option from the selection screen itself works out perfectly, but this variant cannot be transported. And trying to create a transaction variant via SHD0 fails because values entered in the selection screen parameters and select options help screens are not saved and presented.
    Any hints are more than welcome!
    Regards,
    Thomas

    You wrote
    Utilizing the "Save as variant" option from the selection screen itself works out perfectly, but this variant cannot be transported.
    But, give the variant a name beginning with "CUS&" and this variant will be transported. Variant beginning with "CUS&" or "SAP&" are so-called "system variant" and are  transported automatically. You can then copy the transaction code and use this new variant in the new transaction.
    Regards,
    Raymond

  • How to protect variant in selection screen for particular user.

    Hi experts,
    How can i protect variant from other users in a report program , i.e an employee should not be able to execute the program (authorization should  failed ) if he is not user.

    Hi gurug,
    As far as I know, this is not supported by SAP standard. One solution is not to allow users to run a report by choice (standard in most companies) but allow the user a certain transaction. Then you can create variant transactions and allow certain users certain transactions.
    [How to create transaction variants in SAP to hide information|http://searchsap.techtarget.com/tip/0,289483,sid21_gci1213076_mem1,00.html]
    may be useful.
    Regards,
    Clemens

  • How to create variant for HIER reports

    Hello,
    I have to run program RKDBAT02(Background Processing for Drilldown Reports) from a FM that i created.
    i have to run this program with a variant that i need to update with the values from my FM.
    My problem is tha I am trying to use the regular variants FM as RS_VARIANT_VALUES_TECH_DATA to get the variants
    fields that i have to load or fm RS_CREATE_VARIANT and in the parameter report name i put the HIER report name.
    I keep getting an error that this is not a report. I can put the program hier report name which is a long string,
    but the string name change dynamically between clients.
    I need a way to load the variant of the hier report .
    TNX
    Yifat

    fill in the values in the selection screen and then hit the save as button.
    give it a name, enter. the variant is now save.
    M.

  • Variant for selection screen with the Table control entries in another Tab

    Hi Guys,
      The requirement is to create a variant for the two tabs on a selection screen.
      First tab contains the select options and the second contains table control for making entries.
      So will it be possible to create a variant when the user makes entries in the fields in one tab and the table on other tab?

    You wrote
    Utilizing the "Save as variant" option from the selection screen itself works out perfectly, but this variant cannot be transported.
    But, give the variant a name beginning with "CUS&" and this variant will be transported. Variant beginning with "CUS&" or "SAP&" are so-called "system variant" and are  transported automatically. You can then copy the transaction code and use this new variant in the new transaction.
    Regards,
    Raymond

  • Loading user defined variants for selection screens

    hi everybody,
    i want to add a feature to my report which automatically loads a variant for a report.just like iw38, where the variant for the main selection-screen is automatically set when you name it like "U_<username>". sadly i couldnt find anything helpful by debugging the report.
    is there a certain function module to load specific screen-variants?
    thanks,
    dsp

    Hi dsp,
    There is a table
    VARID - Variant directory.
    it consists of all the variants according to the user name, date & time.
    You can do something like this,
    data: it_variant type standard table of varid,
          wa_variant type varid.
    Initialization.
    select * into corresponding fields of table it_variant
    from varid
    where report = sy-repid
    and ename = sy-uname.
    sort it_variant descending by edat etime.
    delete adjacent duplicates from it_variant comparing ename.
    loop at it_variant into wa_variant.
    *CLEAR W_VARIANT.
    *W_VARIANT = wa_variant.
    CALL FUNCTION 'RS_SUPPORT_SELECTIONS'
      EXPORTING
        report                     = sy-repid
        variant                    = wa_variant-variant
    EXCEPTIONS
      VARIANT_NOT_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.
    endloop.
    Hope it helps you,
    Regards,
    Abhijit G. Borkar

Maybe you are looking for

  • How do I create a configuration profile that has wireless settings including a manual proxy server.

    I can configure the wireless network using the IPCU but cannot set the proxy server settings. I'm sure that this is simple but just can't work it out!

  • Lost Red Pigment Colour???

    Hi, I had been having problems with my tv/monitor (Hisense 19" LCD) then realised it was a bad connection with cord that was causing disturbance to screen. While trying to work out the problem I performed a 'Factory Reset' through the TV settings whi

  • Frozen on plug in to mains power adapter icon after update

    I updated the software on my ipod recently only to find it then frozen with an unknown icon. I checked the support website to see what this meant and apparently I have to complete the update by plugging my ipod into a mains socket via an adapter. The

  • Can I use Mountain Lion with my 2008 Mac Pro

    I have a Mac Pro with the following system: Model Family: Mac Pro Processor: 2.66GHz Xeon (Dual-core 5150) Manufacturer: Intel # of CPUs: 2 Codename: Woodcrest Base Memory: 1GB PC2-5300 DIMM Max Memory: 32GB # Memory Slots: 8 Brand: Apple Wireless: O

  • Why does Firefox open multiple instances of .mht files?

    Running laptop with WIN 7, I have changed the default program associated with file type for .mht files from Windows IE to Firefox. Now, when I attempt to open a .mht file on my hard disc, Firefox then proceeds to open seemingly countless instances of