02-25-2009 4:03 AM
Hello Experts,
Please advice how to concatenate,
ITAB-NAME1,'Reconcilliation Statement Report from', BUDAT-LOW ,'TO',BUDAT-HIGH.
Thanks.
R.Karthik
02-25-2009 4:06 AM
HI,
Try this way..
DATA l_string type char100.
CONCATENATE ITAB-NAME1
'Reconcilliation Statement Report from'
BUDAT-LOW
'TO'
BUDAT-HIGH
INTO l_string
SEPARATED BY space.
Edited by: Avinash Kodarapu on Feb 25, 2009 9:37 AM
02-25-2009 4:06 AM
HI,
Try this way..
DATA l_string type char100.
CONCATENATE ITAB-NAME1
'Reconcilliation Statement Report from'
BUDAT-LOW
'TO'
BUDAT-HIGH
INTO l_string
SEPARATED BY space.
Edited by: Avinash Kodarapu on Feb 25, 2009 9:37 AM
02-25-2009 6:57 AM
Hi Avinash,
Now I am getting the output like,
Eg-
TVS motor company Reconcilliation statement report from 20080303 to 20090218.
Please advice how to correct the date.
Thanks
Karthik
02-25-2009 7:18 AM
Pass date as ..
data : v_low(10) ,
v_high(10).
write BUDAT-LOW to v_low.
write BUDAT-high to v_high.
concatenate ITAB-NAME1
'Reconcilliation Statement Report from',
v_low
'TO'
v_high
into v_var.
02-25-2009 4:08 AM
just a simple concatenate ..
concatenate ITAB-NAME1
'Reconcilliation Statement Report from',
BUDAT-LOW
'TO'
BUDAT-HIGH into v_var.
02-25-2009 4:15 AM
02-25-2009 4:21 AM
Hi,
write like this
concatenate ITAB-NAME1
'Reconcilliation Statement Report from'
BUDAT-LOW
'TO'
BUDAT-HIGH into v_var.
Regards,
Jyothi CH.
02-25-2009 4:41 AM
hi Karthik,
data:
w_str type string,
w_str1 type string value 'Reconcilliation Statement Report from',
w_str2(2) type c value 'To'.
concatenate ITAB-NAME1 w_str1 BUDAT-LOW w_str2 BUDAT-HIGH into w_str separated by space.
write:/ w_str.
Regards,
Mdi.Deeba
02-25-2009 4:49 AM
Hi,
This is my program which i tried.
PARAMETERS :
p_month(3) TYPE c,
p_year(4) TYPE c.
DATA :
w_ggc TYPE sy-datum VALUE '19000101',
w_diffd TYPE i,
w_lpr1 TYPE i,
w_lpr2 TYPE i,
w_lpr3 TYPE i,
w_nodays TYPE i,
w_month(2) TYPE n,
w_entyr TYPE d,
w_temp type i ,
w_temp1 type i.
IF p_month EQ 'FEB'.
w_lpr1 = p_year MOD 400.
w_lpr2 = p_year MOD 4.
w_lpr3 = p_year MOD 100.
IF ( w_lpr1 EQ 0 ) OR ( w_lpr2 EQ 0 AND w_lpr3 NE 0 ).
w_nodays = 29.
w_month = '2'.
ELSE.
w_nodays = 28.
w_month = '2'.
ENDIF.
ELSE.
CASE p_month.
WHEN 'JAN'.
w_nodays = 31.
w_month = '1'.
WHEN 'MAR'.
w_nodays = 31.
w_month = '3'.
WHEN 'APR'.
w_nodays = 30.
w_month = '4'.
WHEN 'MAY'.
w_nodays = 31.
w_month = '5'.
WHEN 'JUN'.
w_nodays = 30.
w_month = '6'.
WHEN 'JUL'.
w_nodays = 31.
w_month = '7'.
WHEN 'AUG'.
w_nodays = 31.
w_month ='8'.
WHEN 'SEP'.
w_nodays = 30.
w_month = '9'.
WHEN 'OCT'.
w_nodays = 31.
w_month = '10'.
WHEN 'NOV'.
w_nodays = 30.
w_month = '11'.
WHEN 'DEC'.
w_month = '12'.
w_nodays = 31.
ENDCASE.
ENDIF.
CONCATENATE p_year w_month '01' p_year INTO w_entyr.
w_diffd = w_entyr.
w_diffd = w_diffd - w_ggc .
*WRITE : w_diffd.
w_temp = w_diffd mod 7.
*write : w_temp.
write :/9 'MON',
21 'TUE',
33 'WED',
45 'THU',
58 'FRI',
71 'SAT',
84 'SUN'.
skip.
while sy-index new_nodays.
This is References link.
http://help.sap.com/saphelp_nw70/helpdata/en/9f/db998835c111d1829f0000e829fbfe/content.htm
Regards,
Neelima.
02-25-2009 5:00 AM
hi
type the word concatenate in ur abap editor and press F1 key.
regards
suren.s
02-25-2009 5:12 AM
hi,
Try the code below , where zempl is a Ztable.
DATA: l_string type char100,
itab type standard table of zempl,
wa_itab like line of itab.
SELECT * FROM ZEMPL INTO TABLE ITAB.
LOOP AT ITAB INTO WA_ITAB.
ENDLOOP.
CONCATENATE WA_ITAB-EMPNO
'Reconcilliation Statement Report from'
WA_ITAB-NAME
'TO'
WA_ITAB-COUNTRY
INTO l_string
SEPARATED BY space.
write: l_string.
Thanks
Suraj