Skip to Content

selection screen comment..getting error...!

Hi..,

My code:

SELECTION-SCREEN COMMENT 80(2) text-027

Error Which I am getting with above syntax:

The specified offset "80" is too large (maximum:79)

Q: How to slove this? and here I need that text 27 is in greater than 80th position only.

Thanks,

Naveen.I

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 23, 2016 at 03:03 PM

    I realize I'm 7 1/2 years too late to help Naveen, but for those who later do a search on this issue, I found a work-around that's satisfying my purposes, allows me to position the text where I want it, and allows me to keep the BLOCK definitions as well.

    My COMMENT line is defined as follows:

    SELECTION-SCREEN COMMENT 79(39) text-025.


    I've set the offset at the maximum allowed for me to keep my BLOCK statements (79). The text I'm displaying in text-025 is 12 characters, but the Text Symbols dialog allows one to put leading spaces in front of the text; so in the Text box of the Text Symbols dialog I put 27 leading spaces, then my 12 characters of text, for a length of 39.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2009 at 06:14 AM

    Hi,

    The maximum length to display text on the selection screen is 80 chars.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2009 at 06:13 AM

    hi,

    give the selection screen parameter

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2009 at 06:24 AM

    Hi

    You can specify the width of your selection screen.

    Add the LINE-SIZE option to your REPORT.

    Hope this helps 😊

    Regards,

    Jayanthi.K

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2009 at 06:51 AM

    Hi,

    check this...

    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: c1 as checkbox.
    SELECTION-SCREEN COMMENT 79(2) text-027.
    SELECTION-SCREEN END OF BLOCK b1.

    if you use comment statement with in the frame then you can't exceed 79.

    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: c1 as checkbox.
    SELECTION-SCREEN COMMENT 83(2) text-027.
    SELECTION-SCREEN END OF LINE.

    if you use comment statement with in line then you can't exceed 83.

    for horizontal line

    with in frame

    SELECTION-SCREEN ULINE /79(2).

    with in line

    SELECTION-SCREEN ULINE /83(2).

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 01, 2009 at 08:57 AM

    I splitted the perticuler text,

    and displyed in two lines...as its not possible with in the frame.

    ---Naveen Inuganti

    Add a comment
    10|10000 characters needed characters exceeded

    • >

      > I splitted the perticuler text,

      > and displyed in two lines...as its not possible with in the frame.

      >

      >

      > ---Naveen Inuganti

      Hi, Naveen you can Splite the Lable on two line using Frame too, Please test the following Sample Code.

      SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME TITLE ftext.
      SELECTION-SCREEN: BEGIN OF LINE.
      PARAMETERS p1 TYPE c AS CHECKBOX USER-COMMAND aaa.
      SELECTION-SCREEN: COMMENT 10(31) text1.
      SELECTION-SCREEN END OF LINE.
      SELECTION-SCREEN: BEGIN OF LINE.
      PARAMETERS p2 TYPE c AS CHECKBOX USER-COMMAND aaa.
      SELECTION-SCREEN: COMMENT 10(31) text2.
      SELECTION-SCREEN END OF LINE.
      SELECTION-SCREEN END OF BLOCK a.
      
      AT SELECTION-SCREEN OUTPUT.
      
        LOOP AT SCREEN.
          IF screen-name = 'P2'.
            screen-active = '0'.
            screen-invisible = '1'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      
      INITIALIZATION.
        ftext = 'Frame'.
        text1 = 'Line 1 Lable'.
        text2 = 'Line 2 Lable'.

      Kind Regards,

      Faisal

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.