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: 

Moving internal table work area data to string

Former Member
0 Kudos

Hi, I am running a program with unicode enable.I am moving data from work area to string where i am getting a error like String & work area are not mutually convertable in Uni code program.

Can any one help me how to resolve this problem.

Thanks & Regards,

Pratap.

2 REPLIES 2

Former Member
0 Kudos

Hi Pratap,

As far as I know, this cannot be done if your program is unicode enabled.

You will have to find a work around by using another work area.

If your requirement is to necessarily move the work area into a string and if the work area is not very large,

you might consider concatenating individual fields of the work area into the string.

Of course that is possible only if the work area has all character fields.

regards,

Sameer

Clemenss
Active Contributor
0 Kudos

Hi Pratap kumar,

sorry, need to do some redesign:

You could poiibly concatenate the components of the structure into a string - if they are all character-like. And you will loose leading and trailing spaces.

Non-character-componets must be converted (WRITE TO) into character-like fields.

If you need the exact position in your string, you have to place all values at calculatzed offset in a (big enough) character field like CHAR1024.

Altogether it might be easier to re-think and re-build according to results required. As you did not mention where you have this question, I have no special idea on how to solve.

Regards,

Clemens