Query Service - Filters using "IN" and "*" (asterisk)

Hi All,
Is there any way to use "IN" and "*" (asterisk of a regular expression) in a filter to be used in query services?
In other words:
1) How to create a query using a selection-options as it is done in SELECT statement
2) How to use regular expressions in a query (use of a asterisk)?
Please, my question is regarding the Query Service. Nothing in the [Query Service help|http://help.sap.com/saphelp_nw70/helpdata/en/fd/022008bc9311d4b2e80050dadfb92b/frameset.htm] could help me regarding these two points.
Thanks.

Hi Fabio,
this is not objects, not general but very very basic:
data:
  lt_kna1   type table of kna1,
  lt_r_name type range of kna1-name1. "defines a range like inj select-options
field-symbols:
  <r_name> like line of lt_r_name. "field-symbol for one line of the ranges table
append initial line to lt_r_name assigning <r_name>.
<r_name>-sign = 'I'.
<r_name>-option = 'CP'.
<r_name>-low = 'EN*'.
select *
  into table lt_kna1
  from kna1
  where name1 in lt_r_name
Also: Use F1 on [SELECT-OPTIONS|http://help.sap.com/abapdocu_702/en/abapselect-options.htm] and [DATA - RANGE OF |http://help.sap.com/abapdocu_702/en/abapdata_ranges.htm]
Regards,
Clemens

Similar Messages

  • Query: how to use structure and selection and what's the difference between

    Query: how to use structure and selection and what's the difference between these two?
    Would be appreciated if some experts here give examples to demenstrate on how to use structure and selection in query and what's the difference between these two?
    Thanks in advance!

    Hi Kevin,
    1. Well by default all the KF that you include in your query go into a Key Figure Structure. You can additionally have another structure for defining how your chars are laid out. A common example is a Calmonth structure where you have selections for 12 months, quarers and YTD values. This would be a char structure with different selections (for each month, qtr etc)
    2. Yes, a selection with a KF is the same as restricting a KF. You can use am RKF is you have one on the left hand side, or if you need to do this locally in the query, right click the structure and choose New Selection, then proceed to choose your KF and reqd char values.
    Hope this helps...

  • Query Result Filtered using User Roles SCSM 2012 R2 RU2

    Hi,
    I have a Query Result setup in a Request Offering that shows the list of Printers using the Printer CI. We have different sites with printers that start with the site location like MTL. There are no filters in the Query Result. What i did is create a Group
    for each site that has the rule "start with" MTL (other groups have other 3 letter prefix). Then i created a user role for each group and only selected the Printer group for the site and i associated the User Role with our AD Site group called MTL-User.
    i did this for each site. Now when i checked the Request Offering at first, with a user that is part of MTL-User group, it showed only the list of printers that started with MTL. Now today i came to check again and the same user is seeing all the printers
    and not just the ones that start with MTL.
    The User Role i made was based on the Read-Only Operator. I just dont know what the problem is

    Thanks for that link. I had thought of something like that but i found it came to the same thing as just using the filter field that is already available when using a Query Result. I retried using User Roles and figured out that the problem is that my test
    user is only part of the MTL-USER group so when i logged in with him into the portal (cireson Portal btw) i would see the proper result. If i logged in with a actual user that is also part of other groups besides MTL-Users, they see all the printers no matter
    which AD group i define in the User Role. 
    So what i figured was that my group is not getting applied as the filter to the query Result and that the Member section in the User role is only to say who can see the Query result list. But then i have my test user for which this setup works...so im confused
    on what exactly is overriding the results.

  • Query on SSO using Kerberos and JAAS

    We have created a LAN of two computers one being an IIS server (windows 2000 Server) and the other the client (Windows 2000 PRO)
    When the server program and the applet is run on the server machine the authentication is done properly and the context is established.
    But now we want the other terminal to be the client.
    Now we have hosted the applet from the server and we are accessing the hosted page from the client terminal and now we get the following exception:
    javax.security.auth.login.LoginException: trainee.Trainee123.Local: trainee.Trainee123.Local
    at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:572)
    at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:458)
    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
    at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
    at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
    at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
    at GSSClient.login(GSSClient.java:110)
    at GSSClientApplet.login(GSSClientApplet.java:127)
    at GSSClientApplet.access$000(GSSClientApplet.java:14)
    at GSSClientApplet$1.actionPerformed(GSSClientApplet.java:74)
    at java.awt.Button.processActionEvent(Button.java:381)
    at java.awt.Button.processEvent(Button.java:350)
    at java.awt.Component.dispatchEventImpl(Component.java:3639)
    at java.awt.Component.dispatchEvent(Component.java:3480)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    Caused by: java.net.UnknownHostException: trainee.Trainee123.Local: trainee.Trainee123.Local
    at java.net.InetAddress.getAllByName0(InetAddress.java:999)
    at java.net.InetAddress.getAllByName0(InetAddress.java:969)
    at java.net.InetAddress.getAllByName(InetAddress.java:963)
    at java.net.InetAddress.getByName(InetAddress.java:883)
    at sun.security.krb5.internal.bg.<init>(DashoA6275:51)
    at sun.security.krb5.KrbKdcReq$KdcCommunication.run(DashoA6275:185)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.security.krb5.KrbKdcReq.send(DashoA6275:148)
    at sun.security.krb5.KrbAsReq.send(DashoA6275:401)
    at sun.security.krb5.KrbAsReq.send(DashoA6275:293)
    at sun.security.krb5.Credentials.acquireTGT(DashoA6275:332)
    at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:559)
    ... 24 more
    --(the server address being trainee.Trainee123.Local.)
    we referred the following site:
    http://www-128.ibm.com/developerworks/java/library/j-gss-sso/index.html
    Suggest some solution to this problem.

    Hi there,
    I need to implement a J2ee struts based web application where the authentication should be against the user profiles in the Windows Active Directory Services using JAAS.
    I do not know how to start and is it possible for you to throw some light on this. Like how kerberos works with ADS and others.
    Thanks,
    Diva

  • Query on STRIP Using DISKUTIL and Data Safty Issues

    Here is an interesting (probably DUMB) question based on my current RAID config:
    7x500GB (RAID5 - one hdd can go down and no issue) = Vol#1
    7x500GB (RAID5 - one hdd can go down and no issue) = Vol#2
    The above using Diskutil I have made on STRIP Vol#1+Vol#2 = RAID50.
    From the above what are my chances of loosing data based on following three senarios:
    1. what if one of the controller fails, will I still see the entire volume
    2. what if one of the controller fails, will I loose everything on RAID50 (STRIP)?
    3. what if one of the controller fails, I replace the controller with a new one, will I get my data back?
    Please advice the above?
    Thanks

    >1. what if one of the controller fails, will I still see the entire volume
    You will lose access to the entire volume. The data will be intact but you cannot access the volume (on either controller) until the failed controller is replaced.
    >2. what if one of the controller fails, will I loose everything on RAID50 (STRIP)?
    No. Your data will be intact. You just can't access it.
    >3. what if one of the controller fails, I replace the controller with a new one, will I get my data back?
    Yes. The replacement controller can read the RAID configuration from the drives. Replacing the failed controller will restore access to your volume.
    Just for the record I have over a dozen XServe RAIDs (including one of the very first revisions using 180GB drives) all working 24/7 in a production network and have never lost a controller, power supply, or any other component other than one (or maybe two) failed disks. In my experience the failure rate is very low.

  • 50 Hz noise ECG filtering using FFT and its inverse in LabVIEW

    I have to write a LabVIEW Program to put the 50 HZ noise in the ECG spectrum using the FFT and then with the Inverse of the FFT I must take it out,but without using any filter.so if anybody can help me with that, I will be thankful.

    I have a normal EGG signal,and its Spectrum. Then I add the 50 Hz noise.In the Spectrum I will get this long peak at the x-axis at 50Hz.So,what I'm trying to do with LabVIEW, is to get out this noise without using a filter,but with the FFT and of course with its inverse to reconstruct the signal.
    (the EGG signal is created at first with a simulator and not with human body, the signal is going through the "line-in" of the soundcard in the computer)
    I hope you understand a little bit what I mean, I will attach what I did in the program till now,maybe you can understand it better.
    Thank youMessage Edited by b_rani on 05-18-2005 01:46 PM
    Attachments:
    Soundin1_030505.vi ‏80 KB

  • Applying service policy using radius and VPDN

    anyone had any success doing this?
    I've been following the suggested config at http://www.cisco.com/en/US/customer/products/ps6566/products_feature_guide09186a0080610dad.html#wp1058626 but not having any success.
    sessions terminate on my 7301 via L2TP through another provider - this all works fine.
    I have the following AVPair defined in the user RADIUS profile:
    Cisco-AVPair = "ip:sub-qos-policy-out=DROP-P2P"
    and the matching policy map defined on the 7301 but it does not get applied to the user session.
    Debug L2X errors gives the following message:
    001867: Oct 30 16:12:50.655 UTC: L2X: Unknown AVP 76 in CM SCCRQ
    001868: Oct 30 16:12:50.655 UTC: L2X: Ignoring unknown AVP 76
    if I apply the policy map in the virtual-template it does get applied, but obviously to all users on that template which is not what I want.
    edit: - btw the 7301 is on 12.4 so this feature should be available.
    thanks
    Liam.

    With a router it won't be possible to get different policy for users in a single template. Following link may help you
    http://www.cisco.com/en/US/customer/products/ps6566/products_feature_guide09186a0080610dad.html#wp1081783

  • Query using BETWEEN/AND operators

    Im trying to query in forms using BETWEEN/AND operators. The field is for dates (YYYY) is stored in the DB as varchar (4). My code compiles but returns nothing...Any ideas of whats wrong...
    PROCEDURE YR_RANGE_SEARCH IS
    BEGIN
    IF :SEARCH.NRA_START IS NOT NULL
    AND :SEARCH.NRA_END IS NOT NULL THEN
    :Global.BUFFER_START := :SEARCH.NRA_STRT;
    :Global.BUFFER_END := :SEARCH.NRA_END;
    BEGIN
    SET_BLOCK_PROPERTY('NRHR', ONETIME_WHERE, 'NRHR.YEAR = ''' || 'BETWEEN' || :Global.BUFFER_START || 'AND' || :Global.BUFFER_END ||'''');
    GO_BLOCK('NRHR');
    EXECUTE_QUERY;
    END;
    END IF;
    END;

    check spaces in quoted text. i noticed that in your original query you had no spaces anywhere which made your ONETIME_WHERE resulting in something like NRHR.YEAR='BETWEEN2005AND2007' (if :Global.BUFFER_START=2005 and :Global.BUFFER_END=2007). For sure that always resulted in NULL value returned by the query;
    in my answer
    SET_BLOCK_PROPERTY('NRHR', ONETIME_WHERE, 'NRHR.YEAR BETWEEN '|| :Global.BUFFER_START || ' AND ' || :Global.BUFFER_END);
    there is a space after BETWEEN and space before and after AND. Be careful.

  • Account Assignment is not populated while creating service PO using BAPI

    Hi All,
    I am creating a service PO using BAPI_PO_CREATE1 and Its creating PO, But when I go to ME23n and check Account Assignment in Services then Its empty.
    Please help me as I am not able to understand what could be the problem...
    Thanks & Regards,
    Prabhat Pandey

    Thanks for your most valuable answer.
    Regards,
    Prabhat

  • I can not publish and query services in Registry Server?Help please!

    I want to use Registry Server in Jwsdp1.5 to publish and query services,but there is some problems:
    2006-4-26 10:05:26 com.sun.registry_server.server.RegistryServerServlet init
    ����: NamingException: javax.naming.NameNotFoundException: Name org.xml.sax.driver is not bound in this Context
    2006-4-26 10:05:27 com.sun.xml.messaging.saaj.soap.MessageImpl identifyContentType
    ����: SAAJ0537: ������������������������������������ SOAP ����
    2006-4-26 10:05:27 com.sun.xml.messaging.saaj.soap.MessageImpl <init>
    ����: SAAJ0535: ��������������
    javax.xml.registry.JAXRException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
         at com.sun.xml.registry.uddi.RegistryServiceImpl.jaxmSend(Unknown Source)
         at com.sun.xml.registry.uddi.RegistryServiceImpl.send(Unknown Source)
         at com.sun.xml.registry.uddi.Processor.processRequestJAXB(Unknown Source)
         at com.sun.xml.registry.uddi.UDDIMapper.findOrganizations(Unknown Source)
         at com.sun.xml.registry.uddi.BusinessQueryManagerImpl.findOrganizations(Unknown Source)
         at QueryByName.doPost(QueryByName.java:63)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:790)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:709)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:572)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
         at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:127)
         ... 34 more
    Caused by: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:121)
         ... 34 more
    Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
         at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:231)
         at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.<init>(Message1_1Impl.java:43)
         at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.createMessage(SOAPMessageFactory1_1Impl.java:32)
         at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:354)
         at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:150)
         ... 36 more
    Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?
         at com.sun.xml.messaging.saaj.soap.MessageImpl.identifyContentType(MessageImpl.java:295)
         at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:146)
         ... 40 more
    can you help me?expectiong your advise!thank you

    I have created my own private registry, I hava installed JWSDP1.5.
    I use a .jsp file and a servlet to publish services,the servlet is:
    import javax.xml.registry.*;
    import javax.xml.registry.infomodel.*;
    import java.net.*;
    import java.security.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    public class Publish extends HttpServlet{
         public void doGet(HttpServletRequest request,HttpServletResponse response)
         throws ServletException,IOException{
              doPost(request,response);
         public void doPost(HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException{
         String userName=request.getParameter("username");
         String authPassword=request.getParameter("password");
         Connection connection = null;
    RegistryService rs=null;
    BusinessLifeCycleManager blcm=null;
    BusinessQueryManager bqm = null;
         Properties props=new Properties();
    props.setProperty("javax.xml.registry.queryManagerURL","http://localhost:8080/RegistryServer");
    props.setProperty("javax.xml.registry.lifeCycleManagerURL","http://localhost:8080/RegistryServer");
    props.setProperty("javax.xml.registry.factoryClass","com.sun.xml.registry.uddi.ConnectionFactoryImpl");
    //props.setProperty("com.sun.xml.registry.http.proxyHost",httpHost);
    //props.setProperty("com.sun.xml.registry.http.proxyPort",httpPort);
    // props.setProperty("com.sun.xml.registry.https.proxyHost",httpsHost);
    // props.setProperty("com.sun.xml.registry.https.proxyPort",httpsPort);
    try{
    // Create the connection, passing it the
    // configuration properties
    ConnectionFactory factory =
    ConnectionFactory.newInstance();
    factory.setProperties(props);
    connection=factory.createConnection();
    PrintWriter out=response.getWriter();
    out.println("<a href=\"/publishapp/publish.jsp\">You can click here to be Back </a>");
    out.println("<H3>Created connection to registry</H3>");
    rs=connection.getRegistryService();
    blcm = rs.getBusinessLifeCycleManager();
    bqm = rs.getBusinessQueryManager();
    //out.println("Got registry service, query " +"manager, and life cycle manager");
    // Get authorization from the registry
    PasswordAuthentication passwdAuth =
    new PasswordAuthentication(userName,authPassword.toCharArray());
    Set creds = new HashSet();
    creds.add(passwdAuth);
    connection.setCredentials(creds);
    out.println("<br>");
    out.println("<H3>Established security credentials</H3>");
    //receive organization name and description
    String orgName=request.getParameter("orgname");
    String orgDescription=request.getParameter("orgdescription");
    // Create organization name and description
    Organization org =
    blcm.createOrganization(orgName);
    InternationalString s =
    blcm.createInternationalString(orgDescription);
    org.setDescription(s);
    //receive contactor name phone and Email
    String contactName=request.getParameter("contactname");
    String contactPhone=request.getParameter("contactphone");
    String contactEmail=request.getParameter("contactemail");
    // Create primary contact, set name
    User primaryContact = blcm.createUser();
    PersonName pName =
    blcm.createPersonName(contactName);
    primaryContact.setPersonName(pName);
    // Set primary contact phone number
    TelephoneNumber tNum = blcm.createTelephoneNumber();
    tNum.setNumber(contactPhone);
    Collection phoneNums = new ArrayList();
    phoneNums.add(tNum);
    primaryContact.setTelephoneNumbers(phoneNums);
    // Set primary contact email address
    EmailAddress emailAddress =blcm.createEmailAddress(contactEmail);
    Collection emailAddresses = new ArrayList();
    emailAddresses.add(emailAddress);
    primaryContact.setEmailAddresses(emailAddresses);
    // Set primary contact for organization
    org.setPrimaryContact(primaryContact);
    String serviceName=request.getParameter("servicename");
    String serviceDescription=request.getParameter("servicedescription");
    String serviceURL=request.getParameter("serviceurl");
    String svcbindDescription=request.getParameter("svcbinddescription");
    // Create services and service
    Collection services = new ArrayList();
    Service service =
    blcm.createService(serviceName);
    InternationalString is =
    blcm.createInternationalString(serviceDescription);
    service.setDescription(is);
    // Create service bindings
    Collection serviceBindings = new ArrayList();
    ServiceBinding binding = blcm.createServiceBinding();
    is = blcm.createInternationalString(svcbindDescription);
    binding.setDescription(is);
    // allow us to publish a fictitious URL without an error
    binding.setValidateURI(false);
    binding.setAccessURI(serviceURL);
    serviceBindings.add(binding);
    // Add service bindings to service
    service.addServiceBindings(serviceBindings);
    // Add service to services, then add services to organization
    services.add(service);
    org.addServices(services);
    //receive Classification scheme name and value
    String classificationScheme=request.getParameter("classificationscheme");
    String classificationName=request.getParameter("classificationname");
    String classificationValue=request.getParameter("classificationvalue");
    // Set classification scheme to NAICS
    ClassificationScheme cScheme =
    bqm.findClassificationSchemeByName(null, classificationScheme);
    // Create and add classification
    Classification classification = blcm.createClassification(cScheme,
    classificationName,classificationValue);
    Collection classifications = new ArrayList();
    classifications.add(classification);
    org.addClassifications(classifications);
    // Add organization and submit to registry
    // Retrieve key if successful
    Collection orgs = new ArrayList();
    orgs.add(org);
    BulkResponse response1 = blcm.saveOrganizations(orgs);
    Collection exceptions = response1.getExceptions();
    if (exceptions == null) {
    out.println("<br>");
    out.println("<H3>Service Registering is Sucessful!</H3>");
    out.println("<br>");
    out.println("<H3>service information saved is</H3>");
    out.println("<H3>");
    out.println(orgName);
    out.println("</H3>");
    Collection keys = response1.getCollection();
    Iterator keyIter = keys.iterator();
    if (keyIter.hasNext()) {
    javax.xml.registry.infomodel.Key orgKey =
    (javax.xml.registry.infomodel.Key) keyIter.next();
    String id = orgKey.getId();
    out.println("<H3>service key is </H3>");
    out.println("<H3>");
    out.println(id);
    out.println("</H3>");
    } else {
    Iterator excIter = exceptions.iterator();
    Exception exception = null;
    while (excIter.hasNext()) {
    exception = (Exception) excIter.next();
    System.err.println("Exception on save: " +
    exception.toString());
    } catch (Exception e) {
    e.printStackTrace();}
    the exception in the tomcat50-jwsdp/logs:
    javax.xml.registry.JAXRException: javax.xml.bind.JAXBException
    - with linked exception:
    [javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Provider com.sun.xml.messaging.saaj.soap.MessageImpl could not be instantiated: java.lang.IllegalAccessException: Class javax.xml.soap.FactoryFinder can not access a member of class com.sun.xml.messaging.saaj.soap.MessageImpl with modifiers "protected"]
         at com.sun.xml.registry.uddi.Processor.processRequestJAXB(Unknown Source)
         at com.sun.xml.registry.uddi.UDDIMapper.getAuthorizationToken(Unknown Source)
         at com.sun.xml.registry.uddi.ConnectionImpl.setCredentials(Unknown Source)
         at Publish.doPost(Publish.java:66)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:790)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:709)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:572)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.xml.bind.JAXBException
    - with linked exception:
    [javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Provider com.sun.xml.messaging.saaj.soap.MessageImpl could not be instantiated: java.lang.IllegalAccessException: Class javax.xml.soap.FactoryFinder can not access a member of class com.sun.xml.messaging.saaj.soap.MessageImpl with modifiers "protected"]
         at com.sun.xml.registry.common.util.MarshallerUtil.jaxbMarshalObject(Unknown Source)
         ... 32 more
    expecting yours advise, thanks!!

  • Using NULL and NOT NULL in prompted filters

    Dear all,
    While trying to grap the concept of prompted filters in sap bo web intelligence, I had a question whether why we cannot use NULL and NOT NULL while creating a prompted filters in our report.

    HI,
    'Is Null' and 'Not Null' are the predefined functions in webi which only eliminate the null values or considering only null values.
    'Is Null' and 'Not Null' are itself predefined functions that why you are not getting  prompts.
    Null values are standard across the databases so this is defined  as a function in webi to specific eliminate the null values.
    If something is not standard then there is option in the webi to use different operator with static values or with prompts.
    More more information on Null see the Null wiki page.
    Null (SQL) - Wikipedia, the free encyclopedia
    Amit

  • Using join and batch reading in the same query

    Hi,
    I wonder if it is possible to use "Joining" and "batch reading" in the same query.
    For example I Have
    A -> 1-1 B
    A -> 1-1 B
    B -> 1-M C
    This is the case where I have two separate 1-1 relationships to the same class B from A. Toplink 10.0.3 can manage it nicely through joining.
    Now, I would like to read a set of As (with its 2 Bs) and all Cs for each B.
    It seems that the following configuration does not work:
    A -> 1-1 B (use joining)
    A -> 1-1 B (use joining)
    B -> 1-M C (Batch read)
    Any help would be greatly appreciated
    Tony.

    James,
    Would you be so kind to look at the following code?
    Am I formulating it correctly to achieve my desired behavior?
    Trip.class -> 1-1 PickupStop
    Trip.class -> 1-1 DropoffStop
    PickupStop and DropoffStop extend Stop and use same table (STOP)
    Stop -> 1-M StopEvents
    I would like to fetch all Trips, with their Stops and all StopEvents in 2 queries:
    1. Trip joined with Stop
    2. Batchread StopEvents
    Code:
    ReadAllQuery raq = new ReadAllQuery(Trip.class);
    Expression qexp1 = new ExpressionBuilder();
    Expression qexp2 = new ExpressionBuilder();
    raq.addJoinedAttribute("pickupStop");
    raq.addJoinedAttribute("dropoffStop");
    raq.addBatchReadAttribute(qexp1.get("pickupStop").get("vStopEvents"));
    raq.addBatchReadAttribute(qexp2.get("dropoffStop").get("vStopEvents"));

  • Using multiple 'and' conditions in a SQL query

    Is it possible to reduce the SQL required to query using multiple 'and' conditions, e.g. I have a query like the following:
    select stat.personal_id, appt.username, appt.password, apps.rgn_apt_id, apps.apy_apn_id
    from apy_ast_application_status stat, rgn_usr_user appt, rgn_aps_applications apps
    where stat.apy_apn_id = apps.rgn_apt_id
    and apps.rgn_apt_id = appt.rgn_apt_id
    and stat.application_completed is null
    and stat.application_started_date > '01-MAY-11'
    and stat.amount_paid is null
    and stat.personal_details = 'C'
    and stat.further_details = 'C'
    and stat.education = 'C'
    and stat.employment = 'C'
    and stat.personal_statement = 'C'
    and stat.choices = 'C'
    and stat.reference = 'C'
    and stat.student_finance = 'C'
    Is there a way, to reduce all the multiple 'and' queries, to be read from say one line? If you know what I mean.......

    Ah, Ok this looks nice, thanks very much. It doesn't quite run as is because the stat.amount_paid query value is 'is null', while the others are 'C'. I tried amending the relevant line to various versions of the following:-
    in (select 'is null' 'C','C','C','C','C','C','C','C' from dual)
    which doesn't work.
    I can get the following to work so I am assuming that the it is not possible to use different query values within the brackets of the 'in (select....' statement?
    select stat.personal_id, appt.username, appt.password, apps.rgn_apt_id, apps.apy_apn_id
    from apy_ast_application_status stat, rgn_usr_user appt, rgn_aps_applications apps
    where stat.apy_apn_id = apps.rgn_apt_id
    and apps.rgn_apt_id = appt.rgn_apt_id
    and stat.application_completed is null
    and stat.application_started_date > '01-MAY-11'
    and stat.amount_paid is null
    and (stat.personal_details, stat.further_details, stat.education,
    stat.employment, stat.personal_statement, stat.choices, stat.reference, stat.student_finance)
    in (select 'C','C','C','C','C','C','C','C' from dual)
    Thanks for everybodys help - the suggested alternatives seem so much more elegant

  • HT204053 What are the pros and cons of 1) choosing to use the SAME Apple ID for iCloud services on one side, and purchases on the iTunes Store, App Store, and iBookstore, on the other side; or 2) to have and use two separate Apple Ids for these "two sides

    All is in the title, so I repeat it below with a better identation.
    What are the pros and cons of
    1) choosing to use the SAME
                                                  Apple ID for iCloud services on one side, and
                                                  purchases on the iTunes Store, App Store, and iBookstore, on the other side; or
    2) to have and use two separate Apple Ids for these "two sides"?
    P.S.
    I have loads and loads of free podcasts in iTunes in my iMac, that are certainly more thant the 5 gigas the iCloud provides for free, so I don't want those to go to the cloud. But this is perhaps a different question...
    Also need to mention that I have itunes on a mac, a pc and an iphone.
    Sorry to look so silly with this question, but I don't get the "big picture".

    You need to create a user account for your wife (or yourself depending on who has the current user account). When syncing, each of you should sign in as a separate user, login to iTunes and then sync. I had this problem when my sister got an iPhone. When we did her initial sync, everything on my iPhone showed up on hers. Apple gave me this solution.

  • Can I put a SQL query into a bind variable and then use it to output report

    Hi,
    Can I put a SQL query into a bind variable and then use it to output report?
    I want to create a report and an item "text area" (say P1_TEXT) which can let user to input a SQL query(they are all technical users and knows SQL very well). Then, I use a bind variable (that text area) to store the SQL statement. Then, I add a submit button and I want to use the following to output the report:
    select * from (:P1_TEXT);
    Do you think it is possible to do that? Any known limitations for APEX in this area?
    Thanks a lot,
    Angela

    You can, but make sure it's what you really want to do. Make sure you are VERY familiar with SQL Injection. Most people who know what it is, go out of their way to prevent SQL Injection. You're going out of your way to allow it.
    You can try using &P1_TEXT. instead of bind variable syntax. Bind variables are one of the best ways to prevent SQL Injection, which is why it's not working for you.
    Once again, I strongly urge you to consider the implications of your app, but this suggestion should get it working.
    Tyler

Maybe you are looking for