Report Variant

Hello,
I have a report which would be scheduled in background which has change date and year on the sel screen.
change date and year variants is maintained in TVARVC table. Report should form the select option as the last run date and current date. After every run TVARVC is updated with the last run date.I dont want to populate the select option programitically.
Theere are options when u save a variant in se38 like selection variable -(has 2 values in f4 - > tvarvc and dynamic date selection), Option, name of current variable.
Can any one help me in this regard.
Regards,
himanshu

Hi,
In your case, as you already discussed about the selection varaible you can use it in your variant. The selection varaible entries are maintained in table TVARV. In SM30 you can maintain these entries.
Just go to varaint, save it and check the selection varaible box in front of the required field. Once you will save it, you will be prompt for the name of the selection varaibles. Give the names and save it.
Make sure your entries are updated in the table TVARV once the report is executed. If you have any doubt please mention.
Thanks,
Shailendra

Similar Messages

  • How to define a specific report variant execution in Area Menu

    For report REP01, for exemple, with a selection screen, I defined a variant with specific options, named VAR_SPEC1, to be used by a certain group of persons.
    Now I created the Area Menu ZMSPEC1, and I need to associate to it an entry to execute program REP01 via variant VAR_SPEC01. How can I do it?
    I saw that the program REP01 already has already defined a report transaction (ZEXREP01, for ex.), but if I use this transaction in the Area Menu, I will not use my variant...
    I was looking to the different types of transactions that can be defined, but I am a bit lost.
    Thanks in advance.
    Davide

    Hello,
    I am still a bit lost about the easier (or better) way to associate to the new Area Menu the execution of a non-local program with selection-screen, using some predefined options (hidding some fields, predefining others...).
    Can someone be more specific?
    I guess the necessary elements are:
    1) non-local program REP01;
    2) core report variant VAR_DEFAULT, for program above.
    3) new local variant VAR_SPEC1, for program in 1)
    4) ...
    5) ... some solution to link both parts...
    6) ...
    7) Area Menu ZMSPEC1, with a new item to call the execution of REP01 with variant VAR_SPEC1.
    Any ideas? many thanks!

  • How to restrict the display of report variants

    Hello All,
    I want t know how to restrict the display of report variants.
    I mean, when a user saves a variant for his/her purpuse on some report program, only he/she can refer the variant while other users cannot.
    I know that by setting the attribute of the variant ("Protect Variant ", "Only Display in Catalog"), this would be possible, but I want to know another way, without this setting.
    Thank you for your help in advance.
    Regards,

    Hi,
    Can you just try this
    DATA:it_varid TYPE TABLE OF varid.
    DATA:wa_varid TYPE varid.
    INITIALIZATION.
      SELECT * FROM varid INTO TABLE it_varid
          WHERE report = sy-repid
          and ename = sy-uname.
      IF sy-subrc = 0.
        LOOP AT it_varid INTO wa_varid .
          CALL FUNCTION 'RS_SUPPORT_SELECTIONS'
            EXPORTING
              report               = sy-repid
              variant              = wa_varid-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.
      ENDIF.

  • Dynamic seleciton in report variant FBL1N

    Hi,
    Problem Description
    I am trying use dyanamic selection in report variant of FBL1N but its not working.
    My working
    I am using dyanamic date variant.
    In the selection screen of FBL1N, we have posting date in dynamic selections.
    While creating a variant for the selection screen of FBL1N, I am selecting Posting Date of dyanamic selection and choosing selection variant as "D" (D: Dynamic date calculation) along with Current Date as variable.
    However system is not accepting this and the current date is not coming up while choosing this variant.
    Solution required
    Can anyone please help me out with dyanamic date calculation in dates from dynamic selection in report FBL1N.
    Thanks,
    Nitish

    Dear
    You did not specify in which version you are working.  If you are in new GL instead of using FBL1N you can as well use T.Code S_AC0_52000888 and here you can make dynamic selections.
    Regds

  • Report variant not transport to ECC 6.0

    hi all,
    after migration from SAP 4.6 to ECC6, i cant see the SAP transaction report variant not transaport over....is there any SAP table store the user variant not transported ?
    Thanks .

    Pls. check manual:
    Phase SAVE_VAR_CHK
    After the upgrade, many of your variants can no longer be used because the relevant selection screens
    have changed. If your Basis Source Release is 4.5B or higher, the SAP system offers two reports to
    save the variants:
    n RASUVAR1 saves your variants on the source system.
    n RASUVAR2 restores the variants in the target system.
    During phase SAVE_VAR_CHK you can decide whether you want the upgrade tool to run report
    RASUVAR1. The report is started in phase JOB_RASUVAR1. If you have decided to run report
    RASUVAR1, phase JOB_RASUVAR2 automatically starts report RASUVAR2 towards the end of the
    upgrade.
    For more information about the reports, see SAP Note 712297.

  • ABAP code for creating a report variant

    Hi,
    I would like to create parameter on selection screen type SLIS_VARI. I would like that the program will start with pre-defined variant in ALV grid, the same as it is on standard stock report (MB52)...
    Can someone tell me how to do this, and where to put the code?
    Thanks in advance,
    Saso

    Hi,
    This is the code for variant as parameter and F4 help.
    DATA: g_repid LIKE sy-repid,
          g_dynnr LIKE sy-dynnr.
    DATA: g_save(1) TYPE c VALUE 'A',
          g_exit(1) TYPE c,
          gx_variant LIKE disvariant,
          g_variant LIKE disvariant.
    PARAMETERS: p_vari LIKE disvariant-variant.
    INITIALIZATION.
      g_repid = sy-repid.
      g_dynnr = sy-dynnr.
      PERFORM variant_init.
    *Get default variant
      gx_variant = g_variant.
      CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
        EXPORTING
          i_save     = g_save
        CHANGING
          cs_variant = gx_variant
        EXCEPTIONS
          not_found  = 2.
      IF sy-subrc = 0.
        p_vari = gx_variant-variant.
      ENDIF.
                      AT SELECTION SCREEN                               *
    AT SELECTION-SCREEN.
    *--PAI of selection screen
      PERFORM pai_of_selection_screen.
    *---F4 option for report variant
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vari.
      PERFORM f4_for_variant.
                         SUB-ROUTINES                                   *
    FORM variant_init.
      CLEAR g_variant.
      g_variant-report = g_repid.
    ENDFORM.                    " variant_init
    FORM pai_of_selection_screen.
      IF NOT p_vari IS INITIAL.
        MOVE g_variant TO gx_variant.
        MOVE p_vari TO gx_variant-variant.
        CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
          EXPORTING
            i_save     = g_save
          CHANGING
            cs_variant = gx_variant.
        g_variant = gx_variant.
      ELSE.
        PERFORM variant_init.
      ENDIF.
    ENDFORM.                    " pai_of_selection_screen
      CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
        EXPORTING
          is_variant = g_variant
          i_save     = g_save
        IMPORTING
          e_exit     = g_exit
          es_variant = gx_variant
        EXCEPTIONS
          not_found  = 2.
      IF sy-subrc = 2.
        MESSAGE ID sy-msgid TYPE 'S'      NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSE.
        IF g_exit = space.
          p_vari = gx_variant-variant.
        ENDIF.
      ENDIF.
    AND pass this gx_variant to ALV Function module.
    Rewards points if helpful.
    Regards,
    Srinivas ch

  • Report Variant Not Found During Transport

    A user has requested a routine change (adding a purchase group) to a report variant.
    According to our procedures, I have gone into our Development system and changed the report variant to include the new purchasing group. I have then created a transport referencing this report and variant.
    However, when I release the transport I get a warning that...
    LIMU VARX REPORTNAME VARIANTNAME not found, object also deleted in target system
    Application help states that it is a Message no. TW 330
    The transport goes through to our production system, but no changes are made. It is essentially an empty transport.
    I have done this type of change before to numerous report variants without any issues, and other request of this nature continue to go through without problems. Any idea why this might be happening, and how it can be resolved?
    Thanks - points will be rewarded.

    Same problem once I face.
    I transported one variant name and after that name changed and again transported.
    It is not showing new variant name so we executed program and
    Goto->variant      and overwrite the previous one.
    Reward if useful...
    Minal

  • Report variant authorization

    Hello -
    Not sure there is an easy/quick solution to this requirement but.... here goes. 
    For all custom programs, we'd like to limit the list of available report variants to only those variants which were created by the user executing the report.  From our research - there are no available user_exits or authorization checks in function group SVAR which is used to build/display the variant lists.
    Can this be accomplished any other way?  We are running 4.6c.
    Regards & thanks,
    Lawrence

    Hi,
    Why not make the report so it can only run in the background ? This gets round this issue. Check if the report is running in background in AT SELECTION-SCREEN OUTPUT event and raise an error if trying to run online.
    Hope this may help.
    Cheers
    Colin.

  • User-Specific Report Variants

    Hi,
    is there an easy way to assign a user-specific report variant without modifying the report or create own transactions. For example by assigning the report variant somehow to the user-parameter?
    Thanks for your help,
    Andreas

    Hi,
    Maybe you could play with the GET PARAMETER ID ...
    Or maybe you could create a program that start the real program after selecting the default variant of the user. After you call the program with this variant.
    SUBMIT REPORT01
           VIA SELECTION-SCREEN
           USING SELECTION-SET 'VARIANT1'
           USING SELECTION-SETS OF PROGRAM 'REPORT00'
           AND RETURN.
    Rgd
    Frédéric

  • SOLAR_EVAL report variants

    Hello all,
    We are on EHP1, SP20 and are having an issue with report variants for SOLAR_EVAL.  I've created multiple report variants for the Change Request Management report option, and they are all listed in SOLAR_EVAL underneath "Change Request Management", but when I click one, it does not populate the selection fields with the variant's values.  Instead, I have to manually select the variant again from the selection screen.
    Anyone else have this issue,  and know how to solve it?
    Thanks,
    Michele

    Hello Michele,
    When you click on the Variant, under Change Managerment to select the Variant, after, to populate it are you clicking on the "Get Variant" push button (Located between the Execute and reset slection fields buttons). Please try pushing the "Get Variant" push button or press (Shift+F5). I think this is the solution you were seeking.
    Regards,
    Paul

  • Report Variants

    Hallo,
    Does anybody know how to create & load report variants from abap?
    Thanks in advance...

    Hi,
    When u execute the report first u get selection screen to enter parameter.
    After Entering that press on save button. Give name, description & other available options if u want.Save it.
    Now Everytime when u run that report, u get one extra icon with execute button.
    Press on that button. Select ur variant.
    Regards,
    Digesh Panchal

  • Trying to delete a Report Variant in SAP

    I'm trying to delete a Report Variant in SAP, and I receive the
    following Error:
    Variant WF_6DXXJT cannot be deleted/renamed.
    Message no. DB294
    Diagnosis
    You tried to delete variant WF_6DXXJT. However, it is still in use in
    job (job count ).
    How can I find out where this variant is being used at? It could be in
    a scheduled job, but Variant Name is not displayed in SM37.

    hi ,
    check the table VARID ,TVARV which gives all the information about the varients..
    regards,
    venkat.

  • How to find CREATION DATE of a REPORT VARIANT

    Hi Friends,
    How to find the Creation Date of a Report Variant?
    Regards,
    Viji

    Hello Vijaylakshmi,
    You can find the Date of the variant created from the table VARID.
    Go to the table VARID, You can find the report name, Variant name, EDat(Date on which variant was created), you will also find the time stamp at which the variant is created.
    Hope this helps.....
    If you need any further information then please l;et me know. ....
    Regards,
    Kittu
    Edited by: Kittu on May 20, 2009 8:04 AM

  • Table name for background job with report, variant and step user id list.

    Hello All,
    I need to generate the list of scheduled backgroung job with the list of Report Name, Variant, Step User Id called. Please any one tell the SAP Table name from which I can get these data.
    Thanks in Advance,
    Amit

    Hi Rohit,
    Thanks for your reply. But from TBTCO, i can't find program/report name and variant. Just the list of background job i can see.
    Regards,
    Amit

  • Report variants missing in PC00_M10_REC after upgrade from 4.7 to ECC 6.0

    After Upgrade to ECC 6.0 from 4.7 version, two  variants for  Payroll Reconciliation report  in PC00_M10_REC  are missing.
    These variants were of users who have left the organisation/company.
    Can anyone help me to restore those variants and tell me why those two variants got deleted.
    Thanks in advance
    Rohan Das.

    Try to use program RSTRANSP , this will create transport request for variants. after creating the variant your basis team can move to ECC box

Maybe you are looking for