Application Development 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: 

Set up a GUI status at ALV with class's implementation

Former Member
0 Kudos

Hello,

How can I add a gui status with a new pushbutton to an ALV screen that was implemented within class decleration ??

TRY.

CL_SALV_TABLE=>FACTORY(

IMPORTING

R_SALV_TABLE = GR_TABLE

CHANGING

T_TABLE = GT_REP ).

CATCH CX_SALV_MSG.

ENDTRY.

Thanks in advance,

Rebeka

1 ACCEPTED SOLUTION

mvoros
Active Contributor
0 Kudos

Hi,

you have to define your own GUI status and then call the following code:


gr_table->set_screen_status(
pfstatus = 'ZSALV_STANDARD' u201CCopy from standard PF Status u201CSALV_STANDARDu201D
report = sy-repid
set_functions = gr_table->c_functions_all ).

Check this tutorial about ALV using classes as well.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f6556c74-0e01-0010-aa99-b96b4316...

1 REPLY 1

mvoros
Active Contributor
0 Kudos

Hi,

you have to define your own GUI status and then call the following code:


gr_table->set_screen_status(
pfstatus = 'ZSALV_STANDARD' u201CCopy from standard PF Status u201CSALV_STANDARDu201D
report = sy-repid
set_functions = gr_table->c_functions_all ).

Check this tutorial about ALV using classes as well.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f6556c74-0e01-0010-aa99-b96b4316...