Service Query

Hi All,
I have created two udf on Service document;
1. U_branch
2.U_PurchasedFrom
The need is to auto generate codes on U_purchased like Test1001  if the U_branch value is 1 and if the U_branch value is 2, then the value should be Test2001. Please suggest.
Thanks,
Joseph

Hi Gordon,
Thanks, but I am not able to get the query for my requirement.
If  $[oscl.u_branch]'='1'
Select  'Test'isnull(substring(str(1000max(right(0,5))+1,6),2,5),
        '0001')
  From oscl T0
This is generating the code as test0001 only once. And next time if i am using the figure in branch as 1, it still shows as test0002. Hoow to get the autoincrement.?? I am unable to get it.
Thanks,
Joseph

Similar Messages

  • Can a web service query a database at set intervals?

    Can someone verify if this is feasible?
    I need to display live data via browsers .  I would like to have the query to the database executed server side and have the web service provide the data to the browsers.
    Here is what I propose :
    I would like to have a web service run on a web server for an intranet.
    Have the web service  query a database every 20 seconds and update the data into a table or an array variable. 
    On the browser side I want the browser to refresh every 20 seconds with the updated data from the web service.
    Any other recommendations would be greatly appreciated.
    Thank you.
    Chris W.

    Hi ChrisTW1,
    Thank you for posting in MSDN forum.
    Based on your issue, I suggest you can try to use the JS to call the web service to set the intervals. For more information about how to use the JS to call the web service to set the intervals, please see:
    http://www.codeproject.com/Tips/647322/Calling-ASP-NET-Webservice-using-JavaScript-on-Reg
    In addition, since
    this forum is to discuss: Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor. If you have any issues about the set the
    intervals for the web service, I suggest you can post this issue directly to the WCF forum:https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wcf, maybe
    you will get more help.
    Hope it help you!
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • SSAS 2012 Tabular. Analysis Services Query Log not working

    Hello.
    It is possible to configure Analysis Services Query Log on SSAS 2012 Tabular (11.0.3321) server? Or this feature works only with Multidimensional server mode?
    It is not a problem for me to configure Query Log on Multidimensional server. But when I'm trying to do this in Tabular server result is always the same: table S_OlapQueryLog created but no data there.
    This problem exist in our production server. And is fully reproduced in test environment. This problem was reproduced with SQL 2012 RTM, CU4, SP1 and SP1 CU1.
    I tryed to configure Analysis Services Query Log by using SQL account. Later by using windows authentification. Accounts was db owners. Later I have used accounts with sysadmin rights. Results was the same.
    In msmdsrv.log i can find only related events like this:
    (12/7/2012 9:22:59 PM) Message: The query log was started. (Source:
    \\?\P:\Olap\Log\msmdsrv.log, Type: 1, Category: 289, Event ID: 0x41210003)
    (12/7/2012 9:25:03 PM) Message: The query log was stopped. (Source:
    \\?\P:\Olap\Log\msmdsrv.log, Type: 1, Category: 289, Event ID: 0x41210004)
    I'm stuck completely with this functionality. So if someone was much luckier than I please write to me.
    Regards
    Audrius

    I agree with Gerhard's comments, but there are a couple of additional points
    - I am not 100 percent sure if queries that are answered by the SE cache are recorded in the query log
    Queries answered by the SE cache are not definitely not recorded in the QueryLog. So depending on the types of queries and the design of your cube you could possible miss a large proportion of the actual end user queries.
    The QueryLog records the QuerySubcube events and there are zero to many of these generated for a given end user query (zero if the query can be answered from cache). The optimizer may also choose to pre-fetch a wider range of data or to break a single range
    into a few smaller requests so it is not a true indication of the actual query that the end user generated.
    Doing a trace is the only way to catch the actual queries submitted by end users.
    http://darren.gosbell.com - please mark correct answers

  • Siebel CRM Web services query limit 100 rows

    Hi everyone,
    A have an little problem here.
    I need get accounts, contacts and oportunitys from Siebel CRM in clound using SIEBEL web service query methods BUT this web service allow me only 100 rows per query and I need more because at this moment I am using ODI interfaces for load XML response file into database tables and ODI don´t have an loop and so on...
    My question is:
    Is possible eliminate this limitation in administrative painel or something like?
    Thanks in advice..
    José Rodrigo
    Edited by: user7286844 on 27/09/2011 14:07

    What version of Siebel are you using? There was a bug in some versions when session management was used but it worked okay in other scenarios, e.g., when the user id and password were passed in the URL. This bug (id 12-1KXYCJ7 and 12-1KXYCJ7) has been fixed (more than once by the look of it). I have not noticed the same in 8.1.1.1.

  • SOAP web service: query parameter?

    Hi guys,
    I'm a newbie when it comes to web services and I've hit a problem that I didn't expect. I've exposed several SOAP services using the JAX-WS and WebLogic which are working fine. I've tried implementing an access key security mechanism such as Amazon does by adding a filter in front of the service's handling servlet to check for an access key sent as an HTTP query parameter. So basically, the service that was exposed at the following URL:
    http://localhost/company/service
    must now be accessed using the following URL:
    http://localhost/company/service?accessKey=123
    The filter checks the accessKey parameter and short-circuits the request if the wrong access key is sent.
    While this approach works well with JAX-RS web services, it doesn't seem to be working as well with JAX-WS web services: adding the parameter makes WebLogic return a 404 error instead of processing the request. I'm convinced I've seen web services being called with query parameters and that this can be done, but I don't see how. Any ideas anyone?
    Cheers!

    It seems that the servlet generated by Workshop doesn't handle extra parameters too well. I've managed to get it working by tweaking the filter so that it lets WSDL retrieval requests pass through but still filters the other requests. Everything is working fine.

  • Oracle RAC load balancing advisory services query

    Hi,
    I have a query on RAC load balancing advisory.
    Is it possible to create a service for exeuction of a PL/SQL package?
    We have UNIX batches which are set of PL/SQL packages that may or may not be linked are executed daily. These batches consumes lots of resources.
    So i want to configure my services such that say pkg1 will go to node1 and pkg2 will go to node2 and so on and so forth.
    Is it possible to achieve this with Net services and LBA?
    If not, is there any other way i can do this?
    Thanks
    AT
    Message was edited by:
    Amit Trivedi

    Hi, my answers are:
    Is it possible to create a service for exeuction of a PL/SQL package?Yes, that is posible, you can create a service for execute PL/SQL Packages, in fact you can create any service that you need and assign the resources and priorities for this service.
    Is it possible to achieve this with Net services and LBA?Yes, thats posible, you define the priorities at service level and where the service must run at node level.
    If not, is there any other way i can do this?Yes, if you dont wish using the LBA and services you will must create statict definition into tnsnames file for operate connection string and indicate where must connect the session for execute the package.
    Luck.
    Have a good day.
    Regards.

  • Launch services query based on URL protocol

    Heyaz. Technote 2017 describes a means of using LSGetApplicationForInfo() to query Launch Services to see what application is available handling a specific file extension (e.g., .html).. I am curious if the same call can be used to query based instead on URL protocol (e.g., afp:, https:, etc.). Also, am curious if the same API is available in the iPhone beta 8 SDK.
    cheers,
    Scott

    http://developer.apple.com/documentation/Carbon/Conceptual/LaunchServicesConcept s/LSCConcepts/chapter2_section_8.html#//apple_ref/doc/uid/TP30000999-CH202-DontLinkElementID11
    No clue if LaunchServices is available on the iPhone.

  • Specifying multiple books in WS2 web services query

    Hi,
    I am wondering if anybody has managed to use web services to query data and restrain by more than 1 book of business. According Oracle Support this can be done though the use of searchspec to determine the Book. I have tried this with no success
    Here is a SOAP message with just a single Book reference. It returns no results?
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body>
    <ContactQueryPage_Input xmlns="urn:crmondemand/ws/ecbs/contact/">
    <ListOfContact xmlns="urn:/crmondemand/xml/Contact/Query">
    <Contact searchspec="([ContactFirstName] = 'John') AND ([BookId] = 'AHIA-N3S58')"><Id />
    </Contact>
    </ListOfContact>
    </ContactQueryPage_Input></soap:Body></soap:Envelope>
    For multiple books the searchspec would be
    <Contact searchspec="([ContactFirstName] = 'John') AND ([BookId] = 'AHIA-N3S58') AND ([BookId] = 'AHIA-N3S76')"><Id />
    Any guidance is appreciated.
    Edited by: user10730659 on 11-Nov-2012 20:59

    Hi Christina,
    Thanks for your response. I had a typo in my initial description the searspec should have read:
    <Contact searchspec="([ContactFirstName] = 'John') AND (([BookId] = 'AHIA-N3S58') OR ([BookId] = 'AHIA-N3S76'))"><Id />
    Have you been able to specify the BookId in the searchspec successfully?
    I dont get an error thrown just no results returned - when I just specfiy 1 book. I normally set the book Id in the query but when using multiple books this won't work, hence why I am looking to use the searchspec...

  • Internal goods/services query

    Hi all,
    We are using classic scenario (SRM 7, ECC6)
    I had this query when creating a shopping cart from internal goods/services. Want you to confirm if I am on the right track.
    Observation: When I create a SC from internal goods/services, the PO is not created if an info record for the material/vendor combination does not exist. But if I have activated sourcing for this product category and the SC goes to SOCO, the purchaser is able to assign a price and PO is then created even without an Ino Record.
    My reasoning for this is: Creating an internal goods/services SC is equivalent to creating a PR in ECC. Hence anyone who raises this PR (or created this SC) is not expected to know the price unless ofcourse there is an info record for that combination. Assuming there is no info record, the purchaser who creates the PO from this PR, can plug in the price manually and order the item (similar to what happens in SRM once the item goes to SOCO)
    Pl validate my understanding and let me know if I am wrong.
    Thanks,
    Nikhil

    Hi Nikhil,
    is it true that when I create an internal goods/services shopping cart for a direct material, I need to obligatorily have an info record to create a PO?
    I wish, I had a system to check the functionality you are mentioning. Honestly speaking, I am not sure whether the same check is implemented when the PO is created in ECC backend for the direct procurement scenario. As you know, direct procurement scenario is like extended classic scenario wherein the backend PO is a copy of the PO created in SRM.
    As you mention about an employee using the self service procurement scenario for direct material procurement, there is no such check or restriction in the employee role which prevents him/her for creating a shopping cart. But, in real life business scenario, a  central good receipient or store in charge uses the shopping cart for direct material scenario in case of shortage of stock in inventory. Here, the store address is taken as delivery address where the creator can receive it himself.
    Sorry for delayed reply.
    Regards,
    Ranjan

  • Abandoned Order Service Query for Abandoned vs Lost Orders

    We are seeing one issue Abandoned Order Service for Identifying order as abandoned in ATG 10.2.
    ATG Document says abandonmentInfo is created when Abandoned Order is found.
    For each abandoned order found, the AbandonedOrderService does the following:
    1. Adds the order to the list of abandoned orders in the user’s abandonedOrders profile property.
    2. If necessary, creates an abandonmentInfo item for the order; then updates the item with the relevant information:
    The state property is set to ABANDONED.
    The abandonmentDate property is set to the current date and time.
    If the abandonmentInfo item is new, the abandonmentCount property is set to 1. Otherwise, it is incremented.
    However code is querying abandonmentInfo.orderLastUpdated. is it not supposed to be orderLastUpdated from Order? Also I am seeing same query is used for finding Abandoned Order , Lost Order?
    is it a ATG Defect? Any thoughts?
    **** debug       Wed Apr 22 19:46:45 IST 2015 1429712205462 /atg/commerce/order/abandoned/AbandonedOrderService Executing abandoned order query: (((state = "INCOMPLETE" AND abandonmentInfo.orderLastUpdated < "Tue Apr 21 19:46:45 IST 2015") AND abandonmentInfo.state = "REANIMATED") OR ((state = "INCOMPLETE" AND abandonmentInfo.orderLastUpdated < "Tue Apr 21 19:46:45 IST 2015") AND abandonmentInfo.state IS "null"))
    **** debug       Wed Apr 22 19:47:16 IST 2015 1429712236307 /atg/commerce/order/abandoned/AbandonedOrderService Executing lost order query: (((state = "INCOMPLETE" AND abandonmentInfo.orderLastUpdated < "Tue Apr 21 19:47:16 IST 2015") AND abandonmentInfo.state != "LOST") OR ((state = "INCOMPLETE" AND abandonmentInfo.orderLastUpdated < "Tue Apr 21 19:47:16 IST 2015") AND abandonmentInfo.state IS "null"))

    to purge the incomplete order
    - write a scheduler
    - write a method to retrieve orders u want to purge - for ex - ordertools.getOrderToPurge ( fire query like " state = 'Incomplete' ")
    - get the order id's and
    - call orderManager.removeOrder(orderId).
    Edited by: user11215973 on Mar 26, 2013 8:05 AM

  • Invocation Service query ??

    Hi,
    I couldn't find decent explanation about the "Invocation Service" of Tangosol. The user guide has a very brief mention of it.
    Can someone please explain me,
    1) What it is?
    2) What functions or features it provides?
    3) How to use those features?
    Regards,
    Mohnish.

    Hi Mohnish,
    1) What it is?The Invocation Service is used to send the processing agents (a.k.a. tasks) to any number of nodes within the Coherence cluster. Essentially, this is the inverse of caching. What I mean by that is caching is all about bringing the data closer to you so that you can perform your business logic, the Invocation Service allows you to send that processing to where the data is in the cluster.
    This allows us to provide an integrated data and compute grid. The data-grid is the Partitioned Cache and the Compute grid being the Invocation Service. For example, if you have your Partitioned Cache loaded with trade data and you want to aggregate the price of all trades you can send an InvocableTask to all nodes in the cluster and that task will be done in parallel across all cluster nodes, each working off their partition of the data. The best part of this combination is if you have 10 Gigs of data to aggregate and it take 10 ms (arbitrary number) and now you have to double the amount of data, just double the number of nodes in your cluster and the same aggregation over 10Gigs of data will take 10ms!
    2) What functions or features it provides?There are three basic features:
    <ol>
    <li>Asynchronous (a.k.a. Fire and Forget): The client (or "caller") sends the agent and does not wait for a result.</li>
    <li>Synchronous (a.k.a. Call and Respond): The client sends the agent and waits for all members queried to send back the response.</li>
    <li>Observable Asynchronous: The clients sends the agent, contiues operation and is notified with the results as they results are obtained from the nodes that are doing the processing.</li>
    </ol>
    3) How to use those features?Take a look at:com.tangosol.net.CacheFactory.getInvocationService(String sName)
    com.tangosol.net.InvocationService.execute(Invocable task, Set setMembers, InvocationObserver observer) (for asynchronous and asynchronous with observer)
    com.tangosol.net.InvocationService.query(Invocable task, Set setMembers) (for synchronous)
    com.tangosol.net.AbstractInvocableHere are some super simple code samples for calling GC across the cluster asynchrnously and obtaining free and total memory across the cluster synchrnously:
    “Fire and Forget�? Example: GC
    * Agent that issues a garbage collection.
    public class GCAgent extends AbstractInvocable
        public void run()
            System.gc();
        }To join the invocable service, a member just has to ask for it:
    InvocationService isvc = CacheFactory
        .getInvocationService("myagents");To issue the GC request to everyone:
    isvc.execute(new GCAgent(), null, null);“Request/Response�? Example: FreeMem
    public class FreeMemAgent extends AbstractInvocable
        public void run()
            Runtime runtime = Runtime.getRuntime();
            int cbFree  = runtime.freeMemory();
            int cbTotal = runtime.totalMemory();
            setResult(new int[] {cbFree, cbTotal});
        }To issue the FreeMem request:
    Map      map  = isvc.query(new FreeMemAgent(), null);
    Iterator iter = map.entrySet().iterator();
    while (iter.hasNext())
        Map.Entry entry  = (Map.Entry) iter.next();
        Member    member = (Member) entry.getKey();
        int[]     anInfo = (int[]) entry.getValue();
        if (anInfo != null) // null if member died
            System.out.println("Member " + member + " has "
                + anInfo[0] + " bytes free out of "
                + anInfo[1] + " bytes total");
        }In Coherence 3.1 (soon to be released) we will make cluster-wide (parallel) aggregation even easier on a cache by introducing a feature called InvocableMap, which will add certain features tot he cache itself. Here is a sampling of some of the methods that will be provided.
    public Object invoke(Object oKey, EntryProcessor agent);
    public Map invokeAll(Collection collKeys, EntryProcessor agent);
    public Map invokeAll(Filter filter, EntryProcessor agent);
    public Object aggregate(Collection collKeys, EntryAggregator agent);
    public Object aggregate(Filter filter, EntryAggregator agent);Hope this helps.
    Later,
    Rob Misek
    Tangosol, Inc.

  • SLD Business Service Query

    Hi,
    i would like to query the system landscape directory to get some attributes from the business service. Any ideas?

    Finally i found the solution in the function group LCRACCESS
    How can i assign 10 points to me?

  • Web Service Query Question

    I have a process that is going through each account record and doing some processing on it.
    This is a time consuming process. It takes close to 20 minutes to complete.
    I would like to provide a better status message to my customer to let them know how much longer the process should take.
    My question is:
    Can I retrieve the count of the number of records that would be returned based on the query criteria I am using?
    I would use this to provide a status message like
    "Processing account 50 of 120,000"

    Hi All,
    Recently we also had the same requirement, count the number of records and we achieved it by reports.
    1. create a report which generates the simply total count of records.
    2. on your custom page / application access that report and get the count.
    Dinesh
    CRMIT

  • Adding paging to Azure Mobile Web Service Query

    Hi all,
    I need to add paging to my Mobile Web Service, and in referencing this page it has a link stating "For more information, see
    Add paging to your queries."
    https://msdn.microsoft.com/en-us/library/azure/jj677199.aspx
    However, the link takes me to "Windows Store Samples". Does anyone know or have the correct reference for adding paging?
    Thanks,
    K.
    Personal Blog: http://thebitsthatbyte.com

    Hello Kelly,
    Let me know if this
    MSDN blog on paging results from Mobile Services helps.
    Abdulwahab Suleiman

  • Global Service Query

    Hi all
    I downloaded the sample application from sdn called <b>com.sap.netweaver.kmc.globalservice.zip</b>Its sample global service for capturing KM events.
    I modified only the EventHandler.java and added some JCO statements in the method when something gets deleted from KM repository.
    While creating PAR file I renamed dir called local to install under src config, because it was giving exception.
    Now I deployed the PAR in portal. I can see the service active under Global Services in System Admin .
    But its not working. I think its not able to catch the events at all. The JCO code is ok as I tried it in other application where its working fine.
    Please suggest a way .
    Points will be definitely awarded.

    Hi All KM Experts
    Please reply back...

Maybe you are looking for

  • Saving Adobe forms in R/3

    Hi All,   We are using ISR scenarios (Eg: Personal change request of MSS package) where we have used adobe forms. Manager generates a new form whcih goes to HR co-ordinator as a workitem. But we need to save these forms in R/3 also. because in future

  • Boot fails after pacman -Syu [SOLVED]

    Hello forums, I did a full system upgrade two days ago. Getting this on boot early console in decompress_kernel Decompressing Linux... Parsing ELF... done. Booting the kernel. :: running early hook [udev] :: running early hook [lvm2] :: running hook

  • Vendor Due Date analysis ( delete posts )

    delete Edited by: Edgar Almonte on Mar 13, 2008 1:58 PM

  • MacBook Pro will not start up, and is making low-pitched beeping noises

    I bought my MacBook Pro four days ago and it had worked perfectly fine until yesterday. Now when I try to power it up it won't, and perpetually makes low beeping noises (even when closed) in intervals of 3. Does anyone know what is going on?

  • Does lightroom update photos in bridge

    does lightroom update photos that are shown in bridge?