‎2008 Jul 10 9:53 AM
Hi
i have a requirement to upload output to .TXT file for a SAP standard report.
So, for that I have made Zcopy of this program and concatenating all fields wherever Write: statement in the program.
but facing the problem while concatenating for the following statements.
WRITE:/'|'
WRITE: Uline.
and WRITE: for system variables like sy-title, sy-repid, s and output postion specification in write statement ex: WRITE: 'Country code'(315)
how to handle this situation? i want to get exact output in my text file, which is same SAP standard output
please help me .............
‎2008 Jul 10 10:01 AM
Do like this,
when you concatanating the fields must be in character mode.
concatnate '!' '_' text-315 into output.
Copy sy -title and sy-repid's to varibles and concatnate to output.
regards,
Rajasekhar Reddy.
‎2008 Jul 10 10:07 AM
Hi,
While concatenating consider the empty SPACES upto 315.
You do it by declare a variable with CHAR(315) length, and concatenate this variable with your output text.
Clear VAR315.
Concatenate VAR315 v_value into v_output.
‎2008 Jul 11 5:28 AM