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

unicode error:The structure does not start with a character-type

Former Member
0 Likes
645

Hi All,

I am doing UCCHECK for the programs.

And facing an error and not able to solve.

I searched in SDN and also tried my own but no luck.

in one program they written statement as:

 

TRANSFER ST_XML(L_SIZE) TO FILENAME

the error is The structure "ST_XML(L_SIZE)" does not start with a character-type


the data declarations is as follows.

DATA:     XML        TYPE DCXMLLINES,
               L_SIZE     TYPE I.


DATA: BEGIN OF ST_XML,
           D LIKE LINE OF XML,
        END OF ST_XML.

How i need to correct the statement transfer

Regards

Raj

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
591

Use offset-length on field of structure instead of the structure itself.

Change statement to this:

TRANSFER ST_XML-D(L_SIZE) TO FILENAME.

Use offset-length on field of structure instead of the structure itself.

Change statement to this:

TRANSFER ST_XML-D(L_SIZE) TO FILENAME.

2 REPLIES 2
Read only

Former Member
0 Likes
592

Use offset-length on field of structure instead of the structure itself.

Change statement to this:

TRANSFER ST_XML-D(L_SIZE) TO FILENAME.

Read only

arindam_m
Active Contributor
0 Likes
591

Hi,

Please check the use of keyword LENGTH along with TRANSFER keyword. Something like this.

TRANSFER ST_XML(L_SIZE) TO FILENAME LENGTH len.

Should help

Cheers,

Arindam