Skip to Content
avatar image
Former Member

CONCATINATION OF VARIABLES

Hi,

I need to concatinate US with a variable gv_user How can I do i

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 05, 2007 at 10:34 AM

    CONCATENATE 'US' gv_user INTO <variable>.

    regards,

    Atish

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 05, 2007 at 10:35 AM

    if gv_user is character type var

    then

    concatenate 'US' gv_user into gv_user [separated by space].

    separated by space is optional you can or cant use it.

    other wise take your variable to a character type variable and concatenate that

    data : text(100).

    text = gv_user.

    concatenate 'US' text into text [separated by space].

    regards

    shiba dutta

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 05, 2007 at 10:35 AM

    CONSTANTS: c_us(2) type C VALUE 'US'.

    CONCATENATE c_us gv_user INTO gv_user_temp.

    Please make sure that gv_user_temp length should be atleast equal to the sum of the lengths of gv_user + 2 (c_us).

    Thanks,

    Vinod.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 05, 2007 at 10:38 AM

    Hi,

    You can do like this :

    CONCATENATE 'US' gv_user into gv_variable.

    Thanks,

    Sriram Ponna.

    Add comment
    10|10000 characters needed characters exceeded