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

is header length restrict?

Former Member
0 Likes
1,029

Hello.

I defined structure [X] with 120 fields, and total 870 length.

Then defined header[Y] for this structure, and then table [z].

Like- Types: x,

data: Y type X,

Z type table of X.

Now, I am trying to send data of itab Z to other itab which has 1 string field with lenght 870,

Like loop at Z into Y.

move Y to itab-a,

append itab.

endloop.

In debug i saw at loop, Whole 870 length data is not coming into header[Y] from table[Z], Only till 300 length data is getting read into Y from Z table rest is not coming into Y while loop.

Plz tell me the reason and solution.

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
974

Hi,

There is no length restriction on the work area.I was able to get a 1000 length work area in my program.

Did you define the structure X in SE11.

If that is the case then do not use Types statement in your program.Try directly using it as

Y TYPE TABLE OF X.(X is SE11 defined structure).

Regards,

Subhashini

7 REPLIES 7
Read only

daixiong_jiang3
Active Participant
0 Likes
974

I think there might be some alignment gaps in the structure.

the Unicode fragment view divides a flat structure into fragments according to its alignment gaps.

you should use statement 'CONCATENATE' instead of 'MOVE'.

Read only

0 Likes
974

Appreciate your reply.

But they do not want to concatenate those fileds.

They want field gap, as field length is fixed they want to send it to outputfile with fixed length fields.

Thanks

Read only

0 Likes
974

Hi,

I think there is a restriction on the length of the field visible in a instance in the debugging mode. You could better confirm this by using length specification in the debugging mode like viewing a field as itab-a1+300(300) and check if you have data.

Vikranth

Read only

0 Likes
974

Ya, I saw that but in ouput file it is not sending all fields as I mentioned, as in header itself it is not getting read all fields.

For upto 50 records it is sending all fileds more than that it is not.

Thanks.

Read only

Former Member
0 Likes
974

Hi,

Did you check your internal table records if the full length is coming in each of the records.

Regards,

Subhashini

Read only

0 Likes
974

Yes,in itab its there but while reading not coming into work area.

Thanks.

Read only

Former Member
0 Likes
975

Hi,

There is no length restriction on the work area.I was able to get a 1000 length work area in my program.

Did you define the structure X in SE11.

If that is the case then do not use Types statement in your program.Try directly using it as

Y TYPE TABLE OF X.(X is SE11 defined structure).

Regards,

Subhashini