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

>
Avinash Kodarapu wrote:
> The maximum length to display text on the selection screen is 80 chars.
No, You can exceed this limit.I'm able to display the screen text upto 83.
>
Gautham Vangaveti wrote:
> I think it is possible only upto 79.
Which version you are in?
>
Naveen Inuganti wrote:
> So we can'nt able to adjust the screen offset here?
No, you can set offset upto 83 position.
Just run this below code:
REPORT test.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 83(2) text-005."I have 'To' in text-005 and make sure length is 2
PARAMETERS: p_li AS CHECKBOX DEFAULT 'X'.
SELECTION-SCREEN END OF LINE.
>
Sathish Reddy wrote:
> if you use comment statement with in the frame then you can't exceed 79.
> if you use comment statement with in line then you can't exceed 83.
That's true.

Similar Messages

  • ABAP Query Selection Screen Comment

    Hi,
      I want to display some text (just text) on Selection Screen of an abap query. If this was a regular abap program I could have simply used "SELECTION-SCREEN COMMENT... " and that would have been enough. But since I dont seem to have access to Initialize event I cant use this option.
    1.  Is there some way I can write code which will be executed in the initialize event of the abap query
    2. Is there some other way for us to just display comment (without any selection field) on the selection screen of abap query.

    Hi Saquib,
    Is the navigation correct ? I dont see any onfoset anywhere on se38 editor. Can you eloborate please.
    Thanks and Regards,
    Ben.
    Message was edited by: Daniel Ben

  • Selection screen comments in italic.

    Hi ,
    I have a requirement to display the selection screen comments in italic format.
    Please suggest.
    Thanks,
    Suchi.

    I am not a 100% sure but i think this is simply not possible.

  • Selection screen COMMENT font

    Hello,
    In a screen I have a SELECTION-SCREEN line which contains a comment, followed by a PARAMETER, followed by another comment, followed by a PARAMETER.
    Here is the example code:
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(14) text-s01 FOR FIELD p_1.
    SELECTION-SCREEN POSITION 33.
    PARAMETERS: p_1 LIKE sy-uzeit DEFAULT '000001'.
    SELECTION-SCREEN COMMENT 52(3) text-s02 FOR FIELD p_2.
    SELECTION-SCREEN POSITION 58.
    PARAMETERS: p_2 LIKE sy-uzeit DEFUALT '240000'.
    SELECTION-SCREEN END OF LINE.
    For some reason the second COMMENT is showing with a different font. Can anyone help me understand why?
    Thank you,
    Nuno Silva

    Hi
    I test it on my system and noticed the same behavior.
    text-s01 = 'TOX'
    text-s02 = 'TOX'
    We can notice differences between the O and X.
    No idea why.
    That is SAP
    If you found a solution, please post it.
    Regards
    DSTJ

  • Selection screen comment as input field

    Hi Experts,
    I have a comment in my program using following statement,
    SELECTION-SCREEN COMMENT 27(60) dispath.
    by default this statement is in output mode ...can we change that as input...
    Not to forget i dont want to use PARAMETERS.
    Thanks
    Sid

    Hi Sid,
    Only options possible in selection screen comment are:
    SELECTION-SCREEN COMMENT [/][pos](len)
                             {text|{[text] FOR FIELD sel}}
                             [VISIBLE LENGTH vlen]
                             [MODIF ID modid]
                             [ldb_additions].
    i  think its not possible.
    Regards,
    Talwinder

  • Selection-screen comment.....?`

    Hi All,
    I need explanation for the following statement
           SELECTION-SCREEN COMMENT 1(15) TEXT-001.
    What does 1 and 15 mean in the above statement?
    Regards
    Dnyanesh

    Hai Go through the following Document
    SELECTION-SCREEN COMMENT fmt name.
    Additions
    1. ... FOR TABLE dbtab
    2. ... FOR FIELD f
    3. ... MODIF ID mod
    4. ... ID id
    Effect
    Generates a comment on the selection screen. For the name name , there are two options:
    name takes the form TEXT-xxx where xxx is a three-character name for a text symbol. In this case, the contents of the text symbol are displayed at runtime, i.e. the text cannot be changed dynamically. name is another eight-character name. Here, you create a field with the name name in the length specified in the format fmt< /> and it is then generated as an output field on the selection screen. The contents of these comments must therefore be set at runtime (e.g. at INITIALIZATION or - in the case of comments in the database include program DBldbSEL - in the routine INIT of the database program SAPDBldb . They can also be changed when the selection screen is being processed.
    Note
    The field name is generated automatically and so cannot be defined with DATA .
    With comments, you must always specify a format fmt (see variant ULINE ).
    Note
    You must program a new line yourself via the format fmt .
    Addition 1
    ... FOR TABLE dbtab
    Note
    See variation 3 (SELECTION-SCREEN SKIP).
    Addition 2
    ... FOR FIELD f
    Effect
    Since the comment is assigned to a parameteror a select-option , the help display shows the documentation of the reference field if this parameter or selection option.
    In addition, the comment is suppressed if the reference object was set to 'invisible' via a selection variant.
    Note
    In database access routines, the comment is generated whenever the reference field is output. Therefore, you should not use the addition FOR TABLE with this variant.
    Example
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN COMMENT 10(20) TEXT-001
                       FOR FIELD PARM.
      SELECTION-SCREEN POSITION POS_LOW.
      PARAMETERS PARM LIKE SAPLANE-PLANETYPE.
    SELECTION-SCREEN END OF LINE.
    This code displays a 20-byte long comment followed by the parameter at the normal position ( POS_LOW ) on the same line. If the user presses F1 for both objects, the documentation of SAPLANE-PLANETYPE is displayed.
    Addition 3
    ... MODIF ID mod
    Addition 4
    ... ID id
    Thansk & regards
    Sreenivasulu P

  • How to hide a selection screen comment ?

    Hi Experts,
    I have an issue in Interactive report...
    I know by using  LOOP AT SCREEN we can modify screen elements like HIDE ... in the AT SELECTION-SCREEN OUTPUT event
    But my question is i need to HIDE Selection screen comment also...I can this be achieved....???
    Please do reply me with a solution...
    Thanks in Advance...
    Reddy Arun

    Hi Reddy,
                  Please go through below code..
    it will fulfill ur requirements
    REPORT 123.
      PARAMETERS : RB_USER  RADIOBUTTON GROUP za .
    PARAMETERS :  RB_MAN   RADIOBUTTON GROUP za .
    PARAMETERS :  RB_MAN1   RADIOBUTTON GROUP za DEFAULT 'X'.
    AT SELECTION-SCREEN OUTPUT.
       PERFORM f13000_check_radio.
    FORM f13000_check_radio.
         IF rb_man1 = ''.
    LOOP AT SCREEN.
         IF screen-NAME = 'RB_MAN'.
           IF rb_man  = 'X'.
             screen-active = 0.
             rb_man  = ''.
           ELSE.
             screen-active = 1.
           ENDIF.
           MODIFY SCREEN.
         ENDIF.
         IF screen-NAME = 'RB_USER'.
           IF rb_user = 'X'.
             screen-active = 0.
             RB_USER = ''.
           ELSE.
             screen-active = 1.
           ENDIF.
           MODIFY SCREEN.
         ENDIF.
    ENDLOOP.
         ELSE.
           LOOP AT SCREEN.
         IF screen-NAME = 'RB_USER'.
             screen-active = 1.
                MODIFY SCREEN.
         ENDIF.
       IF screen-NAME = 'RB_MAN'.
             screen-active = 1.
           MODIFY SCREEN.
         ENDIF.
       ENDLOOP.
    ENDIF.
    ENDFORM.           " f13000_check_radio

  • Trailing space when using SELECTION-SCREEN COMMENT

    Hi All,
    I need to display a continuous text (length :130) in selection screen. I am trying with SELECTION-SCREEN COMMENT option and i m aware that we can display max of 79 characters. So i split the text into length: 70 & 60 and coded as below
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(70) text-001.
    SELECTION-SCREEN POSITION 73.
    SELECTION-SCREEN COMMENT 73(60) text-002.
    SELECTION-SCREEN END OF LINE.
    Problem is: After displaying first text (text-001), there is a gap of 10-15 characters, then second text starts (text-002). I mean, there is a trailing space.
    If i give all text-001 in CAPS, then there is no trailing space. But i dont need to display the text in CAPS.
    Do i need to proceed in any other way?, please provide your inputs
    Vinoth

    Your SAPgui to use a proportional font for texts and descriptions (where "i" is much shorter than "W") when it use a non-proportional for input fields. But it use this non-proportional font for input fields even if input is not allowed.
    Try this sample to solve your problem. (But your text will be in a box)
    REPORT zfontst.
    CONSTANTS ctxt TYPE c LENGTH 80 VALUE 'AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz'.
    PARAMETERS: p1 TYPE c LENGTH 56.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (2) p2a.
    SELECTION-SCREEN POSITION POS_LOW.
    SELECTION-SCREEN COMMENT (56) p2.
    SELECTION-SCREEN END OF LINE.
    PARAMETERS: p3 TYPE c LENGTH 56 MODIF ID dsp.
    AT SELECTION-SCREEN OUTPUT.
      p1 = ctxt.
      p2 = ctxt.
      p2a = 'P2'.
      p3 = ctxt.
      LOOP AT SCREEN.
        CASE screen-group1.
          WHEN 'DSP'.
            screen-input = '0'.
        ENDCASE.
        MODIFY SCREEN.
      ENDLOOP.
    Regards,
    Raymond

  • Change Color of SELECTION-SCREEN COMMENT

    Hello!
    I want to change the color of the text of my comments for parameters in my selection-screen. Is that possible?
    What kind of design option do I have within the selection-screen? (Background, Colors, etc...)
    Regards Michael

    check out this sample code.
    REPORT YRJKSJKJFKD
           NO STANDARD PAGE HEADING.
    SELECTION-SCREEN COMMENT /1(50) comm1 MODIF ID mg1.
    SELECTION-SCREEN ULINE.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN COMMENT /1(30) comm2.
    SELECTION-SCREEN ULINE /1(50).
    PARAMETERS: r1 RADIOBUTTON GROUP rad1,
                r2 RADIOBUTTON GROUP rad1,
                r3 RADIOBUTTON GROUP rad1.
    SELECTION-SCREEN ULINE /1(50).
    AT SELECTION-SCREEN OUTPUT.
      comm1 ='Selection Screen'.
      comm2 ='Select one'.
      LOOP AT SCREEN.
        IF screen-group1 = 'MG1'.
           screen-intensified = '0'.
           screen-color = '0' .
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    for screen-color the possible values are
    Syntax of color value in col color
    { COL_BACKGROUND } 0 GUI-specific
    { 1 | COL_HEADING } 1 Gray-blue
    { 2 | COL_NORMAL } 2 Light gray
    { 3 | COL_TOTAL } 3 Yellow
    { 4 | COL_KEY } 4 Blue-green
    { 5 | COL_POSITIVE } 5 Green
    { 6 | COL_NEGATIVE } 6 Red
    { 7 | COL_GROUP } 7 Violet
    Regards
    Raja

  • REG hiding selection-screen comment

    Hi all,
    Cud any one tell me how to hide a selection-screen comment.

    hi chaitanya,
    see the example may be useful.
    SELECTION-SCREEN BEGIN OF BLOCK BLOCK.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(8) PWD.
    SELECTION-SCREEN POSITION 35.
    PARAMETERS: PASSWORD(8) MODIF ID AAA.
    SELECTION-SCREEN END OF LINE.
    PARAMETERS: PROGRAM(8).
    SELECTION-SCREEN END OF BLOCK BLOCK.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF SCREEN-GROUP1 = 'AAA'.
          SCREEN-invisible = '1'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    reward if useful,
    thanks and regards

  • I cannot share photos with anyone ,for i select someone i get error code 400.

    I cannot share photoss with anyone for when ii try to select someone i get a error code 400.

    Version  9
    "domnic.rj23" <[email protected]> wrote:
    domnic.rj23 http://forums.adobe.com/people/domnic.rj23 created the discussion
    "Re: I cannot share photos with anyone ,for i select someone i get error code 400."
    To view the discussion, visit: http://forums.adobe.com/message/5781697#5781697

  • Selection screen comments

    Hi ,
    My requirement is to put the description ( in blue colour ) of the input field on the selection screen on the right handside of the field after the user enters a certain value.
    How do i go abt it..Plz help .
    Thanx nd regards,
    Srestha

    HI,
    check this example report it is doing the same.
    <b>REPORT zwa_test1 line-size 132 line-count 60.
    TABLES: fmfincode.
    SELECTION-SCREEN BEGIN OF LINE.
    selection-screen comment (11) text-004.
    parameters : fcode type fmfincode-fincode .
    parameters: fc_desc(50) MODIF ID FC  visible length 40 default 'abc'.
    SELECTION-SCREEN END OF LINE.
    AT selection-screen output.
    LOOP at screen .
      IF screen-group1 = 'FC'.
        Screen-input = 0.
        SCREEN-INTENSIFIED = 1.
        Modify screen.
      endif.
    ENDLOOP.
    at selection-screen on fcode.
    SELECT SINGLE beschr FROM FMFINT INTO fc_desc
    WHERE FINCODE = fcode.</b>
    REgards,
    HRA
    Message was edited by: HRA
    Message was edited by: HRA

  • Selection screen time parameter error.

    I see a display error on the selection screen to the left of the Run Time field.  When my mouse hovers over the display error, another display then appears below the Run Time field.  I believe an = sign should appear to the left of the Run Time.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-034.
    PARAMETERS: p_jobnam TYPE tbtco-jobname MODIF ID 1.
    SELECT-OPTIONS: s_runda FOR tbtco-strtdate DEFAULT sy-datum TO sy-datum MODIF ID 1 ,
                    s_runti FOR tbtco-strttime DEFAULT time_0 TO time_24 MODIF ID 1.
    PARAMETERS:     p_supjob  AS CHECKBOX .
    SELECTION-SCREEN END OF BLOCK b1.

    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        " if radio button display on screen i sselected then make subject,sheduler
       and user email disable and if radio button send email is selected make
       the same fields enable.
        IF screen-group1 = '3' .
          IF p_disp = 'X'.
            screen-input = 0.
          ELSEIF p_email = 'X'.
            screen-input = 1.
          ENDIF.
       ENDIF.
    *if check box report on job status is selected making jobname,rundate,runtime fields
    disable and if it is not checked maiking these fields enable.
        ELSEIF screen-group1 = '1'.
          IF p_re_sts = ' ' .
            screen-input = 0.
          ELSEIF p_re_sts = 'X'.
            screen-input = 1.
          ENDIF.
       ENDIF.
    *if attach .csv check box is seleted then making the fields status,application path
    *and file enable otherwise disable.
        ELSEIF screen-group1 = '2'.
          IF p_att = ' '.
            screen-input = 0.
          ELSEIF p_att = 'X'.
            screen-input = 1.
          ENDIF.
          CLEAR : p_apdir1.
    MODIFY SCREEN.
        ENDIF.
    this code am  using i have a check box if i check that am making above selction screen parameters enable disable .
    i found out that if i commented this loop at screen code am getting no error .
    please help

  • WD application-selection screen - Parameter passing error

    Hi,
    In my WD application selection screen I am using a parameter(COSP-VERSN)
    When i read this using read context i am getting an error saying "Could not find attribute KOKRS"
    In context I have created a node with COSP-VERSN. My Kokrs will be contstant everytime.
    For getting my version I need to pass KOKRS values.How can overcome this issue?
    Here is the read context for versn which I have created in context Create-> NODE Option
    DATA lo_nd_pversn TYPE REF TO if_wd_context_node.
          DATA lo_el_pversn TYPE REF TO if_wd_context_element.
          DATA ls_pversn TYPE wd_this->element_pversn.
    *     navigate from <CONTEXT> to <PVERSN> via lead selection
          lo_nd_pversn = wd_context->get_child_node( name = wd_this->wdctx_pversn ).
    *     get element via lead selection
          lo_el_pversn = lo_nd_pversn->get_element(  ).
    *     get all declared attributes
          lo_el_pversn->get_static_attributes(
            IMPORTING
              static_attributes = ls_pversn ).
    Rgds
    Vara

    Resolved myself by creating a custom Dropdownbykey.
    Rgds
    vara

  • Selection Screen Disappearing on error

    Hi
    I am new to ABAP.
    Below is the driver program for Smartform,
    after:
    Step-1 Entering data at selection screen
    Step-2 Pressing Execution Button
    An error is displaying 'Document no. not found' but the problem is, as soon as the error appears, selection screen goes blank, its not staying.
    Please suggest correction.
    With warm regards.
    Yogesh.
    *& Report  Z_MM_GPASS
    REPORT  Z_MM_GPASS.
    tables: MSEG,ADRC,T001W,MAKT .
    data: FM_NAME TYPE RS38L_FNAM.
    *& Selection Screen
    Selection-screen: begin of block b1 with frame title t1.
    Parameter:   Docno   like      MSEG-MBLNR ,
                 YEAR    like      MSEG-MJAHR .
    selection-screen: end of block b1.
    *& Comment on selection screen
    At selection-screen output .
    t1 = 'Selection-Screen' .
    *& Data validation at selection screen
    At selection-screen .
    select single * from MSEG where MBLNR = docno and MJAHR = YEAR .
    if sy-subrc <> 0.
    message 'Document no. not found' type 'E'.
    endif.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        FORMNAME                 = 'Z_MM_PASS'
    *   VARIANT                  = ' '
    *   DIRECT_CALL              = ' '
    IMPORTING
       FM_NAME                  = FM_NAME
    EXCEPTIONS
       NO_FORM                  = 1
       NO_FUNCTION_MODULE       = 2
       OTHERS                   = 3
    IF SY-SUBRC <> 0.
    *  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *          WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION FM_NAME
      EXPORTING
    *   ARCHIVE_INDEX              =
    *   ARCHIVE_INDEX_TAB          =
    *   ARCHIVE_PARAMETERS         =
    *   CONTROL_PARAMETERS         =
    *   MAIL_APPL_OBJ              =
    *   MAIL_RECIPIENT             =
    *   MAIL_SENDER                =
    *   OUTPUT_OPTIONS             =
    *   USER_SETTINGS              = 'X'
        DOCNO                      = DOCNO
        YEAR                       = YEAR
    * IMPORTING
    *   DOCUMENT_OUTPUT_INFO       =
    *   JOB_OUTPUT_INFO            =
    *   JOB_OUTPUT_OPTIONS         =
    * EXCEPTIONS
    *   FORMATTING_ERROR           = 1
    *   INTERNAL_ERROR             = 2
    *   SEND_ERROR                 = 3
    *   USER_CANCELED              = 4
    *   OTHERS                     = 5
    IF SY-SUBRC <> 0.
    *MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Code Formattted by: Alvaro Tejada Galindo on Jan 7, 2009 2:30 PM

    *I have replaced
    if sy-subrc <> 0.
    message 'Document no. not found' type 'E'.
    endif.
    with
    IF sy-subrc 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    INTO mtext
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    write:/1 mtext.
    ENDIF.
    *Program sintactically correct.
    *but still I'm facing the same problem, for your kind knowledge I don't know what is return code
    Edited by: Yogesh Pathak on Jan 7, 2009 9:45 AM
    Messege posted more than one time due to "SERVER ERROR" while posting., sorry for inconvenience.
    Code Formatted by: Alvaro Tejada Galindo on Jan 7, 2009 2:34 PM

Maybe you are looking for

  • Is there a fix for iphone 5 with uconnect issues?

    I have a 2014 Grand Cherokee with Uconnect and when my phone is paired to the vehicle it works fine.  When I shut my vehicle off and restart it, the phone kicks out.  Uconnect states there is no phone connected.  I keep having to pair it over and ove

  • Some (dumb) questions re the TB display

    Have just connectewd a new TB display to my  late 2012 mac mini. It is awesome. Gigabit ethernet port Just wonder why one would connect the screen to the Gigabit ethernet port? I have the MM connected to the DSL modem so why do the screen? I can unde

  • Saving pdf type files

    I've downloaded tax forms from the IRS website but when I fill them out it won't save the filled in data on my Mac. When I go to open the filled out form I just get a blank form. However, on my PC it will save the data typed into the form. I have a f

  • Narcoleptic iPod

    I have a iPod click wheel, 4th gen, 20 gig that has a unique problem. Recently (and I think only coincidently since the installation of iTunes 7.0 and update to 10.4.8) my iPod has been having narcoleptic fits. What will happen is that no matter how

  • I cannot retrieve my website!

    I had a website created with iWeb that I used to publish to Mobile. When Mobile was about to end, I published it via FTP to Hostexcellence, it works fine (http://www.pascoli.com/Pascoli/Home.html). Of late I opened iWeb and my site had vanished, ther