‎2010 Dec 27 4:29 PM
Hi guys ,
Something really weird happened to me , i have the following code to create a flat file , suddenly it is truncating the lines in 250 , its funny i see wa_ti_fich+330(5) in the debugging and it has data , but the whole wa_ti_fich is only 255 long , ive tried with type char600 , with the same result , i cant use type string beacuse is not allow for unix file .
data: begin of ti_fich occurs 0,
linha(527),
end of ti_fich .
wa_ti_fich-linha+49(15) = montante.
wa_ti_fich-linha+64(2) = '02'. "codigo moeda 02
wa_ti_fich-linha+106(2) = '01'. "Codigo de la situación.
wa_ti_fich-linha+112(8) = itab_saida-datav.
wa_ti_fich-linha+120(8) = itab_saida-datav.
wa_ti_fich-linha+128(8) = montante.
wa_ti_fich-linha+143(2) = '02'.
wa_ti_fich-linha+185(2) = '01'. " Naturaleza titular
wa_ti_fich-linha+187(10) = itab_saida-stceg+2(10).
wa_ti_fich-linha+197(1) = '2'. " Formato do nombre
wa_ti_fich-linha+198(110) = itab_saida-name1.
wa_ti_fich-linha+329(1) = '2'.
wa_ti_fich-linha+330(110) = itab_saida-stras.
wa_ti_fich-linha+446(50) = itab_saida-ort01." nom_mun :
wa_ti_fich-linha+496(2) = itab_saida-regio.
wa_ti_fich-linha+501(5) = itab_saida-pstlz.
append wa_ti_fich to ti_fich .
)
please don send me links for scn or google with similar subjects because i ve already checked it , believe me .
thank
‎2010 Dec 27 4:53 PM
i was using unction 'C13Z_FILE_DOWNLOAD_ASCII' to copy to my computer it truncate teh string.
‎2010 Dec 27 5:01 PM
255 is the maximum output lengh for CHAR variables in the Old Debugger. So it is normal that you don't see the end of the string in the Old Debugger.
If you have a newer R/3-Release you can use the New Debugger and choose the output format "Tabular". In this display format, the contents are portioned into 50 characters each and thus you'll see the complete string. In older R/3-Releases, where the New Debugger is not yet available, you will have to input manually offsets in the debugger to see the complete string.
‎2010 Dec 27 5:34 PM
Moderator message - When closing old threads, there is no need to add a comment. Adding a pasted answer like "." only brings old threads to the top of the forum list and pushes current ones down. If you do add a comment, please indicate just how the problem was resolved. Rob