Skip to Content
0
Former Member
Jun 13, 2011 at 03:40 PM

Concatenate Primary Key Fields of an internal table into a String.

337 Views

Hi,

I have a dynamic internal table created.

In the dynamic internal table,

How to concatenate all the primary keys of that row concatenated into a string and non primary keys into a different string.

Can some one help me on this.

E.g:

Itab1 has 3 Primary fields and 3 Non primary key fields and it has 2 records.

Table col1 col2 col3 col4 col5 col6

Row1 AA AB AC 1 2 3

Row2 ZA ZB ZC 1 2 3

The following is needed.

Itab2 will have the concatenate strings

Key Nkey

Row1 AAABAC 010203

Row2 ZAZBZC 010203

Thanks,

Chaithanya