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>

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

  • How to display error documents in selection screen level

    Hi,
      Currently Iam doing Smartforms for journal voucher. Iam taking multiple documents as input and displaying relavent item data for each.
    Now, my requirement is i want to display invalid document numbers at selection screen level. For example there are 30 invalid document number i want to display them before start-of-selection.
    Thanks in advance,
    Regards,
    Chinna..

    i have a query......say i am using a selet-options s_ebeln for ekko-ebeln.
    i want to display error messages for
    1>lower limit cant be greater than upper limit?
    2>for special cahracters given in the select-options fields.....etc...
    now when i am writing the code......
    if s_ebeln-low gt s_ebeln-high.
    message e001.
    it is showing SAP's message not mine.
    but ....if my s_ebeln-high field is 0.
    then my message is showing.
    pls give me the codes for these?

  • How to display list in Agent Selection Screen?

    Hi,
    I am using DISPATCH method in Agent Selection screen ( obj. type WF_TASK ).
    In description it says that this method could display a list of users but
    in reality it displays only one item.
    If anyone was able to display a list would you share how to do it?
    Thank you.

    I think you will need to give more information. What does your binding look like, what are the possible agents for the task you give in the binding? This last one if you get a list or search functionality.
    Regards,
    Martin

  • How to display error message on the screen

    I am new to WD world and need all possible steps to resolve the following issue.
    I need to display the error message on the screen if any required field is empty when user click on SAVE button.
    I have set the attribute GO_MESSAGE_MANAGER and check the both box for  PUBLIC and REFTO and set the associated type IF_WD_MESSAGE_MANAGER under COMPONENTCONTROLLER.
    Under the method of COMPONENTCONTROLLER set the value WD_THIS-GV_NAV_FORBIDDEN = IV_NAV_FORBIDDEN. Which is type IMPORTING of associated type WDY_BOOLEAN.
    GV_NAV_FORBIDDEN has been set to attribute WDY_BOOLEAN in the COMPONENTCONTROLLER.
    Under the ACTION (on SAVE button) of my default view (VW_DEFAULT) I am doing the following.
    IF lv_f_name IS INITIAL
        CALL FUNCTION 'BALW_BAPIRETURN_GET2'
          EXPORTING
            type   = 'E'
            cl     = 'HRRCF0002'
            number = '020'
          IMPORTING
            return = ls_return.
        lv_message = ls_return-message.
    NEED TO PUT CODE TO PASS IT ON
    ENDIF.

    The thing I can not figure out is the input parameter of this call. My CONTEXT has a node1->node2->node3->f_name.
    CALL METHOD lo_message_manager->report_attribute_error_message
      EXPORTING
        message_text              = lv_message
        element                   = HOW WIILL YOU FIND THE VALUE OF THIS
        attribute_name            =
       params                    =
       msg_user_data             =
       is_permanent              = ABAP_FALSE
       scope_permanent_msg       = CO_MSG_SCOPE_CTXT_ELEMENT
       msg_index                 =
       cancel_navigation         =
       is_validation_independent = ABAP_FALSE     .
    wd_comp_controller->set_navigation_forbidden( iv_nav_forbidden = abap_true ).

  • 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

  • How to accept multiple attachments on selection screen?

    Hi All,
    I need to know how to accept multiple attachments on selection screen and send them as email to external system (outlook).
    Basically, my req is to send a common email with attachments to certain users. These users are displayed in ALV. User will select ALL or specific user from ALV and send an email with message entered on selection screen.
    I used text editor control to input message body. I need to know how to accept attachments and send them.
    Appreciate any inputs.
    Thanks,
    SKJ

    SAP uses a nifty little button called 'Object Services' on ME23N (top left) which you can use to attach documents to business objects.
    http://help.sap.com/saphelp_nw70/helpdata/EN/be/3fe63659241157e10000009b38f889/frameset.htm
    It's a complicated way of doing it but might give you extra functionality in the long run.

  • How to give error message for the screen element text field when wrong i/p

    How to give error message for the screen element text field when wrong i/p
    when wrong input given
    eg. 
    I have a text box with SBOOK-CARRID
    so when user give wrong entry in text box i.e LG
    then I should give some error stating that the the input is invalid or not available ,
    now it showing the error of standard messages,
    i want manual message to be displayed when error comes.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    Hi all,
    Thank you for your valuable reply,
    but the thing is that its a screen field,
    i.e text box not a selection screen
    i created in screen layout
    with name sbook-carrid
    now i want to get error message display if wrong i/p is given
    thank you.
    Regards,
    Jagrut bharatkumar Shukla,

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

  • 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

  • How to display a message in an audit report?

    hello all,
    i would like to ask how do display a message in an audit report.  here is my code...
    CALL TRANSACTION tcode USING i_bdcdata
                            MODE c_n
                            MESSAGES INTO i_error2.
    IF sy-subrc EQ 0.
    ENDIF.
    CLEAR i_error2.
    LOOP AT i_error2.
      IF i_error2-msgtyp EQ c_e.
        MOVE v_pernr TO i_bdcerror2-pernr.
        MOVE c_infotype TO i_bdcerror2-infty.
        MOVE 'Error' TO i_bdcerror2-msgtype.
    <b>    SELECT SINGLE text
          INTO v_msgtxt
          FROM t100
          WHERE sprsl = i_error2-msgspra
          AND arbgb = i_error2-msgid
          AND msgnr = i_error2-msgnr.
        MOVE v_msgtxt TO i_bdcerror2-msgtxt.</b>
        APPEND i_bdcerror2.
      ENDIF.
    ENDLOOP.
    DESCRIBE TABLE i_bdcerror LINES v_bdcerrors.
    IF v_bdcerrors <> 0.
      SKIP 1.
      WRITE: 'BDC Error Report'.
      SKIP 1.
      WRITE: 'PERNR',
             'INFOTYPE',
             'MESSAGE TYPE',
             'MESSAGE TEXT'.
      ULINE.
      LOOP AT i_bdcerror.
        WRITE: / i_bdcerror-pernr,
               13 i_bdcerror-infty,
               22 i_bdcerror-msgtype,
               35 <b>i_bdcerror-msgtxt</b>.
      ENDLOOP.
    ENDIF.
    the message text that i was getting contains &1, &2 and so on.  how would i be able to replace it with the original value?
    thanks!
    -ann

    After calling the transaction, this is what I do.
    a) Call the function module, <b>MESSAGE_TEXT_BUILD</b> and pass the following values from <b>BDCMSGCOLL</b> or the internal table where you collect the messages.
       i) MSGID
      ii) MSGNR
    iii) MSGV1
      iv) MSGV2
       v) MSGV3
      vi) MSGV4
    There is no need to fetch data using select from table t100.
    It builds the message and returns in MESSAGE_TEXT_OUTPUT which can be then displayed to user.
    Regards,
    Subramanian V.

  • How to display error message in Shopping Cart?

    How to display error message in Shopping Cart and stop the shopping cart for further processing? I try MESSAGE w001(zshop) or MESSAGE e001(zshop). But it is causing run-time error.

    Hi Paul,
    In the DOC_CHECK or DOC_SAVE BADI, you have a global internal table named et_messages. The structure of this table is 'bbp_smessages_badi'. You can append your error message here by inputting the message type, ID and number. The message type is either 'E' for error or 'W' for warning and the number would depend on your message class(ID). You will be able to see the error message on top of the screen, can be a red or yellow highlight depending on your appended message. I don't think creating the error message via the MESSAGE syntax will be successful, maybe this is why you are getting a runtime error.
    Regards,
    Noel

  • 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 default date values in Selection Screen

    Hi everyone,
    I would like to display the 1st day of the previous month into the I_GSTRP-LOW field and the last day of the current month into the I_GSTRP-HIGH field.
    For example, this in the 5th month of the year (May), therefore, in the selection screen it should appear like this:
    Basic Date: <u>01.04.2006</u>    to   <u>31.05.2006</u>
    How do i do it?
    *& SELECTION-SCREEN                                                    *
    SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS:
      I_AUFNR FOR AFIH-AUFNR,                           "ORDER NUMBER
      I_GSTRP FOR AFKO-GSTRP,                           "BASIC DATE
      I_BUDAT FOR AUFM-BUDAT,                           "POSTING DATE
      I_IWERK FOR AFIH-IWERK DEFAULT '6010' OBLIGATORY, "PLANNING PLANT
      I_ARBPL FOR CRHD-ARBPL,                           "WORK CENTER
      I_ERNAM FOR AUFK-ERNAM,                           "CREATED BY
      I_MATNR FOR RESB-MATNR,                           "MATERIAL
      I_KTEXT FOR AUFK-KTEXT.                           "EQUIPMENT
    SELECTION-SCREEN END OF BLOCK 1.

    Here is the code to populate default values,as per your requirement.
    data : V_date type sy-datum,
           v_month(2) type c,
           v_low_value(8) type c,
           v_high_value(8) type c,
           v_month1(2) type n,
            V_NO_OF_DAYS type T009B-BUTAG,
           v_curr_month type T009B-BUMON,
           v_curr_year  type T009B-BDATJ.
           select-options : i_gstrp for sy-datum.
    initialization.      
    v_date = sy-datum.
    v_month1 = v_date+4(2) - 1.
    write v_month1 to v_month.
    concatenate v_date+0(4)
    v_month
    '01'
    into v_low_value.
    I_GSTRP-LOW = v_low_value.
    v_curr_month = sy-datum+4(2).
    v_curr_year  = sy-datum+0(4).
    CALL FUNCTION 'NUMBER_OF_DAYS_PER_MONTH_GET'
      EXPORTING
        par_month       = v_curr_month
        par_year        = v_curr_year
    IMPORTING
       PAR_DAYS        = V_NO_OF_DAYS
    concatenate sy-datum+0(6)
    V_NO_OF_DAYS
    into v_high_value.
    I_GSTRP-HIGH = v_high_value.
    I_GSTRP-sign = 'I'.
    I_GSTRP-OPTION = 'EQ'.
    APPEND I_GSTRP.
    regards
    srikanth

  • How to Add Push Button On Selection Screen

    Hi Experts,
    How to add Push button on Selection Screen.
    Points will b rewarded for useful help.
    Bohra.

    Hi,
    To create a pushbutton on the selection screen, you use:
    SELECTION SCREEN PUSHBUTTON [/]<pos(len)> <push>
    USER-COMMAND <ucom> [MODIF ID <key>].
    The [/]<pos(len)> parameters and the MODIF IF addition have the same function as for the formatting options for underlines and comments.
    <push> determines the pushbutton text. For <push>, you can specify a text symbol or a field name with a maximum length of eight characters. This character field must not be declared with the DATA statement, but is generated automatically with length <len>. The field must be filled before the selection screen is called.
    For <ucom>, you must specify a code of up to four characters. When the user clicks the pushbutton on the selection screen, <ucom> is entered in the UCOMM of the SSCRFIELDS interface work area. You must use the TABLES statement to declare the SSCRFIELDS structure. The contents of the SSCRFIELDS-UCOMM field can be processed during the AT SELECTION-SCREENevent.
    Ex.
    REPORT DEMO.
    TABLES SSCRFIELDS.
    DATA FLAG.
    SELECTION-SCREEN:
    BEGIN OF SCREEN 500 AS WINDOW TITLE TIT,
    BEGIN OF LINE,
    PUSHBUTTON 2(10) BUT1 USER-COMMAND CLI1,
    PUSHBUTTON 12(10) TEXT-020 USER-COMMAND CLI2,
    END OF LINE,
    BEGIN OF LINE,
    PUSHBUTTON 2(10) BUT3 USER-COMMAND CLI3,
    PUSHBUTTON 12(10) TEXT-040 USER-COMMAND CLI4,
    END OF LINE,
    END OF SCREEN 500.
    AT SELECTION-SCREEN.
    CASE SSCRFIELDS.
    WHEN 'CLI1'.
    FLAG = '1'.
    WHEN 'CLI2'.
    FLAG = '2'.
    WHEN 'CLI3'.
    FLAG = '3'.
    WHEN 'CLI4'.
    FLAG = '4'.
    ENDCASE.
    START-OF-SELECTION.
    TIT = 'Four Buttons'.
    BUT1 = 'Button 1'.
    BUT3 = 'Button 3'.
    CALL SELECTION-SCREEN 500 STARTING AT 10 10.
    CASE FLAG.
    WHEN '1'.
    WRITE / 'Button 1 was clicked'.
    WHEN '2'.
    WRITE / 'Button 2 was clicked'.
    WHEN '3'.
    WRITE / 'Button 3 was clicked'.
    WHEN '4'.
    WRITE / 'Button 4 was clicked'.
    WHEN OTHERS.
    WRITE / 'No Button was clicked'.
    ENDCASE.
    This example defines four pushbuttons on a selection screen that is displayed as a
    dialog box. The selection screen is defined in a statement chain for keyword
    SELECTION-SCREEN.
    If the text symbols TEXT-020 and TEXT-040 are defined as 'Button 2' and 'Button 4',
    the four pushbuttons appear as follows on the selection screen displayed as a dialog box.
    Regards,
    Bhaskar

Maybe you are looking for

  • Podcast won't load

    I apologize if this has already been addressed, I couldn't find anything. I have created a podcast at: http://www.thecreationshop.com/category/blog and built my first enhanced podcast with GarageBand. I believe I have done everything right because th

  • Standard BI reports are not displayed in Web UI

    Dear Experts, I have a requirement to get a report on activities based on category, employee responsible and planned activities. So i have used standard report - 0TPLB_0SAL_DS01_Q0005_1 - Activities by category and assigned BI logical system and crea

  • How to restore an effect on logic pro 9

    For accident i have deleted an efect called Wah and i dont know how to recover it or even where is the location. need a help from a expert.

  • Change Document Printed Status

    Hi All Is ther a way to change the status of a sales order to back to" Open" after it has been printed and the status of "Open - Printed" The reason is that sometimes the wrong customer is entered and only realised after the order is printed and then

  • How to enable manual ipod updates with itunes 7?

    Hi, I perviously had a problem with muisc being greyed out on my ipod due to me syncing the it with my library, I easily fixed the porblem to allow manual updates of single tracks in ipod options. Since then I have got a macbook and stopped using win