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

Problem with saving/loading ALV variant & layout

Former Member
0 Likes
513

Hi Experts,

I am unable to save the layout and even load the layout for the variants.

My code is below. can some one help me where i am wrong?

Data: w_variant type disvariant.

gs_layout-zebra = 'X'.

gs_layout-sel_mode = 'A'.

clear w_variant.

w_variant-report = sy-repid.

w_variant-username = sy-uname.

call method grid->set_table_for_first_display

EXPORTING

is_variant = w_variant

i_save = 'A'

i_default = 'X'

is_layout = gs_layout

CHANGING

it_outtab = gt_outdisp[]

it_fieldcatalog = gt_fieldcat.

call method grid->set_ready_for_input..

thanks

Dan

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
457

Don't duplicate post

Regards

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
458

Don't duplicate post

Regards

Read only

Former Member
0 Likes
457

Not solved