Displaying Error message in a pop-up window

Hi,
I need to validate the entry in a field on the selection screen and display the error message if the entry does not exists in the corresponding table.  <b>But the error message should be displayed in a pop-up such  that on continuing , the selection screen re-appears.</b>
How can i  display the error message in a pop-up window  with a single continue button?
<b>( i dont want to display the yes and no options as in case of fm popup_to_confirm etc.)</b>
thanks,
vartika

Hi,
Try this:
tables : BSIS.
parameter : bukrs like bsis-bukrs.
at selection-screen.
if bukrs eq '1000'.
   message 'Co. Code is not allowed' type 'I'.
endif.
Thanks,
Sri.

Similar Messages

  • Issue error message in a pop-up window

    Hii experts,
    How do I issue a message in a pop-up window in a normal report programming? For eg if i click on particular box in SAP graphic, a message window should come up with some information about that box.
    Thanx in advance

    Hi ,
    First track the event let say at line selection(in case of reports)
      then use 
    CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
          EXPORTING
            endpos_col         = 80
            endpos_row         = 25
            startpos_col       = 1
            startpos_row       = 1
            titletext          = text-300
      IMPORTING
        CHOISE             =
          TABLES
            valuetab           = l_return
         EXCEPTIONS
           break_off          = 1
           OTHERS             = 2
    Append the errors in l_return.
    l_return is of type below:
    DATA: l_return LIKE bapireturn OCCURS 0 WITH HEADER LINE.
    Thanks & Regards
    Ruchi Tiwari

  • Code to get error message in small pop up window.

    Hi,
    I got this code to get error message in pop up window. But this code is giving null pointer exception.
    Can any one tell what is the exception. and how to solve it.
    IWDConfirmationDialog dialog;
              String dialogText = "Duplicate value ";
              dialog = wdComponentAPI.getWindowManager().createConfirmationWindow(
              dialogText,
               wdControllerAPI.getControllerInfo().findInEventHandlers("ok"),
              "ok"
              dialog.open();
    Regards,
    H.V.Swathi

    Hi,
    Most probably you are getting the null pointer exception because of wdControllerAPI.getControllerInfo().findInEventHandlers("ok") as WD is not able to find the ok event handler.
    I guess you have already defined the "ok" event handler in your view .
    Considering that the name of the event handler is "ok" , you can make the following change in
    your code
    confirmDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(dialogText,wdThis.WD_EVENTHANDLER_ON_ACTION_OK, "ok");
    Regards,
    Ashish

  • Error message as a pop up

    Hello All,
    I have a requirement to show an error message in a pop up window. This cannot be a information message.
    i also tried using the function module POPUP_DISPLAY_MESSAGE but it does not seem to work. I want the processing to stop here, but the processing continues with this FM even if the message type is E.
    Please let me know if there is any other method.
    Thank you
    Usha

    Hi Usha,
    when you use error message than sy will take care that not to proceed further.
    when you using FM to show it as popup,
    you have to handle not to proceed the control using flags or exit statements.
    -Anu

  • ITunes displays -50 error message when syncing iPod on windows 7

    I am trying to sync my ipod and appears this error
    iTunes displays -50 error message when syncing iPod

    Hey ermides,
    Thanks for the question. The following resource provides information if you are receiving a -50 error message when syncing:
    iTunes displays -50 error message when syncing iPod on Windows XP - Apple Support
    http://support.apple.com/en-us/ts1539
    Thanks,
    Matt M.

  • Display error message in EXIT_SAPLMRMP_010

    Dear expert,
    Our requirment is that:
    We want to display a  modal dialog screen for user input some other detail data when click 'Post' in MIRO, and update these data to a an add-on table. There will be a 'CHECK' button on the dialog box for checking the data which user input. 
    We found the customer function EXIT_SAPLMRMP_010 can do the job. we create our dialog screen, and call it in EXIT_SAPLMRMP_010.
    We write some code like " MESSAGE 'xx is a required field' type 'E' '' in PAI modoule of dialog screen.
    but when the program reach the code  'Message  XX',   no any error message pop-up, the modal dialog screen automatically closed and back to MIRO screen. the error message can be found when click button 'MESSAGE' on MIRO screen.
    it seems that the sytem prevent the error messages raised, and collect them into the "message box" of MIRO screen.
    But the we want to display the error message directly in the dialog window or pop-up the message without dialog window close.
    is there any one how to do that?
    thanks very much

    Hi,
    have a look at this thread:
    BADI or Userexit for MIRO and FB60 for displaying an error message
    You can try something with fm 'MRM_PROT_FILL'.
    In this way the "messages" button of the status bar will show a red traffic light indicating that you have error messages.
    Best regards.
    Edited by: Pablo Casamayor on Aug 19, 2009 8:35 AM

  • Display error message in Campaigns - Planning profile templates

    Hi experts,
    I am facing an issue while trying to display error message in plannign profile template for campaigns.
    Issue is that even though i am able to add the error message to the parent campaign message container, it is not being displayed on the UI screen  message area(refresh is not happening) until the next screen refresh happens through another event like change of planning profile drop down / f2 pop up being closed on the message area etc.
    I need to display the error message as soon as it gets added in the global message container.Is there any way that i can refresh the UI from this method which would display my error message? I think round trip might work here
    I am tryign to add the message in the method IF_FLEX_DATA_PROVIDER~MODIFY_DATA of component KFPED_LAYOUT .
    But it doesn't get reflected in the message area.
    Appreciate a lot if anybody can help me out here.
    Thanks
    Swapna.

    Closing the thread. Resolved myself .
    Thanks.
    Swapna V.

  • Error message while syncing contacts with windows address book

    getting error message while syncing contacts from windows address book cradsstring something

    Hello,
    The complete and exact error message is always more helpful than some small snippet something. Please provide that, and maybe we can make some better guesses for you.
    Thanks and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • As to display error message details

    Hi Experts,
    I would like to display error message's details via clicking on Details link as below, more information shall be displayed in a popped up dialog box. How can I implement it and add a link under Details word?
    Kind Regards
    Andie

    Hi Andie,
    Try using CRM_MESSAGE_COLLECT function module.
    Sample code
    CALL FUNCTION 'CRM_MESSAGE_COLLECT'
               EXPORTING
                 iv_caller_name = 'ORDERADM_H'
                 iv_msgno       = sy-msgno
                 iv_msgid       = sy-msgid
                 iv_msgty       = sy-msgty
                 iv_msgv1       = sy-msgv1
                 iv_msgv2       = sy-msgv2
                 iv_msgv3       = sy-msgv3
                 iv_msgv4       = sy-msgv4
                 iv_docnumber   = iv_guid.
    Best Regards,
    Dharmakasi.

  • I have been using CS6 for two years without incident.  Suddenly the Media Encoder stops working, showing APPCRASH and displaying error message about WatchFolder.dll - I tried uninstalling and re-installing to no avail - can anyone help

    I have been using CS6 for two years without incident.  Suddenly the Media Encoder stops working, showing APPCRASH and displaying error message about WatchFolder.dll - I tried uninstalling and re-installing to no avail - can anyone help?

    Hi Mylenium,
    Thanks for your response.
    Here is the error information showing up:
    Problem signature:
      Problem Event Name: APPCRASH
      Application Name: Adobe Media Encoder.exe
      Application Version: 6.0.0.382
      Application Timestamp: 4f62fcf1
      Fault Module Name: WatchFolder.dll
      Fault Module Version: 6.0.0.382
      Fault Module Timestamp: 4f62f37f
      Exception Code: c0000005
      Exception Offset: 0000000000007899
      OS Version: 6.1.7601.2.1.0.768.3
      Locale ID: 4105
      Additional Information 1: 9a62
      Additional Information 2: 9a620826d8ae4a2fa8b984b39290a503
      Additional Information 3: 1fb3
      Additional Information 4: 1fb304eee594288faeefbf1271b70d37
    I am using a PC Windows 7

  • ITune display error -53 when sync ipod on Windows 8

    I'm try to sync new music to my iPod by iTune. After connect iPod to computer it will shown message "iPod have problem choose repair harddisk"   After repair finished my music on ipod all lost. After restore by iTune message shown -53 . Can I fix it?

    Hey ermides,
    Thanks for the question. The following resource provides information if you are receiving a -50 error message when syncing:
    iTunes displays -50 error message when syncing iPod on Windows XP - Apple Support
    http://support.apple.com/en-us/ts1539
    Thanks,
    Matt M.

  • How can I get past the error messages that keep popping up when I try to download Flash player?

    How can I get past the error messages that keep popping up every time I try to download anything?

    Hi
    Could you please let us know more about the error messages that you got?
    The following page has information on the error messages: http://helpx.adobe.com/content/help/en/flash-player/kb/installation-problems-flash-player- windows.html
    Thanks,
    Sunil

  • Display error message in batch job log

    Hello
    I have a batch job running and I have an error coming during some validation logic.
    The problem is I need to continue the batch job when this error message comes and it should not cancel the batch job as it is doing currently but display that error message in batch job log, there are more similar error messages coming in job log and job gets finished, but when my error message comes job gets cancelled.
    I cannot give it as info message as it will give wrong idea about message type.
    Is there any FM by which we can add message in job log?

    Sanjeev I have done that but problem is I do not want to give that as Information message but Error message only and continue processing.
    If you see in screenshot 3rd message is given by me as information and you can see error messages also 6th and 7th and job continued till it is finished
    Basically I want that 'I' to be displayed as 'E'.
    Display error message in batch job log 

  • How to display error message ??

    Hi,
    I have a BDC program to upload data from an excel sheet. I could see that some records of data fail to pass and hence after my bdc run i would like to display error message for the failed records as follows:
    costcenter:
    cost element:
    fiscal year:
    etc etc
    is it possible ?? how to do that ? please explain in detail.
    for ur reference my program is pasted below.
    thanks
    *& Report  ZBDC_BUDGET_UPLOAD
    REPORT  ZBDC_BUDGET_UPLOAD.
    types: begin of tdata,
             rec(150) type c,
           end of tdata,
           begin of tmtgp,
             costcent LIKE CCSS-KOSTL,
             costelem LIKE CCSS-KSTAR,
             fisyear LIKE CCSS-GJAHR,
             jan(10),
             feb(10),
             mar(10),
             apr(10),
             may(10),
             jun(10),
             jul(10),
             aug(10),
             sep(10),
             oct(10),
             nov(10),
             dec(10),
           end of tmtgp.
    data: idata type table of tdata with header line.
    data: imtgp type table of tmtgp with header line.
    Data : fieldval(10) type c.
    selection-screen begin of block b1 with frame title text-001.
    parameters: p_file type localfile default 'C:\budget_data_csv.csv'.
    selection-screen end of block b1.
    include zbdcrecx1.
    at selection-screen on value-request for p_file.
    call function 'KD_GET_FILENAME_ON_F4'
            exporting            static    = 'X'
            changing            file_name = p_file.
    start-of-selection.
    perform upload_data.
    loop at imtgp.
    Write imtgp-fisyear to fieldval.
    perform open_group.
    perform bdc_dynpro      using 'SAPLKPP0' '1000'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'KPP0B-VALUE(04)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'KPP0B-VALUE(04)'
                                  fieldval.
    Write imtgp-costcent to fieldval.
    perform bdc_dynpro      using 'SAPLKPP0' '1000'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'KPP0B-VALUE(06)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'KPP0B-VALUE(06)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP0' '1000'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'KPP0B-VALUE(09)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-costelem to fieldval.
    perform bdc_field       using 'KPP0B-VALUE(09)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP0' '1000'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'KPP0B-VALUE(04)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=CSPB'.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-jan to fieldval.
    perform bdc_field       using 'Z-BDC03(01)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(02)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-feb to fieldval.
    perform bdc_field       using 'Z-BDC03(02)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(03)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-mar to fieldval.
    perform bdc_field       using 'Z-BDC03(03)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(04)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-apr to fieldval.
    perform bdc_field       using 'Z-BDC03(04)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(05)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-may to fieldval.
    perform bdc_field       using 'Z-BDC03(05)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(06)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-jun to fieldval.
    perform bdc_field       using 'Z-BDC03(06)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(07)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-jul to fieldval.
    perform bdc_field       using 'Z-BDC03(07)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(08)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-aug to fieldval.
    perform bdc_field       using 'Z-BDC03(08)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(09)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-sep to fieldval.
    perform bdc_field       using 'Z-BDC03(09)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(10)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-oct to fieldval.
    perform bdc_field       using 'Z-BDC03(10)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(11)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-nov to fieldval.
    perform bdc_field       using 'Z-BDC03(11)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(12)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    Write imtgp-dec to fieldval.
    perform bdc_field       using 'Z-BDC03(12)'
                                  fieldval.
    perform bdc_dynpro      using 'SAPLKPP2' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'Z-BDC03(12)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=CBUC'.
    perform bdc_transaction using 'KP06'.
    perform close_group.
    endloop.
    form upload_data.
    data: filename type string.
    clear idata.
    refresh idata.
    filename = p_file.
    call function 'GUI_UPLOAD'
        exporting            filename        = filename
        filetype        = 'ASC'
        tables            data_tab        = idata
        exceptions            file_open_error = 1
        file_read_error = 2
        no_authority    = 6
        others          = 17.
        check sy-subrc = 0.
        loop at idata.
        clear imtgp.
        split idata at ',' into imtgp-costcent imtgp-costelem imtgp-fisyear
    imtgp-jan imtgp-feb imtgp-mar imtgp-apr imtgp-may imtgp-jun imtgp-jul
    imtgp-aug imtgp-sep imtgp-oct imtgp-nov imtgp-dec.
        append imtgp.
        endloop.
    endform.

    check the below code,.,
    DATA : t_bdcmsgcoll TYPE STANDARD TABLE OF bdcmsgcoll WITH HEADER LINE.
      CALL TRANSACTION '<DELIVERYTRANSACTION>' USING t_bdctab
                              mode 'N'
                              MESSAGES INTO t_bdcmsgcoll.
      DESCRIBE TABLE t_bdcmsgcoll LINES g_lines.
      READ TABLE t_bdcmsgcoll INDEX g_lines.
      IF t_bdcmsgcoll-msgtyp = 'S' AND
         t_bdcmsgcoll-msgid = <Msg id> AND
         t_bdcmsgcoll-msgnr = <Msg number>.
    * Trap your Call Transaction messages
        t_success-deliverynumber = t_bdcmsgcoll-msgv1.
    * You can format the message returned by call transaction using function 'FORMAT_MESSAGE' which will return g_mesg
        t_success-message = g_mesg.
        APPEND t_success.
        CLEAR  t_success.
      ELSE.
    * If there an Error-Do this..
        READ TABLE t_bdcmsgcoll WITH KEY msgtyp = 'E'.
        IF sy-subrc = 0.
    * Format your message using FORMAT_MESSAGE "FM
         CLEAR g_mesg.
         t_error-msg   = g_mesg_incl.
         APPEND t_error.
         CLEAR  t_error.
       ENDIF.
    ENDIF.
    * Clear for next run
      CLEAR: t_bdcmsgcoll,
             t_bdctab.
      REFRESH: t_bdcmsgcoll[],
               t_bdctab[].

  • Prb display error message while creating PR at ME51n in ME_PROCESS_REQ_CUST

    Hi All,
    I have this requirement to check the cost center availability in PR screen (ME51n).
    If cost center in the Account assignment tab is not empty, display error message  and not able to create the PR.
    With my code below, it doesn't triggered the error message and PR created.
    Could anyone help?
    METHOD if_ex_me_process_req_cust~process_account.
    DATA: w_account_ref TYPE exkn.
    w_account_ref = im_account_ref->get_data( )
    IF w_account_ref-kostl IS NOT INITIAL.
      MESSAGE e303(ME) WITH text-001 w_account_ref-kostl text-002.
    ENDIF.
    ENDMETHOD.
    Thank you.
    SW

    Hi,
    You have to use definition MMPUR_MESSAGE 'E'  ME 303   text-001 w_account_ref-kostl text-002.
    This will throw the error during check and save instead of message e303(me) .
    Hope it helps.
    Sujay
    Edited by: Sujay Venkateswaran Krishnakumar on Oct 5, 2010 2:54 PM

Maybe you are looking for

  • Acrobat stopped and doesn't recognize serial nr. any more

    I have design Suite Standard installed on Windows 7 (62-bit). Acrobat suddenly stopped working. Everything else in the Suite works fine. Several reboots didn't help, so I uninstalled it and tried to reinstall (clicking on only Acrobat X). When I inpu

  • Beep / Click (with lots of troublshooting info)

    Concerning an Alum. Powerbook 1.5 Ghz (the 1.5/1.33 series); 2 gig ram; OS 10.5.6; HD only months old from OWC = Hitachi HTS541612J9AT00 (Journaled HFS+): I have the beep / click sound coming from around my HD on the powerbook (I have read much about

  • Installing iTunes on slave drive

    i want to install itunes on my d: drive(where all my msuic's stored anyways)to keep my c: drive less crowded. when i do this, itunes seems to copy all my music onto my c drive anyhow. can snyone tell me how to rectify this...it would be most grealtly

  • Exception in rpdata after upgrade from SP11 to SP18

    Hi All, after updating Web AS and ADS from NW04 SP11 to SP18 I get the following error when testing the ADS webservice via http://:/AdobeDocumentServices/Config. com.sap.engine.services.ejb.exceptions.BaseEJBException: Exception in method rpData.    

  • Codes to open Video or Documents from Library to open in new tab by default

    Hi  I am using Sharepoint 2013 Office 365 web version to build and edit the TeamSite.  Is there a way using SharePoint Designer or Scripts to Open the Video or Documents from the Document/Asset Library to open them in new tab or window when clicked?