Skip to Content
author's profile photo Former Member
Former Member

Concatenate

Hello Experts,

Please advice how to concatenate,

ITAB-NAME1,'Reconcilliation Statement Report from', BUDAT-LOW ,'TO',BUDAT-HIGH.

Thanks.

R.Karthik

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

8 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 25, 2009 at 04: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 25, 2009 at 04:08 AM

    just a simple concatenate ..

    concatenate ITAB-NAME1

    'Reconcilliation Statement Report from',

    BUDAT-LOW

    'TO'

    BUDAT-HIGH into v_var.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 25, 2009 at 04:15 AM

    Hi,

    Refer below links.

    concatenate-

    concatenate-problem

    Regards

    Md.Mahaboobkhan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 25, 2009 at 04:21 AM

    Hi,

    write like this

    concatenate ITAB-NAME1

    'Reconcilliation Statement Report from'

    BUDAT-LOW

    'TO'

    BUDAT-HIGH into v_var.

    Regards,

    Jyothi CH.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 25, 2009 at 04: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 25, 2009 at 04: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 25, 2009 at 05:00 AM

    hi

    type the word concatenate in ur abap editor and press F1 key.

    regards

    suren.s

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 25, 2009 at 05: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.