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

move data to stable

Former Member
0 Likes
523

Hallow

I have a interface program that I have to send a many(30) different structre but in all stuctre I have 5 fields that is requirement in all stuctre. I heard that I can do a strucre with the requirement fields and one field type char 255 that I move for him all the data from other fields maybe in concatente

How can I do that?

Example

Pernr

Persno

i.d

date

Name

Data

Instead of

Pernr

Persno

i.d

date

Name

Date of bearth

Country

Religion

And more fields…..

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
507

Hi SHNYA,

You will have to concatenate the values of the other fields in the structure other than the mandatory ones into 255 char lenght field and then append into the table. But care must be taken while reading the data out at the destination. May be you could use some values to identify the same and move into corresponding structures.

Structure1

Pernr

Persno

i.d

date

Name

Date of bearth

Country

Religion

end of structure1

Structure2

Pernr

Persno

i.d

date

Name

Data

end of structure2

loop at tableofStucture2.

<b>wa_structure1-data = Date of bearth && Country && Religion</b>.

append wa_structure1 to tableofStructure1.

endloop.

Reward if useful...

Thanks...

Preetham S

Hallow

I have a interface program that I have to send a many(30) different structre but in all stuctre I have 5 fields that is requirement in all stuctre. I heard that I can do a strucre with the requirement fields and one field type char 255 that I move for him all the data from other fields maybe in concatente

How can I do that?

Example

Pernr

Persno

i.d

date

Name

Data

Instead of

Pernr

Persno

i.d

date

Name

Date of bearth

Country

Religion

And more fields…..

Regards

3 REPLIES 3
Read only

Former Member
0 Likes
508

Hi SHNYA,

You will have to concatenate the values of the other fields in the structure other than the mandatory ones into 255 char lenght field and then append into the table. But care must be taken while reading the data out at the destination. May be you could use some values to identify the same and move into corresponding structures.

Structure1

Pernr

Persno

i.d

date

Name

Date of bearth

Country

Religion

end of structure1

Structure2

Pernr

Persno

i.d

date

Name

Data

end of structure2

loop at tableofStucture2.

<b>wa_structure1-data = Date of bearth && Country && Religion</b>.

append wa_structure1 to tableofStructure1.

endloop.

Reward if useful...

Thanks...

Preetham S

Read only

0 Likes
507

hi preetham

i cant do it in field symbol ? i have to do this to much time in my program

and i thihnk that field symbol reduce performance

regards

Read only

0 Likes
507

Hi,

You can also use a field symbol. In fact it improves the performance since there is no transport of data from table to workarea before assigning the values to DATA field.

Thanks...

Preetham S