<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: GET CURSOR vs HIDE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-vs-hide/m-p/1738460#M321046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we use Get cursor statement, we get the contents of line (clicked by user).&lt;/P&gt;&lt;P&gt;Based on our requiremetn, we can get offset of the contents captured in sy-lisel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX: to get matnr on a line.. &lt;/P&gt;&lt;P&gt;  v_matnr = sy-lisel+0(18).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we are making use of offset, we need to know the position of the field displayed on the output screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we use HIDE, the field gets back into the HIDE variable.&lt;/P&gt;&lt;P&gt;position of the field doesnt matter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Dec 2006 13:38:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-01T13:38:15Z</dc:date>
    <item>
      <title>GET CURSOR vs HIDE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-vs-hide/m-p/1738455#M321041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Main difference between the GET CURSOR and HIDE usage in reporting.&lt;/P&gt;&lt;P&gt;and how does they are used..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 13:29:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-vs-hide/m-p/1738455#M321041</guid>
      <dc:creator>former_member577909</dc:creator>
      <dc:date>2006-12-01T13:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: GET CURSOR vs HIDE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-vs-hide/m-p/1738456#M321042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the programs to understand how to make use of hide and get cursor statements.&lt;/P&gt;&lt;P&gt; &amp;lt;b&amp;gt;demo_list_hide&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;b&amp;gt;DEMO_LIST_GET_CURSOR&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 13:32:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-vs-hide/m-p/1738456#M321042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T13:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: GET CURSOR vs HIDE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-vs-hide/m-p/1738457#M321043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;GET CURSOR  : Transfers the name of the field at the cursor position to the field f. 


DATA: CURSORFIELD(20), 
      GLOB_FIELD(20)    VALUE 'global field', 
      REF_PARAMETER(30) VALUE 'parameter by reference', 
      VAL_PARAMETER(30) VALUE 'parameter by value', 
      FIELD_SYMBOL(20)  VALUE 'field symbol'. 
FIELD-SYMBOLS: &amp;lt;F&amp;gt; TYPE ANY. 
PERFORM WRITE_LIST USING REF_PARAMETER VAL_PARAMETER. 
ASSIGN GLOB_FIELD TO &amp;lt;F&amp;gt;. 

AT LINE-SELECTION. 
  GET CURSOR FIELD CURSORFIELD. 
  WRITE: /   CURSORFIELD, SY-SUBRC. 

FORM WRITE_LIST USING RP VALUE(VP). 
  DATA: LOK_FIELD(20)  VALUE 'local field'. 
  ASSIGN FIELD_SYMBOL TO &amp;lt;F&amp;gt;. 
  WRITE: /  GLOB_FIELD,  /  LOC_FIELD, 
         /  RP,          /  VP, 
         /  'literal',   /  FIELD_SYMBOL. 
ENDFORM. 



HIDE :   The contents of f related to the current output line are stored. If this line is selected, f is filled automatically with the stored value. 

You do not have to output the field with WRITE in order to be able to store its value. 

The HIDE statement does not support structures that contain tables (deep structures).&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 13:33:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-vs-hide/m-p/1738457#M321043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T13:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: GET CURSOR vs HIDE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-vs-hide/m-p/1738458#M321044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when the user double-clicks on the list,&lt;/P&gt;&lt;P&gt;HIDE stores the value in the memory.&lt;/P&gt;&lt;P&gt;GET CURSOR stores the value in the variable we declare in our code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 13:33:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-vs-hide/m-p/1738458#M321044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T13:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: GET CURSOR vs HIDE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-vs-hide/m-p/1738459#M321045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this sample code on hhow to use HIDE.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/a-sample-hide-get-cursor-in-interactive-programming.htm" target="test_blank"&gt;http://www.sap-img.com/abap/a-sample-hide-get-cursor-in-interactive-programming.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 13:35:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-vs-hide/m-p/1738459#M321045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T13:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: GET CURSOR vs HIDE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-vs-hide/m-p/1738460#M321046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we use Get cursor statement, we get the contents of line (clicked by user).&lt;/P&gt;&lt;P&gt;Based on our requiremetn, we can get offset of the contents captured in sy-lisel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX: to get matnr on a line.. &lt;/P&gt;&lt;P&gt;  v_matnr = sy-lisel+0(18).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we are making use of offset, we need to know the position of the field displayed on the output screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we use HIDE, the field gets back into the HIDE variable.&lt;/P&gt;&lt;P&gt;position of the field doesnt matter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 13:38:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-vs-hide/m-p/1738460#M321046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T13:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: GET CURSOR vs HIDE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-vs-hide/m-p/1738461#M321047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;A Sample Hide &amp;amp; Get Cursor in Interactive Programming -&amp;gt;&lt;/P&gt;&lt;P&gt;***&lt;STRONG&gt;PROG.BEGIN&lt;/STRONG&gt;**************************************************************&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZPREM_INTERACTIVE                                           *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zprem_interactive                       .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF ty_test,&lt;/P&gt;&lt;P&gt;        code TYPE i,&lt;/P&gt;&lt;P&gt;        name(10) TYPE c,&lt;/P&gt;&lt;P&gt;        amount TYPE p DECIMALS 2,&lt;/P&gt;&lt;P&gt;       END OF ty_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : it_test TYPE STANDARD TABLE OF ty_test WITH HEADER LINE INITIAL SIZE 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : wa TYPE ty_test,&lt;/P&gt;&lt;P&gt;       chk1 TYPE c,&lt;/P&gt;&lt;P&gt;       fldname(30), fldval(50).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*set pf-status 'PF01'.&lt;/P&gt;&lt;P&gt;*set titlebar 'PF01'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;  it_test-code = 300.&lt;/P&gt;&lt;P&gt;  it_test-name = 'Ramesh'.&lt;/P&gt;&lt;P&gt;  it_test-amount = 5500.&lt;/P&gt;&lt;P&gt;  APPEND it_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa-code = 207.&lt;/P&gt;&lt;P&gt;  wa-name = 'Prem'.&lt;/P&gt;&lt;P&gt;  wa-amount = 5000.&lt;/P&gt;&lt;P&gt;  APPEND wa TO it_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  it_test-code = 117.&lt;/P&gt;&lt;P&gt;  it_test-name = 'James Bond'.&lt;/P&gt;&lt;P&gt;  it_test-amount = 9900.&lt;/P&gt;&lt;P&gt;  INSERT it_test INDEX 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  it_test-code = 217.&lt;/P&gt;&lt;P&gt;  it_test-name = 'Sivaraman'.&lt;/P&gt;&lt;P&gt;  it_test-amount = 9900.&lt;/P&gt;&lt;P&gt;  INSERT it_test INDEX 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  it_test-code = 201.&lt;/P&gt;&lt;P&gt;  it_test-name = 'Saravanan'.&lt;/P&gt;&lt;P&gt;  it_test-amount = 1000.&lt;/P&gt;&lt;P&gt;  APPEND it_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  it_test-code = 210.&lt;/P&gt;&lt;P&gt;  it_test-name = 'Shanmugam'.&lt;/P&gt;&lt;P&gt;  it_test-amount = 6000.&lt;/P&gt;&lt;P&gt;  APPEND it_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE : / 'Loop Display ( Appended rows ) :-'.&lt;/P&gt;&lt;P&gt;  LOOP AT it_test.&lt;/P&gt;&lt;P&gt;    WRITE : / chk1 AS CHECKBOX,&lt;/P&gt;&lt;P&gt;    sy-tabix, sy-vline, it_test-code, it_test-name, it_test-amount.&lt;/P&gt;&lt;P&gt;    HIDE : it_test-code, it_test-name.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  SKIP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  CLEAR : it_test-code, it_test-name.&lt;/P&gt;&lt;P&gt;  WRITE : / 'this from end of selection'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  DISP1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM disp1.&lt;/P&gt;&lt;P&gt;  WINDOW STARTING AT 15 10&lt;/P&gt;&lt;P&gt;         ENDING AT 80 15.&lt;/P&gt;&lt;P&gt;  DO.&lt;/P&gt;&lt;P&gt;    CLEAR chk1.&lt;/P&gt;&lt;P&gt;    READ LINE sy-index FIELD VALUE chk1.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      CHECK chk1 NE space.&lt;/P&gt;&lt;P&gt;      WRITE : / it_test-code, it_test-name.&lt;/P&gt;&lt;P&gt;      MODIFY CURRENT LINE :&lt;/P&gt;&lt;P&gt;        FIELD VALUE chk1 FROM ' '&lt;/P&gt;&lt;P&gt;        FIELD FORMAT chk1 INPUT OFF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt;ENDFORM.                                                    "DISP1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***line double click ****&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION.&lt;/P&gt;&lt;P&gt;  CHECK sy-lsind = 1.&lt;/P&gt;&lt;P&gt;  WINDOW STARTING AT 5 4&lt;/P&gt;&lt;P&gt;         ENDING AT 85 20.&lt;/P&gt;&lt;P&gt;  WRITE: /  'THE USER DOUBLE-CLICKED A LINE IN THE REPORT'.&lt;/P&gt;&lt;P&gt;  WRITE: /  sy-lisel.&lt;/P&gt;&lt;P&gt;  WRITE : / 'Sometime ',it_test-name, ' is good '.&lt;/P&gt;&lt;P&gt;  WRITE : / 'Sometime ',it_test-name, ' is bad  '.&lt;/P&gt;&lt;P&gt;  WRITE : / 'Sometime ',it_test-name, ' is rich '.&lt;/P&gt;&lt;P&gt;  WRITE : / 'Sometime ',it_test-name, ' is poor '.&lt;/P&gt;&lt;P&gt;  WRITE : / 'Who knows, who is ',it_test-name, ' ? '.&lt;/P&gt;&lt;P&gt;  WRITE : /, / 'we can also use this in SELECT statement'.&lt;/P&gt;&lt;P&gt;  CLEAR : it_test-code, it_test-name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ULINE.&lt;/P&gt;&lt;P&gt;  SKIP.&lt;/P&gt;&lt;P&gt;  SKIP.&lt;/P&gt;&lt;P&gt;  WRITE : / 'Below from Get Cursor Field...'.&lt;/P&gt;&lt;P&gt;  GET CURSOR FIELD fldname VALUE fldval.&lt;/P&gt;&lt;P&gt;  CONDENSE fldname.&lt;/P&gt;&lt;P&gt;  CONDENSE fldval.&lt;/P&gt;&lt;P&gt;  WRITE : / 'You have clicked ', fldname, ' &amp;amp; its value is ', fldval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***function key press F6 ****&lt;/P&gt;&lt;P&gt;AT PF06.&lt;/P&gt;&lt;P&gt;  PERFORM disp1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*AT USER-COMMAND.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CASE SY-UCOMM.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   WHEN 'STOP' OR 'CANCEL'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     LEAVE TO SCREEN 0.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   WHEN 'TESTME'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     PERFORM DISP1.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ENDCASE.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbabf135c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbabf135c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 13:43:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-vs-hide/m-p/1738461#M321047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T13:43:52Z</dc:date>
    </item>
  </channel>
</rss>

