2007 Jun 25 11:51 AM
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
2007 Jun 25 11:59 AM
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
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
2007 Jun 25 11:59 AM
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
2007 Jun 25 1:24 PM
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
2007 Jun 26 4:29 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |