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

Former Member
0 Likes
1,447

Hi,

there are 9 fields in my final internal table which need to printed in alv. Out of these 9 fields 4 field values gets repeated few times. i want the display some thing like this.

FIELD1 FIELD2 FIELD3 FIELD4

1212 EEE 444 888

FIELD5 FIELD6 FIELD7 FIELD8 FIELD9

112 6565 YYY 099 EWEW

133 6560 GGG 777 FDFD

55 6563 DDD 66 UIOO

777 6563 BBB 877 XCDE

FIELD1 FIELD2 FIELD3 FIELD4

6565 GTRF 7823 6409

FIELD5 FIELD6 FIELD7 FIELD8 FIELD9

110 4565 YED 563 RFT

187 4560 FRT 640 VFRC

532 4563 BGT 1209 QWEC

812 4563 TGER 566 OPLN

Hi,

there are 9 fields in my final internal table which need to printed in alv. Out of these 9 fields 4 field values gets repeated few times. i want the display some thing like this.

FIELD1 FIELD2 FIELD3 FIELD4

1212 EEE 444 888

FIELD5 FIELD6 FIELD7 FIELD8 FIELD9

112 6565 YYY 099 EWEW

133 6560 GGG 777 FDFD

55 6563 DDD 66 UIOO

777 6563 BBB 877 XCDE

FIELD1 FIELD2 FIELD3 FIELD4

6565 GTRF 7823 6409

FIELD5 FIELD6 FIELD7 FIELD8 FIELD9

110 4565 YED 563 RFT

187 4560 FRT 640 VFRC

532 4563 BGT 1209 QWEC

812 4563 TGER 566 OPLN

8 REPLIES 8
Read only

amit_khare
Active Contributor
0 Likes
1,319

you will not able to get this kind output this in ALV but you can use SORT functionality of ALV to get output in groups.

Read only

Jay71
Participant
0 Likes
1,319

Hi,

you need to seperate the data into two tables

table 1 will contain ->

FIELD1 FIELD2 FIELD3 FIELD4

1212 EEE 444 888

FIELD1 FIELD2 FIELD3 FIELD4

6565 GTRF 7823 6409

table 2 will contain->

FIELD5 FIELD6 FIELD7 FIELD8 FIELD9

112 6565 YYY 099 EWEW

133 6560 GGG 777 FDFD

55 6563 DDD 66 UIOO

777 6563 BBB 877 XCDE

FIELD5 FIELD6 FIELD7 FIELD8 FIELD9

110 4565 YED 563 RFT

187 4560 FRT 640 VFRC

532 4563 BGT 1209 QWEC

812 4563 TGER 566 OPLN

now u can use hierarchy alv to display output as u described but u need to insert extra field that defines the relation between table 1 and table 2...if u have a relation use it or add a dummy field for logic purpose.

Jayaram

Read only

Former Member
0 Likes
1,319

Hi..

If you want to display it header and detail format.. Like from Field1 to Field4 if you want to display it as Header and Field5 to Field8 you want to display it as Detail then you can do the same using the FM given below..

REUSE_ALV_HIERSEQ_LIST_DISPLAY

Or else you can display field1 to field8 in one line by using Sort functionality of ALV..

Regards,

Kanchan Patil

Read only

Former Member
0 Likes
1,319

hii,

sort the field or use delete adjacent fields

this may solve ur problem.

regards

Read only

0 Likes
1,319

>

> sort the field or use delete adjacent fields

> this may solve ur problem.

This may not solve his problem, But may be he will loose some data in output!

Read only

0 Likes
1,319

ok sir

i guess u got the prob rite...

Read only

SujeetMishra
Active Contributor
0 Likes
1,319

Hello Raj,

Can you please explain your doubt in more detail?

Cheers

sujeet

Read only

Former Member
0 Likes
1,319

thanks