11-02-2010 9:57 AM
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
11-02-2010 11:47 AM
If you are using FM GUI_DOWNLOAD then try parameter TRUNC_TRAILING_BLANKS of this FM.
Might be this can help you.
11-02-2010 1:13 PM
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.
11-02-2010 1:40 PM
Hi
U should insert the character of end of record after the last chararcter
Max
11-02-2010 1:31 PM
Hi,
Which function you are using to download the internal table data to note pad
Kruthik
01-27-2011 6:03 AM
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