‎2008 Jul 11 7:12 AM
Hello,
Very Good Morning!
This part of the line is hard coded...we need to use CONCATENATE
st_txt-cnm9 = 'CNPJ ' + CGC_NUMBER.
This line is hardcoded in the program.
We need to convert it to character/string and concatenate with the CNPJ
Can any one show me the way that i need to do this.....
Any suggestions would be appreciated......
Regards,
Developer
‎2008 Jul 11 7:19 AM
Hi,
Do like this
concatenate 'CNPJ' CGC_NUMBER into st_txt-cmm9 separated by space.
Regards,
Prashant
‎2008 Jul 11 7:17 AM
do you want to Concatenate CNPJ to the CGC_NUMBER and put it into st_txt-cnm9??
Constants: c_cnpJ type char4 value 'CNPJ'.
Data: v_cgcnumber type char (any length).
v_cgcnumber = CGC_NUMBER.
concatenate c_cnpj v_CGCNUMBER into st_txt-cnm9.
‎2008 Jul 11 7:19 AM
Hi,
Do like this
concatenate 'CNPJ' CGC_NUMBER into st_txt-cmm9 separated by space.
Regards,
Prashant
‎2008 Jul 11 7:20 AM
hi,
You can simplr write a CONCATENATE statement
CONCATENATE 'CNPJ' CGC_NUMBER into st_txt-cnm9.
This will solve the problem
Regards
Sumit Agarwal
‎2008 Jul 11 7:21 AM
IF the CGC_NUMBER is character type then...
concatenate 'CNPJ '
CGC_NUMBER
into st_txt-cnm9.
IF it is not character type
data w_char(requiredlength) type c.
move CGC_NUMBER to w_char.
concatenate 'CNPJ '
w_char
into st_txt-cnm9.
‎2008 Jul 11 7:22 AM
Hi,
Try this..
concatenate 'CNPJ' CGC_NUMBER into st_txt-cmm9
if u want sapce inbetween then give sperated by sapce at the end of this statement...
Regards,
Sai
‎2008 Jul 11 7:24 AM
Hi..,
Your question should be more clear...
Any way Understand this code...,
> data: f1(10),
> f2(4) value 'CNBJ',
> f3(14).
>
> move sy-datum to f1.
> concatenate f2 f1 into f3.
>
> write:/ f3.
Thanks,
Naveen.I
‎2008 Jul 11 7:28 AM
Hello,
Very Good Morning!
Thank you for your response.
I need to adjust the line of code st_txt-cnm9 = 'CNPJ ' + CGC_NUMBER.
As CGC_NUMBER cannot be added to a character or a string. Please convert the number to a character/string and concatenate with CNPJ, else the program will fail.
Will the suggestions that you had provided satisfy the condition 'CNPJ ' + CGC_NUMBER. ?
Yes, it will be inserted into st_txt-cnm9. Can any body explain.
Thanks...
Developer
‎2008 Jul 11 7:40 AM
Hi try this code...
DATA var(30).
CONCATENATE 'CNPJ' 'CGC_NUMBER' INTO var.
st_txt-cnm9 = var.
‎2008 Jul 11 8:09 AM
Hi
Try the following and check....
Data: myString(50) TYPE C.
myString = CGC_NUMBER.
CONCATENATE 'CNPJ ' myString INTO st_txt-cnm9.
Hope it helps you.
Murthy
‎2008 Jul 21 11:21 AM
Hello,
Very Good afternoon!
I am sorry for the late response!
Thank you very much for all your suggestions and help.
Your suggestions were really helpful.
Points rewarded!
Regards,
Developer.