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

define

Former Member
0 Likes
328

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
285

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

1 REPLY 1
Read only

Former Member
0 Likes
286

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