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

Concatenating

Former Member
0 Likes
973

Hi

I am having two fields like this

wf_acc type c length 1 value '-'.

wa_rseg-wrbtr type rseg-wrbtr. (data type curr length 13 decimal places)

i would like to concatenate wf_acc '-' in front of wa_rseg-wrbtr.

I want my output should e like (-100).

But while doing i am getting a error like "WA_RSEG-WRBTR" must be a character-type data object (data type C, N,D, T or STRING) .

Can any one help me to do this??

Arun Joseph

5 REPLIES 5
Read only

Former Member
0 Likes
761

Hi!

First do this:

TYPE lv_temp(15) type c.

MOVE WA_RSEG-WRBTR TO lv_temp.

Then concatenate.

Regards

Tamá

Read only

asik_shameem
Active Contributor
0 Likes
761

Hi

Assign the value into a temp variable and CONCATENATE it as below.

DATA: gv_temp(17) TYPE C.

gv_temp = WA_RSEG-WRBTR.

CONCATENATE wf_acc gv_temp INTO gv_temp.

Read only

0 Likes
761

Hi all

Thanks for your reply how can i do the same if the entries are int eh internal table..i mean to say while displaying the alv output i have to get the output like this??

Arun

Read only

Former Member
0 Likes
761

hi look for data element which is of currency type and that can take negative values.

for e.g. BP_WERT1 .

I hope this will help you.

Read only

Former Member
0 Likes
761

Thanks