Skip to Content

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

define

I have macro as follow.

DEFINE ++.

READ TABLE TEXTP WITH KEY ID = 'I'

KEY = &1 BINARY SEARCH.

CLEAR TXT.

IF SY-SUBRC = 0.

TXT+0(TEXTP-LENGTH) = TEXTP-ENTRY.

ENDIF.

END-OF-DEFINITION.

SORT TEXTP.

But in ECC 6.0 IT'S NOT SUPPORTING.

WHAT SHALL I DO SO THAT THIS WILL WORK IN ECC 6.0.

THANKS IN ADVANCE,

REGARDS,

MANOJ

Tags:
Former Member replied

Hi,

It is because in Unicode programs the + symbol cannot appear in names, rename your macro and change all references to use the new name.

i.e.

DEFINE plusplus.

READ TABLE TEXTP WITH KEY ID = 'I'
KEY = &1 BINARY SEARCH.
CLEAR TXT.
IF SY-SUBRC = 0.
TXT+0(TEXTP-LENGTH) = TEXTP-ENTRY.
ENDIF.

END-OF-DEFINITION.

Then in your code replace ++ with plusplus (or whatever name you give it).

Darren

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question