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

Adding text to checkbox

divya_nayudu
Participant
0 Likes
6,870

My code is similar to the following:

SELECTION-SCREEN BEGIN OF BLOCK out WITH FRAME TITLE text-s01.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS: p_filchk AS CHECKBOX.

SELECTION-SCREEN COMMENT 4(17) text-s02 FOR FIELD p_filchk.

SELECTION-SCREEN POSITION POS_LOW.

PARAMETERS: p_file LIKE rlgrap-filename.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK out.

Problem: I want to add text corresponding to the checkbox created(p_filchk). I tried with "Go To->Text Elements -> Selection Text" and gave text for p_filchk, but it still does not display on the screen. Could anyone please tell me how to go about it?

23 REPLIES 23
Read only

Former Member
4,123

go to menu Goto->Text Elements->selection texts->

there your parameters variables will be there...

give your caption for your checkbox parameter...

save and activate.

(or)

double click on your "text-s02".

it will take you to the text element....fill it with your text and activate

Edited by: Ramu on Jan 8, 2008 4:52 AM

Read only

0 Likes
4,123

I already tried "goto->text elements->selection screen" but it does not display text on screen during execution. I realised that comments are used to add text on screen, but i dont know how to go about it.

Read only

former_member156446
Active Contributor
0 Likes
4,123

Hai Divya.. check the below check box decelerations..

SELECTION-SCREEN BEGIN OF LINE.

PARAMETER: pa_cs1 AS CHECKBOX.

SELECTION-SCREEN COMMENT 3(10) text-001.

PARAMETER: pa_cs2 AS CHECKBOX.

SELECTION-SCREEN : COMMENT 16(10) text-002.

PARAMETER: pa_cs3 AS CHECKBOX.

SELECTION-SCREEN : COMMENT 29(10) text-003.

*

PARAMETER: pa_cs4 AS CHECKBOX.

SELECTION-SCREEN : COMMENT 42(10) text-004.

*

PARAMETER: pa_cs7 AS CHECKBOX.

SELECTION-SCREEN : COMMENT 55(10) text-005.

Read only

Former Member
0 Likes
4,123

Divya,

Once you give the text for the variable did u save it activated it?

check that once and save it and activate it.... it should reflect in the selection screen

Edited by: NAVEEN KUMAR GUDURI on Jan 7, 2008 10:52 PM

Read only

0 Likes
4,123

Yes i did save and activate.

Read only

Former Member
0 Likes
4,123

double click on your "text-s02".

it will take you to the text element....fill it with your text and activate

Read only

0 Likes
4,123

Thanks a lot... Got it!

Read only

divya_nayudu
Participant
0 Likes
4,123

I tried the method of setting Text element and it did work on a temporary program (Trial program), but the main one on which im working, its not showing the output still. Could there be a specific reason for the text not getting displayed, inspite of setting "text element" and "selection text"

Read only

0 Likes
4,123

Hi Divya,

Try this.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETER: pa_cs1 AS CHECKBOX.

SELECTION-SCREEN COMMENT 3(10) text-001.

SELECTION-SCREEN end OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETER: pa_cs2 AS CHECKBOX.

SELECTION-SCREEN : COMMENT 3(10) text-002.

SELECTION-SCREEN end OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETER: pa_cs3 AS CHECKBOX.

SELECTION-SCREEN : COMMENT 3(10) text-003.

SELECTION-SCREEN end OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETER: pa_cs4 AS CHECKBOX.

SELECTION-SCREEN : COMMENT 3(10) text-004.

SELECTION-SCREEN end OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETER: pa_cs7 AS CHECKBOX.

SELECTION-SCREEN : COMMENT 3(10) text-005.

SELECTION-SCREEN end OF LINE.

double click on each text-001 to text-005, and it will take you to text symbols. give text . save and activate. it should definetely work 100%.

Regards,

Arul.

Read only

0 Likes
4,123

Arul, like i said, i have already tried that and filled the new text in it to be displayed and even activated it. But for some reason, its not displaying. I am unable to figure that out.

Read only

0 Likes
4,123

My code is like this:

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS par_lis1 AS CHECKBOX DEFAULT 'X'.

  • description

SELECTION-SCREEN: COMMENT (30) text-352

FOR FIELD par_lis1.

SELECTION-SCREEN END OF LINE.

I double clicked on text-352 and set the text and activated it. Am i missing out on something here?

Read only

0 Likes
4,123

Hi Divya,

After copying your code from your trail program into main program, did you create that text element text-352 again for that main program. If not please do that for main program too....by double clicking that text-352.

I hope this will solve your problem...

Read only

0 Likes
4,123

text-352 is created...even in the main program.... The Display property for the checkbox is set to : "2D Display" and "Label on left"... Would that be causing problem?If i created selection screen, how do i see its layout? May be i need to work on the properties of the checkbox...

Read only

0 Likes
4,123

Divya, double click on the text element which u used to create a check box. Use the properties for your purpose

Read only

0 Likes
4,123

I double clicked, when into selection screen layout...When i execute from there (in se80), it does not show me the text, but when i execute it from se38, it shows. How could this be?

Read only

0 Likes
4,123

Hi,

Are you connected with 2 language diffrent ??

Mustapha

Read only

0 Likes
4,123

yes...languages do differ...but how would that matter?And when i try on my test program, after going through layout of selection screen, when i execute, it doesnt show text,and if i try from se38,it shows.

Read only

0 Likes
4,123

If u r connected in English : and create the element text ==> it wil be displayed just in English.

If u want to display ti in Frensh you will be translate it.

reward if it helpful.

Mustapha

Read only

0 Likes
4,123

its not that. I dont understand that when i test execute on the selection screen layout, it doesnt show text. Outside, direct processin shows the text.

Read only

0 Likes
4,123

Hi Divya,

Could you paste your main program here....?

Read only

0 Likes
4,123

This is Flow Logic of my Selection Screen:

PROCESS BEFORE OUTPUT.

MODULE %_INIT_PBO.

MODULE %_PBO_REPORT.

MODULE %_PF_STATUS.

MODULE %_END_OF_PBO.

PROCESS AFTER INPUT.

MODULE %_BACK AT EXIT-COMMAND.

MODULE %_INIT_PAI.

FIELD !PAR_LIS1 MODULE %_PAR_LIS1 .

FIELD !PAR_VAR1 MODULE %_PAR_VAR1 .

FIELD !PAR_LIS2 MODULE %_PAR_LIS2 .

FIELD !PAR_VAR2 MODULE %_PAR_VAR2 .

CHAIN.

FIELD PAR_LIS1 .

FIELD PAR_VAR1 .

FIELD PAR_LIS2 .

FIELD PAR_VAR2 .

MODULE %_BLOCK_1000000.

ENDCHAIN.

CHAIN.

FIELD PAR_LIS1 .

FIELD PAR_VAR1 .

FIELD PAR_LIS2 .

FIELD PAR_VAR2 .

MODULE %_END_OF_SCREEN.

MODULE %_OK_CODE_1000.

ENDCHAIN.

And Main code written in report is:

  • first parameter line

SELECTION-SCREEN BEGIN OF LINE.

  • checkbox

PARAMETERS par_lis1 AS CHECKBOX DEFAULT 'X'.

  • description

SELECTION-SCREEN: COMMENT (30) text-352

FOR FIELD par_lis1.

  • variant field

SELECTION-SCREEN: COMMENT pos_low(10) text-351

FOR FIELD par_var1.

PARAMETERS par_var1 LIKE disvariant-variant.

  • push button

SELECTION-SCREEN:

POSITION POS_HIGH.

SELECTION-SCREEN: PUSHBUTTON (15) text-353

USER-COMMAND con1.

SELECTION-SCREEN END OF LINE.

Now all the text-351, text-352... are defined, activated. When i do direct processing, it displays output fine. When i go in the layout of my selection screen and test run it, it does not display text.

Read only

0 Likes
4,123

The main program on which i am working is very huge. Cant paste that here. Inspite of all data filled in, if it does not display text while execution, i need to cover all domains which could effect this. Will see.

Read only

Former Member
0 Likes
4,122

hi try this,

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

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS:px_perso TYPE c AS CHECKBOX DEFAULT 'X'.

SELECTION-SCREEN COMMENT 3(15) text-001.

SELECTION-SCREEN POSITION POS_LOW.

PARAMETERS:px_offic TYPE c AS CHECKBOX.

SELECTION-SCREEN COMMENT 35(30) text-002.

SELECTION-SCREEN END OF LINE.

write ur required text in text elements