Set Variant for RHINTE00 using RS_CREATE_VARIANT

HI All,
I want to set variant only for employee id select option in report RHINTE00 using RS_CREATE_VARIANT. Since there is no direct access to Select Option so how can i achieve it.
Thanks,
Shailesh S. Malkar.

Hi,
Please reffer below code for implemeting 'RS_CREATE_VARIANT'
*----- varid
  move sy-mandt             to i_varid-mandt.
  move 'RPCTXFU0'           to i_varid-report.
  move var_name1            to i_varid-variant.
  move sy-uname             to i_varid-ename.
  move sy-datum             to i_varid-edat .
  move sy-uzeit             to i_varid-etime.
  move 'A'                  to i_varid-environmnt.
*----- varit
  move sy-mandt             to i_varit-mandt.
  move sy-langu             to i_varit-langu.
  move 'RPCTXFU0'           to i_varit-report .
  move var_name1            to i_varit-variant.
  concatenate 'Customer Variant'(o01) var_name1 into i_varit-vtext.
  append  i_varit.
      call function 'RS_CREATE_VARIANT'
         exporting
              curr_report               = 'RPCTXFU0'
              curr_variant              = var_name1
              vari_desc                 = i_varid
         tables
              vari_contents             = rsparams_tab
              vari_text                 = i_varit
         exceptions
              illegal_report_or_variant = 01
              illegal_variantname       = 02
              not_authorized            = 03
              not_executed              = 04
              report_not_existent       = 05
              report_not_supplied       = 06
              variant_exists            = 07
              variant_locked            = 08
              others                    = 99.
Regards,
Arun

Similar Messages

  • How to create current version variants for   report using RS_CREATE_VARIANT

    Hi experts,
                      When i am using RS_CREATE_VARIANT to create a variant for a standard report then a message is coming that the 'Created variant is not of current version'. .How should i avoid this. If i want to create a variant of current version then what parameters have to populated in the FM.

    Hi,
    try these..
    FASU_RS_CHANGE_CREATED_VARIANT change variant w/o selection screen - client dependent
    FASU_RS_CREATE_VARIANT         create variant (w/o selection screen) - client dependent
    Arunima

  • Set variant for PNP LDB select option of pernr

    Hi All,
    I want to set variant for PERNR of PNP LDB in one of the program through other program using RS_CREATE_VARIANT FM.
    Please help to solve this problem.
    Thanks,
    Shailesh S. Malkar.

    REPORT  ZTEST.                   .
    tables: pa0003.
    ranges pernr for pa0003-pernr.
    * Fill neccesary PERNRs
    pernr-low = 1000.
    pernr-sign = 'I'.
    pernr-option = 'EQ'.
    append pernr.
    pernr-low = 1112.
    pernr-sign = 'I'.
    pernr-option = 'EQ'.
    append pernr.
    SUBMIT RHINTE00 WITH PNPPERNR IN PERNR.

  • Setting PREFIX for DIMENSION_TABLE using OMB Scripting

    I'm trying all day to find a way to set PREFIX for DIMENSION_TABLE
    using OMB script without success and I'm a little confused now.
    First of all Scripting Reference does not mention about PREFIX
    property so maybe there is no way to achieve what I want. Consequently
    it would mean that GUI interface is "stronger" than OMB Scripting.
    Secondly I don't understand why when I issue following command in OMB
    Plus:
    OMBDESCRIBE CLASS_DEFINITION 'DIMENSION_TABLE' GET PROPERTY_DEFINITIONS
    I get nothing (empty output, no errors) and when I execute:
    OMBDESCRIBE CLASS_DEFINITION 'DIMENSION_TABLE' GET PROPERTIES
    (STEREOTYPE, IS_ABSTRACT, DESCRIPTION)
    I get:
    class false {}
    First result suggests that there are no properties for DIMENSION_TABLE
    and second proves that there are at least three.
    Is there some type/properties inheritance here?
    Can someone explain me this and tell how can I:
    1. find all valid types (I would like to set prefix for LEVEL,
    LEVEL_ATTRIBUTE, etc. too)
    2. find all properties for these types
    regards
    Tomasz Gajewski

    You misunderstood me. I don't want to rename DIMENSION_TABLE. When creating DIMENSION_TABLE with gui I set NAME and PREFIX for each DIMENSION_TABLE and LEVEL.
    PREFIX for level is used later during deploy to distinguish attributes from different levels.
    Example. If I have a level named LEVEL_NAME with prefix LN and an attribute of it named ID than table generated for this contains column LN_ID.
    When I create DIMENSION_TABLE using OMB Script prefix is set same as name (default behaviour that I can't change) and it is to long to use.
    Scripting Reference doesn't mention about PREFIX property. Should I assume that the only way to change these values are through OWB GUI?
    regards
    Tomasz Gajewski

  • How to set variant for ALV grid from ABAP

    Hello,
    I have a program which displays some data with ALV grid. Then after some operation I would like to set different layout for the grid, but not by choosing it manually but by the program. I thought that it would be enough to use the method SET_VARIANT, so I'm setting DISVARIANT structure properly, using SET_VARIANT method and after that I'm calling REFRESH_TABLE_DISPLAY but layout is not changed. What else should I do? Is that possible?
    Best regards,
    Marcin

    Hi,
    Check this
    * While declaring select-options
    parameters: p_vari        like ltdx-variant.  " Layout
    * then add the following code in
    at selection-screen on value-request for p_vari.
      perform f_variant_f4 using p_vari.
    * Code for f_variant_f4
    form f_variant_f4 using  p_vari.
    * private variables
      data : v_exit    type c.
      clear gs_variantt.
      v_variant_save = 'U'.
      call function 'LVC_VARIANT_F4'
        exporting
          is_variant    = gs_variant
          i_save        = v_variant_save
        importing
          e_exit        = v_exit
          es_variant    = gs_variantt
        exceptions
          not_found     = 1
          program_error = 2
          others        = 3.
      if sy-subrc ne c_0.
        message i999(yscc) with text-064.    " No Layout Available for F4
      endif.
      if v_exit is initial.
        gs_variant-variant = gs_variantt-variant.
        p_vari             = gs_variantt-variant.
      endif.
    endform.                                 " F_variant_f4
    * In PBO
        call method grid1->set_table_for_first_display
          exporting
            is_layout                     = gs_layout
            is_variant                    = gs_variant
            i_save                        = 'A'
            it_toolbar_excluding          = i_exclude[]
          changing
            it_outtab                     = i_output[]
            it_fieldcatalog               = i_fieldcat[]
          exceptions
            invalid_parameter_combination = 1
            program_error                 = 2
            too_many_lines                = 3
            others                        = 4.

  • Set KOKRS for ECATTs using CO-Transactions like KP06

    Dear Collegues,
    how can i make sure the ECATT i create does set the KOKRS if nessessary for transactions like KP06 for example?
    I just did record the KP06 transaction now and defined the paramters as following:
    KOKRS     Kostenrechnungskreis          I     KOKRS          C     4     
    VERSION     Version               I     VERSN          C     3
    PERVON     Periode ab               I     KPLA_PERBL          N     3
    PERBIS     Periode bis               I     KPLA_PERBL          N     3
    GJAHR     Geschäftsjahr          I     GJAHR          N     4
    KOSTL     Kostenstelle               I     KOSTL          C     10     
    KOART     Kostenart               I     KSTAR          C     10     
    PLANFIX     Geplante Fixkoste          I     WERTV8          P     15     2
    VS     Verteilschlüssel          I     SPRED          C     4          
    My problem is now, how to set the KOKRS to the value of the import-file, which is including all fields mentioned above within this KP06 ECATT? I just thought about smth. like following:
    IF KOKRS = ' '.
      ABAP.
      ENDABAP.
    But how to use the values from the importfile here?
    Any other more easy solutions for this issue?
    Thanks a lot in advance
    Best regards
    Carsten Klatt
    Endif.
      TCD ( KP06 , KP06_RECORD_2 ).

    You do not need a separate input file, just use internal variants for the test data in the eCATT test configuration or handle you data for input in external variant files (which have format of csv).
    See also the [online help|http://help.sap.com/saphelp_smehp1/helpdata/de/da/f1383fe58d5900e10000000a114084/content.htm].
    Kind regards,
    Christoph

  • Set Desname for PDF using Oracle Applications

    We are running Oracle Applications 11i, 8i database on a Unix box and use windows 2000, internet explorer, acrobat 6.0 to run, and view the reports.
    I just finished redesigning a Oracle report to output to PDF instead of printing on a preprinted form.
    The user has requested that the output file (Report) be saved to a specific directory on a server that is on the windows platform.
    The report is being run from the concurrent manager inside of Oracle Applications, which seems to be over writing my desname that is specified in my report (rdf). Our current workaround is that the user opens the file in acrobat and save it to the desired directory, which they have to set manually for each session.
    Is there a way to run a report on UNIX and output the report to a windows directory?
    Thanks in advance...

    There is a better workaround than opening an saving on desktop...I have never tried this but have an idea...that would work 100%.
    The standard configuration of apps 11i is that the output file is placed in $APPLCSF/out and its on the Unix Box...but if u have apps running on NT environemnt then just share the file system of $APPLCSF with the desktop...Pretty simple....
    If apps is running on Unix then u need to install software like Samba on Unix so that the desktop will be able to share the file system of unix on desktop....
    Try it out...
    Best of luck

  • HP 6300 all in one can't set up for wireless use

    can't set up for wireless use

    That is because the printer does not support wireless connectivity to a router.  You can with an optional Bluetooth adapter to one computer wireless.  However since this has an Ethernet connection you can connect it to your router via this or you can use the below information to convert your Ethernet wired printer to wireless.
    Connect wireless printer anywhere, convert from wired, bypass failed radio, add WPA2 security.
    http://h30434.www3.hp.com/t5/Printer-Networking-an​d-Wireless/Connect-your-wireless-printer-when-away​...
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • Setting permissions for scanner use

    Hello,
    My USB scanner is a Canon Lide 35 and it had been working perfectly in arch. After  a recent update (don't know exactly which because do not use scanner so often), the device is detected and device is set in /dev/bus/usb/005/00x. The problem is that the permissions are not set correctly, I assume by udev?, and my normal user cannot use the scanner because the device remains as owned by root.root and not 0664, group=scanner, as specified in the sane udev rules (/etc/udev/rules.d/53-sane.rules). The rules file is with the new syntax, i.e., ATTRS instead of SYSFS and so forth. My user belongs to the "scanner" group. I have the feeling it is something related with the udev rules but Im not sure what. Here is the relevant line:
    # Canon CanoScan LiDE 35 | Canon CanoScan LiDE 40 | Canon CanoScan LiDE 50
    ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="2213", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"
    The latest update where kernel stuff and udev stuff were updated resulted in:
    kernel-headers-2.6.24.3-1  udev-119-1...
    Any help greatly appreciated,
    Regards,
    Felipe.

    It appears that udev has problems with rules matching by idVendor when system is up and running but everything is ok if device was online during boot. Please check out this bug http://bugs.archlinux.org/task/9935 and comments. If You have the same problem then please vote for this bug and/or post a comment.
    Thank You.

  • Setting cookies for safari using java

    Dear all
    I am new to cookie programming. Is there some way so that I can set cookies in Safari on Mac.
    I need to set the user's login information in cookie for a particular site then i need to launch that particular website.
    The code samples will better help. Pls help me as i am in urgent need.
    Regards
    Shobhit Jain

    Can you explain what this will do? Is this a type of
    wildcard for all domains?The answer to my question is that you can't do it, and for good reason. There is a security restriction against creating/accessing cookies from unrelated domains (and ".com" won't cut it). So I just did a complete proxy solution and translated all requests and maintained the cookies for the browser.
    I am not sure what setDomain("/") would do - I am pretty sure that is just invalid (but it is a valid path, however).

  • Set level for bookmarks using applescript or javascript

    hi everyone!
    In my indesign document having 3 paragraphs. And set bookmarks of level one by one to these paragraphs.
    Please anyone can help me?
    tell application "adobe indesign cc 2014"
    tell active document
    set selectItem to item 1 of selection
    set textdestinate to make hyperlink text destination with properties {name: selectItem, destination text:item 1 of selection}
    set BknameInnerItem to make new bookmark with properties {destination:textdestinate}
    end tell
    end tell
    --Then,   how to set bookmark level in the hyperlink text destination properties? Is it possible?

    To add a new level, add a bookmark to another bookmark; that will automatically indent it.

  • Setting Variants for Help (SAP Library)

    Hy, when i open rsa1 i receive a message for Help.
    If i select ok, receive a error message: Could not find ...
    Can i customize this link in SPRO?If yes, How i can add a  address link to SAP Help?
    Thank's a lot. 
    Andrea

    You will have to modify the ITS service "BBPHELP" and template "BBPHELP_1000".
    You may add the URL : help.sap.com in the foll line:
    var helpURL="`FRONTEND_URL`";
    Here in the std,you will have to provide the link to the HTML page.
    (extract from other thread)
    BR
    Dinesh

  • SE93 - There are no variants for screen 1000

    Hello experts,
    We cannot set variant for report transactions from se93.In our case, system prompts a warning as "There are no variants for screen 1000" But standard system variants (which are starting with CUS& or SAP&) are working fine. However, we can set them if we enter the variant name instead of using f4 input help.
    There are a lot of entries about this issue on SDN but we want to do that on relevant system with using our own variants (using f4 search help) not system variants and I don't know how but we can also create transactions with own variants on different systems without any problem (which have same components and support package level)
    Please note that, problem occurs only in se93 while creating tcode, there is no problem while using existing variants with tcode.
    Please also see the below patch level information of relevant system ; (for core components)
    EHP4 for ERP 6.0                    
    SAP_ABA     701     6     SAPKA70106     Cross-Application Component
    SAP_BASIS     701     6     SAPKB70106     SAP Basis Component
    PI_BASIS     701     6     SAPK-70106INPIBASIS     Basis Plug-In
    ST-PI     2008_1_700     2     SAPKITLRD2     SAP Solution Tools Plug-In
    SAP_BS_FND     701     6     SAPK-70106INSAPBSFND     SAP Business Suite Foundation
    SAP_BW     701     6     SAPKW70106     SAP Business Warehouse
    SAP_AP     700     19     SAPKNA7019     SAP Application Platform
    SAP_APPL     604     6     SAPKH60406     Logistics and Accounting
    Can you please help us on this issue ?
    Thanks in advance.
    Kind regards,
    Alper Ozdemir
    SAP R/3 NetWeaver Consultant

    I have to respectfully disagree - any variant can be assigned to the transaction code.
    Please try the following:
    1) Start your report (I'm assuming it is a report?) in SE38 and create a variant.
    2) In SE38, open the report and open its object list (menu Utilities -> Display Object List)
    3) If you have already created a transaction, you should see the node Transactions in the left-hand window (i.e. object list). Double-click on the transaction name and switch to Change mode. In the field Start with variant type in the variant name from step 1. Note that if you try to use the dropdown it will say "No variants exist...", but if you just type in the name, it will take it.
    Activate and do the same thing with the second transaction or create the new ones, if you prefer. Note that non-system variants will have to be either created in each environment or manually added to the transport. This can also be done in SE38 - click Variant radio-button, click Display, then go to the menu Utilities ->Transport Request and follow the instructions.
    All above may also be done in SE80, I just prefer SE38 personally.

  • Aironet 1231G for home use

    Hi all
    I've been given an Aironet 1231G that I would like to set up for home use. Has anyone got any example configs for this type of setup that I could take a look at? Nothing too complicated is needed, just something simple and secure.
    Thanks
    Andy

    Since you are new to this, just look at this link. You will need to register, but this will help:
    http://downloads.techrepublic.com.com/download.aspx?&scname=Wireless+LAN&docid=277381

  • 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

Maybe you are looking for