HIDE Command in ABAP

What is the exact purpose of using a HIDE statement while making an interactive report? I know it is needed , but what purpose it exactly solves.

F1 help.....
HIDE
Basic form
HIDE f.
In an ABAP Objects context, a more severe syntax check is performed that in other ABAP areas. See Constants not allowed in HIDE area.
Effect
Retains the contents of f related to the current output line. When the user selects the line from the list f is automatically filled with the retained value.
The selection can occur in:
AT LINE-SELECTION
AT PFx
AT USER-COMMAND
READ LINE
The contents of the field do not have to have been displayed using WRITE in order for you to retain them.
The HIDE statement does not support deep structures (structures that contain internal tables).
Useful system fields for interactive reporting are listed in the System Fields for Lists documentation.
Note
Lines or components of lines of an internal table that you address using a field symbol (see ASSIGNING addition to the READ and LOOP statements), cannot be retained using HIDE. You can store them using a global variable instead.
Note
Runtime errors:
HIDE_FIELD_TOO_LARGE: The field is too long for HIDE.
HIDE_ON_EMPTY_PAGE: HIDE not possible on an empty page.
HIDE_NO_LOCAL: HIDE not possible for a local field.
HIDE_ILLEGAL_ITAB_SYMBOL: HIDE not possible for a table line or component of a table line.
and also a sample program.
data: begin of itab occurs 0,
      field type c,
      end of itab.
itab-field = 'A'.  append itab.
itab-field = 'B'.  append itab.
itab-field = 'C'.  append itab.
itab-field = 'D'.  append itab.
itab-field = 'E'.  append itab.
loop at itab.
  format hotspot on.
  write:/ itab-field.
  hide itab-field.
  format hotspot off.
endloop.
at line-selection.
  write:/ 'You clicked', itab-field.
null

Similar Messages

  • Hide command in ABAP Objects

    Hi everybod,
    i got a small Problem with the HIDE command in ABAB Objects. I got a Method called
    write_on_screen( ). in this method i  got code like this:
    DATA:
        test TYPE c.
    test = 'Hello'.
    WRITE: /0 sym_minus_folder AS SYMBOL HOTSPOT.
    WRITE: /5 'Im a dummy line'.
    HIDE test.
    Then i got this message "You cannot use HIDE with a local field."          
    If i change the code like this
    WRITE: /0 sym_minus_folder AS SYMBOL HOTSPOT.
    WRITE: /5 'Im a dummy line'.
    HIDE _test.
    _test is an Attribute of the class with the type c. "HIDE is not supported with the attributes of classes.     "
    Maybe someone got an advice for me.
    Greetings
    Edited by: Moritz Lutz on Jun 20, 2008 2:29 PM

    Moritz,
    Please Use SAP help first because no one can challange them.
    press F1 on HIDE and read the help.
    specially
    Exceptions
    Non-Catchable Exceptions
    Cause: The field is too long for HIDE.
    Runtime Error: HIDE_FIELD_TOO_LARGE
    Cause: HIDE in a table row or a component in a table row is not possible.
    Runtime Error: HIDE_ILLEGAL_ITAB_SYMBOL
    Cause: HIDE in a local field is not possile.
    Runtime Error: HIDE_NO_LOCAL: HIDE"here is your issue
    Cause: HIDE in an empty page is not possible.
    Runtime Error: HIDE_ON_EMPTY_PAGE
    Amit.

  • Why Hide Command?

    Hi Experts,
    Why do we use HIDE command, it consums memory when we hide data.
    In place of Hide we can use
    1. sy-lisel
    2. Get cursor
    3. Read line
    etc. which don't consum memory.
    Please give me reason, where it is necessary.
    Regards
    Rajiv singh.

    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.
    You use the HIDE technique while creating a list level to store line-specific information for later use. To do so, use the HIDE statement as follows:
    HIDE <f>.
    This statement places the contents of the variable <f> for the current output line (system field SY-LINNO) into the HIDE area. The variable <f> must not necessarily appear on the current line.
    To make your program more readable, always place the HIDE statement directly after the output statement for the variable <f> 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.
    GET CURSOR
    Use the statements GET CURSOR FIELD and GET CURSOR LINE to pass the output field or output line on which the cursor was positioned during the interactive event to the ABAP program.
    READ LINE
    Use the statements READ LINE and READ CURRENT LINE to read data from the lines of existing list levels. These statements are closely connected to the HIDE technique.
    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 weight :', sbook-luggweight UNIT 'KG',
                 / 'Class           :', sbook-class.
          ENDIF.
      ENDCASE.
    Reward all helpfull answers.
    Regards.
    Jay

  • What hide command will do

    what hide command will do

    Here is the F1 help.....
    <i>HIDE
    Basic form
    HIDE f.
    In an ABAP Objects context, a more severe syntax check is performed that in other ABAP areas. See Constants not allowed in HIDE area.
    Effect
    Retains the contents of f related to the current output line. When the user selects the line from the list f is automatically filled with the retained value.
    The selection can occur in:
    AT LINE-SELECTION
    AT PFx
    AT USER-COMMAND
    READ LINE
    The contents of the field do not have to have been displayed using WRITE in order for you to retain them.
    The HIDE statement does not support deep structures (structures that contain internal tables).
    Useful system fields for interactive reporting are listed in the System Fields for Lists documentation.
    Note
    Lines or components of lines of an internal table that you address using a field symbol (see ASSIGNING addition to the READ and LOOP statements), cannot be retained using HIDE. You can store them using a global variable instead.
    Note
    Runtime errors:
    HIDE_FIELD_TOO_LARGE: The field is too long for HIDE.
    HIDE_ON_EMPTY_PAGE: HIDE not possible on an empty page.
    HIDE_NO_LOCAL: HIDE not possible for a local field.
    HIDE_ILLEGAL_ITAB_SYMBOL: HIDE not possible for a table line or component of a table line.</i>
    and also a sample program.
    report zrich_0003.
    data: begin of itab occurs 0,
          field type c,
          end of itab.
    itab-field = 'A'.  append itab.
    itab-field = 'B'.  append itab.
    itab-field = 'C'.  append itab.
    itab-field = 'D'.  append itab.
    itab-field = 'E'.  append itab.
    loop at itab.
      format hotspot on.
      write:/ itab-field.
      hide itab-field.
      format hotspot off.
    endloop.
    at line-selection.
      write:/ 'You clicked', itab-field.
    It kind of "remembers" what is written, so that when you click on it, it knows what the value is.
    Please remember to award points and mark as solved if  your question has been answered.  Thanks.
    Regards,
    Rich Heilman
    Message was edited by: Rich Heilman

  • Is it possible to call ms-dos command in abap program?

    Hi,
    is it possible to call ms-dos command in abap program?
    Thanks.

    Hi Cemil,
    You probably have your answer here:
    [Re: DOS/Windows command in app server;
    You create your external command with SM69 (you can test it with SM49).
    Then you call this command with function module "SXPG_COMMAND_EXECUTE".
    (See function group SXPT for all the calls to external commands).
    Regards,
    Thomas

  • I want to execute UNIX COMMAND in ABAP

    Hi All,
    I want to execute a UNIX XOMMAND sh <scriptname> <filename> to replace divsion codes.in ABAP.
    But, I came to know that we can't (2) or try the following program but unfortunately the command CALL SYSTEM is not supported by SAP. If you are on R/3 2.1 - 2.2x you can get some idea's from the program SAPMSOS0.
    REPORT ZUNIXCOM .
    DATA: U_COMMAND(200).
    Table for system messages
    DATA: BEGIN OF RT OCCURS 100 ,
    LINE(100) ,
    END OF RT .
    START-OF-SELECTION .
    MOVE 'unix command' to U_COMMAND .
    REFRESH RT.
    CALL 'SYSTEM' ID 'COMMAND' FIELD U_COMMAND
    ID 'TAB' FIELD RT-SYS .
    LOOP AT RT.
    WRITE : / RT-LINE .
    ENDLOOP. 
    So please can u help me how to call a unix command from ABAP. it is very urgent. I want complete details and all possible solutions
    <removed_by_moderator>
    Thanks,
    gyanaraj
    Edited by: Julius Bussche on Aug 26, 2008 11:29 AM

    Selvaraj Gyanaraj wrote:>
    > So please can u help me how to call a unix command from ABAP.
    I was about to help you.
    >it is very urgent.
    I changed my mind.
    >I want complete details and all possible solutions
    I'm glad I changed my mind.
    >Points are surely rewarded.
    Too late.

  • AT NEW command in ABAP Objects

    Hi everyone!
    Is there an equivalent of the AT NEW command in abap oo? When I try to use this command inside a BAdi, I get an error message.
    Best Regards,
    Luís.

    Hi,
    Thank you for your response
    Sample code:
    LOOP AT c_t_data ASSIGNING  variants are no longer supported in the OO context. Use dynamic variants instead.
    Regards,
    Luís.

  • UNIX command in ABAP code

    Hi All,
    I need to use unix command (MOVE) in ABAP code for transfering a file from one directory to another directory.
    Can any one help with how to used unix commands in ABAP?
    Thanks in advance.
    Regards,
    Hemendra

    The recommended approach always used to be to use transaction SM69 to define a "soft" command name to the operating system command so that it could be configured to work across Windows, Unix etc.  For example:
    Command name       OS         Type             OS command                                 Parameters for operating system command 
    Z_FILE_MOVE        SunOS      Customer    mv                                                 ? ?   
    You can then call function module SXPG_COMMAND_EXECUTE (quite well documented) to actually perform the command passing in the appropriate number of parameters.
    Jonathan

  • Command in ABAP Editor to improve the source code

    Which command in ABAP Editor to be used to improve the readability of the program code ?plzz tell
    Edited by: Alvaro Tejada Galindo on Feb 13, 2008 3:48 PM

    Use Pretty Printer or do a CTRL+F1.
    Also u can change the settings of the way u want preety printer to behave by
    going in the Settings->Abap Editor -> Pretty Printer

  • Unix commands in ABAP

    Hi,
       I need to call the following unix command in ABAP to encrypt a file on the app server .
    crypt password <org filename> new_filename
    1 But when i run it using call 'SYSTEM' .. i get message security risk , command not executed ..
    2 I also created the command in SM69 and tries to run it but same error.
    3 I also created a shell script , but i get another message when i try to run sh ...
      Please help to find out a way to make it work ..
    Kunal

    Hi kunal,
    1. probably ur basis team might be able to help u.
    2. even if we have authorisations thru sap
       to run external os command,
       the actual OS user on application server
       must have the right for it
       and access/write/read/modify
       for the files (provided thru the command)
       in question.
    3. Due to this , the systems gives the message
       of SECURITY RISK.
    regards,
    amit m.

  • Hide command line ebs password

    Hi All,
    is there a way to hide command line password for apps user.
    when start or stop ebs apps from command line, i have to type
    $adstrtal.sh apps/apps
    is there a way to hide this password.
    Thanks in advance.

    Hi,
    I do not think there is a direct way to do this. However, look at this document and see if it helps.
    Note: 377858.1 - Use Encrypt To Prevent Apps Pwd Being Displayed In Log/Sql Script
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=377858.1
    Another option would be calling "adstrtal.sh apps/<apps password>" from some other script.
    Regards,
    Hussein

  • Hide Command Box through Sap ECC 6.0

    Hi, SAP GURU's
    How is it possible to globally hide command box in a Sap ECC 6.0. or hide it only from Enterprise Portal.
    Regards
    Sumeet Sharma

    Hello Sumeet Sharma
    Hiding the command box in SAPgui for windows is not possible.
    Disabling it would probably mean you have to rewrite the SAPgui interface (not feasible).
    Restricting your users from accessing content they are not supposed to access is based on authorizations, if you give everyone all rights you are bound to heading for trouble and issues restricting where they are going. Also when you get an audit they will surely flag this point as being dangerous.
    You can check with SAP by opening a customer message.
    Kind regards
    Tom

  • Hide command window from transactions in sap portal

    Dear experts
                  sir i want to hide command window from transactions iview in sap portal when i using sap gui for windows  sir i know very well settings for sap gui for html. so is there any possiblity for hiding command window from transactions iview when i use sap gui for windows
    please help...............
    Edited by: mousam jaini on Nov 1, 2010 12:11 PM

    Hi Mousam
    You can get solution from the  SAP Note: 1010519
    If ur system doesnot meet the pre-requiste, then you can set the below parameter under transaction sicf:
    ~webgui_simple_toolbar=1
    Pls go through the below article to display the SAP Transaction as SAP GUI
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e046cb5c-711a-2a10-95a9-81b365901b95
    Thanks
    Keshari

  • Show/Hide Command button in ADF

    I want to hide "Command Button" based on the select of "tableSelectOne". I have tried using the following code but I am not able to do that. So pls suggest some other options.
    <af:panelGroup partialTriggers="DestRulesSelectionId">
    <af:commandButton text="..."
    disabled="false"
    shortDesc="Test"
    partialTriggers="DestRulesSelectionId"/>
    </af:panelGroup>
    <af:tableSelectOne text="Select and" autoSubmit="true"
    id="DestRulesSelectionId"/>

    Hi Didier,
    But I have also developed the same example and it is working, without putting the command button under any parent component.
    Page defination is
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces"
              xmlns:afh="http://xmlns.oracle.com/adf/faces/html">
      <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
                  doctype-system="http://www.w3.org/TR/html4/loose.dtd"
                  doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <afh:html binding="#{backing_ShowHide.html1}" id="html1">
          <afh:head title="ShowHide" binding="#{backing_ShowHide.head1}" id="head1">
            <meta http-equiv="Content-Type"
                  content="text/html; charset=windows-1252"/>
          </afh:head>
          <afh:body binding="#{backing_ShowHide.body1}" id="body1">
            <h:form binding="#{backing_ShowHide.form1}" id="form1">
              <af:panelPage title="Show Hide" binding="#{backing_ShowHide.panelPage1}"
                            id="panelPage1" partialTriggers="selectOneRadio1">
                <f:facet name="menu1"/>
                <f:facet name="menuGlobal"/>
                <f:facet name="branding"/>
                <f:facet name="brandingApp"/>
                <f:facet name="appCopyright"/>
                <f:facet name="appPrivacy"/>
                <f:facet name="appAbout"/>
                <af:selectOneRadio label="Select "
                                   value="#{backing_ShowHide.radioBtnValue}"
                                   autoSubmit="true"
                                   binding="#{backing_ShowHide.selectOneRadio1}"
                                   id="selectOneRadio1">
                  <af:selectItem label="One" value="one"
                                 binding="#{backing_ShowHide.selectItem1}"
                                 id="selectItem1"/>
                  <af:selectItem label="Two" value="two"
                                 binding="#{backing_ShowHide.selectItem2}"
                                 id="selectItem2"/>
                </af:selectOneRadio>
                <af:commandButton text="commandButton 1"
                                  binding="#{backing_ShowHide.commandButton1}"
                                  id="commandButton1"
                                  partialTriggers="selectOneRadio1"
                                  rendered="#{backing_ShowHide.radioBtnValue =='one'}"/>
              </af:panelPage>
            </h:form>
          </afh:body>
        </afh:html>
      </f:view>
      <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_ShowHide-->
    </jsp:root> ~Vikram
    http://kohlivikram.blogspot.com/
    Message was edited by:
    KoVik
    Message was edited by:
    KoVik

  • How to hide command fied using transaction iview

    Hi All,
    Is there any way to hide command box (transactional field) in Portal using transactional iview ?
    I have searched in sdn forum, it is possible via IAC iview using application parameters ~headerOKcode = 1.
    Since our ITS is not configured properly and it is continously giving Browser errors (Object expected, 'wgu_global_eventhandler' is null or not an object).
    So.........I can;t go ahead with IAC Iview.
    I suspect.....anyone has gone through this problem and experts has a solution with transactional iviews to hide those command boxes.
    Appreciate your inputs in this regards.
    Thanks,
    Anil Kumar

    Try this in 'Application Parameters' field '&~NOHEADEROKCODE=1'

Maybe you are looking for

  • Cover flow and album sort issues

    I just got a 80GB iPod classic for Christmas and I have noticed some annoying differences between iTunes cover flow and iPod cover flow: 1. In iTunes cover flow, when you have songs with "Unknown Album", they clutter up the cover flow for each artist

  • Report of billing

    Dear All, how can i get billing report with reference to purchase order which is mention in sales order.what is the correct procedure will get this documents or transaction code if any standard are there in SAP ECC 6.0. Regards Ajit

  • How to remove files with package manager?

    CanI remove file with package manager For example if there is a file /apps/cq/ui/widgets/source/widgets/form/RichText.js in Author Instance A, then I delete RichText.js file using crxde.  Then I create a package remove_richtextjs.zip with filter /app

  • Webview and LocationChangeEvent doesn't works

    Hello, In a mobile project with ActionScript and AIR, I use a Webview with a LocationChangeEvent.LOCATION_CHANGING attached to it. During my last test, it appears that it doesn't work anymore and I've seen it is caused by the last version of AIR sinc

  • Should you use only one smtp address for all email accounts?

    My iPhone and iPad will not send mail from either of two email accounts. Ive checked the smtp settings and passwords several times. I have several email accounts with different providers/servers though, so should there only be one server chosen for a