cancel
Showing results for 
Search instead for 
Did you mean: 

Arabic text mirroring

0 Kudos

I make print preview of a service entry sheet, this print is in english language but it includes some fields in arabic language(RTL lang),

this arabic text printed from left to right, ex: the word " تسوية" is printed "ةيوست".

how can I solve this problem?

Thanks in advance.

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

oussama.hadouch Thank you very much.

0 Kudos

asmaa_ibrahim you just have to put this FM on your program or your smartforms like this :

DATA : v_str(100) VALUE 'mirroring',      
       v_rev(100).  
CALL FUNCTION 'STRING_REVERSE'  
EXPORTING    string    = v_str    
             lang      = sy-langu  
IMPORTING    rstring   = v_rev  
EXCEPTIONS   too_small = 1    
             OTHERS    = 2. 
WRITE : v_rev.

I hope this will help you.

0 Kudos

the print which has the problem is not from smartform, it's ABAP form
so where to put this code in ABAP form?

0 Kudos

you can refer to this Discussions Archive : Add Code in a SapScript Form

0 Kudos

Hi Asmaa,

You can try this FM "STRING_REVERSE" .

Regards,

0 Kudos

@oussama hadouch
thank you for responding

could you please discuss how to use string_reverse?