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

reg: downloading

Former Member
0 Likes
332

Hi all the requirement is while downloading an internal table if we have a CHAR field and its partially filled then spaces should be appended after the text to make it completely filled and in case the field is a numeric field then during downloading if the field is partially filled then there should be leading zeroes before the number. Also in case the field is a blank then it should be filled depending upon the character field or a numeric field. If its a character then it should be filled with spaces and if its a numeric field then the empty values should be filled in with zeroes. In short the field should be completely filled and should not be left blank.Any sample code .......thanx in advance .......

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
313

say U have data in ITAB ..

loop at itab.

wa_itab+0(10) = itab-field1,

wa_itab+10(5) = itab-field2,

wa_itab+15(8) = itab-field3,

wa_itab+23(10) = itab-field4 .....

*Now download this work area

transfer wa_itab to filename.

endloop.

Hi all the requirement is while downloading an internal table if we have a CHAR field and its partially filled then spaces should be appended after the text to make it completely filled and in case the field is a numeric field then during downloading if the field is partially filled then there should be leading zeroes before the number. Also in case the field is a blank then it should be filled depending upon the character field or a numeric field. If its a character then it should be filled with spaces and if its a numeric field then the empty values should be filled in with zeroes. In short the field should be completely filled and should not be left blank.Any sample code .......thanx in advance .......

1 REPLY 1
Read only

Former Member
0 Likes
314

say U have data in ITAB ..

loop at itab.

wa_itab+0(10) = itab-field1,

wa_itab+10(5) = itab-field2,

wa_itab+15(8) = itab-field3,

wa_itab+23(10) = itab-field4 .....

*Now download this work area

transfer wa_itab to filename.

endloop.