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

Code Inspector for ABAP

Former Member
0 Likes
1,214

Hi All,

I am making ABAP unicode compliant. When I am running the CODE INSPECTOR for the program and I am getting following error. Please let me know how to resolve this.

<b>Error Lines</b>

Message code 1700

Program ZSDS_GROUP_DESCRIPTION include ZSDS_GROUP_DESCRIPTION row 000125

Char. string w/o text elements will not be translated.

"Group"

Message code 1700

Program ZSDS_GROUP_DESCRIPTION include ZSDS_GROUP_DESCRIPTION row 000126

Char. string w/o text elements will not be translated.

"Description"

<b>Program Lines</b>

if p_intrec = 'X'.

format color 1 on.

write: /4 'Group',

10 'Description'.

format color off.

endif.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
899

Hi,

Change your code like this.

if p_intrec = 'X'.

format color 1 on.

write: /4 'Group'(001),

10 'Description'(002).

format color off.

endif.

Check that the text element with these numbers 001 and 002 doesn't exist previously or else change the number sequence. Double click on this text. A pop up will appear. Click yes and activate the text element.

Regards,

Sharmila

5 REPLIES 5
Read only

Former Member
0 Likes
899

HI Yogesh,

Just put (001) behind 'Group' and (002) behind 'Description'. Then double click on (001) and (002), your text elements will be created automatically.

Regards,

John.

Read only

0 Likes
899

never hard coded in write statement..use text element or declare them as char constant and use..

this is good prog practice..

Read only

Former Member
0 Likes
900

Hi,

Change your code like this.

if p_intrec = 'X'.

format color 1 on.

write: /4 'Group'(001),

10 'Description'(002).

format color off.

endif.

Check that the text element with these numbers 001 and 002 doesn't exist previously or else change the number sequence. Double click on this text. A pop up will appear. Click yes and activate the text element.

Regards,

Sharmila

Read only

Former Member
0 Likes
899

You Should not Hardcode the text to be displayed. Use the text elements to display the text.

menu :

goto->Text elements->textSymbols.

Use those text symbols in write statement.

Read only

Former Member
0 Likes
899

Thanks you very much....John,Madan, Sharmila, Rusidar.