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

concatenate fields

Former Member
0 Likes
544

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 .............

3 REPLIES 3
Read only

Former Member
0 Likes
504

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.

Read only

Former Member
0 Likes
504

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.

Read only

0 Likes
504

how to transfer a field non-zero to a file?