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: 

Getting Spaces when I downloading my it_tab content into Notepad

Former Member
0 Kudos

H03/09/2010Alkears der L

DR41000001513000035A Mumbai,IN-400013 IFS777777777777777777

DR41000001513000047A Mumbai,IN-400013 IFS777777777777777777

F0000200000000108848

Requirement - I want to save my itab data into notepad file as above format. data and spaces is exactly that much only. all are counted.

Now I make one report where on execution of report my itab data get save into notepad. I am getting exactly above format and data. which is given bellow

H03/09/2010Alkears der L

DR41000001513000035A Mumbai,IN-400013 IFS777777777777777777

DR41000001513000047A Mumbai,IN-400013 IFS777777777777777777

F0000200000000108848

Problem/Issue:

but after my header (H03/09/2010Alkears der L) I am getting spaces after L (End of line)

same as after my footer(F0000200000000108848) I am getting spaces after ...48 (End of line)

I want remove spaces what can I do? At the end of my header and footer I am getting that spaces.

-Swapnil

5 REPLIES 5

Former Member
0 Kudos

If you are using FM GUI_DOWNLOAD then try parameter TRUNC_TRAILING_BLANKS of this FM.

Might be this can help you.

0 Kudos

Yeah I tried this TRUNC_TRAILING_BLANKS parameter but it is not useful to me because this option not only removing space (End of Lines) as I required but also it also removing spaces between my column also. because My item lines part who start with DR41.. made by many columns and the spaces/character length alocated to each column is fix. I want it by that format only. I just want to remove extra spaces which comes at end of line.

0 Kudos

Hi

U should insert the character of end of record after the last chararcter

Max

former_member1125862
Participant
0 Kudos

Hi,

Which function you are using to download the internal table data to note pad

Kruthik

Former Member
0 Kudos

No Use.

By the way I got my solution. Actually I put data into Internal table. for Header, item and footer I make 3 rows. Finally using condence and only taking chara of 608(which I want required) I solved this Issue. Thanks you so much for your reply. And trying to help me.

Regards,

Swapnil