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: 

concatenate all fields of ddic into one field of same ddic

former_member1242340
Participant
0 Kudos

Hai experts,

i need all of ur help,

i got problem.

i have created table of some 11 fields,

n designed a screen from which i have to enter a values from here my entered values should go n save in my table and as well as the values should go n save in one of the fied in same table,

for ex:

i have fields like,

A,B,C,D,E,F,G,H so all fields values should save in my table as well as in field 'H' by using

CONCATENATE HOW TO DO ,PLZ HELP ME

1 ACCEPTED SOLUTION

Former Member
0 Kudos

first of all you need to make sure that all your fields are of char typw... as concatenate will not work on other data types...

then while you are moving data into your itab fields.. at the same time concatenate the data into the H field...

e.g.

move A to itab-A.

concatenate itab-H A into itab-H separated by ' '.

3 REPLIES 3

Former Member
0 Kudos

Hi Rajesh,

try this..

itab-a = s_a.

itab-b = s_b.

.

.

.concatenate itab-a itab-b itab-c ...into itab-h.

append itab.

clear itab.

Regards,

Kaveri

Former Member
0 Kudos

first of all you need to make sure that all your fields are of char typw... as concatenate will not work on other data types...

then while you are moving data into your itab fields.. at the same time concatenate the data into the H field...

e.g.

move A to itab-A.

concatenate itab-H A into itab-H separated by ' '.

former_member404244
Active Contributor
0 Kudos

Hi,

U can use table maintainence generator to update the table and for ur second requirement u can use table mainatainence generator events...

check the below link

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-87652872...

this link will give u an idea how to handle events in table maianatinence generator..

There are many events in it..

for ur scenario use the event 01(before saving the data to database,u have to write concatenate statement in the routine).

Regards,

Nagaraj