Message before selection screen.

Dear Experts,
Kindly help in knowing how to display a message in small pop-up, before a Tcode takes to the selection screen.
Regards
Jogeswara Rao

Hi,
You just need to add following code in the program associated with your TCODE, i.e. in Load-of-PROGRAM event.
***CODE*****
REPORT  ZTEST12.
PARAMETERS a1 .
Load-of-PROGRAM.
CALL FUNCTION 'C102_POPUP_TO_CONFIRM'
  EXPORTING
  TITLEBAR                    = ' '
    TEXT_QUESTION               = 'POPUP'
  TEXT_BUTTON_1               = '1'
  ICON_BUTTON_1               = ' '
  I_ICON1_INFO                = ' '
  TEXT_BUTTON_2               = '2'
  ICON_BUTTON_2               = ' '
  I_ICON2_INFO                = ' '
  TEXT_BUTTON_3               = '3'
  ICON_BUTTON_3               = ' '
  I_ICON3_INFO                = ' '
  TEXT_BUTTON_4               = '4'
  ICON_BUTTON_4               = ' '
  I_ICON4_INFO                = ' '
  DEFAULT_BUTTON              = '1'
  DISPLAY_CANCEL_BUTTON       = 'X'
  START_COLUMN                = 25
  START_ROW                   = 6
IMPORTING
  ANSWER                      =
TABLES
  PARAMETER                   =
EXCEPTIONS
   TEXT_NOT_FOUND              = 1
   OTHERS                      = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
AT SELECTION-SCREEN OUTPUT.
**EndCode***
In the same way, you can call any Popup FM at same position..
It will be called before selection screen appears.
Thanks
Raghav M.
Edited by: Raghav Malhotra on Jun 3, 2011 6:34 AM

Similar Messages

  • Can we display a message before selection screen

    hi experts,
                   I need to give a message to user's to give information abt the selection screen .
    like select values between 1000 to 2000 only.
    date must be todays date.
    so how i can display a message before the selection screen is displayed

    try like this it may be useful for you.
    load-of-program.
    CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
      EXPORTING
       TITEL              = 'Selection screen info'
        TEXTLINE1          = 'Material no should be between 1000 and 2000'
       TEXTLINE2          = 'Plant should be 1000'
    *   START_COLUMN       = 25
    *   START_ROW          = 6
    start-of-selection.
    if you want some more fields to pass then search popup* fn module in se37 which can be useful 4 you.
    regards
    shiba dutta

  • Error Message in selection screen Status bar is getting truncated

    Hi Guys,
    Error Message in selection screen Staus bar is getting truncated (full message is not getting displayed).... can anybody tell me how to reslove this

    Hi
    Maimum we can give the error message length is 50 char. If you give more than that it will get truncated.
    What you can do this split 50 and 50 like that you can give 200 chnars.
    Data : Text1 type char50
              Text2 type char50
    If sy-surc ne 0.
    Message Text1 Text2  TYPE "E'' or 'S'
    endif.

  • Error message in Selection Screen

    Hi
    reference no (p_ref) is in my selection screen.
    If this field contains special characters (\ / : * ? " |, ) system must prompt  error message in selection screen. How to do this. Pls help me
    Regards
    Anbu

    after input form the user
    use if condtion
    and validate the field and through message.........
    Reward IF........
    Regards
    Anbu
    Edited by: Anbu B on Jun 17, 2008 8:04 AM
    Edited by: Anbu B on Jun 17, 2008 8:06 AM

  • How to show message on selection screen  status bar if alv is empty.

    Hi,
            Can anyone tell me how to show message on selection screen status bar when our final internal table or alv is empty .
           i am getting message on alv status bar, where no data is in alv but i want to stop it to selection screen and show message there only.
    Regards,
    Ranu

    Hi,
    After populating the final internal table do this check,
    if it_final [] is initial.
    message 'No data available' TYPE 'S' DISPLAY LIKE 'E'.
    exit.
    endif.
    This will be displayed in the selection screen itself
    Regards,
    Vikranth

  • AUTHORITY-CHECK before Selection-screen?

    Hi,
    i want to check the authority before the selection-screen. I do it in this way:
    AT SELECTION-SCREEN OUTPUT.
      AUTHORITY-CHECK OBJECT 'Z_REPORT'
               ID 'PROGRAM' FIELD SY-REPID
               ID 'ACTVT'   FIELD '16'. "Ausführen
      IF SY-SUBRC <> 0.
        MESSAGE E010 WITH 'Keine Berechtigung für Programm: '
        SY-REPID.
      ENDIF.
    But the selection appears without any parameters.
    Is there a way to check without the selection-screen?
    thanks.
    regards, Dieter

    Hi Dieter,
    Please check the below code for at selection screen authorization check.
    Handling selection screen events
    AT SELECTION-SCREEN ON p_carrid.
      IF p_carrid IS INITIAL.
        MESSAGE 'Please enter a value' TYPE 'E'.
      ENDIF.
      AUTHORITY-CHECK OBJECT 'S_CARRID'
                          ID 'CARRID' FIELD p_carrid
                          ID 'ACTVT'  FIELD '03'.
      IF sy-subrc = 4.
        MESSAGE 'No authorization for carrier' TYPE 'E'.
      ELSEIF sy-subrc <> 0.
        MESSAGE 'Error in authority check' TYPE 'A'.
      ELSE.
        IF sy-ucomm = 'ONLI'.
          CALL SELECTION-SCREEN '0500'.
        ENDIF.
      ENDIF.
    Regards,
    Md Ziauddin

  • Custom error messages in selection-screen

    Hello All,
    I have one query. I have developed a vendor aging report. In the SELECT-OPTIONS, there are 5 fields namely company code, business area, vendor group, vendor code and cash management group. What the user wants is if he enters any invalid value in any of the 5 fields, custom error message should be displayed like 'invalid company code' etc. I think we have to write these messages in 'at-selection-screen' event. Can u help me out with a sample code snippet w.r.t the above program? I have written the code as:
    AT SELECTION-SCREEN.
      IF S_BUKRS ne BSIK-BUKRS.
      MESSAGE e000. 'invalid company code' TYPE 'E'.
      ENDIF.
    But not giving the correct output.i.e. even if I enter a valid company code, the error message is displayed. Can u help me in solving this problem?
    Thanks and Regards,
    Satvik
    Edited by: Satvikpanchal on Jul 22, 2011 9:42 AM

    Hi,
      use AT SELECTION-SCREEN on S_BUKRS-low.
    Use select query for checking the Company code in T001 table check the
    Company code already exist or not? If it is not there show the message.
    Code like
    AT SELECTION-SCREEN on S_BUKRS-low.
    select single bukrs into lv_bukrs
          from T001 where bukrs = s_bukrs-low.
    if sy-subrc NE 0.
    MESSAGE e000. 'invalid company code' TYPE 'E'.
    ENDIF.
    i think you company code is select option so you have to check S_BUKRS-high also.
    using the event AT SELECTION-SCREEN on S_BUKRS-high.
    Regards,
    DHina..

  • How to display a message in Selection Screen

    Hi,
    I am inserting values into a system defined table by using a report.
    For this i have created one selection screen by using all the table fields and i am inserting the values which user has given in selection screen by using Insert statement.
    Now i want a message in status bar of selection screen when Insert command is success.
    Please give me some help on this
    Thanks
    Venkatrami Reddy B

    Hii
    This is the Way...
    AT SELECTION-SCREEN.
      <<FOR VALIDATIONS>>
    <b>START-OF-SELECTION.</b>
    INSERT <<statement>>.
    IF SY-SUBRC EQ 0.
    <b>MESSAGE 'Record inserted'  type 'S'.
    LEAVE LIST-PROCESSING.  "Now the message appears in Selection screen
    </b>
    ENDIF.
    <b>REWARD IF HELPFUL.</b>

  • Hi Experts, a question about messages in selection screen? thank you!

    Hi Experts,
    I have a selection screen and two parameters on it, I need to check if the entries exist if the fields is filled in, if it doesn't exist I need to issue a warning message, but if the two parameters are both filled in and the related entries both don't exist, how can I handle this situation? what I mean is that I want to display the two warnings at the same time(like below), now I only can display one warning, can anyone help me on this? thank you much!
    You are not authorised for this purchasing organisation
    Plant: invalid entry
    Purchasing organisation: invalid entry
    No valid record selected
    Kind regards
    Dawson

    Hi Dawson
    As far as i get from your disciption of the problem, i get that: -
    (a) You want to check that both the fields are filled or not
    (b) If they are filled, then you want to check if in database there exists any record pertaining to them.
    Correct me if i am wrong.
    If this is correct, then you will have to make use of nested if condtions to diaplay the warnings.
    Like as follows: -
    If pa1 IS INITIAL and pa2 IS INITIAL.
      <your warning message>.
    ELSEIF pa1 IS INITIAL and pa2 IS NOT INITIAL.
      <your warning message>.
    ELSEIF pa1 IS NOT INITIAL and pa2 IS INITIAL.
      <your warning message>.  
    ELSEIF pa1 IS NOT INITIAL and pa2 IS NOT INITIAL.
      <try matching it with the database records>.
      <your warning message>.
    ENDIF.
    As far as i know, the 2 warning messages cannot be issued as they appear in the status bar of the current screen. SO you will have to put them in if condition only and display the approriate warning .
    Hope this solves your problem.
    Regards
    Gaurav.

  • Pop up before selection screen

    hi all,
    i need to give a pop up screen before the selection screen which will take the value for the number of records to be displayed. how to do this ?
    thanks,
    Amit

    You could do something like this.
    report zrich_0001.
    data: value1 type spop-varvalue1.
    data: answer type c.
    parameters: p_check type c.
    load-of-program.
    check sy-ucomm = space.
      call function 'POPUP_TO_GET_ONE_VALUE'
        exporting
          textline1            = 'Number of Records:'
    *   TEXTLINE2            = ' '
    *   TEXTLINE3            = ' '
          titel                = 'Number of Records'
          valuelength          = '5'
       importing
          answer               = answer
          value1               = value1.
    start-of-selection.
    But I really don't understand your requirement.  Why not ask for this value on the selection screen itself?
    Regards,
    Rich Heilman

  • Override Default Message before Selection

    Hi Experts...
    Is it possible to override the default message that is shown before selection in prompts.
    No Results
    The specified criteria didn't result in any data. This is often caused by applying filters that are too restrictive or that contain incorrect values. Please check your Request Filters and try again. The filters currently being applied are shown below.
    MONTH is equal to Jan
    and VERTCAL is equal to EU
    and GRP_CUST is equal to SNY
    and TYPE is equal to TnM
    Can this default message be overwritten ??
    Regards,
    Veena A

    Hi,
    1. Open Answers report
    2. Choose Results tab
    3. In Results tab choose No Results view
    4. In the No Results view you'll see text:
    Use the fields below to specify what should be displayed when this analysis returns no results
    Write something in the text field. This will aply when no data insted of:
    The specified criteria didn't result in any data. This is often caused by applying filters that are too restrictive or that contain incorrect values. Please check your Request Filters and try again. The filters currently being applied are shown below.
    I hope this is clearly enough.
    Regards,
    Goran
    http://108obiee.blogspot.com

  • MESSAGE to Select Screen : length

    I have a selection screen for a report in 46C.
    When I do a MESSAGE the message text is truncated ...seems to only allow 55 characters
    Is there a limit to the size of a message text area ?

    I like to use messages like GR016 which has four ampersand place holders....
    One can then do:
    message e016(gr) with
      'this is text part 1'
      'this is text part 2'
    'this is text part 3.
    etc., to get longer message displays.

  • Initial Message before login screen

    I am facing a problem,
    I need to display a message once before login screen, the message will be more than 200 characters I tried to use Alert and message builtin but the limitation was that only 200 characters can be displayed thru these builtins, therefore I am unable to display the message.
    How Can I do that ?

    You could null out the on-logon trigger and call your own Form which displays the message and the calls Logon built-in.
    Regards
    Grant Ronald
    Forms PM

  • Message Before Main Screen

    Hi Guys/Girls
    I have developed an executable program it works ok but I need to display an informative message box prior to the front screen being displayed to ask the user to do some pre-work before they execute the main program.
    Have any of you guru's done this - if so I would appreciate any help.
    Some small sample code would be even more helpful.
    Many thanks in advance.
    Raj
    Edited by: Alvaro Tejada Galindo on Jan 24, 2008 11:44 AM

    Have you a small example of how to use this especially returning the answer - sorry not sure how to use it.
    I'm using it like this but not gettiing anything back when I press No.
    DATA: v_ev_answer(3).
      CALL FUNCTION 'TR_POPUP_TO_CONFIRM'
        EXPORTING
         iv_titlebar                  = 'Pre Work Warning'
          iv_text_question            = ' Have you done your pre-work?    check documentation'
      IV_TEXT_BUTTON1             = 'Ja   '(D01)
      IV_ICON_BUTTON1             = ' '
      IV_TEXT_BUTTON2             = 'Nein '(D02)
      IV_ICON_BUTTON2             = ' '
      IV_WITH_CANCEL_BUTTON       = 'X'
      IV_START_COLUMN             = 10
      IV_START_ROW                = 6
    IMPORTING
         ev_answer                   = v_ev_answer.

  • Displaying error message while entering selection screen fields

    Moderator message: don't offer points
    hi experts...
    i generated a report.
    in that report, the selection screen fields are plant and material type..
    now my rqmt  is like this :
    if user enters any plant except '8210' in  the selection screen, then a pop up should appear like.. enter 8210 plant only, and the cursor should remain in the same screen allowing user to enter correct plant.
    and then same with the case of material type also..user should enter 'mcfe' material type only..
    im using message classes like this:
    if so_bwkey-low ne '8210' or so_bwkey-high ne '8210'.
      message i000(zts).
      endif.
    if so_mtart-low is not initial and so_mtart-high is not initial and so_mtart-low ne 'mcfe'
       or so_mtart-high ne 'mcfe'.
      message i001(zts).
      endif.
    with this logic, when i enter plant..it is prompting
    1) enter plant 8210 only..
    and then when i press enter key it is again prompting
    2)enter material type mcfe only..
    but iam not entering material type here..
    i want to get 2nd error message if and only if i enter material type..
    help me regarding this issue..
    <<text removed>>
    thanks in advance,
    harini.
    Edited by: Matt on Feb 9, 2009 10:14 AM

    Hi,
    Use Error type message in SELECTION SCREEN EVENT.It will place the cursor in the relevant Field.
    At SELECTION-SCREEN ON SO_BWKEY-Low.
    if so_bwkey-low ne '8210' .
    message E000(zts).
    endif.
    At SELECTION-SCREEN ON SO_BWKEY-HIGH.
    if  so_bwkey-high ne '8210'.
    message E000(zts).
    endif.
    At SELECTION-SCREEN ON so_mtart-LOW.
    if so_mtart-low is not initial and  so_mtart-low ne 'mcfe' .
    message E001(zts).
    endif.
    At SELECTION-SCREEN ON so_mtart-HIGH.
    if so_mtart-high is not initial 
    and so_mtart-high ne 'mcfe'.
    message E001(zts).
    endif.
    This will resolve the issue..
    Regards,
    Gurpreet

Maybe you are looking for

  • KE30-COPA Group Sales Margin Analysis

    HI All, We have an issue with COPA Group Sales Margin analysis report, (KE30) .We are not able to see the journal entries for revenue from GL,the journals created thru FB50 and these entries are showing up in KE24-Dispaly actual line item report,That

  • Need Help Converting movie files!!!!

    I created a 66mb movie in IMovie 08 that I need to save and convert to be less than 50mb and be view by Windows Media Player. Any help will be greatly appreciated. Amy

  • Exporting PDFs?  Replaces images.

    I'm creating a newsletter that includes several pictures on different pages.  I export the Pages document as a PDF and during that transition it copies some of the images and replaces existing images on top.  Help!!

  • Want to learn Report Painter.

    Dear All, Can anyone tell me what Report painter is and how is it useful and how to use, Also the PROS & CONS in respect to the standard Classical/Interactive/ALV/Query reports. Waiting for your valuable feedback. Thankx Raj

  • Oracle Retail Allocation(14.0) is not opening after installation.

    Hi All, I have installed Oracle Retail Allocation(14.0) successfully. When I am trying to access the home url: http://192.168.0.225:18010/alloc14/faces/pages_home getting following error: ==============================================================