‎2008 Jun 02 8:26 AM
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
‎2008 Jun 02 8:31 AM
Hi!
First do this:
TYPE lv_temp(15) type c.
MOVE WA_RSEG-WRBTR TO lv_temp.
Then concatenate.
Regards
Tamá
‎2008 Jun 02 8:41 AM
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.
‎2008 Jun 02 8:52 AM
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
‎2008 Jun 02 9:07 AM
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.
‎2008 Jun 02 12:28 PM