2008 May 29 4:28 PM
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
2008 May 29 5:14 PM
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
Hi Karsten
This worked for me.
Regards
Sathar
2008 May 29 4:32 PM
2008 May 29 4:33 PM
I dropped this code in a test program and it compiled and ran fine
2008 May 29 4:37 PM
2008 May 29 4:47 PM
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.
2008 May 29 5:14 PM
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
2008 May 30 5:07 AM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |