Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Concatenate stmt


In my pgm am using the contatnete stmt and moving as a word file into a server.I want to concantenate more than 15 fields out of which 5 are currency fields.For the currency fields part am getting error.How to correct it.Its not accepting currency only characters is accepted.

Former Member
Former Member replied

this can be handled easily using field-symbols:

LOOP AT p_final_table ASSIGNING <fs_record>.
ASSIGN COMPONENT sy-index OF STRUCTURE <fs_record> TO <fs_comp>.
CONCATENATE lf_line co_line_feed INTO lf_line.
APPEND lf_line TO p_output_file.
CLEAR lf_line.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question