05-09-2006 9:44 AM
Hi all,
I have around 50 Columns of ALV output ( Displaying using GRID Function Module ).
Now i need to Translate all the Output from Lower case to Uppercase at a Time.
How to Solve this Issue.
Points Rewarded.
Regards,
N.L.
05-09-2006 10:23 AM
while passing data to itab itself, pass by translating
LOOP AT ITAB TO WA.
TRANSLATE WA-FIELD1 TO UPPERCASE.
MODIFY ITAB FROM WA.
ENDLOOP.
05-09-2006 9:47 AM
I don't think there is any straight forward way of doing this. You will have to convert the data in the internal table before displaying.
Regards,
Ravi
05-09-2006 9:51 AM
Hi Narayana,
There is now to translate output from Lower case to Upper case at a time. You cant do this with FM attributes. To do this, you need to convert all fields in internal table to UPPER CASE and build field catalog.
I hope this may solves your problem.
Thanks,
Vinay
05-09-2006 9:52 AM
Hi,
try to set the flag lowercase for all the fields fieldcat-LOWERCASE = 'X' or SPACE.
Regards
vijay
05-09-2006 9:55 AM
The lowercase flag in the field catalog is to allow lowercase letters . Not for converting the data.
Regards,
Ravi
05-09-2006 10:02 AM
Hi
I already triedout this Option.
But it is not working for me.
Regards,
N.L.
05-09-2006 10:17 AM
Then u can LOop at the output table and convert the lowercase to uppercase using
<b>
TRANSLATE wa1 TO UPPER CASE.
</b>
within the loop.
Try this will help.
05-09-2006 10:01 AM
In fieldcatalog <b>lvc_s_fcat</b> there is a field called <b>LOWERCASE</b> mark this field to 'X' thsis wont allow lower case letters.
Lowercase letters allowed/not allowed.
Hope this solves ur problem.
05-09-2006 10:23 AM
while passing data to itab itself, pass by translating
LOOP AT ITAB TO WA.
TRANSLATE WA-FIELD1 TO UPPERCASE.
MODIFY ITAB FROM WA.
ENDLOOP.
09-11-2021 7:40 PM
here is an example code
.
.
.
DATA: gt_sat TYPE TABLE OF ty_sat.
DATA: wa_sat TYPE ty_sat.
.
.
.
FORM Catalog.
REFRESH fieldcat.
.
.
.
fieldcat-fieldname = 'EKNAM'.
fieldcat-seltext_m = 'purchaser'.
fieldcat-col_pos = 4.
fieldcat-outputlen = 40.
fieldcat-edit = 'X'.
LOOP AT gt_sat INTO wa_sat.
TRANSLATE wa_sat-eknam TO UPPER CASE.
MODIFY gt_sat FROM wa_sat.
ENDLOOP.
APPEND fieldcat TO fieldcat.
CLEAR fieldcat.
ENDFORM.