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

Concatenation

Former Member
0 Likes
821

Hi,

How to concatenate a <b>quantity</b> field and a <b>unit</b> field.

Table: s225.

Fields: menge & meins.

I want to concatenate the above 2 fields into one field.

Thank you.

6 REPLIES 6
Read only

Former Member
0 Likes
793

use write instead of concatenation.

write menge unit meins to v_temp. "v_temp must be char type of sufficient length.

Regards,

Ravi

Read only

Former Member
0 Likes
793

Hi,

Quantity convert into character type.

Use concatenate lv_char_quan unit into lv_target.

Regards

Bhupal Reddy

Read only

Former Member
0 Likes
793

Hi vj,

try looping s225.

inside use concatenate meins to menge into menge.

try this.

regards,

pankaj singh

Read only

Former Member
0 Likes
793

Hi,

use it in the following way

DATA: BEGIN of ITJOB occurs 0,

QMTXT like IT_HISTORY2-QMTXT,

END of ITJOB.

DATA: WA_ITJOB like ITJOB.

V_JOB = 'Job: '.

concatenate V_JOB IT_HISTORY2-QMTXT into V_JOB

SEPARATED by space.

I've used it in my program.

You can do it in a similar way according to your requirement.

Hope this helps.

Reward if helpful.

Regards,

Sipra

Read only

Former Member
0 Likes
793
REPORT ychatest LINE-SIZE 350.


TABLES : s225.

DATA : v_menge TYPE p DECIMALS 2 VALUE '1234.55',
       v_meins LIKE s225-meins VALUE 'KM',
       v_con(15),
       v_char(25).

v_char = v_menge.
CONDENSE v_char.
CONCATENATE v_char v_meins INTO v_con SEPARATED BY space.

WRITE : / v_con.
Read only

Former Member
0 Likes
793

Hi,

use below logic

lv_menge(17) type c,

lv_meins(3) type c.

lv_menge = s225-menge.

condense lv_menge.

lv_meins = s225-meins.

concatenate lv_menge lv_meins into lv_menge .

Regards

amole