ABAP code to convert data to upper case

Question: Hi,
I'm ABAP challenged, can anyone please help me write the code to convert data on a field to uppercase in transfer rule?

Answer:
There is a delivered formula to convert a string to uppercase in the transfer rules. It is TOUPPER().

Answer:
or in abap:

TRANSLATE TRAN_STRUCTURE-<your field> TO UPPERCASE.

Answer:
Thanks!

Answer:
hi ,
can anyone please give me the conversion code to add in the below routine...I'm getting a systax error...Thanks in advance.

PROGRAM CONVERSION_ROUTINE.

* Type pools used by conversion program
TYPE-POOLS: RSD, RSARC, RSARR.

TYPES: DE_0FIELD(000040) TYPE C.

* Conversion rule for InfoObject 0FIELD
* Data type = CHAR
* ABAP type = C
* ABAP length = 000040
FORM CONVERT_0FIELD
USING RECORD_NO LIKE SY-TABIX
SOURCE_SYSTEM TYPE RSA_LOGSYS
IOBJ_NAME TYPE RSIOBJNM
CHANGING RESULT TYPE DE_0FIELD" InfoObject value
RETURNCODE LIKE SY-SUBRC.
*$*$ begin of routine - insert your code only below this line *-*
RESULT = .
RETURNCODE = 0.
*$*$ end of routine - insert your code only before this line *-*
ENDFORM.

Answer:
put the code before result=

TRANSLATE TRAN_STRUCTURE-<your field> TO UPPERCASE.
result = yourfield

Answer:
put the code before result=

TRANSLATE TRAN_STRUCTURE-<your field> TO UPPERCASE.
result = TRAN_STRUCTURE-<your field>

Answer:
No luck. what is <your field> ?? I have the routine, can you please give me the actual code. also, what is tran_structure, I do not see the structure in the code itself..

when I type TRANSLATE TRAN_STRUCTURE-0FIELD TO UPPERCASE , the error I get is E:Field "TRAN_STRUCTURE-DE_FIELD" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.

Help.

Answer:
Well, <your field> is the field that you are trying to convert to uppercase.

TRANSLATE TRAN_STRUCTURE-<the field that you are trying to change to upper case> TO UPPERCASE.

Answer:
I knew I should have locked this post as soon as the word abap appeared in the title;
anyway, Bella ;
I believe that maybe a first problem is that you are trying to do it in an update rule and not a transfer rule.

So, please do the following if you want more valuable help
1) give us the technical name of the infoobject that you want to translate to upper case
2) paste the WHOLE code where you want to do it, not only a short part of it

This way we will be able to read all the informations we need to give you a spoonfeeding answer.

Ch

Answer:
CH,Thanks for replying.
This is not the update rule.
I'm trying to put the conversion code in the 'transfer routine' of the infoobject and not the transfer rule. That way, I was hoping uppper case data for the infoobject will be converted to lowercase on all the infosources that has the infoobject reference. The code I have pasted below is complete. I have just replaced the infoobject to 0FIELD.

Answer:
To the MODERATORS:

You have the right to Lock any message. If you feel so go ahead and do it.

Being a moderator does not give you the right to be rude to people. Mind your tongue next time.

-Anusha.

Answer:
that's like my baby....reilly like the way ya replied
Copyright ?2007 - 2008 www.jt77.com