Error : In Unicode, DESCRIBE LENGTH can only be used with the IN BYTE MODE or IN CHARACTER MODE addition
.
Cause: In some cases, the syntax rules that apply to Unicode Programs are different than those for non-Unicode programs For example, if one uses the addition LENGTH, one must also use one of the two additions IN CHARACTER MODE or IN BYTE MODE in Unicode systems.
Solution: Specify the mode depending upon the field types.
... IN CHARACTER MODE
This addition can only be used for character-type fields and in combination with the addition
LENGTH. The length of the field f is determined in characters.
... IN BYTE MODE
This addition can only be used in combination with the addition LENGTH. The length of the
field f is determined in bytes.
Example:
DATA: FLD(8),
LEN TYPE I,
* DESCRIBE FIELD FLD LENGTH LEN.
DESCRIBE FIELD FLD LENGTH LEN IN CHARACTER MODE.
ABAP,ABAP report,Interactive Report,ALV grid,ALV list,IDOC,User Exit,RFC,Smartform,sapscript,ABAP Performance,Remote Function Module( RFC ),Function Module,Modularization techniques,ABAP tools,ALV report Generator,ABAP Interview Questions,BDC,BAPI,ALE,BADI, EDI,InternalTable,DataStructure,LSMW,Domain,DataElement,Basis and Administration ,ABAP HR development,ABAP Debugger,BW,ExceptionHandling,Download FI, CO, MM, PP, SD, PM, PS, QM, SM, HR, BW, APO,ABAP Tutorial
Search on this Website
Friday, April 30, 2010
Error : In Unicode, DESCRIBE LENGTH can only be used with the IN BYTE MODE or IN CHARACTER MODE addition
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment