To set up variant

I need to set up the variant of program to run in background everyday.
For that one field is date and that needs to be a system date. so how can I setup
that variant.
variable name is p_date and that should be sy-datum.
thanks,
Manan.

- Plug in all the selection parameters value and click the save button to save it as a variant.
- On the <i>ABAP: Save as variant screen,</i> check the selection variable checkbox for that date field and click the selection variable button.
- Click on the <i>D: dynamic date calculation</i> column to mark the traffic light to green.
- Then click the drop down button to choose the 'current date'.
- Click SAVE buttons twice to save the variant.
Hope this helps.
<i><b>Points are always welcome!</b></i>

Similar Messages

  • Setting  a variant in WEB-DYNPRO application

    Hi expert,
    I want to set a variant in WEB DYNPRO ABAP application so how it is possible could you give me a any example. ASAP.
    REGARD'S
    VIKASH

    HI Vikash,
    If your problem of variants is still there check this link for customize variant.......
    This is for creating variant.......
    /people/sharad.agrawal/blog/2008/08/25/creating-and-using-variant-in-select-options-with-web-dynpro-for-abap-2
    This is for getting variants.........
    /people/sharad.agrawal/blog/2008/08/26/creating-and-using-variant-in-select-options-with-web-dynpro-for-abap-3
    regards
    Pranav

  • How to set "Configuration Variant" for a sales order item using function

    Hello All,
    I use function module 'SD_SALES_DOCU_MAINTAIN'  to create Customer Indep. Requirements but how to set "Configuration Variant" for a sales order item.
    Is their any idea or sample code?

    Hi Zhijun zhang,
    <u>http://help.sap.com/saphelp_nw2004s/helpdata/en/c0/98038ce58611d194cc00a0c94260a5/content.htm</u>
    <u>http://help.sap.com/saphelp_nw04/helpdata/en/c0/980374e58611d194cc00a0c94260a5/content.htm</u>
    A variant is simply an SAP report where the parameters for running the report have been set by the user and then saved with unique name. This allows future retrieval and execution of the report faster without reentering the parameters. As a convention the variant name should start with with the digits 50 so searchs for LHU variants is easier and quicker.
    The first link will guide you by screen shot wise.
    Award points if it adds information.
    Thanks
    Mohan

  • Set dynamic variant for time

    Hi,
    I have selection options for field as defined as TIME . I need to set dynamic variant for this field as
    TIME should be "from"='current time-30 minutes' and "to"='24:59:59'.
    This report going to run in 00 hours and 30 hours (48 times ie 24 X 2)
    PS : Pl. remember this is for a SAP standard report
    Any Info?

    Naimesh Patel wrote:
    > I digged more deeper and found one FM RS_VARI_V_INIT_TIME which fill the options like Current Time, Current Time +/- ???, From Start of Day to Now etc. and Surprisinly all 3 options are hardcoded in it..!!
    As you suggested due to hardcoded values here , we could not able to do much on this.
    So i came in round away solution. Whenever program A called ( program with TIME selection input) i have called another custom program C . (This custom program will using the following function module RS_VARIANT_CONTENTS, and RS_VARIANT_CHANGE , So get the DEFAULT variant content of program A and change the variant content with LOW as current time - 30 and HIGH with 24:59:59)  as preceding job.
    In PI 7.01 system program A always called in JOB mode
    Thanks for info.

  • Setting default variant in QA32

    Hi Everybody,
    When the user goes to transaction QA32, the plant and other values which were there in his variant are replaced by other values. Please let me know how can a user set a variant as default so that whenever he comes to transaction QA32, his variant is used automatically without being selected from the variant list.
    Regards,
    Manish.

    Hi Sarasu,
    In QA32 screen, select Customize local layout tab(Alt+F12) - it is available very close to 'help tab'.
    QA32 -
    >Customize local layout tab(Alt+F12)---->Options-->Local data--->History---->Immediately
    If immediately is selected, you can see the last entered will be displayed.
    Hope your question is solved.
    Further you can change the output of QA32, by using change layout tab in Change data for Inspection lot / worklist screen and select options as required, save the same by your name. And you can input the same as layout in QA32 input screen.
    Reg,
    VRMP.

  • FB50 FB60 FB70 - Setting screen variant as default

    Hello all,
    I searched the web, I searched the forum but  I did not found a solution.
    Is it possible that I can set screen variant that I created with SHD0 as default? That means if the users are accessing the above mentioned transactions that a dedicated screen variant is automatically selected by the system?
    If it is possible, please tell me who!
    Thank you very much in advance!
    Regards,
    Steffen

    Hi,
    I think you can set the default document screen variant at the company code level. In transaction code OBY6 -> Global settings for a company code . you can set the default document screen variant.
    Thanks,
    Veer.

  • Set specific variant as standard in the repository infosystem

    Hello,
    in the search help of the point "Test Script" (Transaction "SECATT")  i have created a new variant that should only show the active scripts .
    How can i set this variant as standard variant which is shown when a user starts the search help?
    Can someone help me?
    Thanks

    You could make a KM document with these 3 hyperlinks and make a KM document Iview out of it.
    Then in the Default Framework page, you can add this iView so that it always appears for everyone.
    Hope this helped.

  • Is it possible to set table-variant from one user to another one?

    Is it possible to set table-variants from a t-code like fb60 from one user to another one?
    I mean that both user have the same table-variants.

    You mean screen variant, where you will need to anter the GL line items in FB50?
    then you can set your desired variant as DEFAULT for all users, when it is configured.
    Else thru SU10, for all of your users, add parameter ID SCRVAR and give your parameter value (screen variant name) and SAVE.

  • How to set a variant View of ALV at runtime

    Hi,
    For each user, I have saved in a specific table the Configuration Key of The variant he has created.
    At runtime I want to set this one in my ALV component.
    I think to use the method if_salv_wd_comp_table_pers~set_standard_view of class CL_SALV_WD_C_TABLE but this class isn't implemented elsewhere SALV_WD_TABLE.
    As anybody worked on this need, or something like ?
    Thanks

    I want to access attribute of  context node A in another context node B of the same view .
    for that In my View impel class I have created a public static attribute which can be accessed from any where in the view .
    I want to set the value of this public static attribute from the set method of the attribute of the context node  A .
    which I can access in my other node B's attribute
    cl.._impl=>attr_tmp = lv_varibleA  . for setting the value .
    lv_variableB = Cl..._impl=>attr_tmp  for accessing the value .
    will this work ???

  • Issue in setting layout variant in ALV tables

    Hi,
    I have 2 ALV’s displaying in a view, 1’st is a header data & 2’nd Item data.
    Based on the row selection in the Header ALV, the data is determined and displayed in the 2’nd ALV i.e., the Item data.
    Now the 2’nd ALV (Item data) can contain 20 columns so based on certain requirement I want to save a layout variant with only 10 Columns for display in the 2’nd ALV.
    But the issue what is happening is once I change my row selection in the 1’st ALV (Header data) the layout in the second ALV is refreshing back to the 20 fields EVEN though the name of the variant layout still displays the one I saved earlier.
    I have searched the SCN for this issue and found http://scn.sap.com/thread/1986147, but it does NOT work.
    Could anyone please suggest a solution.
    Thanks & Regards,
    Divaker

    Hi Katrice,
          Thank you for the reply and the links, I will go through them, but please find below the code that I presently have in place, could you please advise if there is anything missing or wrong in here.
    Thanks & Regards,
    Divaker
      lo_cmp_usage =   wd_this->wd_cpuse_pwq_alv( ).
      IF lo_cmp_usage->has_active_component( ) IS INITIAL.
        lo_cmp_usage->create_component( ).
      ENDIF.
      lo_interfacecontroller =   wd_this->wd_cpifc_pwq_alv( ).
    * enable column adjustment
      lv_value = lo_interfacecontroller->get_model( ).
    *-- Get the API reference
      lo_api_interfacecontroller  = lo_interfacecontroller->wd_get_api( ).
      CALL METHOD lo_api_interfacecontroller->get_personalization_manager
        RECEIVING
          pers_manager = lo_pers.
      IF lo_pers IS NOT INITIAL.
        CALL METHOD lo_pers->get_variants
          RECEIVING
            variants = lt_var.
      ENDIF.
      IF lt_var IS NOT INITIAL.
        READ TABLE lt_var INTO ls_var INDEX 1.
        IF sy-subrc = 0.
          ls_config_key-config_id   = ls_var-config_id.
          ls_config_key-config_type = ls_var-config_type.
          ls_config_key-config_var  = ls_var-config_var.
        ENDIF.
        TRY.
            CALL METHOD lo_pers->set_default_variant
              EXPORTING
                config_key = ls_config_key
                set        = abap_true.
          CATCH cx_wd_personalization .
        ENDTRY.
        CALL METHOD lo_pers->load_config_by_key
          EXPORTING
            config_key            = ls_config_key
            fetch_default_variant = abap_true.
      ENDIF.

  • 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

  • Setting display variant in BDC

    Hi Guys,
       I am trying to set a particular custom display variant for item layout during BDC for MIRO. I am able to populate the MIRO screen field RM08M-ITEM_LIST_VERSION with the correct variant name, but the layout does not change accordingly. I tried doing a recording for this, but even in the recording when I try to switch between variants the layout does not change.
    My questions are:
    1) Am I doing someting wrong here?
    2) Is this something which can be done through BDC? If yes, how can I do this?
    Please let me know.
    Regards,
    Nanditha

    Hi Nanditha,
    You have to change the options when you do the call MIRO.
    Parameter NOBINPT in OPTIONS must have the value 'X'.
    Define the OPTIONS structure:
    DATA: LF_OPT LIKE CTU_PARAMS.
    Give the OPTIONS parameters a value:
    MOVE 'E' TO LF_OPT-DISMODE.
    MOVE 'S' TO LF_OPT-UPDMODE.
    MOVE ' ' TO LF_OPT-CATTMODE
    MOVE ' ' TO LF_OPT-DEFSIZE.
    MOVE ' ' TO LF_OPT-RACOMMIT
    MOVE 'X' TO LF_OPT-NOBINPT.
    MOVE ' ' TO LF_OPT-NOBIEND.
    CALL TRANSACTION 'MIRO' USING BDCDATA
                            OPTIONS FROM LF_OPT
                            MESSAGES INTO ERRORMESSAGES.
    Regards,
    Frans

  • How to set Dynamic variant  for a program

    Hello experts,
    I want to set variants dynamically on a selection screen. Please help me.
    Thanks,
    Ashwani.

    Hi Ashwani,
    The variant can be set using:
    SUBMIT program name [USING SELECTION-SET <var>]
    USING SELECTION-SET <var>
         This option tells the system to start the called program with the variant <var>.
    For further details you can refer the link below:
    http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba51a35c111d1829f0000e829fbfe/frameset.htm
    Also refer,
    http://sapbrainsonline.com/sap-training/SAP-tutorial-pdf-material_425.html
    Regards,
    Soundarya.
    Edited by: K.Soundarya Singh on Mar 16, 2010 7:16 AM

  • Set Standard Variant in Tx: SHD0

    Hi guys,
    Do you know how to set the default standard variant for a transaction in SHD0?
    I'm trying to set the the standard variant to SMALL_SALES_VARIANT against Transaction Code VA01. When I check VA01 no changes appear to have occured. I've activated the variant in the first tab in TX:SHD0.
    Any help would be greatly appreciated.
    Many Thanks,
    Philip Johannesen

    parking document

  • Setting Default Variant for Report Trans

    Hi All,
    Is there a way to set a default Variant to a reporting transaction? for example for ME2N how do I set a default Variant to be imported to the selection screen automatically once the report transaction is called?
    This is useful if the user uses the same variant all the time.
    Thanks in advance!

    Pls try the below example
    I give you one example,
    Enter t-code ME2N, Then click on Dynamic field selection button.
    Then double click on created by field enter enter any user id in it.
    Then click on save button.After click on this screen your can see one other screen for variant.
    Here you have to assign variant name and meaning. You can also change field status for report with help of this screen.
    Before click on save button, tick on protect check box button and then click on save.
    Then exit from transaction and enter ME2N.
    Click on Get variant button. Here you can see list of variant, select your variant and get report as per your requirement.
    by
    Rajj

Maybe you are looking for