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

TEXT Editor problem?

Former Member
0 Likes
418

Hello friends,

I have created a text editor and while activating the program the error it was showing like ...

PI_TEXT_KEY MUST BE CHARACTER-TYPE FIELD (DATA TYPE C, N, D, T). "INTERFACE". BY INTERFACE........

my data declarations for PI_TEXT_KEY is like....

DATA:

BEGIN OF text_idx,

reqno TYPE yreqno,

srtf2 LIKE ZRIF-srtf2,

END OF text_idx,

pi_text_key LIKE text_idx.

Can i know what it is problem in this case.

points will be rewarded for the helpful answer.

Thks

2 REPLIES 2
Read only

Former Member
0 Likes
394

Hi, Venkateshwar.

Probably, the error is caused by the fields you've declared on text_idx.

Possibly, the fields yreqno and srtf2 aren't Data type C, N, D, or T.

I believe that's why the error occurs. Try changing the data type, if possible.

Hope it helps,

Brian Gonsales.

Read only

0 Likes
394

Hello Brian,

My data typs for Yreqno is Numc, and srtf2 is INT1 and the data element for srtf2 is SYBIN1 its system defined.