Error Message For Correct Input.

Hi,
Im generating Vendor Report I want to Dispaly the Error Message for Invalid Input.
If i give the Company Codes other than 1000,2000,3000, & 4000 it should give the Error
as Invalid Company code...But For Correct company code also it is giving Error...
I Created Error class 'YVENMSG'
and in my Program i called Erorr as follows
if sy-subrc IS  INITIAL.
MESSAGE e000(YVENMSG) .
ENDIF.
I dont know wr im wrong...
Plz help me on this...
Regards
Smitha

Hi Smitha
You declare as below :
*---- SELECTION-SCREEN
SELECTION-SCREEN BEGIN OF BLOCK b1.
SELECT-OPTIONS : s_werks FOR vbap-werks .                 "Plant
SELECTION-SCREEN END OF BLOCK b1.
*Selection Screen validation
AT SELECTION-SCREEN .
  IF s_werks-low IS NOT INITIAL.
    SELECT SINGLE werks            "Plant
    FROM t001w
    INTO s_werks-low
    WHERE werks = s_werks-low
    and werks in ( '2000','3000','4000' ).
    IF sy-subrc NE 0.
      MESSAGE e000 WITH text-t48.
    ENDIF.
  ENDIF.
if its a parameter just replace s_werks as p_werks
Edited by: Martina Floriette on Feb 21, 2009 6:01 AM

Similar Messages

  • Create Error Message for wrong input of time (VC 7.1)

    Hello,
    I use VC 7.1.
    I have an Input Field where the users have to enter the time of an event.
    The time has to have this format: hh:mm:ss.
    How can I check this? And if the users entered a wrong time format how can I post an error message?
    Or does anybody has any other solution to handle this? But I must say to it that I don't want to use an ABAP RFC to solve this problem.
    Regards,
    Armin

    Hello,
    I use VC 7.1.
    I have an Input Field where the users have to enter the time of an event.
    The time has to have this format: hh:mm:ss.
    How can I check this? And if the users entered a wrong time format how can I post an error message?
    Or does anybody has any other solution to handle this? But I must say to it that I don't want to use an ABAP RFC to solve this problem.
    Regards,
    Armin

  • Error Message "No batch input data for screen SAPMF05A 0700" for FV60&FB60

    Dear All,
      I doing a BDC Upload program for Create Vendor Invoice and Park using FV60 ,But i can't upload successfully by Batch Input method and i am gettin the Error Message "No batch input data for screen SAPMF05A 0700'.I tried using FB60 and got the same error message. When i do in the direct method i can able to do it ,But can't park the document successfully and can do it untill sumilate only.
    How to overcome this issue and if you already encounter this kind of problem please advice me.
    Thanks in Advance.
    Deesanth

    Hi,
      Below is my recording.
        perform bdc_dynpro      using 'SAPMF05A'     '1100'.
        perform bdc_field       using 'INVFO-ACCNT'  gwa_inv_up-lifnr.
        perform bdc_field       using 'INVFO-BLDAT'  gwa_inv_up-bldat.
        perform bdc_field       using 'INVFO-XBLNR'  gwa_inv_up-xblnr.
        perform bdc_field       using 'INVFO-BUDAT'  gwa_inv_up-budat.
        perform bdc_field       using 'INVFO-MONAT'  '9'.
        perform bdc_field       using 'INVFO-BLART'  gwa_inv_up-blart.
        perform bdc_field       using 'INVFO-WRBTR'  gwa_inv_up-dmbtr.
        perform bdc_field       using 'INVFO-WAERS'  gwa_inv_up-waers.
        perform bdc_field       using 'INVFO-XMWST'  gwa_inv_up-xmwst.
        perform bdc_field       using 'INVFO-MWSKZ'  'P0'.
        perform bdc_field       using 'INVFO-SGTXT'  gwa_inv_up-sgtxt.
        perform bdc_dynpro      using 'SAPMF05A'     '1100'.
        perform bdc_field       using 'BDC_OKCODE'   '=PAYM'.
        perform bdc_field       using 'INVFO-GSBER'  gwa_inv_up-gsber.
        perform bdc_dynpro      using 'SAPMF05A'     '1100'.
        perform bdc_field       using 'BDC_OKCODE'   '=BS'.
        perform bdc_field       using 'INVFO-ZLSCH'  gwa_inv_up-zlsch.
        cnt = 1.
        cnt1 = 1.
        clear gwa_inv_line.
        loop at gt_inv_up  into gwa_inv_line  where indic = 'D'
                                       and count = gwa_inv_up-count.
          if cnt1 gt 1.
            concatenate 'ACGL_ITEM-MARKSP(' cnt ')' into fld.
            perform bdc_field using fld 'X'.
            perform bdc_dynpro using 'SAPMF05A' '1100'.
            perform bdc_field using 'BDC_OKCODE' '=0005'.
          endif.
          concatenate 'ACGL_ITEM-HKONT(' cnt ')' into fld.
          perform bdc_field       using fld gwa_inv_line-lifnr.
          concatenate 'ACGL_ITEM-SHKZG(' cnt ')' into fld.
          perform bdc_field       using fld gwa_inv_line-shkzg.
          concatenate 'ACGL_ITEM-WRBTR(' cnt ')' into fld.
          perform bdc_field       using fld gwa_inv_line-dmbtr.
          concatenate 'ACGL_ITEM-MWSKZ(' cnt ')' into fld.
          perform bdc_field       using fld gwa_inv_line-mwskz.
          concatenate 'ACGL_ITEM-SGTXT(' cnt ')' into fld.
          perform bdc_field       using fld gwa_inv_line-sgtxt.
          concatenate 'ACGL_ITEM-GSBER(' cnt ')' into fld.
          perform bdc_field       using fld gwa_inv_line-gsber.
          concatenate 'ACGL_ITEM-KOSTL(' cnt ')' into fld.
          perform bdc_field       using fld gwa_inv_line-kostl.
          concatenate 'ACGL_ITEM-PROJK(' cnt ')' into fld.
          perform bdc_field       using fld gwa_inv_line-posid.
          concatenate 'ACGL_ITEM-FISTL(' cnt ')' into fld.
          perform bdc_field       using fld gwa_inv_line-fistl.
          concatenate 'ACGL_ITEM-FIPOS(' cnt ')' into fld.
          perform bdc_field       using fld gwa_inv_line-fipos.
          concatenate 'ACGL_ITEM-GEBER(' cnt ')' into fld.
          perform bdc_field       using fld gwa_inv_line-geber.
          perform bdc_field       using 'BDC_CURSOR' fld.
          cnt1 = cnt1 + 1.
        endloop.
        perform bdc_dynpro using 'SAPMF05A' '1100'.
        perform bdc_field  using 'BDC_OKCODE' '=BS'.
        perform bdc_dynpro      using 'SAPMSSY0' '0120'.
        perform bdc_field       using 'BDC_OKCODE' '=BP'.
        call transaction 'FB60' using gt_bdcdata mode 'N' pdate 'S'
                                        messages into gt_bdc_messages.
    Thanks,
    Deesanth

  • Firefox will not show links to flv files. I get the error message for each flv file: "File not found. Firefox can't find the file at (path) .flv." Any mov and swf files in this same path will show. I can see the videos in Safari so the paths are correct.

    Firefox will not show links to flv files. I get the error message for each flv file: "File not found. Firefox can't find the file at http:// (path) .flv." Any mov and swf files in this same path will show. I can see the videos in Safari so the paths are correct.

    Is this a webpage that contains a link to a flv file? Please post a link to the page and tell us which link(s) are the problem flv files or else post a link to the .flv file itself.
    Alternately, click on one of the sample FLV File links on this page and tell us exactly what happens:
    http://www.mediacollege.com/adobe/flash/video/tutorial/example-flv.html
    It might also help if you post the exact error message, including the path to the flv file.
    '''Note:'''
    Depending on how you have Firefox set up, clicking on a FLV File link will either save the FLV file to your computer or Firefox may open it automatically in an external application right after downloading (Firefox may ask you first). Firefox itself can't play FLV files so you need a "helper" application (or a plugin for flv files, if ther is one. You can see if Firefox is already set up to download or open FLV files by going to Firefox Preferences and looking in the Applications list. Find the FLV file type in the list and, if the action is "Open with", it should show the application that can play FLV files (e.g., VLC Media Player or Perian). See [[Managing filetypes]] for more information.

  • Conflicting Error Messages in Batch Input Screen SAPLCOIH 3000

    Hi,
    Appreciate it if someone could guide me on a small batch input issue I have with the creation of a new work order and attempting to place costs in a specific line of a value category. I am able to work out and try to place the cursor in the field I need (PMCOEA-SKOSTENKGR(8)) but when I run the bactgh input session it comes up with the error message "No batch input data for screen SAPLCOIH 3000". When I try and alter this to throw the screen required I then get the message "Field PMCOEA-SKOSTENKGR(8) does not exist in the screen SAPLCOIH 3000"?
    I am confused by this. can any one shed any light on this please?
    Thanks

    Hi,
    Thanks for your reply. Yes I have also tried both stepping thru the process online and in background with the same outcome. I'm tring to understand whether there is an issue with trying to supply estimated cost details via batch input. All my other screen processing up to this point (including adding all work order header, notifications and long text information) works perfectly and without problem. The batch input tells me to supply this screen but when I do I get a conflicting error that it is not the correct screen. I'm trying to find whether I should be supplying a subscreen instead.
    Any further help appreciated.
    Thanks

  • 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 For BISystemUser: User not authenticated

    We have migrated from DEV to PROD env.(11.1.1.1 -> 11.1.1.3). Along problems with bipublisher - there are some strange thingths: we successfully loging using weblogic account into AdminConsole и Enterprise Manager, but in Answers we get an error: invalid username or password.
    nqserver.log:
    ...[ERROR:1] [] [] ... [tid: 1090] Error Message For BISystemUser: User not authenticated.
    ...[ERROR:1] [] [] ... [tid: 1090] [nQSError: 43126] Authentication failed: invalid user/password.
    In oracle support we found such issue (Doc ID 1308389.1):
    OBIEE 11g Error: "Unable to Sign in. invalid username or password was entered" After Changing Repository, Deleting BISystem User, Adding it Back (Doc ID 1308389.1)
    Applies to: Business Intelligence Server Enterprise Edition - Version: 11.1.1.3.0 [1905] to 11.1.1.5.0 [1308] - Release: 11g to 11g
    Symptoms: In OBIEE 11.1.1.3.0 using default authenticator, it is not possible to log in to OBIEE after changing repository. To troubleshoot, BIsystemuser was removed from global roles and added back again.
    Getting error: Unable to Sign in. invalid username or password was entered
    Changes: Changed repository, deleted BISystemuser, added the user back
    Cause: Several changes e.g changing rpd, deleting bisystem user, adding the user back etc. occurred in the environment and caused log in to OBIEE to stop working
    Solution: After a lot of troubleshooting e.g re-starting system in the correct order, refreshing GUIDs, re-start OBIEE with default SampleAppLite.rpd and web catalog, the error persists. The system was uninstalled and re-installed to avoid further corruption and configuration problems in the new installation. This resolved the problem
    Does we have to 'reinstall or make a lot of troubleshooting e.g re-starting system ' to solve this error?
    It seem to be funny for PROD environment. How we cam resolve this problem?

    Are you saying you upgraded both dev and prod from 11.1.1.1 to 11.1.1.3 or that you migrated a dev 11.1.1.1 to a prod 11.1.1.3? What did you migrate?
    At a rough guess the BISystemUser password is different in dev and prod (created by system on install) and in your 'migration' you've moved the dev credential across to prod.
    If that's the case you need to change the bisystemuser password to something known and update the credential store password.
    Another possibility might just be that you need to regenerate the GUIDs:
    http://download.oracle.com/docs/cd/E21764_01/bi.1111/e10543/privileges.htm#BIESC721

  • I have a macbook 15 inch and philips LCD which I'm trying to connect my laptop to. I currently have a HDMI plugged in, but am getting an error message "no video input" on the LCD tv. Please help!

    I have a macbook 15 inch (retina display) and philips LCD which I'm trying to connect my laptop to.
    I currently have a HDMI cable plugged in, but am constantly getting an error message "no video input" on the LCD tv.
    I have checked the philips LCD to be in the HDMI mode and googled many threads but have
    not found a solution to solve my problem. Would appreciate any help given!

    Hello, anabelleho. 
    Thank you for visiting Apple Support Communities.
    Here is a troubleshooting article that I would recommend going through when experiencing this issue.
    Apple computers: Troubleshooting issues with video on internal or external displays
    http://support.apple.com/kb/ht1573
    Cheers,
    Jason H.

  • DISPLAYING ERROR MESSAGE FOR TABLE

    How can I dispaly error message for table havong input fields from message pools,so that when I clicks on that message,that should point to that particular field having error
    Thanks
    Fahad

    Hi Fahad,
    From Message pool retrive data using text accessor
    IWDTextAccessor textYesAccessor = wdComponentAPI.getTextAccessor();
    String tempYes = textYesAccessor.getText(IMessageSample.<YES>);
    You can report error message like.
    if(tempYes !=null)
      reportException(String message, boolean cancelNavigation);
    See this link for Webdynpro API..
    https://media.sdn.sap.com/javadocs/NW04/SPS15/wd/index.html
    Regards
    Suresh

  • How to create a error message for Deleted batch while creating a PO

    Hi ,
    Can any body tell me how to create error message for a deleted batch while creating a PO in ME21n,
    when a PO is created for a deleted batch at GI &GR lebel it is showing  a error message,
    but i want to show a error message while doing the PO creation.
    Thanks,
    Sachhi

    in badi  me_process_po_cust u can  put this message
    METHOD if_ex_me_process_po_cust~check.

  • For weeks I have been viewing a doggy day care via their web cam.  This weekend I upgraded to Lion and have been unable to view the center since.  I get an error message for java webcam class not found.  All of my software is up to date--suggestions?

    For weeks I have been viewing a doggy day care center via their web cam.  This weekend I upgraded to Lion and have been unable to view the center.  I get an error message for Java plug-in 1.6.0_29 ....webcam class not found.  Any suggestions on how to fix this?

    Sorry, don't know what else to suggest unless there's a URL to the problem stream that someone here can try. Otherwise we can't test it to try and determine what might be wrong.
    BTW, make sure they're testing it with a Mac, not with a Windows system. If they test only with Windows, what they say is or is not working doesn't mean much.
    Regards.

  • How to prevent error message for material description in MDG material detail screen, when user click on check action

    Dear Experts,
    I have a requirement for making material description as non mandetory in change request view of mdg material screen.
    I have done that using field usage in get data method of feeder classes, but still message is displaying.
    This message 'Material description is mandatory is displaying with check action only, but not with save or submit after i anhance field property as not mandetory.
    How to prevent error message for material description in MDG material detail screen, when user click on check action.
    Thanks
    Sukumar

    Hello Sukumar
    In IMG activity "Configure Properties of Change Request Step", you can completely deactivate the reuse area checks (but will then loose all other checks of the backend business logic as well).
    You can also set the error severity of the checks from Error to Warning (per CR type, not per check).
    Or you provide a default value for the material description, e.g. by implementing the BAdI USMD_RULE_SERVICE.
    Regards, Ingo Bruß

  • Error message for Adobe AIR 2.0.3 while trying to run Dreamweaver CS5

    imac 2.66 Ghz, Intel Core i5, OS 10.6.4.
    Error message for Adobe AIR 2.0.3 while trying to run Dreamweaver CS5:
    Adobe Air
    the installation of this app is damaged. Try re-installing or contacting the publisher for assistance.
    Tried several times to uninstall and reinstall from fresh download to no avail.
    I'm finding the instructions in the trouble shooting area a tad esoteric.
    Will there be an update to the installer released soon?

    Hi,
    I'm assuming your having troubles installing the 2.0.3 runtime?  If so, can you please try the instructions in this post?
    Thanks,
    Chris

  • Error message for  Unable to connect (BIB-16633)

    Dear All
    I use Oracle Jdeveloper10g (win32), Oracle database10g or 9i (win32 ver). But Failure to connect to OLAP service.
    Can anyone give me what is the error message for BIB-16633.
    Would be really grateful if you could give me a solution as soon as possible.
    Thanks & Regards,
    Mr.Tsang. Hong Kong

    For database versions you need to have at least 9206 for 9i and 10.1.0.4 for 10g. This requires you to apply the 9206 patchset to 9i and the 10.1.0.4 patchset to the 10g base install.
    Please note there are a lot of steps invloved in the patching process and you must make sure you have completed all the steps before creating your OLAP schema. Most problems occur because the patching process is incomplete and the OLAP option is in an invalid state.
    You can check the state of the OLAP option using the following commands in SQLPlus:
    column comp_name format a35
    SELECT comp_name, status, substr(version,1,10) as version
    from dba_server_registry order by modified;
    Once the OLAP option is in a valid state, then you must ensure the OLAPSYS account is unlocked. To test the OLAP environment you can install the BI10G sample schema which will create a new user account called CS_OLAP which contains an Analytic Workspace.
    Hope this helps
    Business Intelligence Beans Product Management Team
    Oracle Corporation

  • Error Message for the cancellation of paid billing document

    Hi,
    Can i create and error message for the cancellation of paid billing document? If yes, how can i create such.
    Overview:
    Accounting document is created upon creation of billing document. Upon payment, document cleared is the accounting document created. There are instances wherein accounting document was already cleared but our user is still able to reversed billing document. Now, i want to create an error message or user exist wherein, when a user will not be able to reverse the billing document if the accounting document attached to this billing document is already paid.
    Thank you and best regards.
    Rachelle

    Hi Rachel,
    You can make use of the exit (Include) MV45AFZZ. The corresponding form routine is FORM USEREXIT_SAVE_DOCUMENT_PREPARE.
    In this exit, For the given billing document ( which is going to be cancelled ), pick up the accouting document from BSEG tables.
    For this accouting document, Pass this to BSAD Table ( Customer clleared items) 
    If BSEG-BELNR = BSAD-BELNR and
      BSEG-Acc.Year = BSAD-Acc,year )..
    Then throw a error message and EXIT.
    So for all the cleared docments , user can not cancel the invoices.
    Regards,
    Sai

Maybe you are looking for

  • ERROR WHILE TRANSPORTING SMARTFORM

    hi friend, when i try to transport my smartform it shows the error message like this 1.   Object CUAD ZINVOICE_11 is inactiv 2.   Object REPT ZINVOICE_11 is inactiv what are CUAD and REPT . My Code is. REPORT  ZINVOICE_11. *& Report  Z_INVOICE_PRINT 

  • HT1386 Issue syncing with iTunes!

    Hi All, I have an iPhone 4s 16 GB model that i recently have started using about a month ago. I had, out of excitement, put about 9 gig of music on my iPhone and realized that i wasn't listening to all the songs pretty much and to top it all, i got a

  • No iphoto on new MacBookAir

    Hi! I bought a new macbookair from apple and it doesn't have iphoto, and does have a tab for cd/dvds in system preferences. Do I have the wrong software or something? I have OS X 10.8

  • IPhoto 5 import problems

    I have a Canon PowerShot s40 with 128 mb card. I have about 71 photos on the card. When i connect with USB cable, the imaged import fragmented or combined with other photos. On the camera they view fine. I also get a message window after I cancel the

  • DOC or PDF convert to single JPG

    I have a lot of word docs (over 3500) that I'm wanting to turn into photos. Some of them are multiple page docs. I've found the automator functions that can create jpgs out of each page (letter 1 page 1.jpg, letter 1 page 2.jpg), but what I'm really