About hide

hi
       some body pls tell me in interactive lise i want to use 2 filds with hide statement, how to use that one, and how to retrieve that content from that area,
please explain with example.
that is hide matnr werks.

Hi
Hide
To prevent the user from selecting invalid lines, ABAP/4 offers several possibilities. At the end of the processing block END-OF-SELECTION, delete the contents of one or more fields you previously stored for valid lines using the HIDE statement. At the event AT LINE-SELECTION, check whether the work area is initial or whether the HIDE statement stored field contents there. After processing the secondary list, clear the work area again. This prevents the user from trying to create further secondary lists from the secondary list displayed.
see the sample report using HIDE command
REPORT ZTEJ_INTAB1 LINE-SIZE 103 LINE-COUNT 35(5) NO STANDARD PAGE
HEADING.
*TABLES DECLARATION
TABLES : KNA1, VBAK, VBAP.
*SELECT OPTIONS
SELECT-OPTIONS: CUST_NO FOR KNA1-KUNNR.
*INITIALIZATION
INITIALIZATION.
CUST_NO-LOW = '01'.
CUST_NO-HIGH = '5000'.
CUST_NO-SIGN = 'I'.
CUST_NO-OPTION = 'BT'.
APPEND CUST_NO.
*SELECTION SCREEN VALIDATION
AT SELECTION-SCREEN ON CUST_NO.
LOOP AT SCREEN.
IF CUST_NO-LOW < 1 OR CUST_NO-HIGH > 5000.
MESSAGE E001(ZTJ1).
ENDIF.
ENDLOOP.
*BASIC LIST SELECTION
START-OF-SELECTION.
SELECT KUNNR NAME1 ORT01 LAND1 INTO
(KNA1-KUNNR, KNA1-NAME1,KNA1-ORT01,KNA1-LAND1)
FROM KNA1
WHERE KUNNR IN CUST_NO.
WRITE:/1 SY-VLINE,
KNA1-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
16 SY-VLINE,
KNA1-NAME1 UNDER 'NAME',
61 SY-VLINE,
KNA1-ORT01 UNDER 'CITY',
86 SY-VLINE,
KNA1-LAND1 UNDER 'COUNTRY',
103 SY-VLINE.
HIDE: KNA1-KUNNR.
ENDSELECT.
ULINE.
*SECONDARY LIST ACCESS
AT user-command.
IF SY-UCOMM = 'IONE'.
PERFORM SALES_ORD.
ENDIF.
IF SY-UCOMM = 'ITWO'.
PERFORM ITEM_DET.
ENDIF.
*TOP OF PAGE
TOP-OF-PAGE.
FORMAT COLOR 1.
WRITE : 'CUSTOMER DETAILS'.
FORMAT COLOR 1 OFF.
ULINE.
FORMAT COLOR 3.
WRITE : 1 SY-VLINE,
3 'CUSTOMER NO.',
16 SY-VLINE,
18 'NAME',
61 SY-VLINE,
63 'CITY',
86 SY-VLINE,
88 'COUNTRY',
103 SY-VLINE.
ULINE.
FORMAT COLOR 3 OFF.
*TOP OF PAGE FOR SECONDARY LISTS
TOP-OF-PAGE DURING LINE-SELECTION.
*TOP OF PAGE FOR 1ST SECONDARY LIST
IF SY-UCOMM = 'IONE'.
ULINE.
FORMAT COLOR 1.
WRITE : 'SALES ORDER DETAILS'.
ULINE.
FORMAT COLOR 1 OFF.
FORMAT COLOR 3.
WRITE : 1 SY-VLINE,
3 'CUSTOMER NO.',
16 SY-VLINE,
18 'SALES ORDER NO.',
40 SY-VLINE,
42 'DATE',
60 SY-VLINE,
62 'CREATOR',
85 SY-VLINE,
87 'DOC DATE',
103 SY-VLINE.
ULINE.
ENDIF.
FORMAT COLOR 3 OFF.
*TOP OF PAGE FOR 2ND SECONDARY LIST
IF SY-UCOMM = 'ITWO'.
ULINE.
FORMAT COLOR 1.
WRITE : 'ITEM DETAILS'.
ULINE.
FORMAT COLOR 1 OFF.
FORMAT COLOR 3.
WRITE : 1 SY-VLINE,
3 'SALES ORDER NO.',
40 SY-VLINE,
42 'SALES ITEM NO.',
60 SY-VLINE,
62 'ORDER QUANTITY',
103 SY-VLINE.
ULINE.
ENDIF.
FORMAT COLOR 3 OFF.
*END OF PAGE
END-OF-PAGE.
ULINE.
WRITE :'USER :',SY-UNAME,/,'DATE :', SY-DATUM, 85 'END OF PAGE:',
SY-PAGNO.
SKIP.
*& Form SALES_ORD
*& FIRST SECONDARY LIST FORM
FORM SALES_ORD .
SELECT KUNNR VBELN ERDAT ERNAM AUDAT INTO
(VBAK-KUNNR, VBAK-VBELN, VBAK-ERDAT, VBAK-ERNAM, VBAK-AUDAT)
FROM VBAK
WHERE KUNNR = KNA1-KUNNR.
WRITE:/1 SY-VLINE,
VBAK-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
16 SY-VLINE,
VBAK-VBELN UNDER 'SALES ORDER NO.' HOTSPOT ON,
40 SY-VLINE,
VBAK-ERDAT UNDER 'DATE',
60 SY-VLINE,
VBAK-ERNAM UNDER 'CREATOR',
85 SY-VLINE,
VBAK-AUDAT UNDER 'DOC DATE',
103 SY-VLINE.
HIDE : VBAK-VBELN.
ENDSELECT.
ULINE.
ENDFORM. " SALES_ORD
*& Form ITEM_DET
*& SECOND SECONDARY LIST FORM
FORM ITEM_DET .
SELECT VBELN POSNR KWMENG INTO
(VBAP-VBELN, VBAP-POSNR, VBAP-KWMENG)
FROM VBAP
WHERE VBELN = VBAK-VBELN.
WRITE : /1 SY-VLINE,
VBAP-VBELN UNDER 'SALES ORDER NO.',
40 SY-VLINE,
VBAP-POSNR UNDER 'SALES ITEM NO.',
60 SY-VLINE,
VBAP-KWMENG UNDER 'ORDER QUANTITY',
103 SY-VLINE.
ENDSELECT.
ULINE.
ENDFORM. " ITEM_DET
REPORT demo_list_at_pf.
START-OF-SELECTION.
WRITE 'Basic List, Press PF5, PF6, PF7, or PF8'.
AT pf5.
PERFORM out.
AT pf6.
PERFORM out.
AT pf7.
PERFORM out.
AT pf8.
PERFORM out.
FORM out.
WRITE: 'Secondary List by PF-Key Selection',
/ 'SY-LSIND =', sy-lsind,
/ 'SY-UCOMM =', sy-ucomm.
ENDFORM.
After executing the program, the system displays the basic list. The user can press the function keys F5 , F6 , F7 , and F8 to create secondary lists. If, for example, the 14th key the user presses is F6 , the output on the displayed secondary list looks as follows:
Secondary List by PF-Key Selection
SY-LSIND = 14
SY-UCOMM = PF06
Example for AT USER-COMMAND.
REPORT demo_list_at_user_command NO STANDARD PAGE HEADING.
START-OF-SELECTION.
WRITE: 'Basic List',
/ 'SY-LSIND:', sy-lsind.
TOP-OF-PAGE.
WRITE 'Top-of-Page'.
ULINE.
TOP-OF-PAGE DURING LINE-SELECTION.
CASE sy-pfkey.
WHEN 'TEST'.
WRITE 'Self-defined GUI for Function Codes'.
ULINE.
ENDCASE.
AT LINE-SELECTION.
SET PF-STATUS 'TEST' EXCLUDING 'PICK'.
PERFORM out.
sy-lsind = sy-lsind - 1.
AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'FC1'.
PERFORM out.
WRITE / 'Button FUN 1 was pressed'.
WHEN 'FC2'.
PERFORM out.
WRITE / 'Button FUN 2 was pressed'.
WHEN 'FC3'.
PERFORM out.
WRITE / 'Button FUN 3 was pressed'.
WHEN 'FC4'.
PERFORM out.
WRITE / 'Button FUN 4 was pressed'.
WHEN 'FC5'.
PERFORM out.
WRITE / 'Button FUN 5 was pressed'.
ENDCASE.
sy-lsind = sy-lsind - 1.
FORM out.
WRITE: 'Secondary List',
/ 'SY-LSIND:', sy-lsind,
/ 'SY-PFKEY:', sy-pfkey.
ENDFORM.
When you run the program, the system displays the following basic list with a the page header defined in the program:
You can trigger the AT LINE-SELECTION event by double-clicking a line. The system sets the status TEST and deactivates the function code PICK. The status TEST contains function codes FC1 to FC5. These are assigned to pushbuttons in the application toolbar. The page header of the detail list depends on the status.
Here, double-clicking a line no longer triggers an event. However, there is now an application toolbar containing five user-defined pushbuttons. You can use these to trigger the AT USER-COMMAND event. The CASE statement contains a different reaction for each pushbutton.
For each interactive event, the system decreases the SY-LSIND system field by one, thus canceling out the automatic increase. All detail lists now have the same level as the basic list and thus overwrite it. While the detail list is being created, SY-LSIND still has the value 1.
<b>Reward points for useful Answers</b>
Regards
Anji

Similar Messages

  • About HIDE memory area

    Hi friends,
             I need some information about HIDE area.
             1) Is there any specific memory size for HIDE memory area.
             2) what are the values will be saved into HIDE memeoy area, like only the    values that are followed by HIDE area or the total output list will be saved.
    Sathish Reddy.

    Hi
      HIDE
    The HIDE statement is one of the fundamental statements for interactive reporting.
    You use the HIDE technique when creating a basic list.
    It defines the information that can be passed to subsequent detail lists.
    The example below presents some of the essential features of interactive reporting. The basic list contains summarized information. With the HIDE technique, it is possible to branch to more detailed information on subsequent lists.
    The following program is connected to the logical database F1S.
    REPORT demo_list_hide NO STANDARD PAGE HEADING.
    TABLES: spfli, sbook.
    DATA: num TYPE i,
          dat TYPE d.
    START-OF-SELECTION.
      num = 0.
      SET PF-STATUS 'FLIGHT'.
    GET spfli.
      num = num + 1.
      WRITE: / spfli-carrid, spfli-connid,
               spfli-cityfrom, spfli-cityto.
      HIDE:    spfli-carrid, spfli-connid, num.
    END-OF-SELECTION.
      CLEAR num.
    TOP-OF-PAGE.
      WRITE 'List of Flights'.
      ULINE.
      WRITE 'CA  CONN FROM                 TO'.
      ULINE.
    TOP-OF-PAGE DURING LINE-SELECTION.
      CASE sy-pfkey.
        WHEN 'BOOKING'.
          WRITE sy-lisel.
          ULINE.
        WHEN 'WIND'.
          WRITE:  'Booking', sbook-bookid,
               /  'Date   ', sbook-fldate.
          ULINE.
      ENDCASE.
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'SELE'.
          IF num NE 0.
            SET PF-STATUS 'BOOKING'.
            CLEAR dat.
            SELECT * FROM sbook WHERE carrid = spfli-carrid
                                AND   connid = spfli-connid.
              IF sbook-fldate NE dat.
                dat = sbook-fldate.
                SKIP.
                WRITE / sbook-fldate.
                POSITION 16.
              ELSE.
                NEW-LINE.
                POSITION 16.
              ENDIF.
              WRITE sbook-bookid.
              HIDE: sbook-bookid, sbook-fldate, sbook-custtype,
                    sbook-smoker, sbook-luggweight, sbook-class.
            ENDSELECT.
            IF sy-subrc NE 0.
              WRITE / 'No bookings for this flight'.
            ENDIF.
            num = 0.
            CLEAR sbook-bookid.
          ENDIF.
        WHEN 'INFO'.
          IF NOT sbook-bookid IS INITIAL.
            SET PF-STATUS 'WIND'.
            SET TITLEBAR 'BKI'.
            WINDOW STARTING AT 30 5 ENDING AT  60 10.
            WRITE: 'Customer type   :', sbook-custtype,
                 / 'Smoker          :', sbook-smoker,
                 / 'Luggage weigtht :', sbook-luggweight UNIT 'KG',
                 / 'Class           :', sbook-class.
          ENDIF.
      ENDCASE.
    Regards
    Swathi

  • Error about hide statement

    Hi all,
    I am getting the error as You cannot use HIDE with a local field in my report.
    Please help me in solving this.
    Thanks.

    Hi,
    Declare the field as global or take a DDIC reference.
    Regards,
    Anirban

  • About hide special condition type in sales order condition screen

    Hi all,
        I have such requirement:
        Customer want to hide some condition type in sales order condition screen.
        I have tried the authrization object :V_KOND_VEA  but it only controll the master data level
        and the special still show on the condition table.
        I have also find any user exit in SD module:
        USEREXIT_FIELD_MODIFICATION (module pool SAPMV61A, program MV61AFZA)
        But it looks like a system modification, and need the modification key.
        So, is there any solution such as enhancement or configuration to meet this requirement?
    Many , thanks.

    Check this thread where similar requirement was discussed
    [Condition Type |Condition Type]
    thanks
    G. Lakshmipathi

  • ABout hide your Ip from the ISA server

    Hi!!Guys,I working on a programm that will hide my identetification from the ISA sever.I have a responsebility of securing the ISA server but I believe JAVA can do a nice job.But now I want to hack it before I can protect it.

    Two points
    1) The forum is concerned Cryptography. I don't see a cryptographic element to your question.
    2) Why should the members of this forum believe that you are not a bad guy trying to 'hack' a system?

  • How to access HID Class Devide with C program??

    HI, every,
    I need to port an application from linux to Max OS X ,
    Working on C enviroment.
    On linux, API from
    lib #include <linux/hid.h>.
    I use to open/ioctl HID handle directly,
    Now, On Mac OS X,How to do this,No hid.h in mac OX S?
    I already read a doc about hid programm,It use IOKIT framework to do this.
    On System, I already install XCode Tools, Why not find IOKIT packages.
    Where is the IOKIT library found?
    Could you help me?
    Thanks

    That's the way you do it. How did it fail? Did you get an error message or what?
    Anyway, the idiom for dealing with standard input is this:
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String line;
    while((line = in.readLine()) != null) {
      // line contains one line of input
      // do whatever you like with it
    }Java 5 adds some other options.

  • Hide entire column based on presentation variable?

    Has anyone ever tried to do this? If user selects all records from prompt i want to display analysts assigned to those records. If user selects specific analyst i don't want to display analyst column. I know i can null out or show analyst based on presentation variable but what about hide entire column?
    If this is not possible has anyone tried to use conditional formatting to hide entire column?

    Try this:
    0) Create a dashboard prompt on "analysts" and check the "All Choices" checkbox. Set the prompt to a presentation variable.
    1) Create a small report with two columns, one column will be your analyst column, the other will be a column which houses MAX(RCOUNT(1)) in the Edit Column formula window (what you get when you press the fx button). Put another filter on the analyst column set to the presentation variable with one of the analysts as the default.
    2) Put a filter on the the MAX(RCOUNT(1)) column "greater than 1"
    3) Create two copies of your actual report, one which has the analyst column, one without.
    4) Now in your dashboard you will need three sections, one for your prompt, one for the "with column" report and one for the "without column" report.
    5) In the Section Properties of the "with column" report, click on "Guided Navigation" and navigate to the small report you created in step one. Set this section to display "if request returns rows." Don't forget the filter on this report set to the presentation variable.
    6) In the Section Properties of the "without column" report, click on "Guided Navigation" and navigate to the small report you created in step one. Set this section to display "if request returns nothing." This report will not need a filter on the analyst prompt, because by definition it will display all analysts.
    Now when "all choices" is selected on the prompt, the second report displays in the dashboard, and when a single analyst is selected, then the first report will display with the analyst column.

  • HIDE, GETCURSOR , DOUBLECLICK EVENT

    HI TO ALL,
    1) EXPLAIN ABOUT HIDE KEYWORD, GET CURSOR AND DOUBLE CLICK EVENT?
    2) EXPLAIN ABOUT ALV REPORTS USING CLASS METHODS?
    REGARDS,
    VENKAT.

    Hi Venkat,
    if you haven't done yet please visit following link. It descibes the ALV Object Model:
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/5e/88d440e14f8431e10000000a1550b0/frameset.htm
    Regards
    Bernd

  • Show and Hide Actions Not Working

    I'm working on a project that involves showing and hiding objects.  I inserted a button and in the Action block for the object, I selected 'Show', then selected the object I wanted to be shown on click. When I preview that screen in the project and select the button to show the object, it shows the object, but then advances the project to the next screen. The only way I've found to combat this apparent flaw is to use an advanced action for what should be a really simple interaction. Also, I have the timing set for all objects on the screen in question to Display for the rest of the slide. Is anyone else experiencing this issue?

    Have a look at: Why choose Standard over Simple action? - Captivate blog
    As Rick points out, Captivate has always worked that way. And since you are talking about Hide/Show, very often you'll want to hide a group before showing one object. If  you are using Captivate 7/8 I recommend to create a shared action for that purpose that you can use over and over again in that project and in other projects.
    Dare to Share - part 1 - Captivate blog
    Reuse Shared Actions in other Projects - Captivate 7 vs. 8 - Captivate blog

  • Why this output is coming for sy-index

    for the code
    do 5 times.
    hide sy-index.
    wrtie sy-index.
    enddo.
    at line-selection.
    write sy-index.
    o/p is
    1
    2
    3
    4
    5
    if one clicks on 3 we get 4 on so on..can anyone xplain the logic behind this.

    Hi Henry,
    As I already replied,it is because in your original code you mentioned the sy-index to be in the same line.
    Usually,the purpose of AT Line-selection is pick that line.That's why it is taking the sy-index in your code as 5.
    But in my code and Andreas code , we are displaying the output vertically.
    And in the below mentioned code,I think while processing write statement itself since it needs to process both sy-index and '/' , it is incrementing sy-index by one.
    do 3 times.
    hide sy-index.
    write : / sy-index.
    enddo.
    at line-selection.
    write sy-index.
    Write sy-index and Hide should be consecutive.
    The behaviour of write :/ sy-index is it first process / and then sy-index.
    In Andreas coding, he has written write and then hide.
    While processing the write :/ sy-index, it is first processing hide and then / and then sy-index.
    In my coding, I have written hide and then write(without /).Here also it is consecutive.
    But in the coding you mentioned , you have written hide and then write (with /).It is processing hide and then / and then sy-index.In this case Hide and Write sy-index are not consecutive.That's why you get the output incremented by one.
    Hope this is clear.
    For more information about HIDE and At Line-selection,check this.
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/hide.htm
    Check this also.It will also work fine since write sy-index and Hide are consecutive.
    do 3 times.
    hide sy-index.
    write sy-index.
    new-line.
    enddo.
    at line-selection.
    write sy-index.
    Regards,
    J.Jayanthi
    Message was edited by: Jayanthi Jayaraman

  • How do I REMOVE an ADD-ON from my TOOLBAR, when said ADD-ON does NOT show up in my ADD ONS Manager?

    I have been instructed to:
    "When you open Firefox up in the left hand corner there is a drop down box that says "Firefox". Click on this and go to add-ons a new page will open with tabs on the side.
    Click on ADD-ONS, use ADD-ON Manager...."
    That does not happen that way. (I am on Firefox 19.0 for MAC.)
    When I click on Firefox (left hand corner at top of screen) "ADD-ONS" does NOT appear.
    I get "preferences" and "services" plus, of course ABOUT/HIDE/SHOW/QUIT choices.
    Running through ALL choices in PREFERENCES (which was not included as a step in your description) I find NO WAY to "deal with" ADD-ONS in General, Security, Privacy or Advanced.
    "services" says only NO SERVICES APPLY"
    I KNOW that I have an "ADD-ON Manager" I can open that. The ADD-ON that I need to REMOVE/Uninstall/Disable does NOT show there.
    It is an ICON on the lowest level of my toolbars showing above my window. Whether this is an awesome bar, or any other specially named bar I can't tell you, but: LOWEST section.
    This creepy ADD-ON (that I never personally installed) is called PRICEGONG - and it is now opening up a pop-up on all my eBay pages and elsewhere -trying to sell me things.
    It is wasting SO much of my time and I need to get it gone.
    WHAT do I do now? The PRICEGONG company has explanation of what to do to uninstall, but (no surprise) THEIR instructions/steps do not match reality either. RESULT: I can't get RID of this thing and am wasting huge amounts of time now with it.
    WHAT CAN I DO?

    hello, the addons manager is exactly the right place to look for it. please try disabling the addons that are listed there one-by-one (a restart of the browser might be necessary after each step). maybe one of them is bundling this kind of adware.
    [[Disable or remove Add-ons]]

  • ALV - subtoal

    Hi experts,
    In ALV report how to hide the total amount for a particular column.
    Scenario is :
    waerks   netvalue      in USD
    EUR         1              1.3
                2              2.6
                3              3.9
    INR         1              37
                1              37
                2               74
                5               77.9
    In th last line i dont want toal for netvalue.  Because there is no meaning for totaling different currencis.
    pls help me to do.
    Thanks.
    Message was edited by:
            Murugan Arumugam

    Hi Murugan
    If ur doubt is about subtotals then follow this
    <b>LS_FIELDCAT-DO_SUM = 'X'.</b>
    <u><b>U have to use this statement for detailed concept
    follow this code it may help u</b></u>
    REPORT ZALV.
    TYPE-POOLS: SLIS.
    DATA: G_REPID LIKE SY-REPID,
    GS_PRINT            TYPE SLIS_PRINT_ALV,
    GT_LIST_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER,
    GT_EVENTS           TYPE SLIS_T_EVENT,
    GT_SORT             TYPE SLIS_T_SORTINFO_ALV,
    GS_LAYOUT           TYPE SLIS_LAYOUT_ALV,
    GT_FIELDCAT         TYPE SLIS_T_FIELDCAT_ALV,
    FIELDCAT_LN LIKE LINE OF GT_FIELDCAT,
    COL_POS TYPE I.
    DATA: BEGIN OF ITAB,
    FIELD1(5) TYPE C,
    FIELD2(5) TYPE C,
    FIELD3(5) TYPE P DECIMALS 2,
    END OF ITAB.
    DATA: BEGIN OF ITAB1 OCCURS 0.
    INCLUDE STRUCTURE ITAB.
    DATA: END OF ITAB1.
    DATA: BEGIN OF ITAB_FIELDCAT OCCURS 0.
    INCLUDE STRUCTURE ITAB.
    DATA: END OF ITAB_FIELDCAT.
    * Print Parameters
    PARAMETERS:
               P_PRINT  AS CHECKBOX DEFAULT ' ', "PRINT IMMEDIATE
               P_NOSINF AS CHECKBOX DEFAULT 'X', "NO SELECTION INFO
               P_NOCOVE AS CHECKBOX DEFAULT ' ', "NO COVER PAGE
               P_NONEWP AS CHECKBOX DEFAULT ' ', "NO NEW PAGE
               P_NOLINF AS CHECKBOX DEFAULT 'X', "NO PRINT LIST INFO
               P_RESERV TYPE I.                  "NO OF FOOTER LINE
    INITIALIZATION.
    G_REPID = SY-REPID.
    PERFORM PRINT_BUILD    USING GS_PRINT.      "Print PARAMETERS
    START-OF-SELECTION.
    * TEST DATA
    MOVE 'TEST1' TO ITAB1-FIELD1.
    MOVE 'TEST1' TO ITAB1-FIELD2.
    MOVE '10.00' TO ITAB1-FIELD3.
    APPEND ITAB1.
    MOVE 'TEST2' TO ITAB1-FIELD1.
    MOVE 'TEST2' TO ITAB1-FIELD2.
    MOVE '20.00' TO ITAB1-FIELD3.
    APPEND ITAB1.
    DO 50 TIMES.
    APPEND ITAB1.
    ENDDO.
    END-OF-SELECTION.
    PERFORM BUILD.
    PERFORM EVENTTAB_BUILD CHANGING GT_EVENTS.
    PERFORM COMMENT_BUILD  CHANGING GT_LIST_TOP_OF_PAGE.
    PERFORM CALL_ALV.
    FORM BUILD.
    * DATA FIELD CATALOG
    * Explain Field Description to ALV
    DATA: FIELDCAT_IN TYPE SLIS_FIELDCAT_ALV.
    CLEAR FIELDCAT_IN.
    FIELDCAT_LN-FIELDNAME = 'FIELD1'.
    FIELDCAT_LN-TABNAME   = 'ITAB1'.
    *FIELDCAT_LN-NO_OUT    = 'X'.  "FIELD NOT DISPLAY, CHOOSE FROM LAYOUT
    FIELDCAT_LN-KEY       = ' '.   "SUBTOTAL KEY
    FIELDCAT_LN-NO_OUT    = ' '.
    FIELDCAT_LN-SELTEXT_L = 'HEAD1'.
    APPEND FIELDCAT_LN TO GT_FIELDCAT.
    CLEAR FIELDCAT_IN.
    FIELDCAT_LN-FIELDNAME = 'FIELD2'.
    FIELDCAT_LN-TABNAME   = 'ITAB1'.
    FIELDCAT_LN-NO_OUT    = 'X'.
    FIELDCAT_LN-SELTEXT_L = 'HEAD2'.
    APPEND FIELDCAT_LN TO GT_FIELDCAT.
    CLEAR FIELDCAT_IN.
    FIELDCAT_LN-FIELDNAME     = 'FIELD3'.
    FIELDCAT_LN-TABNAME       = 'ITAB1'.
    FIELDCAT_LN-REF_FIELDNAME = 'MENGE'. "<- REF FIELD IN THE DICTIONNARY
    FIELDCAT_LN-REF_TABNAME   = 'MSEG'.  "<- REF TABLE IN THE DICTIONNARY
    FIELDCAT_LN-NO_OUT        = ' '.
    FIELDCAT_LN-DO_SUM        = 'X'.   "SUM UPON DISPLAY
    APPEND FIELDCAT_LN TO GT_FIELDCAT.
    * DATA SORTING AND SUBTOTAL
    DATA: GS_SORT TYPE SLIS_SORTINFO_ALV.
    CLEAR GS_SORT.
    GS_SORT-FIELDNAME = 'FIELD1'.
    GS_SORT-SPOS      = 1.
    GS_SORT-UP        = 'X'.
    GS_SORT-SUBTOT    = 'X'.
    APPEND GS_SORT TO GT_SORT.
    CLEAR GS_SORT.
    GS_SORT-FIELDNAME = 'FIELD2'.
    GS_SORT-SPOS      = 2.
    GS_SORT-UP        = 'X'.
    *GS_SORT-SUBTOT    = 'X'.
    APPEND GS_SORT TO GT_SORT.
    ENDFORM.
    FORM CALL_ALV.
    * ABAP List Viewer
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    * I_INTERFACE_CHECK = ' '
    * I_BYPASSING_BUFFER =
    * I_BUFFER_ACTIVE = ' '
    I_CALLBACK_PROGRAM = G_REPID
    * I_CALLBACK_PF_STATUS_SET = ' '
    * I_CALLBACK_USER_COMMAND = ' '
    I_STRUCTURE_NAME = 'ITAB1'
    IS_LAYOUT =  GS_LAYOUT
    IT_FIELDCAT = GT_FIELDCAT[]
    * IT_EXCLUDING =
    * IT_SPECIAL_GROUPS =
    IT_SORT = GT_SORT[]
    * IT_FILTER =
    * IS_SEL_HIDE =
    * I_DEFAULT = 'X'
    * I_SAVE = ' '
    * IS_VARIANT =
    IT_EVENTS = GT_EVENTS[]
    * IT_EVENT_EXIT =
    IS_PRINT = GS_PRINT
    * IS_REPREP_ID =
    * I_SCREEN_START_COLUMN = 0
    * I_SCREEN_START_LINE = 0
    * I_SCREEN_END_COLUMN = 0
    * I_SCREEN_END_LINE = 0
    * IMPORTING
    * E_EXIT_CAUSED_BY_CALLER =
    * ES_EXIT_CAUSED_BY_USER =
    TABLES
    T_OUTTAB = ITAB1
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2.
    ENDFORM.
    * HEADER FORM
    FORM EVENTTAB_BUILD CHANGING LT_EVENTS TYPE SLIS_T_EVENT.
    CONSTANTS:
    GC_FORMNAME_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE'.
    *GC_FORMNAME_END_OF_PAGE TYPE SLIS_FORMNAME VALUE 'END_OF_PAGE'.
    DATA: LS_EVENT TYPE SLIS_ALV_EVENT.
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
          EXPORTING
               I_LIST_TYPE = 0
          IMPORTING
               ET_EVENTS   = LT_EVENTS.
    READ TABLE LT_EVENTS WITH KEY NAME =  SLIS_EV_TOP_OF_PAGE
                              INTO LS_EVENT.
    IF SY-SUBRC = 0.
       MOVE GC_FORMNAME_TOP_OF_PAGE TO LS_EVENT-FORM.
       APPEND LS_EVENT TO LT_EVENTS.
    ENDIF.
    * define END_OF_PAGE event
    * READ TABLE LT_EVENTS WITH KEY NAME =  SLIS_EV_END_OF_PAGE
    *                          INTO LS_EVENT.
    * IF SY-SUBRC = 0.
    *   MOVE GC_FORMNAME_END_OF_PAGE TO LS_EVENT-FORM.
    *   APPEND LS_EVENT TO LT_EVENTS.
    * ENDIF.
    ENDFORM.
    FORM COMMENT_BUILD CHANGING GT_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER.
    DATA: GS_LINE TYPE SLIS_LISTHEADER.
    CLEAR GS_LINE.
    GS_LINE-TYP  = 'H'.
    GS_LINE-INFO = 'HEADER 1'.
    APPEND GS_LINE TO GT_TOP_OF_PAGE.
    CLEAR GS_LINE.
    GS_LINE-TYP  = 'S'.
    GS_LINE-KEY  = 'STATUS 1'.
    GS_LINE-INFO = 'INFO 1'.
    APPEND GS_LINE TO GT_TOP_OF_PAGE.
    GS_LINE-KEY  = 'STATUS 2'.
    GS_LINE-INFO = 'INFO 2'.
    APPEND GS_LINE TO GT_TOP_OF_PAGE.
    * CLEAR GS_LINE.
    * GS_LINE-TYP  = 'A'.
    * GS_LINE-INFO = 'ACTION'.
    * APPEND GS_LINE TO  GT_TOP_OF_PAGE.
    ENDFORM.
    FORM TOP_OF_PAGE.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
          EXPORTING
               IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
    WRITE: SY-DATUM, 'Page No', SY-PAGNO LEFT-JUSTIFIED.
    ENDFORM.
    FORM END_OF_PAGE.
    WRITE at (sy-linsz) sy-pagno CENTERED.
    ENDFORM.
    * PRINT SETTINGS
    FORM PRINT_BUILD USING LS_PRINT TYPE SLIS_PRINT_ALV.
    LS_PRINT-PRINT              = P_PRINT.  "PRINT IMMEDIATE
    LS_PRINT-NO_PRINT_SELINFOS  = P_NOSINF. "NO SELECTION INFO
    LS_PRINT-NO_COVERPAGE       = P_NOCOVE. "NO COVER PAGE
    LS_PRINT-NO_NEW_PAGE        = P_NONEWP.
    LS_PRINT-NO_PRINT_LISTINFOS = P_NOLINF. "NO PRINT LIST INFO
    LS_PRINT-RESERVE_LINES      = P_RESERV.
    ENDFORM.
    *END OF ZALV PROGRAM
    Follow this link
    for detailes concept
    http://help.sap.com/saphelp_sm32/helpdata/en/ee/b99d37e188a049e10000009b38f8cf/content.htm
    <b>And if ur doubt is about is about hide then follow this</b>
    <b><u>IT_TOOLBAR_EXCLUDING</u></b>
    This table contains function codes of the toolbar that you want to hide for the lifetime of the ALV Grid Control. The function codes are constant attributes and are prefixed with MC_FC_.
    <b>KEY</b>
    <u>If this field is set, the ALV Grid Control color-codes the column as a key field and fixes this column during horizontal scrolling. The order of the key columns in the ALV Grid Control can be modified interactively. In contrast to the SAP List Viewer, the ALV Grid Control allows you to directly hide key columns with NO_OUT then use the key word</u>
    <b>NO_OUT</b>
    <u>If you set this field, you hide the relevant column in the list. Nevertheless, the column is available in the field selection and can be interactively selected by the user as a display field. The ALV displays the contents of hidden fields on the detail screen for a row in the grid control.</u>
    To hide the entire toolbar, you can set the field “NO_TOOLBAR” of the layout structure to ‘X’.
    Reward if helpfull
    Regards
    Pavan

  • Problem on interactive report

    hi all
    i generated basick list,
    from dat list,(2 or more recods) i want to read some records to display in secondary list.
    howz it possible.
    i am using read statement,but?

    Hai Murthy,
    <b>Use the HIDE command available in ABAP.</b>
    Sample code:
    REPORT  Z_HIDE_TEST.
    DATA:
      W_I TYPE I.
    DO 5 TIMES.
    <b> HIDE: W_I.</b> " Captured Here
      W_I = SY-INDEX.
      WRITE:/ SY-INDEX.
    ENDDO.
    AT LINE-SELECTION.
      WRITE: <b>W_I</b>,SY-INDEX,SY-LSIND. " Printed in Secondary List
    <b>More about HIDE</b>
    <b>Syntax :</b>
    HIDE dobj.
    <b>Effect :</b>
    This statement stores - in the current list level - the content of the variable dobj together with the current list line whose line number is contained in sy-linno. The data type of the variables dobj must be flat and no field symbols can be specified that point to rows of internal tables, and no class attributes can be specified. The stored values can be read as follows:
    For each user action in a displayed screen list that leads to a list result, all the row values stored using HIDE - that is, the row on which the screen cursor is positioned at the time of the event - are assigned to the respective variables.
    If a list row of an arbitrary list level is read or modified using the statements READ LINE or MODIFY LINE, all the values of this row stored using HIDE are assigned to the respective variables.
    <b>Notes :</b>
    The HIDE statement works independently of whether the list cursor was set. In particular, variables for empty list rows can be stored - that is, rows in which the list cursor was positioned using statements like SKIP.
    The HIDE statement should be executed immediately at the statement that has set the list cursor in the row.
    Outside of classes, constants and literals that cannot be read in list results and in the statement READ LINE can be specified for dobj outside of classes.
    Hope this helps you.
    <b>Reward points if it helps you.</b>
    Regds,
    Rama chary.Pammi

  • What's the best way to automount DVD and networksharing?

    Hey Guys.
    Just a Question - to hear if its possible to make it work ?
    I have through time build a little MythTV setup on ArchLinux.
    And - damn I'm happy with it.
    The only remaining problem I've got now - is how to share the DVD on the network. Since I'm using powersaving frontends, I have no DVD for playing DVD's. And since I got kids and A LOT cartoons, I would be glad to make this works perfectly.
    I've tried to make it work using NFS - I've discovered some lacking in the picture and sound when playing DVD's.
    I've tried with samba, and got actually a happy solution, BUT there's a problem that I needing to make happend automaticly.
    1. Automount the DVD after inserting it into DVD-drive. Also umount the drive when pushing the buttom on the drive.
    2. I shalll now restart samba after inserting the dvd - Isn't it possible that the drive is dicovered automaticly after mounted in the directory: ??? allso when finished playing the DVD - I need to stop samba before I can umount the DVD - Is it possible to avoid stopping samba for umounting the DVD ?
    3. How is it possible to make this action automaticly when inserting a DVD or pushing a button on the frontend that starts it all using a shellscript or so?
    Mostly becaurse I'm thinking about hidding the server in a special place and have a DVD shared from a external/internal device? So this action should happen automaticly after inserting the DVD - that its accessable on the network - and removed when pushing the button on the drive?
    Let me here a little about the your experiences with this problem. I've tried the wiki about getting autofs to make it work - but here's my solution for now
    TIA
    P
    Last edited by peque (2009-06-04 19:19:14)

    The automount of the drive from fstab - yes - and have no problems on the frontends.
    But when inserting a DVD - you'll need to mount -a to mount the see the contents of the dvd - (if this can automaticly be disvovered by fstab - please tell me - I cannot see it)
    And again afters wards - when finishing the DVD - when pressing the buttom - eject - It's says the device is busy.
    You'll need to stop samba - carse its samba that uses the device. After stopping samba - no problem with umounting the device.
    Again . please guide me in the rigth way - to make this happen automaticly!

  • Hiding few columns in Financial Planning screen for Portfolio Management

    Hi,
    Is it possible to hide few columns in the Financial Planning tab page for Portfolio Management.
    Please suggest how, if it is possible.
    Regards,
    Nishit

    Hi Nishit,
    What fields are you thinking about hidding?  the buckets are determined via your own configuration.
    Thank you,
    Michelle

Maybe you are looking for

  • Pacleanup: A script to clean up package bloat

    Hi all! Here is my first real contribution to the Arch community! w00t! Do you install packages just to try them out and never end up using them? Do you forget about them and do they just add to the bloat on your system? Do you want to review the pac

  • Report on GRs

    Hello All, i want to make a report on GRs of a specified date range, their POs, details of vendors and Delivery Dates. But i want all of these for some particular matererial groups. how should i go about doing it?

  • Windows7 issue with JDev

    I got assigned a new windows7 machine for testing. My main machine is also Windows7 and I can run Jdev and apps with no issues on it. I installed jdev on the new Windows7 machine and started it from an Admin prompt, and tried to run a jspx page, I ge

  • Uploading a Video from Photo Booth

    I made a video on Photo Booth but I am having trouble sharing it. I moved it to my desktop and sent it through a message on Facebook, and they were not able to watch it. I also tried to upload it to youtube and share it but youtube couldn't process i

  • How to archive messages in Mail when using Gmail?

    I'm quite happy with the new look they've given Mail in OSX Lion and I was thrilled to see the Archive button, as I'm a Gmail user. But, as you might now, that Archive button does not move messages to "All Mail" as Gmail would. Instead it creates a n