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: 

Alv display according to selection screen

Former Member
0 Kudos

I have to disply the condition types in the ALV output which user will enter in the seelction screen of condition type.

So ALV shl be created according to the Seelction screen input from user.

pls suggest how shl i do that.

8 REPLIES 8

amit_khare
Active Contributor
0 Kudos

How about instead of manipulating the ALV, manipulate the internal table values based on the selection screen and then pass the final table to ALV.

0 Kudos

but i need to create the ALV output catalog according to the selection. only those col of ALV shl be displayed which user has entered in the selction screen.

0 Kudos

Hello Shweta,

First check your selection scree at time of filling catalog..if that field is blank by user then dont display.use IF ..ENDIF to check screen input fields and write field catalog within this IF condition.

Hope it will work.

Cheers,

Sujeet

Former Member
0 Kudos

Dear Swetha,

check what are the final output fields in ALV. if all these fields are same for all condition types, then do the manipulation in internal table and pass the final data to final internal table. Now no need of changing any ALV.

If all fields are not same then also u can use one ALV output. In alv u can create layouts. so minimise the unwanted colomns in ALV which reaches ur requrement.

create diffrent layouts for conditions in selection screen using ALV feature layout which is simple.

Rgds,

Kiran

Edited by: Kiran on May 28, 2009 6:33 AM

former_member181995
Active Contributor
0 Kudos

Whatu2019s say about dynamic internal table?

Madhurivs23
Participant
0 Kudos

Hi Shweta,

You need to create a dynamic internal table using

call method CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE

exporting

IT_FIELDCATALOG = IT_FLDCAT

importing

EP_TABLE = NEW_TABLE.

assign NEW_TABLE->* to <DYN_TABLE>.

  • CREATE DYNAMIC WORK AREA AND ASSIGN TO FS

create data NEW_LINE like line of <DYN_TABLE>.

assign NEW_LINE->* to <DYN_WA>.

and fill the values in the dynamic table

Rgds,

Madhuri

Former Member
0 Kudos

Dear Shweta ,

Check out for how many condition types are their and for each condition type what are the out put fields then put a IF condition on each field catalog for example

if condition type is 'XXX'

here you will build the relevent field cataloge

elseif condition type is 'YYY'.

here you will build the relevent field cataloge

endif.

So ALV will be created according to the Seelction screen input from user.

Cheers

fareed.

Former Member
0 Kudos

thanks