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

Similar Messages

  • Wrong date format when using selection screen query

    Hi all,
    I have a problem in a report when usign the selection screen of the query.
    the system has been upgraded recently from a 3.5 to 7.0. when a query is run in the bex web the user can put in the selection date needer to run the query.
    currently if u select a month using the selection screen next to the input form, the month will show up in the input field
    as 006 09 (006space09) instead of 06.2009 for the selection of june. 
    does anyone know how to fix this? it was working good using the 3.5 version of the bex web.
    Any help apriciated

    Using the list cube transaction and using the selection sceen and selecting the month it does put the right selection in the input field. ive also just tested it using de bx excel plugin and using the selection screen the correct value is set in the input field.  so i think it more of a bex we b problem but i dont know where to start the search for the solution.

  • 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

  • How to set my own gui status when i use selection-screen

    how to set my own gui status when i use selection-screen command
    and
    how to set the names in the application tool bar when function keys are created

    Make sure that you do this in event "AT SELECTION-SCREEN OUTPUT".
    Run Txn ABAPDOCU and check 'DEMO_SEL_SCREEN_STATUS' for sample.
    Also check out following discussion -
    Selection Screen PF-STATUS
    Cheers,
    Sanjeev

  • Screen Saver does not use selected Screen Saver when activated

    Screen Saver does not use selected Screen Saver when activated. After "Start screen saver" elapse time has been reached, a blank black full screen is displayed. I can activate the selected screen saver by using the hot corners function. Any help with this matter will be greatfully received.

    Hi again sassey,
    You're assuming correctly. Simply change the settings so that your screen saver activates before the sleep settings.
    Hope this solves your problem...

  • Using Selection screen and selection screen output

    Hi All,
    I am trying to execute AT SELECTION-SCREEN and AT SELECTION-SCREEN output. Both the para's working fine seperately. But when I execute them together AT SELECTION-SCREEN output is not working. Please let me know how to solve this problem. Please see below for the code.
    PARAMETERS:  p_werks LIKE marc-werks OBLIGATORY MEMORY ID WRK,
                 p_lgort LIKE mard-lgort OBLIGATORY,
                 p_rlgort LIKE mard-lgort OBLIGATORY.
        PARAMETERS: p_boml TYPE c RADIOBUTTON GROUP mode user-command flag.
            SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
                PARAMETERS: p_aufnr LIKE aufk-aufnr MODIF ID cp2.
            SELECTION-SCREEN: END OF BLOCK b1.
    *SELECTION-SCREEN COMMENT 1(44) text-004 FOR FIELD p_cmpl.
        PARAMETERS: p_cmpl TYPE c RADIOBUTTON GROUP mode.
           SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
                PARAMETERS: p_matnr type marc-matnr MODIF ID cp1,
                            p_verid type afpo-verid MODIF ID cp1,
                            p_labst type mard-labst MODIF ID cp1.
           SELECTION-SCREEN: END OF BLOCK b2.
       PARAMETERS: p_mstr TYPE c RADIOBUTTON GROUP mode.
    AT SELECTION-SCREEN output.
      LOOP AT SCREEN.
        IF p_boml <> 'X' AND
           screen-group1 = 'CP1'.
           screen-active = '1'.
           MODIFY SCREEN.
        ENDIF.
        IF p_cmpl <> 'X' AND
           screen-group1 = 'CP2'.
           screen-active = '1'.
           MODIFY SCREEN.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    AT SELECTION-SCREEN.
      IF p_boml EQ 'X'.
        IF p_AUFNR EQ space.
            MESSAGE e000(z1) WITH 'Please fill Production Order.'.
        ENDIF.
      endif.
      IF p_cmpl EQ 'X'.
        IF p_MATNR EQ space  OR p_verid EQ space OR p_labst EQ space.
            MESSAGE e000(z1) WITH text-003 'Production Version & Quantity. '.
        ENDIF.
      endif.
    Thanks,
    Senthil

    Hi Senthil,
    As far as my knowledge is concerned AT Selection-Screen output and AT Selection-Screen wont work together.In this code you are trying to do the validation in AT Selection-Screen. Instead of that try doin your validations in Start-of-selection Event.
    i,e., modify your code as follows:
    PARAMETERS: p_werks LIKE marc-werks OBLIGATORY MEMORY ID WRK,
    p_lgort LIKE mard-lgort OBLIGATORY,
    p_rlgort LIKE mard-lgort OBLIGATORY.
    PARAMETERS: p_boml TYPE c RADIOBUTTON GROUP mode user-command flag.
    SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: p_aufnr LIKE aufk-aufnr MODIF ID cp2.
    SELECTION-SCREEN: END OF BLOCK b1.
    *SELECTION-SCREEN COMMENT 1(44) text-004 FOR FIELD p_cmpl.
    PARAMETERS: p_cmpl TYPE c RADIOBUTTON GROUP mode.
    SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS: p_matnr type marc-matnr MODIF ID cp1,
    p_verid type afpo-verid MODIF ID cp1,
    p_labst type mard-labst MODIF ID cp1.
    SELECTION-SCREEN: END OF BLOCK b2.
    PARAMETERS: p_mstr TYPE c RADIOBUTTON GROUP mode.
    AT SELECTION-SCREEN output.
    LOOP AT SCREEN.
    IF p_boml <> 'X' AND
    screen-group1 = 'CP1'.
    screen-active = '1'.
    MODIFY SCREEN.
    ENDIF.
    IF p_cmpl <> 'X' AND
    screen-group1 = 'CP2'.
    screen-active = '1'.
    MODIFY SCREEN.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    START-OF-Selection.
    Perform validation.
    form validation.
    IF p_boml EQ 'X'.
    IF p_AUFNR EQ space.
    MESSAGE e000(z1) WITH 'Please fill Production Order.'.
    ENDIF.
    endif.
    IF p_cmpl EQ 'X'.
    IF p_MATNR EQ space OR p_verid EQ space OR p_labst EQ space.
    MESSAGE e000(z1) WITH text-003 'Production Version & Quantity. '.
    ENDIF.
    endif.
    endform.
    Kindly reward if useful.
    Thanks,
    pavithra

  • 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

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

  • 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

  • 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

  • Designing a calculator using selection screen(abap)

    hi i just now stepped into this technology. iam learning abap.  i like to jknow how to design a calculator using selection screen. 
    could any one give your  suggestions or any sites having such example programs . 
    thankyou

    Hi
    Welcome to SDN.
    Use the sample peace of code for design Calculator.
    Hi,
    Create push buttons for the + , - , / , * , = in your dialog program.
    Create an input field with the data type that can accept decimal places..
    When the enter 12 then press the push button "+" button store the value 12 in a variable v1..Then clear the input field..
    Then when the user enters another number..lets say "13"..
    Then if the user presses the "=" button...Then sum the values from the variable v1 with the input field..
    Hope this helps..
    Check this sample code..
    MODULE USER_COMMAND.
    CASE SY-UCOMM.
    WHEN 'ADDITION'.
    ASSUMING THE INPUT FIELD NAME IS P_INPUT.
    V_V1 = P_INPUT.
    V_OPERATION = '+'.
    CLEAR: P_INPUT.
    WHEN 'EQUALTO'.
    CASE V_OPERATION.
    ADDITION
    WHEN '+'.
    SUM UP THE VALUES.
    P_INPUT = P_INPUT + V_V1.
    ENDCASE.
    MULTIPLICATION
    WHEN '*'.
    MULTIPLY UP THE VALUES.
    P_INPUT = P_INPUT * V_V1.
    ENDCASE.
    ENDCASE.
    ENDMODULE.
    Regards,
    Sree

  • Submitting of report using selection screen

    Hi,
                       My requirement is iam having one report so it is executed when we r given site and date it gives one excel file data so now iam having 150 sites so now I want to write the report as date as selection screen and I want to submit that report in this one (new report) so it wants to take the sites automatically from werks (t001w table) and it wants to execute in a loop upto 150 times then it gives 150 excel files so now how can I pass the sites and date to the submitting selection screen date as same for all but only the site wants to varry in the submitting report pls provide the coding ..
    Thanks & Regards,
    Mohan Reddy.

    Hello Mohan Reddy,
    I think we can try in this way
      data:     y_v_rspar_line    LIKE LINE OF y_v_rspar_tab,
                  y_v_rspar_tab     TYPE TABLE OF rsparams,
            y_lk_parm3 TYPE char5 VALUE 'SPERR'.  " Selection screen variable name
      y_v_rspar_line-selname = y_lk_parm3.
      y_v_rspar_line-kind    = y_k_p.
      y_v_rspar_line-sign    = y_k_i.
      y_v_rspar_line-option  = y_k_eq.
      y_v_rspar_line-low     = y_k_e.                "Excel file site value.
      APPEND y_v_rspar_line TO y_v_rspar_tab.
        SUBMIT Program name USING SELECTION-SCREEN '1000'
        WITH SELECTION-TABLE y_v_rspar_tab  AND RETURN.
    But try in 2different ways i.e
    1) Keep the submit program in the loop of the excel file internal table
       and take the site value in the variable and pass the value to this y_v_rspar_line-low
      and call submit program.
    2) Sort the excel file internal table then pass all the values to y_v_rspar_line-low and use the append statement in the same way and then call the SUBMIT program outside the loop.

  • HOW TO USE SELECTION SCREEN

    HOW TO USE SELECTION SCREEN
    I WANT TO INSERT PURCHASE DOCUMENT NUMBER
    AND WANT TO SEE ALL INFORMATION FOR THAT PURCHASE DOCUMNET NUMBER.
    THANKS IN ADVANCED.

    The main use of the selection-screen is to select screen in the back ground
    ex :    
    TABNAME
    IN THE ABOVE FIGURE  TABNAME IS THE FIELD AND THE BACK END IS   CREATED SCREEN IN THE BACK END
    THIS SCREEN CREATION WE CAN USED THE SCREEN SELECTION

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

Maybe you are looking for

  • Home sharing does not work with iTunes 12

    I have been using home sharing with iTunes a lot, mainly to stream TV shows from my Mac Pro (2008) to my Apple TV (3rd Gen). But after installing Yosemite and iTunes 12 it doesn't work any longer. My Apple TV finds the iTunes Library, but can't conne

  • Powerbook G3 running 8.6 Ethernet to iMac running 10.4

    For the past several years, I have been mounting my PB3 hard drive on my iMac by using an Ethernet cable hard wired between the two and addressing the PB3 as a server from the iMac. Up until this past weekend, I was running 10.2.8 on the iMac. I upgr

  • Imported Reason audio not syncing with GB metronome

    I'm working on a project in GarageBand that is built around a piano part that was exported from Reason. The Reason audio track is 128 BPM, so I created a GarageBand project that was the same tempo. The piano slows down at the very end of the song, so

  • Touch won't charge

    My touch completely ran out of battery, so i plugged it into my computer. When i did so, the computer told me that there was a malfunctioning device that was detected, so i looked for the solutions it gave me. All it told me to do was to reconnect th

  • Find: hard link count is wrong for /:

    I am facing this problem. I just installed arch linux on one of my box and I have got this error message if I do find on the root: find: WARNING: Hard link count is wrong for /: this may be a bug in your filesystem driver. Automatically turning on fi