‎2007 Jun 27 1:10 PM
hi,
diff b/w hide and get cusor?
what is roll area and page area ?
thank you
ASHOK KUMAR
‎2007 Jun 27 1:13 PM
HIDE
Based on which field we want to go for the next list(navigate), that field need to be mentioned in the HIDE statement.
Get Cursor
We can give the field name dynamically.
Roll area
The roll area is a memory area with a set(configurable) size that belongs to a work process. It is located in the heap of the virtual address space of the work process.
Paging Area
The paging area stores special data for the ABAP processor, while the extended memory stores a large portion of the internal tables of a program.
sathiya Ramasmay
‎2007 Jun 27 1:13 PM
HI
check this
Hide & Get Cursor is used in interactive programming ( in the event AT LINE-selection).
Using Hide in Loop..Endloop, you can get the field name At Line-Select
Event While Double Clicking That Line.
***PROG.BEGIN**************************************************************
&----
*& Report ZPREM_INTERACTIVE *
*& *
&----
*& *
*& *
&----
REPORT zprem_interactive .
TYPES : BEGIN OF ty_test,
code TYPE i,
name(10) TYPE c,
amount TYPE p DECIMALS 2,
END OF ty_test.
DATA : it_test TYPE STANDARD TABLE OF ty_test WITH HEADER LINE INITIAL SIZE 10.
DATA : wa TYPE ty_test,
chk1 TYPE c,
fldname(30), fldval(50).
*set pf-status 'PF01'.
*set titlebar 'PF01'.
*
INITIALIZATION.
it_test-code = 300.
it_test-name = 'Ramesh'.
it_test-amount = 5500.
APPEND it_test.
wa-code = 207.
wa-name = 'Prem'.
wa-amount = 5000.
APPEND wa TO it_test.
it_test-code = 117.
it_test-name = 'James Bond'.
it_test-amount = 9900.
INSERT it_test INDEX 3.
it_test-code = 217.
it_test-name = 'Sivaraman'.
it_test-amount = 9900.
INSERT it_test INDEX 3.
it_test-code = 201.
it_test-name = 'Saravanan'.
it_test-amount = 1000.
APPEND it_test.
it_test-code = 210.
it_test-name = 'Shanmugam'.
it_test-amount = 6000.
APPEND it_test.
WRITE : / 'Loop Display ( Appended rows ) :-'.
LOOP AT it_test.
WRITE : / chk1 AS CHECKBOX,
sy-tabix, sy-vline, it_test-code, it_test-name, it_test-amount.
HIDE : it_test-code, it_test-name.
ENDLOOP.
SKIP.
END-OF-SELECTION.
CLEAR : it_test-code, it_test-name.
WRITE : / 'this from end of selection'.
&----
*& Form DISP1
&----
text
----
FORM disp1.
WINDOW STARTING AT 15 10
ENDING AT 80 15.
DO.
CLEAR chk1.
READ LINE sy-index FIELD VALUE chk1.
IF sy-subrc NE 0.
EXIT.
ELSE.
CHECK chk1 NE space.
WRITE : / it_test-code, it_test-name.
MODIFY CURRENT LINE :
FIELD VALUE chk1 FROM ' '
FIELD FORMAT chk1 INPUT OFF.
ENDIF.
ENDDO.
ENDFORM. "DISP1
***line double click ****
AT LINE-SELECTION.
CHECK sy-lsind = 1.
WINDOW STARTING AT 5 4
ENDING AT 85 20.
WRITE: / 'THE USER DOUBLE-CLICKED A LINE IN THE REPORT'.
WRITE: / sy-lisel.
WRITE : / 'Sometime ',it_test-name, ' is good '.
WRITE : / 'Sometime ',it_test-name, ' is bad '.
WRITE : / 'Sometime ',it_test-name, ' is rich '.
WRITE : / 'Sometime ',it_test-name, ' is poor '.
WRITE : / 'Who knows, who is ',it_test-name, ' ? '.
WRITE : /, / 'we can also use this in SELECT statement'.
CLEAR : it_test-code, it_test-name.
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ULINE.
SKIP.
SKIP.
WRITE : / 'Below from Get Cursor Field...'.
GET CURSOR FIELD fldname VALUE fldval.
CONDENSE fldname.
CONDENSE fldval.
WRITE : / 'You have clicked ', fldname, ' & its value is ', fldval.
***function key press F6 ****
AT PF06.
PERFORM disp1.
*AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'STOP' OR 'CANCEL'.
LEAVE TO SCREEN 0.
WHEN 'TESTME'.
PERFORM DISP1.
ENDCASE.
*******************************************************************************************
Reward all helpfull answers.
Regards.
Jay
‎2007 Jun 27 1:14 PM
Hi
Hide is used to hide the field in the buffer for further use in the interactive list
based on that field the respective data will be displayed
you have to use HIDE between the loop..endloop of the code
Cursor Position on Table Controls
At PBO you can set the cursor on a specific field of a specific row of a table control.
SET CURSOR FIELD
Regards
Anji
‎2007 Jun 27 1:22 PM
Hi,
Hide & Get Cursor are all for different purposes.
Interactive list , if u want to naviugate from basic to secondary list , u have to use HIDE - fields below write statement.
Eg -
Loop at Itab.
Write : / Itab-Kunnr , Itab-Name ,......
Hide Itab-Kunnr.
EndLoop.
And in At-Line selection event
Get cursor .. that is used to find which field user has cliked or selected
At-Line Selection
Data : Fldname(12).
Get Cursor Field Fldname.
If Fldname = 'CUSTAB-KUNNR'.
Set Parameter Id 'KUN' Field CUSTAB-KUNNR.
Set Parameter Id 'BUK' Field Bukrs .
Call transaction 'XD03' and skip first screen.
Endif.
‎2007 Jun 27 1:17 PM
hi Ashok,
Hide is used to hide the contents of an IT value into a Buffer so when clickin the value thse values can be used for a further process when at-line selection event is triggered.
Get cursor is used to get the field value and field name of the clicked item...
Regards...
Balaji ( Assign points if good....)
‎2007 Jun 27 1:19 PM
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.
GetCursor
If the hidden information is not sufficient to uniquely identify the selected line, the command GET CURSOR is used. The GET CURSOR command returns the name of the field at the cursor position in a field specified after the addition field, and the value of the selected field in a field specified after value.
2.Page and Role ares are related memory in the application server.
Roll and page areas are SAP R/3 buffers used to store user contexts (process requests).
see http://www.sapbrainsonline.com/
Regards,
Priyanka.
‎2007 Jun 27 1:23 PM
hide cursor
in a report if u want to list another screen based on a field ,that field need to be mentioned in the HIDE statement.
get cursor
a field name is given dynamically
roll area is a memory area with a set(configurable) size that belongs to a work process. It is located in the heap of the virtual address space of the work process.
paging area stores special data for the ABAP processor, while the extended memory stores a large portion of the internal tables of a program.