Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

function module

Former Member
0 Likes
386

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
364

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

2 REPLIES 2
Read only

Former Member
0 Likes
365

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

Read only

0 Likes
364

Thanks Hitesh,

your answer is good,

but thing is what need of that method. after calling FM.

best regards.