Output more than once ALV on screen

Hi,
We want to display data from 3 different internal tables on 3 different ALVs on output subscreen. i dont want to call a new screen but display all 3 ALVs one after other on single subscreen.
Kindly send any code blocks. I would prefer to do this using "Docking container" or with use of similar containers. Also suggest how i can insert some text lines between ALVs on output screen.
Kindly assist asap.
Best Regards,
Abbasi

HI
here 2 alv output in one screen
*& Report  ZAMIT_ALVOOPS
REPORT  ZNNR_ALVOOPS_SCREEN.
tables: mara,spfli.
types: begin of ty_tab,
        matnr type mara-matnr,
        ernam type mara-ernam,
        ersda type mara-ersda,
       end of ty_tab.
DATA ITAB1 TYPE TABLE OF SPFLI.
DATA WA1 LIKE LINE OF ITAB1.
DATA IO1 TYPE SPFLI-CARRID VALUE 'AA'.
data itab type table of ty_tab.
data wa like line of itab.
DATA OK_CODE TYPE SY-UCOMM.
DATA: GRID TYPE REF TO CL_GUI_ALV_GRID,
      CONT TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
DATA: GRID1 TYPE REF TO CL_GUI_ALV_GRID,
      CONTA TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
CREATE OBJECT CONT EXPORTING CONTAINER_NAME = 'CONT1' .
CREATE OBJECT GRID EXPORTING I_PARENT = CONT .
CREATE OBJECT CONTA EXPORTING CONTAINER_NAME = 'CONT2' .
CREATE OBJECT GRID1 EXPORTING I_PARENT = CONTA .
selection-screen begin of block b1 with frame title text-100.
select-options: s_matnr for mara-matnr.
selection-screen end of block b1.
select matnr ernam ersda from mara into corresponding fields of table itab up to 15 rows
where matnr in s_matnr .
call selection-screen 100.
*&      Module  USER_COMMAND_0100  INPUT
      text
MODULE USER_COMMAND_0100 INPUT.
if ok_code = 'PB1'.
leave to screen 0.
else.
leave to screen 100.
endif.
ENDMODULE.                 " USER_COMMAND_0100  INPUT
*&      Module  STATUS_0100  OUTPUT
      text
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
SELECT * FROM SPFLI INTO
  CORRESPONDING FIELDS OF TABLE ITAB1 WHERE CARRID = IO1.
CALL METHOD grid->SET_TABLE_FOR_FIRST_DISPLAY
  EXPORTING
   I_BUFFER_ACTIVE               =
   I_BYPASSING_BUFFER            =
   I_CONSISTENCY_CHECK           =
    I_STRUCTURE_NAME              = 'MARA'
   IS_VARIANT                    =
   I_SAVE                        =
   I_DEFAULT                     = 'X'
   IS_LAYOUT                     =
   IS_PRINT                      =
   IT_SPECIAL_GROUPS             =
   IT_TOOLBAR_EXCLUDING          =
   IT_HYPERLINK                  =
   IT_ALV_GRAPHICS               =
   IT_EXCEPT_QINFO               =
   IR_SALV_ADAPTER               =
  CHANGING
    IT_OUTTAB                     = itab.
   IT_FIELDCATALOG               =
   IT_SORT                       =
   IT_FILTER                     =
EXCEPTIONS
   INVALID_PARAMETER_COMBINATION = 1
   PROGRAM_ERROR                 = 2
   TOO_MANY_LINES                = 3
   others                        = 4
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
   CALL METHOD GRID1->SET_TABLE_FOR_FIRST_DISPLAY
    EXPORTING
      I_STRUCTURE_NAME = 'SPFLI'
    CHANGING
      IT_OUTTAB        = ITAB1.
ENDMODULE.                 " STATUS_0100  OUTPUT

Similar Messages

  • Working with more than one ALV on Screen

    Hi,
    I have got two alv's in same application/report. One ALV is for displaying the data and another ALV is for interaction or with EVENT Handling, but when iam defining the class with methods for event handling for CL_GUI_ALV_GRID, it is showing me an error message as there are more than one ALV with reference to CL_GUI_ALV_GRID. It seems it wants only UNICODE Object for CL_GUI_ALV_GRID.
    Please assit, how to manage with event handling when there are more than one ALVs on screen. How to go for class definition and implementation

    If you are dealing with two ALV, you should have created two different objects referring to CL_GUI_ALV_GRID.
    If you have done and still getting a error, please post the code that is erroring here.
    Regards,
    Ravi
    Note - Please mark all the helpful answers

  • Data output more than once

    Hello Experts
    I'am facing a peculiar problem pertaining to Infoset query ( Tran SQ01,SQ02, SQ03) . The requirement is to create a query based on table GLPCA and CATSDB.
    I've created the query as required, However when i execute the same the output is incorrect. What really happens is the Same line  is repeated more than once sometimes three, four or even five times.
    The Table GLPCA has two line items per document one debit and one credit, now at the most in the query i should get only these two lines and if i further filter it on the indicator there shoul be only one entry. However this is not the case even when i filter i on the posting indicator the query outputs the line item 5 times giving a wrong report.
    Can somebody suggest as what could be wrong with the query
    Thanks
    Nelson

    Hi,
    Nothing is wrong with the query.
    Kindly check ur join condition in SQ02
    I have created its coming correct.
    Regards
    Arbind

  • Is it possible to open a form created with screen painter more than once?

    I have created a form with the screen painter. In the screen painter the form is assigned a FormUID. Probably because this is done, it is impossible to open the form more than once??
    Thanks,
    Kind regards

    Hi J.
    The answer is yes You just have to give your form a unique id.
    1) Give your form in screen painter a name like BTWO_DYNAMIC_UID (just plain text).
    2) Make sure your <i>FormType</i> and <i>appformnumber</i> have a unique number (i.e. 2000060001). You can do this in the xml source.
    3) By loading your document replace the BTWO_DYNAMIC_UID with an unique id. I have a counter that's a member of my class and increase that number to get a unique id (BTWO_F_1, BTWO_F_2 etc)
    I have added a code sample, SBOApplication is my SAP application object and mFormNumber is a member (integer) of my class.
    <i>Succes d'r mee, en als 't nie lukt hoor ik het wel... ;)</i>
    <b>Code (C#):</b>
    // New xml document
    XmlDocument oXmlDoc = new XmlDocument();
    private Form LoadUniqueForm(string AMyFile)
      // Define your path to
      sPath = @"Forms" + AMyFile;
      // Load the form
      oXmlDoc.Load(sPath);
      // Replace the string with an unique id
      mFormNumber++;
      string sXML = oXmlDoc.InnerXml.Replace("BTWO_DYNAMIC_UID", "BTWO_F_" + mFormNumber.ToString());
      // load the XML file in SAP
      SBOApplication.LoadBatchActions(ref sXML);
      // Return the form
      return SBOApplication.Forms.Item("BTWO_F_" + mFormNumber.ToString());

  • When i put an app on m my iphone to show in lock screen it rings more than once

    when i put an app on m my iphone to show in lock screen it rings more than once

    When I go to settings/ notifications and select an app's notification and select on in the "view in lock screen* the msg tone rings more than once but when I turn it off it ring once.
    What should I do to make the msg appears in lock screen but only notify me once

  • Getting the same text more than once

    I keep getting the same numerous texts more than once from my friends and one of my friends even said that they were getting my texts out of order. Is it my phone or the network?

    It's easy to burn another copy of a DVD if you have already burnt a copy of it before. Just click the "Format" icon in the toolbar. It will pop up with a window with some options. You shouldn't have to change any of these options, just make sure that the Output Device is set to your DVD drive, which it should be set to by default. Just click the "Burn" button, pop in a DVD, and you're good to go.
    If you've made a few changes to the DVD, you can use the "Build/Format" button in the toolbar. It will pop up with a window similar to that of the Format window. Click "Build & Burn." It will tell you that a VIDEO_TS directory already exists, and it can reuse as much of it as possible. You can then click "Reuse" to build the new portions of the DVD, and then it will burn it on a DVD.
    Hope this helps.

  • How to call the same query more than once with different selection criteria

    Hi,
    Please do anybody know how to solve this issue? I need to call one query with the fixed structure more than once with different selection criteria. For example. I have following data
    Sales organization XX
                         Income 2008  Income 2009
    Customer A       10                 20
    Customer B        30                  0
    Sales organization YY
                         Income 2008  Income 2009
    Customer A        20                5
    Customer B        50                10
    Now, I need this. At the selection screen of query, user fill variable  charakteristic "Sales organization" with interval  XX - YY, than I need to generate two separate results per sales organization, one for Sales Organization XX and the second for SO YYwhich will be displayed each on separate page, where result for SO YY will be dispayed under result for SO YY. Are there some options how to do it for example in Report Designer or WAD or with programming? In Report Designer is possible to use one query more than once, but I dont know how to force each query in RD to display result only for one Sales Organization, which will be defined in selection screen.
    Thank you very much
    J.

    Hello,
    thanks to all for cooperation. Finally we solved this issue with the following way..
    User fill appropriate SO on the selection screen, which is defined as range. This will resulte, that selected SO are listed in report below each othe (standard behavior). Required solution we achieved with the Report Designer, we set page break under each Result row of RD. This caused, that report is divided into required part per SO, which are stated each on separate page.
    J.

  • Use of same filed more than once in module pool program.

    hi Good day,
    i want to use a filed on the screen more than once.
    ex : T7EHS00_EXA_PHY-UNIT
    the reason why i want to use this field more than once is b'coz it has SEARCH HELP.
    If i use this filed search help is created internally.
    to be more specific :
    i have
    screen field    screen field
    xys                unit of meas.
    abc                unit of meas.
    def                 unit of meas
    ghi                 unit of meas.
    jkl                  unit of meas.
    but SAP Does not accept the same field more than once.
    in this case what can i do?
    thank you,
    J.

    Hi Jacob,
    use like this....
    data : i1 type T7EHS00_EXA_PHY-UNIT ,
            i2 type T7EHS00_EXA_PHY-UNIT,
            i3 type T7EHS00_EXA_PHY-UNIT,
            i4 type T7EHS00_EXA_PHY-UNIT.
    In the screen properties,
    Give search Help-----> H_T006
    Declare the name in program as given to IO filed name...
    Hope you Understood...
    Regards,
    Vijay SR

  • CRS Install hostname being used by more than once for the same node.

    Hi, we're installing The Oracle Clusterware and on the Cluster Configuration screen of the universal Installer (the one were you specify the clustername and clusternodes) we get the following error message in a dialog box when the next button is clicked:
    "You must enter unique values for the public node name, the private node name and the virtual hostname for all nodes in the cluster. The name, node1, that you entered is being used by more than once for the same node."
    Has anyone experienced this error message before and know what the cause is?
    Could it be a problem with the /etc/hosts file?
    Thanks in advance,
    M

    Make sure you allocate separate IP addresses on your network for the VIP addresses on each RAC node (this is not the same as the machine IP already configured on the OS).
    Also, the installer may complain if your private and public IPs are configured under the same subnet.
    Finally, as mentioned before, check that name resolution for all the IPs to be used. On all RAC nodes, your /etc/hosts file should be configured with:
    - public name and IP addresses of ALL nodes
    - private name and IP addresses of ALL nodes
    - VIP name and IP addresses of ALL nodes
    Hope that helps
    B.

  • Trigger firing more than once

    Can any one help me i am having the problem with trigger . The trigger fires more than once. I want the trigger to be fired for every COMMIT and not for each row.
    The pl/sql used for populating the table in given below
    CREATE OR REPLACE TRIGGER REFRESH_MV_TRIGGER
    AFTER INSERT OR UPDATE ON CONTACT_HISTORY
    DECLARE
    cnt NUMBER;
    BEGIN
    IF ( INSERTING ) THEN
    dbms_output.put_line('INSERTING');
    END IF;
    IF ( UPDATING ) THEN
    dbms_output.put_line('UPDATING');
    END IF;
    END;
    DECLARE
    BEGIN
    FOR i IN 1..2 LOOP
    INSERT INTO CONTACT_HISTORY(TARGET_ID,CAMPCODE,COMMSTAGE,CUSTOMER_KEY,solicit_dt)
    VALUES(i,'CAMP4','COMM1',i,SYSDATE);
    END LOOP;
    COMMIT;
    END;
    sql> output when i run pl/sql block
    INSERTING
    INSERTING

    I am not shure what you need exactly but maybe this might help:
    CREATE TABLE dept (
      deptno NUMBER(2) PRIMARY KEY,
      dname  VARCHAR2(14),
      loc    VARCHAR2(13)
    CREATE TABLE dept_history (
      deptno NUMBER(2),
      dname  VARCHAR2(14),
      loc    VARCHAR2(13)
    CREATE MATERIALIZED VIEW dept_mv
      BUILD IMMEDIATE
      REFRESH ON COMMIT
      AS SELECT * FROM dept
    CREATE OR REPLACE TRIGGER bir_dept_mv
      BEFORE INSERT ON dept_mv
      FOR EACH ROW
    BEGIN
      INSERT INTO dept_history VALUES (:NEW.deptno, :NEW.dname, :NEW.loc);
    END;
    INSERT INTO DEPT (deptno, dname, loc) VALUES (1, 'D1', 'L1');
    1 row created.
    INSERT INTO DEPT (deptno, dname, loc) VALUES (2, 'D2', 'L2');
    1 row created.
    SELECT * FROM dept;
        DEPTNO DNAME          LOC
             1 D1             L1
             2 D2             L2
    SELECT * FROM dept_history;
    no rows selected
    SELECT * FROM dept_mv;
    no rows selected
    COMMIT;
    Commit complete.
    SELECT * FROM dept_history;
        DEPTNO DNAME          LOC
             1 D1             L1
             2 D2             L2
    SELECT * FROM dept_mv;
        DEPTNO DNAME          LOC
             1 D1             L1
             2 D2             L2Regards,
    Zlatko Sirotic

  • HT201365 Since uploading 7.0 I cant play any game for more than 5 sec.without screen flipping to Apps. page. Anyone else have this problem??

    Since uploading to 7.0.2 cant play any game for more than 5 sec. without screen flipping to Apps. page. What to do??

    Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps BEFORE doing the reset.

  • Since I updated to iCloud, Mail on my MacBookPro 10.6.8 has been unable to connect to MobileMe more than once or twice per day. Mail on my iPhone 4 has no problems. What's wrong?

    Since I updated to iCloud, (which may or may not be related) Mail on my MacBookPro 10.6.8 has been unable to connect to MobileMe more than once or twice per day. Mail on my iPhone 4 and my old iMac has no problems. When there is no service a yellow warning triangle appears adjacent to the Inbox and Connection Doctor reports,"Trying to log into this MobileMe IMAP account failed. Verify that username and password are correct."  Since it does fetch Mail from time to time they cannot be wrong.... can they? Should I update to 10.7 and if so what does that entail?

    You have been using MobileMe's email settings, which sometimes continue to work for a time after migration but then get turned off. iCloud's mail server settings are different. Strictly speaking Lion 10.7.2 is required for iCloud, and on that Mail is set up automatically.
    Snow Leopard cannot access most of iCloud's facilities, however you can set Mail up manually to access your email. The method is described here:
    http://www.wilmut.webspace.virginmedia.com/notes/icloudmail.html
    The situation with iCloud and Snow Leopard is described in detail here:
    http://www.wilmut.webspace.virginmedia.com/notes/icloudSL.html

  • How do I repeat the same row more than once in report 10g

    How do I repeat the same row more than once in report 10g
    So I can print the bar code more than once
    in report;
    Edited by: user11106555 on May 9, 2009 5:50 AM

    GREAT THAN X MAN
    It is already working, but with the first ROW
    select ename from emp
    CONNECT BY ROWNUM<=5
    ENAME
    SMITH
    SMITH
    SMITH
    SMITH
    SMITH
    ALLEN
    WARD
    JONES
    MARTIN
    BLAKE
    CLARK
    SCOTT
    KING
    TURNER
    ADAMS
    JAMES
    FORD
    MILLER
    BUT I want this result
    Item1
    Item2
    Item3
    to
    Item1
    Item1
    Item1
    Item2
    Item2
    Item2
    Item3
    Item3
    Item3

  • Can you create a form in which its never possible for the same person te sign the form more than once.

    Hi, I've been looking into this for awhile and believe the answer is 'no' but was just wondering if anyone here would know of a solution.
    The company I work for has a formulier on which a number of Excel files are placed. This form is then sent to a five (often different) people who are then required to open the Excel files and if accord to place their digital signature. We would like to make sure that no one is able to sign the form more than once and also if possible to make sure they have opened the Excel files. It would be great if anyone had any tips...
    All the very best,
    Martin Angell

    I am not an Excel or Excel-to-PDF conversion expert, so I do not know how Excel forms are converted to PDF form fields. With this caveat here's what I do know.
    In Acrobat It is possible to create a PDF form in which there are JavaScripts associated with fields (any fields, including signature fields). These JavaSripts can do a lot of things, including checking the signer's certificates on the already signed signature fields. Then you can make all unsigned signature fields read-only, in which case the user will not be able to actually sign them. After that you can overlay a button field on top of each unsigned signature field with exactly the same dimensions and associate a JavaAcript with this button field. This JavaScript would put up an UI asking the user for the signing certificate and its password, check this certificate's CN against the list of already signed signature fields and initiate the signing of the unsigned signature field behind this button if your condition is satisfied.
    I never tried that myself but it could work. This looks complicated and it is but if you really want it you can try.

  • Deauthorizing all machines more than once in a year?

    Is it possible to deauthorize all machines more than once in a year? I have had two machines crash and one time I forgot to de-authorize before I installed a new OS.
    iTunes tells me I have to wait until June to do this. There has to be a way to manually get someone to agree to do this. Is there a number I can call or process????
    tflink
    HP Compaq NC8230   Windows XP Pro  

    No.

Maybe you are looking for

  • Windows xp install -- black screen with no cursor

    I've seen a number of posts about Boot Camp installation problems involving a black screen with a blinking cursor, but my problem is simply with a black screen. On my MacBook Pro 15" Core 2 Duo (graphics card: ATY,RadeonX1600) I'm able to partition t

  • [SOLVED] Watermark Desktop

    Hello, Is there a package which watermarks the desktop with useful information such as your username/IP etc?  I believe "WaterMark" does this but I can't get it to work. Thanks. Last edited by RAH (2008-07-13 22:55:50)

  • How can i have a password verification code using swing?

    can u pls give me codes that i can study with.. tnx alot! it should b a GUI

  • My camera is not working on the front

    My camera is not working on the front. When I select the app if I try to switch it freezes.

  • Slide presentation display

    Hi, When I hit play on my presentation, all that appears on the screen is s small version of the slide off to the left of the screen with the slide number over it. I have tried everything I can think of to change it..but can't. I also can find nothin