Application Development 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: 

reg. reverse print

Former Member
0 Kudos
101

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

vinod_vemuru2
Active Contributor
0 Kudos
76

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

vinod_vemuru2
Active Contributor
0 Kudos
77

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.