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

Selection screen text

Former Member
0 Likes
1,003

Hi

I have to have 2 radio buttons in my screen which is having long text with 75 characters. So I have coded in this way.

SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.

  SELECTION-SCREEN: BEGIN OF LINE.

  PARAMETERS: p_rb1 RADIOBUTTON GROUP RAD DEFAULT 'X'.
  SELECTION-SCREEN: COMMENT 4(75) Text-M13.

  SELECTION-SCREEN: END OF LINE.

  SELECTION-SCREEN: BEGIN OF LINE.

  PARAMETERS: p_rb2 RADIOBUTTON GROUP RAD.
  SELECTION-SCREEN: COMMENT 4(75) Text-M14.

   SELECTION-SCREEN: END OF LINE.
   SELECTION-SCREEN: SKIP 2.

   SELECTION-SCREEN: COMMENT 1(75) Text-M15.


SELECTION-SCREEN: END OF BLOCK b2.

But I'm getting error in Code Inspector as follows.

I/O field (input field) P_RB1 has no accessible label

I/O field (input field) P_RB2 has no accessible label

How can I correct this? I tried giving selection text also with above coding but didn't worked.

Regards

Sathar

1 ACCEPTED SOLUTION
Read only

kheth
Active Participant
0 Likes
963

If the messages of the Code Inspector are bothering you, change the following lines of your coding


SELECTION-SCREEN: COMMENT 4(75) text-m13 FOR FIELD p_rb1.
SELECTION-SCREEN: COMMENT 4(75) text-m14 FOR FIELD p_rb2.

You have to add "FOR FIELD xyz". Then your text fields are linked to the radio buttons, and

the Code Inspector is happy.

Regards,

Karsten

6 REPLIES 6
Read only

Former Member
0 Likes
963

yaa it is working fine..sorry..

regards,

venkat

Read only

Former Member
0 Likes
963

I dropped this code in a test program and it compiled and ran fine

Read only

Former Member
0 Likes
963

yes it works fine have u written texts for m13 and m14

Read only

Former Member
0 Likes
963

Hi

i have executed your program but i didnot get any errors which you got.i have given text length as 75 characters.but i didnot get any error.once agian you execute your program.

Read only

kheth
Active Participant
0 Likes
964

If the messages of the Code Inspector are bothering you, change the following lines of your coding


SELECTION-SCREEN: COMMENT 4(75) text-m13 FOR FIELD p_rb1.
SELECTION-SCREEN: COMMENT 4(75) text-m14 FOR FIELD p_rb2.

You have to add "FOR FIELD xyz". Then your text fields are linked to the radio buttons, and

the Code Inspector is happy.

Regards,

Karsten

Read only

Former Member
0 Likes
963

Hi Karsten

This worked for me.

Regards

Sathar