cancel
Showing results for 
Search instead for 
Did you mean: 

HOW TO GET THE OUTPUT IN ALLCAPS

Former Member
0 Kudos

HI,

How can i get the output of the smartform in all caps,i had some data which is saved in small letters in the BP transaction and i want that also to be in caps.

Thanks in advance.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

If the data is coming in an internal table then before passing it to the 'TABLE' node insert one 'PROGRAM LINE' and in it loop the internal table & translate each of the non-numeric field in to upper case as shown in below code.If it is in work area then in

'PROGRAM LINE' u can directly translate it in upper case.

Loop at gt_adrc into wa_adrc.

TRANSLATE wa_adrc-NATION TO UPPER CASE.

TRANSLATE wa_adrc-TITLE TO UPPER CASE.

TRANSLATE wa_adrc-NAME1 TO UPPER CASE.

....

....

....

endloop.

I hope this will help u.Please reward points if u find it useful.

Former Member
0 Kudos

hi

they mean -- create prgram lines and transalte the value into uppercase before printing..

store the translated value in another variable and then print it

former_member189629
Active Contributor
0 Kudos

Hi Santosh

try using "TRANSLATE TO UPPER CASE" addition in the form program lines to capitalize your text.

Reward if helpful... and close thread if your problem's solved.

Regards,

Karthik

Former Member
0 Kudos

Thanks for quick Reply but i am not clear with the explanation

can u clearly explain how to do that.

amit_khare
Active Contributor
0 Kudos

Just before the text node in smartform for that element add a program node and use TRANSLATE commnad for that value.

Regards,

Amit

Reward all helpful replies.

Former Member
0 Kudos

Thanks for reply but i am not clear with the explanation can u clearly explain how to do that

former_member189629
Active Contributor
0 Kudos

Just before you output your variables in the smartform, add a node for "program lines" ; capture the variable by doing a read or loop in the program lines and translate to upper case. Hope this is clear...

Karthik