Variant Help

Dear BW fans,
we are trying to write an ABAP program which should have a variant
with two variable - one to input a cube name and the other to switch
the data source from sem-bps mode to bw mode. How should we write the
select-options statement and how should we input the cube name and the
process type? Please advise.
Thanks in advance,
Praveen

Hi,
I wish that this code will help you :
data :        w_gx_variant    like disvariant.
selection-screen begin of block b5 with frame title text-t01.
*- Display variant
parameters: p_vari like disvariant-variant.   "obligatory.
selection-screen comment 47(40) varname for field p_vari.
selection-screen end of block b5.
form pai_of_selection_screen.
  if not p_vari is initial.
Vérification de l'existence de la variante saisie
    clear  w_gx_variant.
    clear  w_gx_variant-variant.
    move w_g_variant to w_gx_variant.
    move p_vari to w_gx_variant-variant.
    call function 'REUSE_ALV_VARIANT_EXISTENCE'
         exporting
              i_save     = w_g_save
         changing
              cs_variant = w_gx_variant.
    w_g_variant = w_gx_variant.
    varname = w_g_variant-text.
  else.
    varname = ''.
  endif.
endform.                    " pai_of_selection_screen
  call function 'REUSE_ALV_GRID_DISPLAY'
       exporting
            i_callback_program     = w_g_repid
            is_layout              = t_layout
            it_fieldcat            = t_fieldcat
            i_default              = 'X'
            i_save                 = w_g_save
            is_variant             = w_g_variant
            it_events              = t_events
       importing
            es_exit_caused_by_user = t_exit
       tables
            t_outtab               = t_edition
       exceptions
            program_error          = 1
            others                 = 2.
Reward if it helpful.
Mustapha

Similar Messages

  • Alv variant help

    HI, i need to add a variant to selection screen in order to modify the layout of my alv.does anyone know how to do this .thx?

    Hi,
    I wish that this code will help you :
    data :        w_gx_variant    like disvariant.
    selection-screen begin of block b5 with frame title text-t01.
    *- Display variant
    parameters: p_vari like disvariant-variant.   "obligatory.
    selection-screen comment 47(40) varname for field p_vari.
    selection-screen end of block b5.
    form pai_of_selection_screen.
      if not p_vari is initial.
    Vérification de l'existence de la variante saisie
        clear  w_gx_variant.
        clear  w_gx_variant-variant.
        move w_g_variant to w_gx_variant.
        move p_vari to w_gx_variant-variant.
        call function 'REUSE_ALV_VARIANT_EXISTENCE'
             exporting
                  i_save     = w_g_save
             changing
                  cs_variant = w_gx_variant.
        w_g_variant = w_gx_variant.
        varname = w_g_variant-text.
      else.
        varname = ''.
      endif.
    endform.                    " pai_of_selection_screen
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program     = w_g_repid
                is_layout              = t_layout
                it_fieldcat            = t_fieldcat
                i_default              = 'X'
                i_save                 = w_g_save
                is_variant             = w_g_variant
                it_events              = t_events
           importing
                es_exit_caused_by_user = t_exit
           tables
                t_outtab               = t_edition
           exceptions
                program_error          = 1
                others                 = 2.
    Reward if it helpful.
    Mustapha

  • Billing Custom Variant Help

    Hello Experts!
    I've been assign with a new requirement for a utility company where I have to create a custom billing variant to determine if there is an active contract (division) on the customer account if so, the customer will be charge with a $1.50 processing fee and add this custom variant to the rate steps, this is my first assignment in billing and don't have much experience so I will really appreciate if someone point me in the right direction or give me some help with this, thanks in advance.
    Regards
    Norman Vargas

    I had to google Halma to see what you were talking about...yes it is very similar. I need a layout sorta like that.

  • Date scope variant, help me please

    in my query ,I create a variant of date scope,and the variant has a default value(2008.10.01 -2008.20.31),however,in visual composer I could not find the solution to this question,and when I use the  following format for the default value in vc:
    DSTR(DATE(2008.10.01),'YYYY.MM.DD')&" - "&DSTR(DATE(2008,10,31),'YYYY.MM.DD')
    But when I submit ,always have a error :you need to input a date internal variant:2008.10.01 -2008.10.31
    appreciate your reply.Thanks in advanced

    you can also use a popup calendar using Javascript where the user selects a data instead of entering it.
    There are a lot of good calendars out there

  • Chess game variant - help using JLayeredPane and the drag layer.

    Hi there!
    I'm making a game based on chess, but with slightly different rules. The code at the bottom of this thread...
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=518707
    ... forms the basis of the game board, and this is how I have implemented the dragging and dropping of pieces. My game, however is slightly different as there is a single neutral piece (the ball), which players can manipulate by moving one of their pieces to the square containing the ball, then moving the ball to another location.
    When a player clicks and drags a piece to the ball square, then releases, I want to attach the 'ball' JLabel to the mouse so that the player can move it around the board WITHOUT holding down the mouse button. Then, when the player clicks again the ball is moved to the new square.
    The only problem I have is attaching the 'ball' to the mouse so I can move it around (without the user having to hold the mouse button down). I thought about tried using the drag layer, but I couldn't quite get that working. I also thought about using the mouseMoved(MouseEvent e) and mouseClicked(MouseEvent e) methods.
    I'm pretty new to this coding stuff, so any suggestions would be great.
    Thanks!

    Using the drag layer isn't going to work unless you are using an honest to goodness component for the ball. Your other option might be to try to use the glasspane, which is a pain in the neck, or a floating window component.
    In any case,I built the code below for dragging Windows around in a frame. You're free to use it but please site me in your school or business work
    package tjacobs.ui;
    import java.awt.*;
    import java.awt.event.*;
    public abstract class WindowUtilities {
    public static Point getBottomRightOfScreen(Component c) {
         Dimension scr_size = Toolkit.getDefaultToolkit().getScreenSize();
         Dimension c_size = c.getSize();
         return new Point(scr_size.width - c_size.width, scr_size.height - c_size.height);
         public static class Draggable extends MouseAdapter implements MouseMotionListener {
    Point mLastPoint;
    Window mWindow;
    public Draggable(Window w) {
    w.addMouseMotionListener(this);
    w.addMouseListener(this);
    mWindow = w;
    public void mousePressed(MouseEvent me) {
    mLastPoint = me.getPoint();
    public void mouseReleased(MouseEvent me) {
    mLastPoint = null;
    public void mouseMoved(MouseEvent me) {}
    public void mouseDragged(MouseEvent me) {
    int x, y;
    if (mLastPoint != null) {
    x = mWindow.getX() + (me.getX() - (int)mLastPoint.getX());
    y = mWindow.getY() + (me.getY() - (int)mLastPoint.getY());
    mWindow.setLocation(x, y);
    }

  • SAP Help Library Installation

    Dear All
    I  am struggling to find the software of SAP Help Library to install it on a host and connect to it through SR13 Tcode.My SAP version is ECC 6.0 ,Basis release 7.01.I download and installed but when I launch any Tcode help from SAP it says .CHM file not found ,infact that CHM does not exist.
    Can please help me to find the complete software and path to download please??
    Thanks
    Edited by: Khaiserkm on Jun 27, 2011 8:58 AM

    Hello,
    Please make sure you followed steps as below...
    1. Please go to SR13 and create the variant in HtmlHelp File.
    2. Copy the help file (*.chm ) in one folder like C:\helpdata and share this folder.
    Then follow this process
    Variant             : help
    Platform           : WN32_98
    Area                : IWBHELP (Documentation)
    Path                 :
    <Hostname or IP address>\helpdata
    Lang.               : EN
    Default             : Check
    After all setup done then go to main menu Help >> Settings >> Application help. you have to see the IWBHELP in area.
    Please check and let me know if you are still not able to set this.
    Yogesh

  • Variant NLFRS1 of program RFSSLD00 is not the current version

    Hi,
    I am getting a error message "Variant NLFRS1 of program RFSSLD00 is not the current version" when I tried to display the variant
    Help me to solve the issue?
    Thanks & Regards
    Suresh Kumar

    Mahesh,
    One more thing to add, if the variant is changed purposefully,
    Go to
    SE38
    For the Program,
    1. select the variant 'RADIO BUTTON'
    2. Click 'Display'.
    3. On the Menu, Click 'Variants'.
    4. Click on 'Adjust'.
    5. Now, Click the 'Execute' button.
    Execute the Program with the Variant now.
    This should resolve the isssue.

  • Thread Pool , Executors ...

    Sorry if i make a stupid post now, but i'm looking for a implementation of a Thread Pool using the latest 1.5 java.util.concurrent classes and i can't find anything serious. Any implementation or link to a tutorial should be vary helpful.
    Thnx

    but i'm looking
    for a implementation of a Thread Pool using
    the latest 1.5 java.util.concurrent classes and i
    can't find anything serious. Any implementation or
    link to a tutorial should be vary helpful.
    Thnxhere is an Example :
    import java.util.concurrent.*;
    public class UtilConcurrentTest {
    public static void main(String[] args) throws InterruptedException {
    int numThreads = 4;
    int numTasks = 20;
    ExecutorService service = Executors.newFixedThreadPool(numThreads);
    // do some tasks:
    for (int i = 0; i < numTasks; i++) {
    service.execute(new Task(i));
    service.shutdown();
    log("called shutdown()");
    boolean isTerminated = service.awaitTermination(60, TimeUnit.SECONDS);
    log("service terminated: " + isTerminated);
    public static void log(String msg) {
    System.out.println(System.currentTimeMillis() + "\t" + msg);
    private static class Task implements Runnable {
    private final int id;
    public Task(int id) {
    this.id = id;
    public void run() {
    log("begin:\t" + this);
    try { Thread.sleep(1000); } catch (InterruptedException e) {}
    log("end\t" + this);
    public String toString() {
    return "Task " + id + " in thread " + Thread.currentThread().getName();
    }

  • Display Connector:   Status:     No Display Connected

    Display Connector:
      Status:          No Display Connected

    From System Profiler, please post the "Machine Model" information from its Hardware Overview page. There are quite a few MBP variants today and knowing the exact variant helps others help you.
    Example: the Machine Model" info for my Late 2007 MBP 15" is "MacBookPro3,1" and this very accurately identifies the computer for troubleshooting purposes.
    If the machine model reports a number higher than "4,1" you have a newer MBP that's covered in this forum section:
    http://discussions.apple.com/category.jspa?categoryID=251

  • Confirmed Dimensions. OBIEE Not able to pull data from two fact tables.

    Hi Experts,
    I have a very simple set up of Star Schema with two fact tables and 1 dimension. Both fact tables joined to the dimension at the same level.
    When i pull a column from both fact tables and the dimension table in OBIEE, it has to create simple SQL like below:
    select FACT1.column1,
    Fact2.Column1,
    Dim.Column1
    from FACT1, FACT2, DIM
    where FACT1.ID = DIM.ID and FACT2.ID = DIM.ID
    but instead it creating a query in a very complex way:
    select case  when D1.c2 is not null then D1.c2 when D2.c2 is not null then D2.c2 end  as c2,
         D1.c1 as c3,
         D2.c1 as c4
    from
         (select FACT1.Column1 as c1,
                   DIM.Column1 as c2
              from
                   DIM T1287863,              
                   FACT1 T1287945              
       where  (DIM.ID = FACT1.ID)
           ) D1 full outer join (
            select FACT2.Column1 as c1,
                   DIM.Column1 as c2
              from
                   DIM,              
                   FACT2
              where  ( DIM.ID = FACT2.ID)
         ) D2 On isnull(D1.c2 , '1') = isnull(D2.c2 , '1') and isnull(D1.c2 , '2') = isnull(D2.c2 , '2')
    I even tried setting the levels for both the fact tables and it still creates the query in avove way. Any thoughts on this will be vary helpful.

    Subramanian,
    see below the code we're using for the RFM.
    on the ct_containers table i'm passing a line, and its getting updated after the call.
    on the ct_errors table i just want to receive the errors and i only receive the line, we add manually there ('Serious error with validation code').
    kr, achim
    FUNCTION zbapi_ra_validations .
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(IS_RA_SCREEN) TYPE  ZBAPI_S_RA_SCREEN
    *"  CHANGING
    *"     VALUE(CT_ERRORS) TYPE  ZRA_T_ERRORS
    *"     VALUE(CT_CONTAINERS) TYPE  ZRA_T_CONT_IP
      DATA:
        lo_badi_handle TYPE REF TO zra_validation_rule,
        ls_error       TYPE zra_s_error.
      GET BADI lo_badi_handle.
      TRY.
          CALL BADI lo_badi_handle->validate_rules
            EXPORTING
              is_screen_flds = is_ra_screen
            CHANGING
              ct_containers  = ct_containers
              ct_errors      = ct_errors.
        CATCH zcx_ra.
          ls_error-message = 'Serious error with validation code'.
          APPEND ls_error TO ct_errors.
      ENDTRY.
    ENDFUNCTION.
    if i call this rfm in SE37 the ct_errors table is populated with all errors and the manually created line.
    Message was edited by: Achim Hauck

  • How to transfer database tables from sql server 2000 to oracle 10g

    Hi,
    I have a database and tables in sql server 2000. I have to transfer those data to Oracle 10g. I have installed Oracle warehouse Builder ETL Tool. Using this how can i transfer data. Any help is vary helpful for me.
    Thanks in advance.

    you have to do it using ODBC HS.
    1. Configure ODBC connection through gateway.
    2. Create a initxxx.ora file with HS config.
    restart gateway listener services
    3. on target o/s add entries to your tnsnames.ora
    4. On your target o/s create a db link
    restart listener on target
    cheeck this out.Non-Oracle connection through HS issue
    Edited by: Darthvader-647181 on Jan 29, 2009 2:02 AM

  • Can the SQL command be echoed in the Results area?

    It would be vary helpful to have the SQL command to be displayed in the Results area before the actual results are displayed.
    If this can be done, how?
    Jim

    Hi Jim,
    In the worksheet, try set echo on. Apparently it has worked since some fairly early SQL Developer versions:
    SET ECHO ON?
    Regards,
    Gary Graham
    SQL Developer Team

  • New hard drive shows in Bios and device manager but not in windows explorer in windows 7

    I have added a new sata 500gig hard drive and it is recognised in the bios, but is not recognised by windows explorer, though the disk is showing in device manager as a hard drive . I have followed the example on the forum by going to computer management and rescanning disks, to no avail.
    Any ideas how I can get to use the drive?
    My comp is a packard bell and all the details are here:-  http://support.packardbell.com/uk/item/?sn=845014390330&g=1400
    Hope someone can help.
    Rob

    Thanks Dale (and everyone else). A cure! Sorry I did not reply earlier, but have been trying all known fixes to no avail... However. The second of your links in the last reply of yours (starting, New Drive or mapped network drive) worked with a slight variation in windows7, as follows is how I achieved joy.
    Right-click My Computer , and then click Manage .
    Under Computer Management (Local) , click Disk Management .
    This far is as above, then I'll add comments to the existing help to show my variant.
    In the list of drives in the right pane, right-click the new drive and then click Change Drive Letter and Path(s) .
    Here it still did not show the drive in the right window, but below it there is a second window listing disks and one of them unallocated and without a drive letter was my new drive.  IMPORTANT! This set of info may not be apparent unless you enlarge the box by dragging it, as the default only shows the top box (so I have missed it until now on all my searching). Right clicking on this gave a set of obvious choices to create a choice of drive letter, format and options (NTFS etc) and this created the drive for me. I am sorry I am vague on the box choices, but on right selecting a live drive it doesn't bring up the "unallocated" box choices again. Many thanks and I hope my variant helps anyone else with a similar prob. Thanks again - Rob
    Click Change , and in the drop-down box, select a drive letter for the new drive that is not assigned to a mapped network drive.
    Click OK , and then click OK again.

  • Alternate Calendar for limited scenario

    Hello,
    I have a user who does reporting using COPA data.  We have a 4-4-5 fiscal year variant, and Period 1 corresponds to January, Period 2 corresponds to February etc.
    For this particular users purpose they need to analyze the data in a way that Period 1 corresponds to August, Period 2 corresponds to September.
    How can this be done?  Ideally our existing variables would work as well.  Such as YTD, PTD, Prior year etc.
    Any help would be appreciated!
    Thanks,
    Nick

    Nick,
       As you said, You can achive your requirement using Different Fiscal Year Variant.
    August or Sept etc. all are Calender Months. We will calculate fiscal periods using Fiscal Variant and Calender Month. Check with SAP R/3 Controlling or Fi guy can help with required Fiscal Year Variant or they will create one in either in BI or SAP R/3.
    Let me know wheather new Fiscal Year variant Helped you or not.
    All the best.
    Regards,
    Nagesh Ganisetti.

  • Portal on internet

    Hi Gurus,
    Can any body tell me
    how to put portal on internet using External facing (EP7.0)
    if any body have documents please help me
    Thanks and Regards,
    Kishore

    Hi Kishore,
    Please go through these important FAQ regarding External Facing Portal. I am sure that will vary helpful for you.
    Q: What is an external-facing portal?
    A: An external-facing portal is an implementation of the SAP NetWeaver Portal as a public Web site.
    An external-facing portal is open to the internet, providing content to anonymous users, internal employees and business partners and enabling users to self-register in order to access additional content and to personalize the portal.
    An external-facing portal uses features of the portal that provide Web-like behavior (for example, use of the browser navigation buttons) and reduce the amount of resources required to view portal pages.
    Although not always appropriate for certain resource-rich applications, the external-facing portal can boost ROI by using the same platform for the company's internet and intranet implementations.
    Q: What version of NetWeaver do I need to implement an external-facing portal?
    A: SAP NetWeaver ’04 SPS 14 or higher, or SAP NetWeaver 2004s SPS 6 or higher.
    Q: Where can I find documentation about implementing an external-facing portal using SAP NetWeaver Portal?
    A: The most current documentation is available on the Help Portal (help.sap.com) at:
    • SAP  Running an&#61664; IT Scenarios at a Glance &#61664;NetWeaver 2004s: SAP NetWeaver Library   Implementing an External-Facing Portal.&#61664;Enterprise Portal
    • SAP NetWeaver &#61664; Portal &#61664; People Integration &#61664; SAP NetWeaver &#61664;’04: SAP NetWeaver Library   Implementing an External-Facing Portal.&#61664;Special Topics
    Q: Where can I find the limitations of implementing an external-facing portal using SAP NetWeaver Portal?
    A: SAP Note 877188 and SAP Note 853509.
    Q: Why shouldn’t I use the external-facing portal for internal implementations?
    A: It is recommended not to use this solution for internal use because some functionality that is commonly used for internal implementations is not supported.
    Specifically, session management and WorkProtect mode are not supported as they require the use of the client framework JavaScript. Therefore, some standard SAP content – such as Web Dynpro, SAP business packages and KM (especially collaboration) – that uses these features are also not supported.
    In addition, to get the full benefit of the performance improvements in an external-facing portal, the content must be “light” and supported by the light framework page. Content in internal implementations generally does not meet these requirements. For more information on recommended content for an external-facing portal, see the Content section.
    Q: Should I use the provided light framework page for my external-facing portal implementations?
    A: Your external-facing portal should use the light framework page, but we recommend that you customize or replace the out-of-the-box navigation iViews within the light framework page. You can easily do this with the Navigation and Framework tag libraries.

Maybe you are looking for