‎2006 Dec 07 1:47 PM
Hello,
Does anyone know an built-in function for printing fields in lower or uppercase with SAP SCRIPT
Regards
‎2006 Dec 07 2:01 PM
hi,
u can use PERFORM statement in the script and in the subroutine u can call the FM SWA_STRING_TO_UPPERCASE
do reward if it helps,
regards,
priya.
‎2006 Dec 07 1:56 PM
Hi
You can call a subroutine from SAP SCRIPT, Inside the subroutine you can call a functionmodule to convert lower to upper or vice-versa.
Rgds,
Baburaj
‎2006 Dec 07 2:01 PM
hi,
u can use PERFORM statement in the script and in the subroutine u can call the FM SWA_STRING_TO_UPPERCASE
do reward if it helps,
regards,
priya.
‎2006 Dec 07 2:09 PM
Hi bernsen,
Use the paragraph formate which have the 'UPPER CASE' (outline attributes) is checked......
Regards,
Satya.
‎2006 Dec 07 2:17 PM
hi,
Check this way..
DATA: DELIM(40) TYPE C VALUE ' '.
DATA: CON_ANREX LIKE Q0002-ANREX.
CALL FUNCTION 'STRING_UPPER_LOWER_CASE'
EXPORTING
DELIMITER = DELIM
STRING1 = RECORD-ANREX
IMPORTING
STRING = CON_ANREX
EXCEPTIONS
NOT_VALID = 1
TOO_LONG = 2
TOO_SMALL = 3.
IF SY-SUBRC EQ 0.
RECORD-ANREX = CON_ANREX.
ENDIF.Regards,
Santosh
‎2006 Dec 07 2:20 PM
Hi Bernsen,
For all character fields which you want to display in SCRIPT, use a TRANSLATE statement to change to upper case in driver program and use these character fields in SCRIPT.
In Driver Program,
<b>TRANSLATE V_CHAR_FIELD TO UPPER CASE.</b>
In SCRIPTS,
<b>/: &V_CHAR_FIELD&</b>
Thanks,
Vinay
‎2006 Dec 07 2:49 PM
It's clear to me.
For translating to uppercase i can use a outline field in paragraph format
for translatingt to lowercase i have to use a perform to a abap function.
Thanks