Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

reg. reverse print

Former Member
0 Likes
343

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.

1 ACCEPTED SOLUTION
Read only

vinod_vemuru2
Active Contributor
0 Likes
318

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.

1 REPLY 1
Read only

vinod_vemuru2
Active Contributor
0 Likes
319

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.