Error check for multiple ranges input

Hi,
I have coded a report with the following select options:
SELECT-OPTIONS:
   S_PONUM FOR EKKO-EBELN NO INTERVALS,
   S_PODAT FOR EKKO-BEDAT NO-EXTENSION,
   S_LCNUM FOR EIKP-VORNU NO-EXTENSION NO INTERVALS,
   S_VENDR FOR EKKO-LIFNR NO-EXTENSION NO INTERVALS.
I want that a check should be applied at the selection screen level that at least one field should contain a value, i.e. report cannot be run with all blank selection fields.
I am using this code:
AT SELECTION-SCREEN.
IF S_PONUM-LOW IS INITIAL AND
    S_PODAT-LOW IS INITIAL AND
    S_LCNUM-LOW IS INITIAL AND
    S_VENDR-LOW IS INITIAL.
    MESSAGE I007(ZSH_MSGC) WITH 'All selection fields cannot be blank'.
ENDIF.
This works fine, but the problem is that when entering multiple ranges for S_PONUM, when the button on the right of the field is clicked to input range values the message pops up. I want that the check should be applied on execute (F8). Any suggestions? Help is appreciated.
Regards,

Hello,
check the sy-ucomm when the button on the right of the field is clicked keep the condition which i have kept it.
before the if statement keep this condition also
SELECT-OPTIONS:
S_PONUM FOR EKKO-EBELN NO INTERVALS,
S_PODAT FOR EKKO-BEDAT NO-EXTENSION,
S_LCNUM FOR EIKP-VORNU NO-EXTENSION NO INTERVALS,
S_VENDR FOR EKKO-LIFNR NO-EXTENSION NO INTERVALS.
AT SELECTION-SCREEN.
if sy-ucomm ne 'find the sy-ucomm'.
IF S_PONUM-LOW IS INITIAL AND
S_PODAT-LOW IS INITIAL AND
S_LCNUM-LOW IS INITIAL AND
S_VENDR-LOW IS INITIAL.
MESSAGE  'All selection fields cannot be blank' type 'E'.
ENDIF.
endif.
Edited by: Santosh Marupally on Apr 22, 2009 9:41 AM

Similar Messages

  • An you tell me how to add an advanced action to the TEB so you can check for multiple lines of input

    an you tell me how to add an advanced action to the TEB so you can check for multiple lines of input? How do you add the advanced action?

    Can you elaborate your requirement?
    If you want to have a text wrapped around and enable a scroller for the same, you can achieve it by TEB properties and check the scroll bar option,
    Is this what you are looking to achieve?
    Thanks,
    Anjaneai

  • How to make "check for multiple logons" mandatory in webdynpro application.

    Hi SDN members,
    Im having a problem with an application developed in webdynpro abap.
    We require that  end-user only have a session per computer (ip address),
    I already tried to achieve this by configuring the webdynpro application throguh SICF and going to Error Pages -> Logon Errors --> System Logon and mark the checkbox Check for multiple logons.
    This configurations give only a warning when the user logs multiple times, and show a checkbox letting the user decide to end or not the previous sessions.
    How to make end previuos sessions mandatory ??
    Regards,
    Franklin Cedillo

    You would have to enforce this at the application level. You can get the IP address of the current client from the framework - IF_WD_APPLICATION method GET_REMOTE_ADDRESS.
    You could write an entry with the IP address into a temporary table during WDDOINIT.  You could clear the entry in the WDDOEXIT.  Also during the WDDOINIT, check to see if there is already an entry for this IP address.  If so, then fire an exit nagivation plug to a static MIME object or BSP page that explains why the user can only be logged in once.

  • Reg:Single Check for Multiple Vendors

    Hi Experts,
    I want to Issue a Single check for all vendor open items...
    For this is I created one Group Key and assigned in the vendor master record, but while doing the payment separate check issuing for each vendor,
    any idea

    Hi,
    Can you check the below thread of urs.
    [Reg:Single Check for Multiple Vendors]
    In addition to the above, please make sure that in OBVU, the check box separate payment for each ref is deselected for your questioned comapny code.
    You would have continued your earlier thread instead, rather than a new thread.
    Thanks,
    Srinu

  • Error checking for OS X updates

    hi,
    im getting this message when checking for updates (App Store)   " an error has occurred
    Could not load data from Apple's software update server "
    bootcamp assistant is giving me this message too "Could not download the software due to a network problem." when trying to download windows drivers..
    can´t find a solution.
    thanks.

    Cross reference
    error checking for OS X updates – MacRumors Forums (2015-04-05)

  • Compiling error: "checking for mtc_init in -lmatc... no"

    Hello
    I'm trying to compile the elmer fem from svn via a selfmade PKBUILD.
    I've got an error message:
    "checking whether we are using the Microsoft C compiler... no
    checking for mtc_init in -lmatc... no
    configure: error: libmatc
    ==> FEHLER: Ein Fehler geschah in build().
        Breche ab ..."
    Is here a dependency missing? Does anyone know which?
    Thanks.

    I'm having the same problem, albeit 18 months later. I am working with a tutorial from apress, which seems very high on Glassfish as a AppServer environment for learning EJB 3.0. I have the same error when I try to run the client application in the Sun Platform 9.0 Application Server's AppClient Module container , "... Error checking for persistence unit annotations in the main class..." and I think it has something to do with the fact that the AppClient is expecting "something" in the MANIFEST.MF file that actually isn't there... ( sigh ). " so close, and yet so far away.... "
    --- andyj748

  • Extended Program check for multipl programes in single run

    Hello All,
    I wan to do the syntax check for multiple programs at single execution run.
    SAP has provided SLIN transaction for single program, Is there any SAP standard transaction similar as SLIN for multiple program check at single execution run?
    Thanks,
    Feroz.

    >
    s feroz wrote:
    > I need it in R/34.6b version.
    I don't think you have much option there

  • Appclient: Error checking for persistence unit annotations in the main clas

    what does this mean? i tried to launch my app client as follows:
    appclient -client foo.jar
    Oct 9, 2006 3:49:02 PM com.sun.enterprise.appclient.MainWithModuleSupport <init>
    WARNING: ACC003: Application threw an exception.
    java.lang.RuntimeException: Error checking for persistence unit annotations in the main class
    at com.sun.enterprise.appclient.StandAloneAppClientInfo.classContainsAnnotation(StandAloneAppClientInfo.java:88)
    at com.sun.enterprise.appclient.AppClientInfo.mainClassContainsPURefcAnnotations(AppClientInfo.java:342)
    at com.sun.enterprise.appclient.AppClientInfo.appClientDependsOnPersistenceUnit(AppClientInfo.java:311)
    at com.sun.enterprise.appclient.AppClientInfo.completeInit(AppClientInfo.java:164)
    at com.sun.enterprise.appclient.AppClientInfoFactory.buildAppClientInfo(AppClientInfoFactory.java:136)
    at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:287)
    at com.sun.enterprise.appclient.Main.main(Main.java:180)
    Caused by: java.lang.NullPointerException
    at java.util.zip.ZipFile.getInputStream(ZipFile.java:286)
    at java.util.jar.JarFile.getInputStream(JarFile.java:382)
    at com.sun.enterprise.deployment.util.AnnotationDetector.containsAnnotation(AnnotationDetector.java:139)
    at com.sun.enterprise.appclient.StandAloneAppClientInfo.classContainsAnnotation(StandAloneAppClientInfo.java:86)
    ... 6 more

    Hi, Did you find out what caused this as I have the same problem.
    :\Sun\EJB3\Chapter02-SessionSamples\SessionBeanSamples\archive>%GLASSFISH_HOME%
    bin/appclient.bat -client searchfacadeclient.jar
    006-11-08 12:52:48 com.sun.enterprise.deployment.annotation.impl.ModuleScanner
    etElements
    ARNING: Cannot load SearchFacadeTest reason : SearchFacadeTest
    006-11-08 12:52:48 com.sun.enterprise.appclient.MainWithModuleSupport <init>
    ARNING: ACC003: Application threw an exception.
    ava.lang.RuntimeException: Error checking for persistence unit annotations in t
    e main class
    at com.sun.enterprise.appclient.StandAloneAppClientInfo.classContainsAnn
    tation(StandAloneAppClientInfo.java:88)
    at com.sun.enterprise.appclient.AppClientInfo.mainClassContainsPURefcAnn
    tations(AppClientInfo.java:342)
    at com.sun.enterprise.appclient.AppClientInfo.appClientDependsOnPersiste
    ceUnit(AppClientInfo.java:311)
    at com.sun.enterprise.appclient.AppClientInfo.completeInit(AppClientInfo
    java:164)
    at com.sun.enterprise.appclient.AppClientInfoFactory.buildAppClientInfo(
    ppClientInfoFactory.java:136)
    at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithMod
    leSupport.java:287)
    at com.sun.enterprise.appclient.Main.main(Main.java:180)
    aused by: java.lang.NullPointerException
    at java.util.zip.ZipFile.getInputStream(ZipFile.java:286)
    at java.util.jar.JarFile.getInputStream(JarFile.java:382)
    at com.sun.enterprise.deployment.util.AnnotationDetector.containsAnnotat
    on(AnnotationDetector.java:139)
    at com.sun.enterprise.appclient.StandAloneAppClientInfo.classContainsAnn
    tation(StandAloneAppClientInfo.java:86)
    ... 6 more
    xception in thread "main" java.lang.RuntimeException: java.lang.RuntimeExceptio
    : Error checking for persistence unit annotations in the main class
    at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithMod
    leSupport.java:364)
    at com.sun.enterprise.appclient.Main.main(Main.java:180)
    aused by: java.lang.RuntimeException: Error checking for persistence unit annot
    tions in the main class
    at com.sun.enterprise.appclient.StandAloneAppClientInfo.classContainsAnn
    tation(StandAloneAppClientInfo.java:88)
    at com.sun.enterprise.appclient.AppClientInfo.mainClassContainsPURefcAnn
    tations(AppClientInfo.java:342)
    at com.sun.enterprise.appclient.AppClientInfo.appClientDependsOnPersiste
    ceUnit(AppClientInfo.java:311)
    at com.sun.enterprise.appclient.AppClientInfo.completeInit(AppClientInfo
    java:164)
    at com.sun.enterprise.appclient.AppClientInfoFactory.buildAppClientInfo(
    ppClientInfoFactory.java:136)

  • Error checking for persistence unit annotations in the main class

    Hi
    When I tried running the examples from the SUN JMS tutorials, I landed in a problem. I did the following changes...
    1. I created a new project in eclipse
    2. created the java class 'Producer.java' in a package..(the one in java tutorial is not in a package)
    3. copied the build.xml and made the the respective changes.
    I successfully created the jar file, but when I tried to run the the application
    appclient -client JMSProducer.jar eg.jms.P2PProducer.Producer queue 3it throws the following exception:
    Nov 29, 2006 3:40:33 PM com.sun.enterprise.deployment.annotation.impl.ModuleScan
    ner getElements
    WARNING: Cannot load ${main.class} reason : ${main.class}
    Nov 29, 2006 3:40:33 PM com.sun.enterprise.appclient.MainWithModuleSupport <init
    >
    WARNING: ACC003: Application threw an exception.
    java.lang.RuntimeException: Error checking for persistence unit annotations in t
    he main class
            at com.sun.enterprise.appclient.StandAloneAppClientInfo.classContainsAnn
    otation(StandAloneAppClientInfo.java:88)
            at com.sun.enterprise.appclient.AppClientInfo.mainClassContainsPURefcAnn
    otations(AppClientInfo.java:342)
            at com.sun.enterprise.appclient.AppClientInfo.appClientDependsOnPersiste
    nceUnit(AppClientInfo.java:311)
            at com.sun.enterprise.appclient.AppClientInfo.completeInit(AppClientInfo
    .java:164)
            at com.sun.enterprise.appclient.AppClientInfoFactory.buildAppClientInfo(
    AppClientInfoFactory.java:136)
            at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithMod
    uleSupport.java:287)
            at com.sun.enterprise.appclient.Main.main(Main.java:180)
    Caused by: java.lang.NullPointerException
            at java.util.zip.ZipFile.getInputStream(ZipFile.java:286)
            at java.util.jar.JarFile.getInputStream(JarFile.java:387)
            at com.sun.enterprise.deployment.util.AnnotationDetector.containsAnnotat
    ion(AnnotationDetector.java:139)I have spent so much time identifying the problem... can anyone point the error please?

    I'm having the same problem, albeit 18 months later. I am working with a tutorial from apress, which seems very high on Glassfish as a AppServer environment for learning EJB 3.0. I have the same error when I try to run the client application in the Sun Platform 9.0 Application Server's AppClient Module container , "... Error checking for persistence unit annotations in the main class..." and I think it has something to do with the fact that the AppClient is expecting "something" in the MANIFEST.MF file that actually isn't there... ( sigh ). " so close, and yet so far away.... "
    --- andyj748

  • Need to do availability check for multiple materials (in bulk)

    HI Friends,
    I need to do availability check for multiple materials. Currently i am using function module AVAILABILITY_CHECK within a loop.For my purpose I could find this particular FM as well as BAPI "BAPI_MATERIAL_AVAILABILITY" however both of this options can not be used for more then one materials at a time.
    I want to take out the loop from the code and get multiple materials be ckecked at once for availability. If AVAILABILTY_CHECK FM can be used for multiple materials, please post the usage.
    Any other options are there?
    Any help or clue would be appreciated.
    Thanks in advance.

    Use the BAPI.  Even if such a function existed, it would still perform the relevant internal logic required for checking by material, so you wouldn't gain anything.

  • ATP check for multiple materials on multiple sales document

    Hi,
    System 4.70
    Is it possible to carry out an ATP check for multiple materials on multiple sales documents.
    I have written a bespoke program and the program requires an ATP check to be performed for each material and sales document, I am currently using BAPI_MATERIAL_AVAILABILITY which is bringing back the necessary information but it's a bit slow.
    Does any one have any ideas please.
    Regards
    J-J

    The ATP Check using the BAPI is done per material and plant. If you're looping through sales documents and then materials you're probably doing the ATP check for the same material over and over again.
    Just get the list of materials you need and the corresponding plants and call the BAPI for each of them.
    Also do a run-time analysis (tcode SE30) to check exactly what slows down your program.
    regards.

  • To develop an error checker for consecutive values

    Thanks Doug. Your answer has given me further insight into the problem.
    However, I was wondering if it is possible to make an error checker for consecutive values of a particular variable.
    That is, the first value and second value might be 100 and 100.5 respectively, but the third value might be 110, which is a wrong value. How do I discard the 110 point from being plotted?
    Thanks.
    Choy

    Really difficult. How do you know the first two values aren't errors and
    the third one is correct. If you're getting these sorts of values fromn
    your A-D hardware, I'd suggest fixing the problem at the source.
    Regards,
    Alf Katz,
    [email protected]
    "leon2001" wrote in message
    news:[email protected]..
    > Thanks Doug. Your answer has given me further insight into the
    > problem.
    >
    > However, I was wondering if it is possible to make an error checker
    > for consecutive values of a particular variable.
    >
    > That is, the first value and second value might be 100 and 100.5
    > respectively, but the third value might be 110, which is a wrong
    > value. How do I discard the 110 point from being plotted?
    >
    > Thanks.
    >
    >
    > Choy

  • How to Maintain Payment with one check for Multiple Vendors?

    Dear Gurus,
    i have a scenario for outgoing payment, here it is
    i have some open items for multiple vendors. say it for open item
    1. with amount 5000 USD for vendor A
    2. wiht amount 10000 USD for vendor B
    my company pay both open item 1 & 2 with one check, say the check no is 27382830 and the amount is 15000 USD. The check is given to the Bank as an order to Pay the vendor. so the check does not have receiver name. i attach a formal letter to the bank to ask them for making payment with that check. the letter contains a detail the amount, vendor bank account number, account holder, and the vendor name.
    so how i can threat this business scenario into SAP? i want to trace check number used to pay the vendors.
    hope you can give some clues. is it possible to maintain scenario above with automatic payment?
    best regards,
    land lord

    Hi,
    Yes you can map this scenario in SAP and use F110 for this. But you will also have to use some Z programs..
    1. For F110 FBZP configuration, maintain outgoing bank clearing Account (this will be a dummy account and not the actual Outgoing Bank Account) as the Bank Sub Account.
    By doing this when you run payment in F110, entry will be
    Vendor A A/c...Dr.
    outgoing bank clearing Account Cr.(1)
    Vendor B A/C... Dr.
    outgoing bank clearing Account Cr.(2)
    2.Then you will have to use Post with clearing transaction codes and make one entry
    outgoing bank clearing Account Cr.(1)..Dr.
    outgoing bank clearing Account Cr.(2)..Dr.
    To Bank Outgoing Account(Actual Bank outgoing Account) Cr.
    3. Now, when you get the single cheque no. from Bank against both the vendors, then thru FB02, change the assignment field/Reference field for Che No. updates.
    But do check BRS also for its reconciliation.. If you do it on a daily basis.. then it would not be difficult.
    Hope this helps you..
    Regards,
    SAPFICO

  • Adobearm.exe error Checking for updates

    I'm getting this error when Adobe Reader 10.1.1 checks for updates.  Since it checks automatically this pops up on it's own when you view a PDF.  It will also do it if you check for updates using the help menu.  Running Windows 7 Enterprise x64.  It's also happening on at least one other computer in our organization.  I've searched all over, but I'm not finding much on it.  I've even gone so far as to run procmon to see if I can see where it's trying to read that it's getting an access denied, but that didn't return anything helpful.  Any help is appreciated.

    1.  adobearm.exe does exist in the location the error states.  Interesting it shows an older date on it.  Not sure it's getting uninstalled with reader each time.  maybe I should delete the arm folder manually when I uninstall and try to reinstall?
    2. it has a valid digital signature from Adobe.
    3. 1.5.5.0
    4. I am admin, but UAC is on.  I had also tried running reader as admin, but it made no difference.
    5. Doesn't matter if you open stand alone pdf or in browser.  You will get the error either way.  Without the help menu in the browser I can't manually check for updates, but it appears to check automatically because it will error on it's own when viewing an online pdf.
    6. Yes double-clicking on a file you get the error.  It's not immediate though.  There is a delay before it automatically checks for updates it looks like.  Once it does you get the error.  I assume it's the checking for updates automatically that causes this anyway since it's the same error when I manually check for updates.  I supposed it could be a different problem that produces the same error.
    7. originally I installed it via the enterprise download package.  I customize the installer using "Adobe Customization Wizard X".  When I discovered the problem I rebuilt the package and reinstalled.  Didn't help.  I then reinstalled using the default Enterprise package with no customization.  Didn't help.  I then installed off the website.  Didn't help.

  • Program Error Message for multiple tasks....

    Since I switched from my macbook pro to my new iMAC (back in May or June), photoshop has been having issues. I installed CS5 program on my imac & used the second serial code from my original purchase.
    For multiple different tasks I will receive a message that states, "Could not complete request due to program error." Such tasks include batch process, using text tools, & most recently saving resized jpeg images.  This later one has become the biggest issue for me as I am constantly uploading resized images to facebook/blog for my photography business.  I will resize the image as normal and then whenI try to save it, the program error window pops up. This has been very frustrating lately!
    Can someone please advise me as to why this is happening?
    Thanks!
    edited: I have also had CS5 become unresponsive & crash on me several times. Not sure the reason for that either.

    Hm, and here I thought Macs "just worked". 
    In all seriousness, you'll probably get the best help here:  http://forums.adobe.com/community/photoshop/photoshop_macintosh
    -Noel

Maybe you are looking for