‎2008 Feb 05 5:06 AM
Hi All,
what is the use of this FM GET_GLOBALS_FROM_SLVC_FULLSCR
any one pls tell me.
points wil be given for right answer.
best regards.
‎2008 Feb 05 5:10 AM
HI srinivas
This FM is used for saving the modifyed data in alv output and it can save it to ztable .
Ex: DATA: BEGIN OF ITAB OCCURS 0 WITH HEADER LINE,
SELECT.
INCLUDE STRUCTURE EKKO.
DATA: END OF ITAB.
In fieldcat declaration, make your desired field attribute editable.
Ex: FIELDCAT-EDIT = 'X'.
In layout declaration, declare your selection indicator from the ITAB.
Ex: p_layouts-sel_mode = 'A'.
p_layouts-box_fname = 'SELECT'.
In user-command form, declare the following codes to check if there's a change in ALV.
data it_grid TYPE REF TO cl_gui_alv_grid.
data p_valid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_repid = sy-repid
e_grid = it_grid.
CALL METHOD it_grid->check_changed_data
IMPORTING
e_valid = p_valid.
if P_VALID = 'X'. Your ALV has been changed and may proceed to your next logic.....
reward points if helpful
regards
hitesh
‎2008 Feb 05 5:10 AM
HI srinivas
This FM is used for saving the modifyed data in alv output and it can save it to ztable .
Ex: DATA: BEGIN OF ITAB OCCURS 0 WITH HEADER LINE,
SELECT.
INCLUDE STRUCTURE EKKO.
DATA: END OF ITAB.
In fieldcat declaration, make your desired field attribute editable.
Ex: FIELDCAT-EDIT = 'X'.
In layout declaration, declare your selection indicator from the ITAB.
Ex: p_layouts-sel_mode = 'A'.
p_layouts-box_fname = 'SELECT'.
In user-command form, declare the following codes to check if there's a change in ALV.
data it_grid TYPE REF TO cl_gui_alv_grid.
data p_valid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_repid = sy-repid
e_grid = it_grid.
CALL METHOD it_grid->check_changed_data
IMPORTING
e_valid = p_valid.
if P_VALID = 'X'. Your ALV has been changed and may proceed to your next logic.....
reward points if helpful
regards
hitesh
‎2008 Feb 05 5:24 AM
Thanks Hitesh,
your answer is good,
but thing is what need of that method. after calling FM.
best regards.