2008 May 28 6:26 AM
Hi Experts,
I want to print one material descripton in reverese , in that description iam having some numerics also. The description is as follows.
'BOOT HOT WEATHER TAN SIZE11.5W CSPK 6'. for this description i want to print in reverese with numeric . i used string_reverse f.m also.
please help me rewards are helpful answers.
Thanks & Regards,
Narasimha Rao.
2008 May 28 6:52 AM
Hi Narayana,
Not sure of FM. But u can put below logic.
DATA: l_string1 TYPE string,
l_string2 TYPE string,
l_len1 TYPE i,
l_len2 TYPE i.
l_string1 = 'BOOT HOT WEATHER TAN SIZE11.5W CSPK 6'.
l_len1 = strlen( l_string1 ).
l_len2 = l_len1.
DO l_len1 TIMES.
l_len2 = l_len2 - 1.
CONCATENATE l_string2 l_string1+l_len2(1) INTO l_string2.
ENDDO.
WRITE:/1 l_string1,
/1 l_string2.
Just copy paste this code and see whether it is working as per ur requirement.
Thanks,
Vinod.
2008 May 28 6:52 AM
Hi Narayana,
Not sure of FM. But u can put below logic.
DATA: l_string1 TYPE string,
l_string2 TYPE string,
l_len1 TYPE i,
l_len2 TYPE i.
l_string1 = 'BOOT HOT WEATHER TAN SIZE11.5W CSPK 6'.
l_len1 = strlen( l_string1 ).
l_len2 = l_len1.
DO l_len1 TIMES.
l_len2 = l_len2 - 1.
CONCATENATE l_string2 l_string1+l_len2(1) INTO l_string2.
ENDDO.
WRITE:/1 l_string1,
/1 l_string2.
Just copy paste this code and see whether it is working as per ur requirement.
Thanks,
Vinod.