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

How to insert a string into an existing structure

Former Member
0 Likes
925

Hello together,

The FM 'RFC_READ_TABLE' generates me a String. This String should be inserted into a structure with multiple columns.

Is there any way or FM to handle this?

Regards

1 ACCEPTED SOLUTION
Read only

PeterJonker
Active Contributor
0 Likes
880

This function also has a delimiter which you can use to split the values into different columns.

E.g.:  GT_stringtab type standard table of string.

split wa_string at delimiter into gt_stringtab.

Now gt_stringtab holds all fieldvalues as  separate lines of the table

Hello together,

The FM 'RFC_READ_TABLE' generates me a String. This String should be inserted into a structure with multiple columns.

Is there any way or FM to handle this?

Regards

3 REPLIES 3
Read only

PeterJonker
Active Contributor
0 Likes
881

This function also has a delimiter which you can use to split the values into different columns.

E.g.:  GT_stringtab type standard table of string.

split wa_string at delimiter into gt_stringtab.

Now gt_stringtab holds all fieldvalues as  separate lines of the table

Read only

0 Likes
880

You can also use split wa_string at delimiter into wa_structure-field1 wa_structure-field2 etcetera. That way you are populating the structure direct.

Read only

former_member226225
Contributor
0 Likes
880

Hi Domenik,

Please find the below link with my answer.

I hope this will be helpful.

Thanks & Regards,

Raghunadh Kodali