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 display??

Former Member
0 Likes
969

Hello Experts,

I am facing a problem on displaying my ALV.

How can I show multiple record of an employee and his family members? i.e. If an employee has 3 members, it will come in 3 lines. Now I want to display employee name in 1st line not in 2nd and 3rd line.

1.Emp-1 Emp-Name-1 Family member-1 City State

2.----- -


Family member-2 -


-


3.----- -


Family member-3 -


-


4.Emp-2 Emp-Name-2 Family member-1 City State

How can I show it in ALV???

I want all memeber come in 3 row of one coloum,not the remaing thing show.

Message was edited by: Ankur Garg

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
942

Hi

U can directly add to ur fieldcatalog u can mention the text as wel as position in tht fieldcatalog attributes.

Hope this helps.

Regds,

Seema.

Hello Experts,

I am facing a problem on displaying my ALV.

How can I show multiple record of an employee and his family members? i.e. If an employee has 3 members, it will come in 3 lines. Now I want to display employee name in 1st line not in 2nd and 3rd line.

1.Emp-1 Emp-Name-1 Family member-1 City State

2.----- -


Family member-2 -


-


3.----- -


Family member-3 -


-


4.Emp-2 Emp-Name-2 Family member-1 City State

How can I show it in ALV???

I want all memeber come in 3 row of one coloum,not the remaing thing show.

Message was edited by: Ankur Garg

6 REPLIES 6
Read only

Former Member
0 Likes
942

Hi Vikas,

In ALV this kind of handling data will be little difficult. You can try blocked ALV list

OR

In normal ALV and GRID ALV if you select the records on the display screen and click on the SORT button the system will automatically format the display as you want.

Cheers

VJ

Read only

Former Member
0 Likes
943

Hi

U can directly add to ur fieldcatalog u can mention the text as wel as position in tht fieldcatalog attributes.

Hope this helps.

Regds,

Seema.

Read only

Former Member
0 Likes
942

HI Vikas,

Make sort on Employee Name.

Regards,

Raghav

Read only

Former Member
0 Likes
942

Hi,

the Requirement is simple if you do it using the Hierarchial ALV list.

Check the sample code <b>BALVHD01</b>.

Regards

vijay

Read only

santhosh_patil
Contributor
0 Likes
942

Hi,

use Hierarchial ALV list.

In which at header level u can have emp and at item level

u can have family members

Regards,

Santhosh

Read only

Former Member
0 Likes
942

hi

good

go to se38

put BCALV* and give F4 you ll find out of examples related to hirarchical ALV ,

go through this link,

http://www.sap-img.com/abap/how-to-use-alv-for-hierarchical-lists.htm

thanks

mrutyun^