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

HELP WITH DECRIBE STATEMENT

Former Member
0 Likes
614

Hi all,

In 4.6c the describe STATMENT would assume in BYTE MODE , EVEN THOUGH WE DON'T MENTION EXPLICITILY.

let me know whether my assumption is right or wrong.

In ECC 6.0 , the BYTE and CHARACTER mode differ in deep data types,

what you mean by DIFFER data types.

i HAVE A FIELD FIELD OF CHARACTER TYPE EVEN IF I USE CHARACTER OR BYTE MODE , IT WOULD RETURN ME SAME VALUE.

LET ME KNOW A SMALL EXAMPLE WHERE BOTH WOULD RETURN A DIFFERENT VALUES OR WHERE ON ONLY EITHER CAHRACTER OR BYTE WORKS

Let me know

4 REPLIES 4
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
566

I would say that IN BYTE MODE would return a different value if you where working with multi-byte language such as Korean or Japanese.

Regards,

RIch Heilman

Read only

0 Likes
566

Hi Rich and all,

WHAT WOULD THE DESCRIBE STATEMNT CONSIDER BY DEFAULT.

I heard it would consider byte mode as deafult mode as we don't mention any character or byte mode in 4.6c

Let me know

thanks

Read only

0 Likes
566

By default Byte mode ,and i tested both modes in japanes language as well english language.

byte mode gives diffrent values ,just login other language and test it.

Read only

Former Member
0 Likes
566

Hi,

DESCRIBE FIELD <f> LENGTH <l> IN CHARACTER MODE | IN BYTE MODE.

The statement writes the length of the field <f> into the variable <l>.


DATA: text(8) TYPE c, 
      len TYPE i.

DESCRIBE FIELD text LENGTH len IN CHARACTER MODE.

<b>Field LEN contains the value 8.</b>

******************************************************************************************

DESCRIBE DISTANCE BETWEEN <f1> AND <f2> INTO <f3> [IN BYTE|CHARACTER MODE].

Writes the number of bytes between data objects <f1> and <f 2> into the variable <d>. The length of the first field in memory is always included. In Unicode programs, you must specify either the IN BYTE MODE or IN CHARACTER MODE addition. In non-Unicode programs, the distance is returned in bytes.

look at the link for more details

http://www.sap-img.com/abap/doubt-in-unicode-enabling.htm

Regards

Sudheer