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

ALV dynamic output

Former Member
0 Likes
852

how can i do about ALV dynamic output,thank you.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
819

you can create a Dynamic Container size for ALV - based on screen resolution

DATA: go_splitter TYPE REF TO cl_gui_splitter_container,

go_container TYPE REF TO cl_gui_container,

go_grid TYPE REF TO cl_gui_alv_grid.

...

CREATE OBJECT go_splitter

EXPORTING

parent = cl_gui_container=>default_screen

rows = 1

columns = 1

metric = '0001'.

go_container = go_splitter->get_container( row = 1 column = 1 ).

CREATE OBJECT go_grid

EXPORTING

i_parent = go_container.

Regards,

Sangram

SAP Consultant

how can i do about ALV dynamic output,thank you.

5 REPLIES 5
Read only

Former Member
0 Likes
819

hi Yang,

Check out this thread ..

Regards,

Santosh

Read only

anversha_s
Active Contributor
0 Likes
819

hi hong,

take se38.

give BCALV_GRID_*. take the F4 of that.

you will get anything u want in that sample programs.

That program are a gr8 asset in case dynamic ALV.

rgds

anver

Read only

dani_mn
Active Contributor
0 Likes
819

HI,

you have to generate FIELD CATALOG dynamically, using field-symbols, and then pass this to alv.

Regards,

Read only

Former Member
0 Likes
820

you can create a Dynamic Container size for ALV - based on screen resolution

DATA: go_splitter TYPE REF TO cl_gui_splitter_container,

go_container TYPE REF TO cl_gui_container,

go_grid TYPE REF TO cl_gui_alv_grid.

...

CREATE OBJECT go_splitter

EXPORTING

parent = cl_gui_container=>default_screen

rows = 1

columns = 1

metric = '0001'.

go_container = go_splitter->get_container( row = 1 column = 1 ).

CREATE OBJECT go_grid

EXPORTING

i_parent = go_container.

Regards,

Sangram

SAP Consultant

Read only

Former Member
0 Likes
819

Hi Hong,

cretae ur fieldcatalog and internal table dynamically.

then pass this dynamic internal table to ur ALV FM