Skip to Content

Adding text to checkbox

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2008 at 03:48 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 08, 2008 at 03:49 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2008 at 03:52 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2008 at 03:54 AM

    double click on your "text-s02".

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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 08, 2008 at 06:58 AM

    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"

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2008 at 09:00 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.