Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to assign a character field to a strucure in ECC6.0 ( Unicode error)

Hi all,

This is regarding a Unicode error we are facing in upgrading a program from 4.6c to ECC6.0.

The following pice of code gives error now in ECC6.0, stating Unicode incompatible structures.

DATA: WA_MSEG TYPE MSEG,

WA_MKPF TYPE MKPF.

DATA: LE_DATA(8192) TYPE C.

CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD'

EXPORTING

ARCHIVE_HANDLE = LE_HANDLE

  • GET_REAL_STRUCTURE_NAME = 'X'

  • AUTOMATIC_CONVERSION = 'X'

IMPORTING

RECORD = LE_DATA

  • RECORD_CURSOR =

  • RECORD_FLAGS =

RECORD_STRUCTURE = LE_STRUCTURE

  • RECORD_LENGTH =

EXCEPTIONS

END_OF_OBJECT = 1

INTERNAL_ERROR = 2

WRONG_ACCESS_TO_ARCHIVE = 3

OTHERS = 4

.

IF SY-SUBRC <> 0.

EXIT.

ENDIF.

  • move records

CASE LE_STRUCTURE.

WHEN 'MSEG'.

<b> WA_MSEG = LE_DATA.</b>

move-corresponding WA_MSEG to TBL_ARC_MSEG.

APPEND TBL_ARC_MSEG.

CLEAR: WA_MSEG, LE_DATA, TBL_ARC_MSEG.

WHEN 'MKPF'.

<b> WA_MKPF = LE_DATA.</b>

move-corresponding WA_MKPF to TBL_ARC_MKPF.

APPEND TBL_ARC_MKPF.

CLEAR: WA_MKPF, LE_DATA, TBL_ARC_MKPF.

ENDCASE.

Can you please suggest a way to overcome this error.

Thanks in advance,

Sreenivasa Reddy V.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question