‎2009 Nov 01 4:43 AM
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.
‎2009 Nov 02 5:57 AM
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
‎2009 Nov 01 6:44 AM
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'.
‎2009 Nov 01 4:44 PM
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
‎2009 Nov 01 4:52 PM
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
‎2009 Nov 01 5:32 PM
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.
‎2009 Nov 01 6:05 PM
Hi,
Did you check your internal table records if the full length is coming in each of the records.
Regards,
Subhashini
‎2009 Nov 01 9:12 PM
Yes,in itab its there but while reading not coming into work area.
Thanks.
‎2009 Nov 02 5:57 AM
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