Skip to Content
author's profile photo Former Member
Former Member

Hide

Hi,

What is Hide concept please explain and give me the example code for that.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 05:55 AM

    Hi Sunitha,

    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.

    Example:

    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 weight :', sbook-luggweight UNIT 'KG',

    / 'Class :', sbook-class.

    ENDIF.

    ENDCASE.

    See example program: demo_list_hide in SE38

    Plzz reward if it is useful,

    Mahi.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 05:54 AM

    in interactive report hide concept is used

    HIDE or after the last output statement for the current line.

    As soon as the user selects a line for which you stored HIDE fields, the system fills the variables in the program with the values stored. A line can be selected

    · by an interactive event.

    For each interactive event, the HIDE fields of the line on which the cursor is positioned during the event are filled with the stored values.

    · by the READ LINE statement.

    You can think of the HIDE area as a table, in which the system stores the names and values of all HIDE fields for each list and line number. As soon as they are needed, the system reads the values from the table. The example below presents some of the essential features of interactive reporting. The basic list contains summarized information. By means of the HIDE technique, each detail list contains more details.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 05:55 AM

    Hi

    The HIDE keyword is used to store data objects and their values so they can be made available when the User selects a report line. When a line is selected, the fields that were hidden are filled with the values that you hid for that line.

    The user selects a line for which

    data has been stored in the HIDE

    area. The runtime system evaluates

    field SY-LILLI to determine the

    selected line.

    The runtime system jumps to the

    point in the HIDE area where data

    for this line is stored.

    The runtime system then inserts all

    values stored for the selected line in

    the HIDE area into their

    corresponding fields.

    The runtime system processes the

    event AT LINE-SELECTION and

    its corresponding program

    processing block.

    A detail list is created.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 31, 2008 at 05:57 AM

    Hi,

    In interactive report HIDE concept is used to store the click value of basic list.........

    Regards,

    Sandeep

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 05:59 AM

    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 HIDE Technique

    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.

    At the event START-OF-SELECTION, the system sets the status FLIGHT for the basic list. In status FLIGHT, function code SELE (text SELECT) is assigned to function key F2 and to a pushbutton. So the event AT USER-COMMAND is triggered if the user double-clicks, presses F2, or chooses the pushbutton SELECT.

    The three fields spfli-carrid, spfli-connid, and num are stored in the HIDE area while creating the basic list. After selecting a line, the system displays the detail list defined in the AT USER-COMMAND event for function code SELE. In the AT USER-COMMAND event, the system refills all fields of the selected line that were stored in the HIDE area. You use num to check whether the user selected a line from the actual list. The detail list has status BOOKING, where F2 is assigned to function code INFO (text: Booking Information). The detail list presents data that the program selected using the HIDE fields of the basic list. For each list line displayed, the system stores additional information in the HIDE area.

    If the user selects a line of the detail list, the system displays the stored information in a dialog box with the status WIND. For the WIND status, the default values for the status type Dialog box have been adopted with the list status adjustment. The program uses sbook-bookid to check whether the user selected a valid line.

    The program itself sets all page headers and the title bar of the dialog box.

    Regards,

    Nithya

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.