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

Help Needed for Text Editor

Former Member
0 Likes
753

Hi All,

I am working with text editor. Error which is displaying while i am activating the my module pool program is.

"PI_TEXT_KEY" must be a character-type field (data type C, N, D, or T) . "INTERFACE". by "INTERFACE". by "INTERFACE". "INTERFACE". by "INTERFACE". by "INTERFACE".

This is declaration that i have done for PI_TEXT_KEY.

TYPES: BEGIN OF scr_text_line,

line(line_length) TYPE c,

END OF scr_text_line.

DATA:

BEGIN OF text_idx,

reqno TYPE yreqno, "table field with NUMC and 5 as length

srtf2 LIKE yrequests-srtf2, "data element is SYBIN1

END OF text_idx,

pi_text_key LIKE text_idx.

Any suggestions how to over come from this error.

Regards.

Balu

Edited by: Balu CH on Oct 21, 2008 3:57 PM

6 REPLIES 6
Read only

Former Member
0 Likes
725

Hi Balu,

u check out once dattype of yreqno & yrequests-srtf2

If it contain integer repalce it with character.

then u will get the desire output.

Read only

0 Likes
725

Hi Pavi thks for responding.

As i have mentioned in my previous post my field yreqno & yrequests-srtf2 properties are ..

yreqno - NUmc and length is 5 since i have to hold only numeric values.

If i change them to Char then i may not increment my request number so in this type of case how to deal with.

srtf2 - dataelement SYBIN1 is been used for which INT1 is my data type and 3 is my length.

Regards

Balu

Read only

Former Member
0 Likes
725

Hi,

Data definition using type SYBIN1 is causing you the problem as it's an INT...

Regards

Stu

Read only

0 Likes
725

Hi can you suggest with which i can replace it with.

Regards

Balu

Read only

0 Likes
725

change srtf2 to NUMC 03.....

Read only

Former Member
0 Likes
725

self