How to set up standard variant in ABAP report

Hi,
I would like to create a standard variant for running ABAP report so that users don't have to select the variant each time.
I know we can specify the variant name as a standard variant on changing query by SQ01 but is there any way to give the function in ABAP report?
Does anybody know how to code or set up to do that?
Thank you very much in advance.
Best regards,
Miki
Edited by: Miki Komatsu on May 20, 2011 9:46 AM

Use the   RS_VARIANT_CONTENTS FM
CALL FUNCTION 'RS_VARIANT_CONTENTS'
    EXPORTING
      report                      = sy-repid
      variant                     = 'PRUEBA' "Your Variant
*     MOVE_OR_WRITE               = 'W'
*     NO_IMPORT                   = ' '
     EXECUTE_DIRECT              = 'X'
*   IMPORTING
*     SP                          =
    tables
*     L_PARAMS                    =
*     L_PARAMS_NONV               =
*     L_SELOP                     =
*     L_SELOP_NONV                =
      valutab                     = VALUE_TAB
*     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.
The variant Reports are in VARI Table

Similar Messages

  • How to set up Dynamic Variants for job which is based on Pay Period

    Hi,
    We need to set up dynamic variant for payroll interface.  This interface is based on Pay periods and that is why we need to use different variant for each month.  Letus know how to set up dynamic variant which will take care of Pay Periods

    Hi,  Thnx for reply.
    We are not changing the control records, current period will be some old period in system. 
    payroll is not processed in SAP,

  • How to set default print orientation in oracle reports 6i?

    Can anyone please help how to set default print orientation of Oracle Reports 6i? Currently document is printed in Portrait orientation, but I need to print it in Landscape orientation. Is this possible?

    It is solved now. Go to Layout Model -> Main Section, Press F4. In the property pallet select the Orientation that is required to be selected when print is taken for that report.

  • How to set multiple operating units in before report trigger

    hi all
    can any one help me out in getting clear in how to set multiple operating units in before report trigger in oracle report.
    as we set single operating unit (mo_global.set_policy.context('S',81); as 81 is my operating unit).then who to set for multiple operating unit at run time.

    Sounds like eBusiness Suite, right? Better ask this in the appropriate forum.

  • How to set naming standard that sets max number of words in column name?

    Hi all,
    Is it possible to set naming standard that sets max number of words in colum (or table) name?
    I was looking video (1:08min)
    http://download.oracle.com/otn_hosted_doc/sqldev/UserDefinedDesignRules/UserDefinedDesignRules.html
    And here you can see how rule is triggered.
    "...Name has 2 words; Max permitted - 1".
    Thanks a lot

    Hi,
    you need to create glossary and set it in naming standards for your design.
    This document is still valid - http://www.oracle.com/technetwork/developer-tools/datamodeler/datamodelernamingstandards-167685.pdf
    Naming standard settings are located :
    - DM 3.x - "Preferences>Data Modeler>Naming Standard"
    - DM 4.0 - Design dialog>Settings>Naming Standard
    If you want only check on number of words then glossary can be empty and you can set "Incomplete modifiers" option in that glossary.
    Philip

  • How to set naming standards for SQL Developer

    I am using SQL Developer version 3.0.04.
    In the newly integrated and very useful Data Modeler, we can set preferences for the naming standards to be applied when creating logical and relational model objects ( primary keys, foreign keys, et cetera). I would like to know if there is a way to set naming standards for the relational objects we create in SQL Developer on existing tables ( ( primary keys, foreign keys, et cetera).
    Any help in setting such preferences would be appreciated.

    Hi,
    If you want to set up a diagram for an existing database, you can use File/Data Modeler/Import/Data Dictionary to import its definitions.
    Alternatively you can open a Data Modeler Browser (using View/Data Modeler/Browser), expand the node for Design "Untitled_1",
    expand the node for Relational Models, and select Show from the Right-click drop-down menu for "Relational_1" to create a Relational Model diagram.
    You can then drag Tables from SQL Developer's Connections tree onto the diagram.
    Once you have a Relational Model you can reverse engineer it to an Entity-Relationship model using the << button in the button bar
    (or by selecting "Engineer to Logical Model" from the drop-down menu for the Relational Model).
    Note that there is now a separate forum for SQL Developer Data Modeler topics: SQL Developer Data Modeler
    David

  • 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

  • How can I print PDF attachments from ABAP report in transaction ME23N?

    Hi,
    Users attach PDF files using "services for objects" in transaction ME23N.
    How can I print the PDF attachments from ABAP report ?
    Thanks in advance,,

    Hi,
      check this link,this might help you to solve your problem
    /people/thomas.jung3/blog/2005/04/28/setting-up-an-adobe-writer-for-abap-output
    Regards
    Kiran Sure

  • How to set password in obiee delivery content reports (pdf format)

    Hi
    Dear All
    i Need your help on the Obiee !
    i hvae one Requirement how to set password in obiee delivery content (pdf format) its possible. what are the things i to do
    Kindly Advice me
    Advance Thanks
    satya

    933154 wrote: My profile says PDF, config, report, settings says PDF and I get an Excel when I run screening reports. Very odd.You may want to make sure that the file where the system setting gets stored can be updated. In your <Intradoc_Dir>\urm\data\reportpublisher\config\config.hda file, there is a result set named "RPAdminConfigInfo". The third column of that result set should match the value being shown on the configuration settings page. I've changed the format value in the UI, and this file gets updated (and thus I'm getting my screening reports in the format specified in this config file.)
    933154 wrote: Also, I wasn't clear on the second part of the question. The Screening Reports appear to use the template INTERNALITEMDETAILRPTTEMPLATE. Is that configuration set somewhere? Is there any way to have the screening reports use a different template or is changing that template the only way to change the screening report layout?Templates are not configurable in that respect - the template name values being called for a service are hardwired in the code (you'd need to override in a component - just not worth the hassle). I'd either edit the existing rtf file, or just check in a new revision to the existing one if the differences are that profound. You'd still need to conform to the BI Publisher standards/methodology in either case.

  • How to trigger an xi communication from abap report?

    Hello,
    I would like to ask if there is a blog, howto or something about How to trigger the communication in an abap programm. The communication will be either rfc->ftp or rfc->jdbc. So how can I tell XI to call that rfc to start the communication (from r/3 as abap programm)?
    thank you.

    >
    RAJEEV GUPTA wrote:
    > Hi Daniel,
    >
    > you can tell rfc to send the rfc response to XI.............but for this you have two options:
    > 1. by se38 report you can execute rfc in r/3 and send its response to XI destination target system by executing the function module of rfc in your abap report
    > 2. you can send the rfc req msg from XI to r/3 and then you will automatically get the rfc response from r/3 in XI via this synch msg.
    >
    >
    > Regards,
    > Rajeev Gupta
    Hello,
    about nr1:
    When I set the DESTINATION parameter in a abap report, doesn't this mean the system where the rfc is available? Because when I do it like that my abap report would look for the rfc there and not in r/3 itself. Isn't that right?
    e.g.
    CALL FUNCTION 'RFC_on_r3'
               DESTINATION 'XI.rfc.dest'
    So you think that should work?

  • How to open a Promotion from an ABAP report/program?

    Hello SDN,
    I have a normal ABAP report and would like to open a specific promotion (markteing project) after a PAI event.
    I know it is the OBJTYPE=BUS2010030 (the businesspartner is objtype BUS1006), but how can I open it?
    Regards from Germany,
    Friederike

    The solution:
    DATA: lt_time   TYPE crmt_mktpl_cldr_time_ranges,
          lo_tpm    TYPE REF TO cl_crm_mktpl_cldr_data,
         prom_guid TYPE cgpl_guid16.
      CREATE OBJECT lo_tpm
      EXPORTING
        im_add_periods = lt_time.
    Jump to the Marketing Planner
      CALL METHOD lo_tpm->navigate_to_object
        EXPORTING
          im_data_object = promotion_guid.

  • How to set value of a column in report region

    Hi,
    I have a report region based on a query.In this my first column is selectlist "select row" having to values "yes" & "No".
    I have two buttons on top of the region "Check all" and "uncheck all".
    My requirement is when I click check all button all rows corresponding to "select row" column gets selected to Yes and when I click No all rows gets selected to "No".
    Thanks
    Vikram

    Actully I want to set the value of a column in report region.
    There are replies in the forum but in those the item is in form but not in the report region.
    I am generating report region by using htmldb_item.selectlist and i dont know how to set value in these type of items.

  • How to read RRI sent parameters in ABAP Report??(Urgent)

    I have my own ABAP report. How can I read parameter that RRI sent to me from BEX Query? I know it's possibly needed to setup table name in RSBBS for each element.

    hi,
    i am failing to see relevance of this post in WebDynpro for ABAP forum.  Requesting moderator to move to ABAP general forum.

  • How to set 32-bit ODBC to crystal report in 64-bit OS

    hello,
    Previously, I have asked for the CR export question after OS change from WINXP 32 bit to WIN2003 64 bit, and I configurate the 32 bit ODBC administrator at the server and tried to run program to generate simple report, just use CR's own datasource Xtreme Sample Database 11.5. Unfortunately, the program pop up the error message below.
    IM002:[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
    Error in File C:\DOCUME1\Temp\LOCALS1\Temp\1\CrystalReport1 {20D21A9C-A4AD-4175-81A4-3A25E2D463A0}.rpt:
    Unable to connect: incorrect log on parameters.
    So I assume, the program will look up for the default ODBC 64 bit for use only. please advise how to set the program to get the 32 bit ODBC to generate report.
    Thanks.
    Edited by: bigban on Jun 18, 2009 11:32 AM

    See [this|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bip/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] and [this|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bip/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] note.
    [This|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10d5fa88-2013-2c10-c9a5-f11963607d4e] article may also be of use.
    Also ensure you have the correct 32 bit database client installed.
    And, what version of CR are you using? What version of .NET are you using?
    Ludek

  • How to do Performance analysis of any ABAP report

    Hello Friends,
                         I have to do the performance analysis of ABAP report, it takes time to execute. I am  not aware about, how to do performance analysis? I know only we have check index, do ST04 and ST05 analysis. but how to do these things  that i don't know.
                        Can anyone please guide me in this regards.
    Thanks

    HI,
    Please Check this,
    System Trace: Transaction ST01 lets you do various levels of system trace such as authorization checks, SQL traces, table/buffer trace etc. It is a general Basis tool but can be leveraged for BW.
    Workload Analysis: You use transaction code ST03
    Database Performance Analysis: Transaction ST04 gives you all that you need to know about whatu2019s happening at the database level.
    Performance Analysis: Transaction ST05 enables you to do performance traces in different are as namely SQL trace, Enqueue trace, RFC trace and buffer trace.
    ABAP Runtime Analysis Tool: Use transaction SE30 to do a runtime analysis of a transaction, program or function module. It is a very helpful tool if you know the program or routine that you suspect is causing a performance bottleneck.
    Rgds
    Sabu

Maybe you are looking for

  • IPad Air using too much data

    I recently purchased an IPad air for my wife for Christmas.  We live in a remote area with no high speed internet.  We use an AT&T 4G hotspot for our internet access.  We subscribe to a 5gb per month plan.  Prior to Christmnas my wife had an older IP

  • Partner, group editing error

    Welcome to everyone! I am the first BlackBerry user. All well and good for all. Fortnight flay the classic model. My problem is the following. Partner or group of Irish editing error "The partner can name up to 9 characters in length." Have you tried

  • Twitter does not update in Firefox but does in IE9. I prefer Firefox but can't use it with Twitter. Is there a fix?

    When I go to Twitter in Firefox it doesn't update automatically, which it should. It does, however, and I'm sorry to say this, update automatically. I prefer Firefox and hope there's a fix for this Twitter issue. Thank you.

  • MSI X99S XPOWER AC EATX Compatibility

    I have just placed an order for the X99S XPOWER motherboard.  I just also looked up compatibility for three of my components on the MSI website and they are not on the list and want to see if they are compatible or if I will have issues: Memory: Cruc

  • How to convert Labview file 10.0 to 7.1

    Hi I was wondering if anyone could tell me how to convert my 10.0 vi file to a 7.1 vi file. Thank you very much. By the way, it's from a student version if that matters at all. -Brian