on 06-28-2011 8:03 AM
Dear ALL
*+In my smartform i displayed arabic description but it prints from left to right.But user wants right to left .I reversed it using reverse_string but it reverse numeric values also but i dont want reverse numeric values only text will reverse .+*
*+Please can anybody help on this+*
Something like below code may help ::
data : l_str(15) type c.
data : l_len type i.
data : l_revstr(15).
l_len = strlen( l_str ).
do.
l_len = l_len - 1.
concatenate l_revstr l_str+l_len(1) into l_revstr.
if l_len = 0.
exit.
endif.
enddo.
write : / l_str,
/ l_REvstr.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use your brain and some string operations.
First cut the number from your string then reverse it, then concatenate the number again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am not sure if it should be necessary to handle the reverse direction in this way. If you use a form with language key Arabic and a device type like ARSWIN or SWINCF, then it should work ok. You may also have to implement the SAP notes below:
1391768 - API for BIDI support in text processing
1403736 - New bidirectional display function for SAPscript
Regards,
Aidan
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.