Application Development 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: 

Adding text to checkbox

divya_nayudu
Participant
0 Kudos

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

Former Member

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

0 Kudos

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.

former_member156446
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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

0 Kudos

Yes i did save and activate.

Former Member
0 Kudos

double click on your "text-s02".

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

0 Kudos

Thanks a lot... Got it!

divya_nayudu
Participant
0 Kudos

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"

0 Kudos

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.

0 Kudos

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.

0 Kudos

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?

0 Kudos

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...

0 Kudos

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...

0 Kudos

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

0 Kudos

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?

0 Kudos

Hi,

Are you connected with 2 language diffrent ??

Mustapha

0 Kudos

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.

0 Kudos

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

0 Kudos

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.

0 Kudos

Hi Divya,

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

0 Kudos

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.

0 Kudos

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.

Former Member
0 Kudos

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