10-30-2009 9:52 PM
Hi,
Please let me know , how to add two fields in ABAP Query. Please it showing two fields in list fileds but i want to add two into one.
thanks,
Sonar
10-31-2009 4:20 AM
Hi ,
Use concatenate and add two fields into one field.
Thanks & Regards
G.Vendhan
10-31-2009 5:26 AM
Hi Sonarali,
This is possible, you need to just write the logic to concatenete the two fields and display in output while making the query.
Also, you have to declare a seperate field for output.
Hope its help you.
10-31-2009 5:37 AM
Hi,
You can use CONCATENATE Statement for join 2 fields But remember There data type should be same.
For Example.
DATA:p1(10) type c VALUE 'All',
p2(10) type c VALUE 'the',
p3(10) type c VALUE 'best',
result type string.
concatenate p1 p2 p3 into result.
Try this I hope so it will help you.
Prashant
11-03-2009 6:17 PM
Thanks for Inf
Here I want to print total of two fields into one field, where concatenate should be there
mv_abrmenge, mn_abrmenge
select ebelnr, htariftyp, csparte, cvertrag, cvkont, mbelzart, cbegabrpe, cendabrpe, mv_abrmenge, mn_abrmenge, e~budat
from erchc as e
join dberchz1 as m
on ebelnr = mbelnr
join erch as c
on mbelnr = cbelnr
join ever as r
on cvertrag = rvertrag
join eanlh as h
on hanlage = ranlage
where h~tariftyp in @p1@
and c~erchc_v = 'X'
and c~simulation = space
and c~tobreleasd = space
and e~budat in @p2@
and e~simulated = space
Thanks,
Sonar