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

Similar Messages

  • Set default variant for user in ME5A

    Hi gurus,
    It's possibile to set a default variant for the ME5A transaction for a user? Which parameter I must use in SU01?
    Thanks
    regards.

    There's a way to add entries to that table.
    Go to the table ESDUS through SE16N and activate the editing mode by entering &SAP_EDIT in the command field. It will give you information message in the bottom "SAP editing function activated" ("Maintain entries" check box will be visible).
    Let us examine the ABAP code for the program behind ME5A
    DATA: l_action  LIKE esdus_s-action VALUE 'RM06BA00'.
    CALL FUNCTION 'ME_SET_REPORT_USERVARIANT'
       EXPORTING
         im_report           = l_report
         im_esdus_action     = l_action
         im_standard_variant = l_variant.
    MOVE l_action      TO my_esduscom-action.
    MOVE 'USERVARIANT' TO my_esduscom-element.
    MOVE sy-slset      TO my_esduscom-active.
    Stay in SE16N and in the field "Act." enter RM06BA00 and execute. You'll see all the users who executed the ME5A (a.k.a program RM06BA00) and the default variant SAP selects is "SAP&STANDARD" which is a system variant, in the "Active" field. Change that value to what user want to be defaulted. Keep the value 'USERVARIANT' in the El. field. Click save on the top. It will popup a window records inserted, deleted, changed. Just hit enter.
    Now whenever the user executes it will be defaulted to whatever you rewrote in the table.
    Caution: Do not use &SAP_EDIT with other tables especially which share common primary keys it can serious problems in your database.

  • 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 set a Default variant for VL06O (Outbound Delivery Monitor)?

    Hi All,
    I want to set a DEFAULT VARIANT for  VL06O (Outbound Delivery Monitor) selection screen with "For Picking", "For Confirmation", "For Goods Issue" and "List of Outbound Deliveries" button option.
    I have already created a variant with those 4 buttons. But I cant find a way to set it as DEFAULT.
    Appreciate your help on this.
    Please note I'm using SAP ERP 6.0 Ehp 4.
    Thanks & best regards,
    Anupa

    Hi Indranil,
    Superb !
    This is what I was searching for.
    That works really fine. Thanks a lot!
    Best regards,
    Anupa

  • Setting Default Preferences for All Users in Crystal Reports Server 2008 v1

    We are currently looking to set the default preferences in the CMC for all of our users.
    I did locate this page Link: [How to set default preferences for all users in Infoview 3.1/CRS 2008]
    The first part of the thread did seem promising but I am unable to find the sample .jsp code that people recommended.
    I would assume that this scenario is common enough that someone knows a way to set universal preference defaults.
    Thank you

    I thought I could just run it too but when I attempt to I get a Windows Script Host error:
    Script: C:\User Prefs.vbs
    Line: 1
    Char: 1
    Error: Expected statement
    Code: 800A0400
    Source: Microsoft VBScript compilation error.
    I noticed the first most line seems to be markup for a web interface though I am not familiar with vbs so I may be wrong.  I used the publishing wizard to put the script on the CMC to attempt to run it through the CMC but it still does not work.

  • 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.

  • How to hide PNP selection windows and set default values for PNP.

    Hi expert,
         I am using HR logical database PNP, but I don't want to display selection windoes for running program on PNP, whereas I want to set default value for some selection items in the program. could you please tell me how to get those two targets?
    Many Thanks,

    Hi
    You have mentioned 2 things.
    1. Don't want selection windows for running program for PNP - this can be achieved using the HR Report category - You can get more details on HR Report Category on
    HR Report Category
    2.  I want to set default value for some selection items - This you need to achieve in initialization event of your program.
    How you can get this can be explained by INITIALIZATION (SAP Library - ABAP Programming (BC-ABA))
    Thanks,
    Sreeram

  • Set default value for parameter fields

    Good day!
    Situation:
    1. I have 2 parameter fields in reports (dateFrom and dateTo)
    2. Before running report in ASP.NET I change value this fields (dateTo = today, dateFrom = today - 3 days)
    3.I use for this source:
    foreach (ParameterField crParam in CrystalReportSource1.ReportDocument.ParameterFields)
                            CrystalDecisions.Web.Parameter crParametr = new CrystalDecisions.Web.Parameter();
                            string ParametrName = crParam.Name;
                            crParametr.Name = ParametrName;
                              crParametr.DefaultValue = ActionReportParameter.GetParametrValue(ReportName, ParametrName);
                             CrystalReportSource1.Report.Parameters.Add(crParametr);
    4. And repurt run without request value parameter fields.
    5. BUT!!! now I need request value parameter fields before report start running - I want set default values for filelds and offer user change its before report start run.
    How do this?
    Thanks

    I believe you need to create your own parameter promt screen. Capture what the user entered and pass that to the report(?).
    slv

  • Selection screen variant for report

    Hi,
    Can we restrict the selection screen variants for reports by user? For example my report is ZREPORT. Different users can save variants for the report. When they choose a variant for executing the report, they would like to see only the variants they created.
    By default SAP lists all variants created (irrespective of who created).
    Thanks
    Anil

    Hi,
      If you want the other users doesn't want to execute (Not see) other variant..you can check if that user has created the variant in the AT SELECTION-SCREEN event..
      By checking VARI-VARIANT against the table VARID and check if sy-uname <> VARID-ENAME.
    Thanks,
    naren

  • ALE Error + Mass deletion of variants for Reports

    Hi,
           I have two questions
    1- is there any transaction in SAP, which delete the mass variants for reports for all users?
    2- I am getting an error  “An Idoc without a message type was passed to the ALE layer”.
    I have already check file port is set up correctly and I am passing message type “HROT_BRM”.
    This also happen in previous test, as user does not have the proper authorization, so I assign the authorization and ran it. It worked.
    However, this time a user has the authorization and still the error messaging is coming. Am I missing something?
    Waiting
    Bye

    There are some function modules like "KYVA_REPORT_VARIANTS_DELETE” or get user variants "RM_GET_VARIANTS_4_REPORT_USER".
    - is there any transaction in SAP, which delete the mass variants for reports for all users?
    2- I am getting an error “An Idoc without a message type was passed to the ALE layer”.
    I have already check file port is set up correctly and I am passing message type “HROT_BRM”.
    This also happen in previous test, as user does not have the proper authorization, so I assign the authorization and ran it. It worked.
    However, this time a user has the authorization and still the error messaging is coming. Am I missing something?

  • 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

  • How to dynamically set connection string for report in C# code?

    Hi,
    I have installed CRVS2010. I have created new Crystal Report WPF Application and new report. I would like to set connection string for report in code dynamically.
    Is this possible?
    Thanks
    Ivana

    Lots of posts in this forum on how to set database connections. WPF should not be a consideration as it's just a viewer. The report engine is still the same. Search these forums. Use the search box at the top right corner of this page. Look at samples here:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    Note that none of the samples above are using WPF, but like I said, the WPF is just a different viewer and will not impact how the report engine logs on to a database. (I think of it as a gray car vs. a red car. Same engine, just the color is different)
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • How to Set default value for taxonomywebtagging control with terms and nested terms

    Hi,
    I have created taxonomy control in custom aspx page and I am able to select terms but I am trying to setup default value to that control.
    Can anybody let me know how to set the default value for TaxonomyWebTagging control in custom.aspx page with nested terms?
    Any help would be greatly apprecited.
    Control code in aspx page:
    <td>
    <asp:Label runat="server" ID="lblLanguages">Field A: </asp:Label><asp:Label runat="server" ID="rfvlblLanguages" CssClass="errorMsg" ForeColor="Red">*</asp:Label>
    </td>
    <td>
    <Taxonomy:TaxonomyWebTaggingControl ID="term" Width="385px" runat="server" /></td>Mapping metedata code:TaxonomySession session = new TaxonomySession(SPContext.Current.Site);
    //Set the Business Unit Field
    SPSite site = SPContext.Current.Web.Site;
    TermStore termStore = session.TermStores["Managed Metadata Service"];
    Group group = termStore.Groups["GROUPName"];
    TermSet termSet = group.TermSets["TERMSETNAME"];
    Term term = termSet.Terms["TermA"];
    Guid termGuid = term.Id;
    term.SspId.Add(termStore.Id);
    term.TermSetId.Add(termSet.Id);
    term.AllowFillIn = true;
    term.AnchorId = countryGuid;
    term.IsMulti = true;
    Thank you.
    AA.

    Hi,
    According to your description, you want to set default value for TaxonomyWebTaggingControl.
    I have a test in my environment. It could be achieved by setting the Text Property of TaxonomyWebTaggingControl.
    Here is the code snippet:
    TaxonomySession session = new TaxonomySession(SPContext.Current.Site);
    SPSite site = SPContext.Current.Web.Site;
    TermStore termStore = session.TermStores["Managed Metadata Service"];
    Group group = termStore.Groups["GroupA"];
    TermSet termSet = group.TermSets["A"];
    Term term = termSet.Terms["A1"];
    TaxonomyWebTaggingControl1.SspId.Add(termStore.Id);
    TaxonomyWebTaggingControl1.SSPList = termStore.Id.ToString();
    TaxonomyWebTaggingControl1.TermSetId.Add(termSet.Id);
    TaxonomyWebTaggingControl1.TermSetList = termSet.Id.ToString();
    TaxonomyWebTaggingControl1.AllowFillIn = true;
    TaxonomyWebTaggingControl1.IsAddTerms = true;
    TaxonomyWebTaggingControl1.IsMulti = false;
    TaxonomyWebTaggingControl1.Text = string.Format("{0}|{1}", term.Name, term.Id.ToString());
    Here is a detailed article for your reference:
    http://blog.bugrapostaci.com/2010/09/23/taxonomywebtaggingcontrol-sharepoint/
    Feel free to Reply the test result.
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Patrick Liang
    TechNet Community Support

  • How to set default values for boolean columns

    I'm trying to deploy some content types and columns into a site with a feature. All it's ok, except that I'm trying to set a default value for boolean columns with no success.
    I've tried to set default value at column level:
    <Field ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DisplayName="Se publican noticias en español"
    Type="Boolean" Hidden="FALSE" Group="Columnas ShaCon" >
    <Default>TRUE</Default>
    </Field>
    and at content type level:
    <FieldRef ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DefaultValue="TRUE" Required="TRUE" />
    But in any case, when i create a new item with this content type, default value is applied.
    Can anyone tell how to set default values for boolean columns?
    Thanks in advance,
    Regards,
    Sergio

    In the field definition you can set
    <Default>1</Default>
    or
    <Default>0</Default>
    How to set the default value Null?

  • Setting default values for field on screen.

    Hello,
    I am trying to set default value for one of the fields I have on screen when I execute the custom transaction.
    I am doing that in PBO as follows. But the default value is not set for Date field.
    PROCESS BEFORE OUTPUT.
    MODULE PBO_OUT.
    MODULE STATUS_5000.
    *&      Module  STATUS_5000  OUTPUT
          text
    MODULE STATUS_5000 OUTPUT.
      SET PF-STATUS 'NON_SAP_DOCUMENT'.
      SET TITLEBAR '001'.
    ENDMODULE.                 " STATUS_5000  OUTPUT
    *&      Module  PBO_OUT  OUTPUT
          text
    MODULE PBO_OUT OUTPUT.
      ERDAT = SY-DATUM.
    ENDMODULE.                 " PBO_OUT  OUTPUT
    Please help.
    Thanks.
    Regards,
    Rajesh.

    Works Now...

Maybe you are looking for

  • ACS 5.3, EAP-TLS Machine Authentication with Active Directory

    I have ACS 5.3. I am testing EAP-TLS Machine Authentication using Active Directory as an external Identity Store. II was testing and everything was going fine until I did some failure testing. My problem: I deleted my computer account out of Active D

  • Using Adobe TV for Classroom Learning

    Hi, Can anyone shed some lights on the above. I am keen to use one of the Adobe TV series for classroom learning such as this one: http://tv.adobe.com/show/classroom-basic-site-layout-and-navigation-in-dreamweaver-cs5/ My question is how do I get off

  • Merge PDF documents into one PDF document

    hi expets I have got an question. I have several different PDFs. Four main PDF and 20 PDFs which are ment as attachements. Via ABAP code i would like to chose dynamicaly several of those attachement PDFs and merge them within one of the main forms. S

  • XML parsing in AL32UTF8

    I am not able parse my XML in oracle 11g having parameter value NLS_CHARACTERSET=AL32UTF8 but the same xml and same procedure i am able execute in db having NLS_CHARACTERSET=WE8MSWIN1252. How to solve this?? for parsing the xml i am using - dbms_lob,

  • Why is the unlock so slow now?

    For a week or so (i would guess it coincides with the latest iPod software update) my iPod has been slow to unlock after moving the slider. What used to be almost instant now takes 5-10 seconds. What is going on? i've already reset the entire iPod an