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

using AT USER COMMAND

Former Member
0 Likes
934

good day,

i have question in using the at user command, because i want to translate all the text( starting from column 27 onwards) in my report if it is clicked, im using translate syntax, how will my syntax go?

at user command.

if sy-cucol > 27.

translate ___ to upper case.

endif.

but this is not working

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
910

Try using this code.

at user command.
if sy-cucol > 27.
translate sy-lisel+27 to upper case.
endif.

7 REPLIES 7
Read only

Former Member
0 Likes
911

Try using this code.

at user command.
if sy-cucol > 27.
translate sy-lisel+27 to upper case.
endif.

Read only

Former Member
0 Likes
910

Hello,

First capture the SY-UCOMM then Translate it

Try like and see the output.

at user command.

case sy-ucomm

when 'TRAN'

if sy-cucol > 27.

translate _ to upper case.

endif.

endcase.

Read only

0 Likes
910

what will be the value of my tran?

Read only

0 Likes
910

Which tran are you referring to ?

Read only

0 Likes
910

@MAnoj

hi do you know how will my program detect that the selected line is greater than column 27? because i need to change it to upper case if it is selected

Edited by: Alvin Rosales on Nov 7, 2008 9:01 AM

Read only

Former Member
0 Likes
910

Hello,

I think u need check the synatx

TRANSLATE text TO UPPER CASE

Thank u

santhosh

Read only

Former Member
0 Likes
910

Hi,

You need to translate each column one field to one using loop.

Regards,

Nandha