Skip to Content
0
Former Member
Aug 03, 2012 at 02:45 PM

Error -ENTER must be a character-like data object (data type C, N, D, T, or STRING)

1224 Views

Hi ,

I am getting error ENTER must be a character-like data object (data type C, N, D, T, or STRING) in ECC 6.0 but not in 4.6c.

Structure of enter is as follows

DATA :

BEGIN OF enter,

x(1) TYPE x VALUE '0D', " Hexadecimal value for space

END OF enter,

The code where the field is used is as follows

* #-hexadecimal value and replace with space

LOOP AT i_docs.

ASSIGN i_docs TO <fs1>.

* TO check multiple occurance DO loop is set

DO.

* search for the #

SEARCH <fs1> FOR enter .

IF sy-subrc EQ 0 .

* replace # symbol with space

REPLACE enter WITH space INTO <fs1>.

IF sy-subrc EQ 0 .

* As table i_docs is with header line do the modification

MODIFY i_docs .

ENDIF.

* search fails then come out of DO loop

ELSE.

EXIT.

ENDIF.

ENDDO.

ENDLOOP.



Help on the same is appreciated.



Thanks

nishant