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

Two different fields in single column - ALV

Former Member
0 Likes
2,892

Hi,

My Querry is ...

For eg-

loop at itab.
write: /28 itab-abc.
write: /28 itab-123.
endloop.

I need the above in ALV grid ie I need two different fields to diplay in single column...is dis possible,

if so plz advice me ...."

Thanks

Karthikeyan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,806

CONCATNATE ITAB-ABC ITAB-123 INTO ITAB-TEXT

AND USE ITAB-TEXT TO DISPLAY

Hi,

My Querry is ...

For eg-

loop at itab.
write: /28 itab-abc.
write: /28 itab-123.
endloop.

I need the above in ALV grid ie I need two different fields to diplay in single column...is dis possible,

if so plz advice me ...."

Thanks

Karthikeyan

8 REPLIES 8
Read only

anuj_srivastava
Active Participant
0 Likes
1,806

Hi Kartik ,

You can concatenate the two internal table fields into one and then can display the same in the ALV grid.

regards ,

Anuj

Read only

_IvanFemia_
Active Contributor
0 Likes
1,806

Hi,

You can CONCATENATE the two values and display the concatenated value

Regards,

Ivan

Read only

Former Member
0 Likes
1,806

hi,

use Concatenate 'IT_FINAL-field1' 'it_final-field2' into w_fld.

w_fldcat-Fieldname = w_fld.

w_fldcat-coltext = 'XXX'.

Append w_fldcat.

thanks

Read only

Former Member
0 Likes
1,806

Hi,

Create one final internal table having fields whose

fields catalog will be maintained and in one

of its fields you can put value by concatenating

two internal table fields into that one field and then

pass that field into the field catalog.

Hope it helps

Regards

Mansi

Read only

0 Likes
1,806

Hi ,

I don't want to concatenate two fields nor display it in a single field, but I want to diplay two fields 1 below the other...

ie..If I am using write statement I would prefer,

loop at itab.
wirte: /2 itab-abcd,
        /2 itab-1234.
endloop.

my output will be:

abcd

1234.

If need to use da same logic in ALV how would I use ?? hope I am little more clear now..

Please advice

Karthik.

Read only

0 Likes
1,806

hi,

please refer this

Read only

0 Likes
1,806

hi

use function module 'WORD_WRAP' for this requirement...

Read only

Former Member
0 Likes
1,807

CONCATNATE ITAB-ABC ITAB-123 INTO ITAB-TEXT

AND USE ITAB-TEXT TO DISPLAY