Formatted Search on Service Call

Dear All,
Im trying to write a formatted search on the Service call screen to retrieve the email address of a queue. The queue is in the general tab of the Service call. You can add user defined fields for the service call-title, service call -solutions, service call- activities etc.
I have added the userdefined field on the service call-title.
My formatted searches can access all the other header details on the service call but I cannot get the queue data in the general tab.
Kindly assist,
Thanks,
Indraj.

HI Indraj,
On the user defined fields area if you want to use the formatted search, use must have to use the table and field names inside. (also if you have any field which not represented by variables eq: hidden fields):
$[TABLE_NAME.FIELD_NAME]
if you use normal fields area, and you have the variable on the form:
$[$ITEMUID.COLUID.TYPE]
where Type is:
0 for gerenal
NUMBER for numbers,
etc.
So Your solution is:
SELECT T1.[email] FROM OSCL T0  INNER JOIN OQUE T1 ON T0.Queue = T1.queueID WHERE
T0.[callID] =$[OSCL.callID]
Regards,
J.

Similar Messages

  • Google Search Example - Service call fails

    Hello,
    I can't make the service work. I feel I have problem in my portalapp.mxl file.
    Here it is:
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="SharingReference" value="com.sap.portal.runtime.application.soap,htmlb">
        </property>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
      </application-config>
      <components>
        <component name="MyGooglePage">
          <component-config>
            <property name="ClassName" value="com.tutorial.wsdl2service.MyGooglePage"/>
            <property name="SecurityZone" value="com.tutorial.wsdl2service/low_safety"/>
          </component-config>
          <component-profile/>
        </component>
      </components>
      <services>
        <service alias="com.tutorial.wsdl2service.MyGoogleService" name="MyGoogleService">
          <service-config>
            <property name="className" value="com.tutorial.wsdl2service.MyGoogleService">
            </property>
            <property name="startup" value="false">
            </property>
            <property name="WebEnable" value="false">
            </property>
            <property name="WebProxy" value="true">
            </property>
            <property name="SecurityZone" value="com.tutorial.wsdl2service.MyGoogleService/DefaultSecurity">
            </property>
          </service-config>
          <service-profile>
            <property name="SystemAlias" value="Default_System_Alias">
            </property>
          </service-profile>
        </service>
      </services>
    </application>
    My error messages:
    doProcessAfterInput
    search term: ftyry
    Sep 17, 2004 2:03:06 PM # Client_Thread_6      Fatal
    com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Portal Compon
    ent
    Component : WebServiceTutorial.MyGooglePage
    Component class : com.tutorial.wsdl2service.MyGooglePage
    User : admin
            at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(Portal
    RequestManager.java:855)
            at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestMana
    ger.java:311)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.
    java:143)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.
    java:195)
            at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentRespon
    se.java:209)
            at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:589)
            at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestMana
    ger.java:301)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.
    java:143)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.
    java:195)
            at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.
    java:636)
            at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.ja
    va:209)
            at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:532)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:147)
            at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl
    .java:789)
            at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:6
    44)
            at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:305)
            at com.inqmy.services.httpserver.server.Response.handle(Response.java:165)
            at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1133)
            at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.proces
    s(ApplicationSessionMessageListener.java:36)
            at com.inqmy.core.cluster.impl0.ParserRunner.run(ParserRunner.java:35)
            at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:132)
    Caused by: com.sapportals.portal.prt.component.PortalComponentException: Exception during PageProces
    sorComponent.doContent()
    Component : null
    Component class : null
            at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.
    java:139)
            at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPor
    talComponent.java:209)
            at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalCompone
    nt.java:114)
            at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestMana
    ger.java:301)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.
    java:143)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.
    java:195)
            at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentRespon
    se.java:209)
            at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:589)
            at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestMana
    ger.java:301)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.
    java:143)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.
    java:195)
            at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.
    java:636)
            at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.ja
    va:209)
            at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:532)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:147)
            at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl
    .java:789)
            at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:6
    44)
            at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:305)
            at com.inqmy.services.httpserver.server.Response.handle(Response.java:165)
            at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1133)
            at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.proces
    s(ApplicationSessionMessageListener.java:36)
            at com.inqmy.core.cluster.impl0.ParserRunner.run(ParserRunner.java:35)
            at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:132)
    Caused by: java.lang.reflect.InvocationTargetException: java.lang.NoSuchMethodException
            at com.sapportals.portal.prt.service.soap.util.ToolKit.getportalWebServicemethod(ToolKit.jav
    a:671)
            at com.sapportals.portal.prt.service.soap.PRTSOAPCall.invokeMethod(PRTSOAPCall.java:183)
            at com.tutorial.wsdl2service.MyGoogleService.doGoogleSearch(MyGoogleService.java:271)
            at com.tutorial.wsdl2service.MyGooglePage$GoogleDynPage.onSearchButtonClicked(MyGooglePage.j
    ava:98)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:172)
            at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:101)
            at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.
    java:135)
            at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPor
    talComponent.java:209)
            at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalCompone
    nt.java:114)
            at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestMana
    ger.java:301)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.
    java:143)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.
    java:195)
            at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentRespon
    se.java:209)
            at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:589)
            at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestMana
    ger.java:301)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.
    java:143)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.
    java:195)
            at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.
    java:636)
            at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.ja
    va:209)
            at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:532)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:147)
            at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl
    .java:789)
            at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:6
    44)
            at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:305)
            at com.inqmy.services.httpserver.server.Response.handle(Response.java:165)
            at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1133)
            at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.proces
    s(ApplicationSessionMessageListener.java:36)
            at com.inqmy.core.cluster.impl0.ParserRunner.run(ParserRunner.java:35)
            at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:132)
    [email protected]ba #
    Thanks,
    Yan

    Hai anoop,
      I am getting this error when I deployed your par file. Does it work for u. Let me know why it is not working in my system.
    thanks for sending par file.
    Component : webservicetest.MyGooglePage
    Component class : com.sap.karsten.webservice.google.MyGooglePage
    User : superRichard
         at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:879)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:312)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:144)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:196)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:209)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:589)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:302)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:144)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:196)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:645)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:209)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:532)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:147)
         at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:789)
         at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:644)
         at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:305)
         at com.inqmy.services.httpserver.server.Response.handle(Response.java:166)
         at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1152)
         at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
         at com.inqmy.core.cluster.impl0.ParserRunner.run(ParserRunner.java:35)
         at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:132)
    Caused by: com.sapportals.portal.prt.component.PortalComponentException: Exception during PageProcessorComponent.doContent()
    Component : null
    Component class : null
         at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:139)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:302)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:144)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:196)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:209)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:589)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:302)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:144)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:196)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:645)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:209)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:532)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:147)
         at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:789)
         at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:644)
         at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:305)
         at com.inqmy.services.httpserver.server.Response.handle(Response.java:166)
         at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1152)
         at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
         at com.inqmy.core.cluster.impl0.ParserRunner.run(ParserRunner.java:35)
         at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:132)
    Caused by: java.lang.reflect.InvocationTargetException: javax.xml.soap.SOAPException: [PROXY Error] com.inqmy.lib.jaxm.soap.SAPSoapException: javax.xml.soap.SOAPException: Unable to internalize message (proxy host: null, proxy port: -1, non proxy host: null)
         at com.sapportals.portal.prt.service.soap.SOAPService.call(SOAPService.java:157)
         at com.sapportals.portal.prt.service.soap.PRTSOAPCall.invokeMethod(PRTSOAPCall.java:209)
         at com.sap.karsten.webservice.google.MyGoogleService.doGoogleSearch(MyGoogleService.java:196)
         at com.sap.karsten.webservice.google.MyGooglePage$GoogleDynPage.onSearchButtonClicked(MyGooglePage.java:99)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:172)
         at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:101)
         at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:135)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:302)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:144)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:196)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:209)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:589)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:302)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:144)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:196)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:645)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:209)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:532)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:147)
         at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:789)
         at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:644)
         at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:305)
         at com.inqmy.services.httpserver.server.Response.handle(Response.java:166)
         at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1152)
         at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
         at com.inqmy.core.cluster.impl0.ParserRunner.run(ParserRunner.java:35)
         at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:132)
    [email protected]87 #
    Dec 8, 2004 1:53:30 PM # Client_Thread_36     Fatal           Failed to lookup null in Initial Context #

  • Formatted search - Service call

    Dear All,
    Im trying to write a formatted search on the Service call screen to retrieve the email address of a queue. The queue is in the general tab of the Service call. You can add user defined fields for the service call-title, service call -solutions, service call- activities etc.
    I have added the userdefined field on the service call-title.
    My formatted searches can access all the other header details on the service call but I cannot get the queue data in the general tab.
    Kindly assist,
    Thanks,
    Indraj.

    Hi Indraj
    If I understand correctly you cannot add a formatted search on the queue field? If this is not so, let me know. If it is the Queue field, you must select the radial button to the left for the queue field to be active. I tested by doing the following:
    1. Added a UDF on Title level called email (U_email).
    2. Added a query - SELECT T0.[email] FROM [dbo].[OQUE]  T0 WHERE T0.[queueID] = $[OSCL.Queue]
    3. Added a formatted search to the email UDF and linked it to the query. Set auto refresh on field "queue"
    This works 100% whenever I select a queue number.
    Kind regards
    Peter Juby

  • Formatted Search calling a stored procedure

    Hello all,
    I am having a problem getting a formatted search to work when I call a stored procedure from SAP (I am doing this because of a bug we discovered and need to get the client live Feb 1).  The stored procedure works fine when passing variables from within SQL Server, but fails when using SAP.  The problem seems to be where I need to get a UDF from the item master table, but not sure.  Thanks in advance
    The call from SAP query is:
    declare @LineType as varchar(6)
    declare @Width as numeric (19,6)
    declare @LI as numeric (19,6)
    declare @LN as numeric (19,6)
    declare @LD as numeric (19,6)
    declare @HI as numeric (19,6)
    declare @HN as numeric (19,6)
    declare @HD as numeric (19,6)
    declare @QtyOrd as numeric (19,6)
    Select @Width = $[OITM.U_WTH]
    FROM OITM
    WHERE OITM.ItemCode = $[$38.1]
    exec TBC_CHOP
    @Width,
    @LineType = $[$38.U_LINETYPE],
    @LI =$[$38.U_LI],
    @LN =$[$38.U_LN],
    @LD =$[$38.U_LD],
    @HI = $[$38.U_HI],
    @HN = $[$38.U_HN],
    @HD = $[$38.U_HD],
    @QtyOrd = $[$38.U_QTYORD]
    The stored procedure is:
    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    go
    -- =============================================
    -- Author:          <Mark Rueff
    -- Create date: <Jan 5, 2009>
    -- Description:     <Chop Calculation>
    -- =============================================
    ALTER PROCEDURE [dbo].[TBC_Chop]
         -- Add the parameters for the stored procedure here
    @LineType AS varchar(6) ,
    @Width AS numeric(19, 6),
    @LI AS numeric(19, 6) ,
    @LN AS numeric(19, 6),
    @LD AS numeric(19, 6),
    @HI AS numeric(19, 6),
    @HN AS numeric(19, 6),
    @HD AS numeric(19, 6) ,
    @QtyOrd AS numeric(19,6)
    AS
    BEGIN
         -- SET NOCOUNT ON added to prevent extra result sets from
         -- interfering with SELECT statements.
         SET NOCOUNT ON;
        -- Insert statements for procedure here
    SELECT
    CASE
    WHEN @LineType = 'c' AND @Width >= 3
    THEN ROUND((((ROUND((((@Width * 10) + 5) / 10), 1) * 8) + (((@LI + (@LN / @LD)) + (@HI + (@HN / @HD))) * 2) + 4) / 12) * @QtyOrd, 1)
    WHEN @LineType = 'c' AND @Width < 3
    THEN
        CASE
        WHEN RIGHT(CONVERT(int,(@Width * 10)), 1) > 0 AND RIGHT(CONVERT(int, (@Width * 10)), 1) < 5
        THEN ROUND(((((ROUND((@Width - 0.5), 0) + 0.5 * 8)  + (((@LI + (@LN / @LD)) + (@HI + (@HN / @HD))) * 2) + 4) / 12) * @QtyOrd), 1)
        ELSE ROUND((((ROUND(@Width, 0) * 8) + (((@LI + (@LN / @LD)) + (@HI + (@HN / @HD))) * 2) + 4) / 12) * @QtyOrd, 1)
        END
    WHEN @LineType = 'j' AND @Width >= 3
    THEN ROUND((((ROUND((((@Width * 10) + 5) / 10), 1) * 8) + (((@LI + (@LN / @LD)) + (@HI + (@HN / @HD))) * 2) + 4) / 12) * @QtyOrd, 1)
    WHEN @LineType = 'j' AND @Width < 3
    THEN
        CASE
        WHEN RIGHT(CONVERT(int, (@Width * 10)), 1) > 0 AND  RIGHT(CONVERT(int, (@Width * 10)), 1) < 5
        THEN ROUND(((((ROUND((@Width - 0.5), 0) + 0.5 * 8) + (((@LI + (@LN / @LD)) + (@HI + (@HN / @HD))) * 2) + 4) / 12) * @QtyOrd), 1)
        ELSE ROUND((((ROUND(@Width, 0) * 8) + (((@LI + (@LN / @LD)) + (@HI + (@HN / @HD))) * 2) + 4) / 12) * @QtyOrd, 1)
        END
    WHEN @LineType = 'r'
    THEN ROUND(((((@Width * 2) + (@LI + (@LN / @LD))) / 12) * @QtyOrd), 1)
    WHEN @LineType = 's'
    THEN @QtyOrd * 1.5
    WHEN @LineType = 'o'
    THEN @QtyOrd
    WHEN @LineType = 'l'
    THEN @QtyOrd
    ELSE 0
    END
    END

    Mark,
    I believe the syntax of your formatted search is not right. I guess you are trying to get the U_Width from Item Master and the other values from the current form.
    SELECT @Width = T0.U_WTH FROM [dbo].[OITM] T0.WHERE T0.ItemCode = $[$38.1.0]
    EXEC TBC_CHOP @Width, $[$38.U_LINETYPE.0], $[$38.U_LI.0], $[$38.U_LN.0],
    $[$38.U_LD.0], $[$38.U_HI.0], $[$38.U_HN.0], $[$38.U_HD.0], $[$38.U_QTYORD.Number]
    If you see I have added a third parameter which is the Type to the formatted seach field selection $[$Item.Column.Type]
    I have made then all 0 but you may change it as per the col type.  This Type should be 0 for Char type columns, Number for numeric columns and Date for Date type cols
    Suda

  • Unable to make or receive phone calls; searching for service.

    Last night my iPhone 4 started constantly searching for service. I would get full bars in 3G then go to searching, no service, then back to full bars. It does this constantly. My battery drained by 50% within an hour. Any call I try to make instantly drops; I can't receive phone calls (or voicemails) and I can't send or receive texts unless I'm in WiFi. This just started last night. Any help?

    See if this Assistant Helps
    http://www.apple.com/support/iphone/assistant/calls/
    The Basic Troubleshooting Steps are:
    Restart..  Reset..  Restore from Backup..  Restore as New...
    Try this First... You will Not Lose Any Data...
    Turn the Phone Off... ( if it isn’t already )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear and then Disappear...
    Usually takes about 15 - 20 Seconds... (But can take Longer...)
    Release the Buttons...
    Turn the Phone On...
    If you cannot Resolve your Issue... Then a Restore would be the way to go...
    Backing up, Updating and Restoring
    http://support.apple.com/kb/HT1414

  • HT1414 my iphone 4 turns on but cannot make calls or send texts because it is "searching" for service it says to connect to itunes but when  connect it to my itunes it doesnt pop up and i need my phone to work asap !

    i have an iPhone 4 and it turns on but it keeps "searching" for service and it says to connect to my itunes and a support grouop but when i plug it into my laptop (and i have a toshiba not a mac) my phone doesnt even connect so i have no idea whatas going on with my phone and i need it asap!

    Check your connection - Reset Network Settings - Toggle Airplane Mode -
    If none of those help hard reset the phone
    Hold down the Home button and the Power on/off button "at the same time"
    -Screen will go black then after a few seconds you should see the Apple Logo, once you see the logo let go of both buttons. Allow the iPhone to reboot-

  • Formatted Search in Matrix

    How to create a query for formatted search if my variable is in the matrix(some column and some row).
    I would like the SAP user get a list of all Workorders for a Job, and Job is a cell in matrix.
    Workorder value should be shown in another cell in the same row.
    Thanks a lot,

    Hi Pavel,
    The document 'How to Define and Use Formatted Search' on the Service Market Place goes through defining and using formatted searches with queries. It also explains how to use fields in an active form in a formatted search, look at the section called 'Search by Saved Query' in the document.
    To find this document go to
    www.service.sap.com -> Channel Partner Portal -> Solutions - SAP Business One -> Support -> Additional Information - Documentation Resource Centre -> SAP Business One 2005 A SP 01 -> How to guides -> 'How to Define and Use Formatted Search'
    This document also gives some examples of the types of queries which are used in formatted searches.
    Hope this helps
    Noreen

  • Sales person in the service call report

    Hello
    I am using PLD to make a new layout for the service call report. I would like to add a column with the sales person of the customer. I have already added the field from the table, but i just get a blank column.
    Does anyone know how I can do it?
    Thanks
    Jacobo

    Hi Jacobo,
    We cannot select the OSLP table in the list of tables available without using Alt+click. Please reconfirm if you have used this. Since OSLP is not available, you cannot include the Sales Employee column in the report.
    One workaround is to set the sales employee name in one of the unused fields on the Service call form (like problem type, call type etc). Just rename and define the sales employees here as well. You can even use Formatted search to update this field for change in BP code.
    Since this column is already available in the Service call reports, you can easily rename the columns and use the reports as-is without much customisation on PLD.
    Hope this helps.
    Regards,
    Hamsa

  • Service call -FMS

    Hi experts,
    I am trying to make query based formatted search but it is showing me some error.
    I have created 1 udf say UDF1 at the title level of the Cuvice stomer equipment card I want the same value should get captured at the title level of the service call & the service conract.
    regards-
    mona

    Hello,
    What is the error that you are receiving?
    regards,
    Lucas

  • Formatted Search working Partially on SDK Field

    I have a text field on the Service call screen called
    "A"
    I need the field to be updated with a value taken from the Item Master table, U_A field.
    I have created my query as below,
    SELECT I.U_A FROM OITM I
    WHERE I.ItemCode = $[$33.0.0]
    and set a formatted search on the field A in the Service Call screen to refresh regularly when the Item No field changes.
    The Formatted search does NOT fire when the item number changes.
    It fires only when I do Shft + F2
    HOWEVER if I try the formatted search on a system field on the same screen such as the Description field, then the Item Number Change fires the formatted search.
    Does anyone know of this resriction, or a workaround please?
    appreciate your help.
    Thanks,
    Indika

    Hi Felipe,
    The problem happens when I use the formatted query on a text field I created using the SDK only. It works on any other SAP field.
    as I mentioned, if I press Shift + F2 then it works regardless.
    I tried this on the Item Master screen too with the same result. of course I changed the query to $[$5.0.0].
    Threrefore I don't think it has anything to do with the query syntax , rather the SDK field.
    in any case here is the code (vb6) I used on the Item Master
    Private Function temp(ByRef pval As SAPbouiCOM.ItemEvent) As Boolean
        Dim oItm As SAPbouiCOM.Item
        Dim oForm As SAPbouiCOM.Form
        Dim oRelateItm As SAPbouiCOM.Item
        Dim iRelateItmHt As Integer
        Dim oEdtBox As SAPbouiCOM.EditText
        Set oForm = mObjSBOApplication.Forms(pval.FormUID)
        With oForm
            '---text
            Set oItm = .Items.add("maxGstT", it_EDIT)
            Set oRelateItm = .Items("76") 'closed on date edit box
            oItm.Left = oRelateItm.Left
            oItm.Width = oRelateItm.Width
            oItm.Top = mObjSBOApplication.Forms(pval.FormUID).Items("36").Top   'item group top
            oForm.DataSources.UserDataSources.add "dsmaxGstT", dt_SHORT_TEXT
            Set oEdtBox = oItm.Specific
            oEdtBox.DataBind.SetBound True, "", "dsmaxGstT"
        End With ' With oForm
    End Function
    Message was edited by: Indika Dekumpitiya (spelling)

  • Formatted Search Numbering Wildcards

    I've seen lots of numbers used in formatted search queries on these forums, and it looks like they are used as wildcards (as mentioned below) so that a single query can be used for all marketing documents for instance.  Is there a list somewhere that shows which numbers correspond to which tables and fields?
    "Note!!! You can replace the $[ORDR.CARDCODE] string (in the query) with the $[$-4.0.0] string, and the $[ORDR.NUMATCARD] string with $[$-14.0.0] string. Using these alternative strings will enable SAP Business One users to activate this query in other marketing documents, by changing only the name of the related table."
    My specific question involves a UDF.  I have a row level UDF in my marketing documents called "OrderType", which lets us specify if it is a Normal order, Sample order or a Service order.  Depending on which is selected, my formatted search automatically changes the G/L Account field and COGS Account field on the same row.  Can I use a single query for all marketing documents instead of having one for each table?  Below is my query that is currently functional for sales orders.
    SELECT
      CASE $[RDR1.U_OrderType]
        WHEN 'Normal' THEN 5000
        WHEN 'Sample' THEN 6125
        WHEN 'Service' THEN 5803
      END $[RDR1.U_OrderType]
    FROM RDR1 FOR BROWSE

    As long as you do not include any table names in your query, it applies to all your marketing documnets.  You can find this info by View - System Information.
    Actually, you should create another UDF in the item master. The UDF in all your Marketing Row levels will get this info.
    Your query will looks like:
    SELECT
      CASE $[$38.U_OrderType.0]
        WHEN 'Normal' THEN 5000
        WHEN 'Sample' THEN 6125
        WHEN 'Service' THEN 5803
      END

  • Default technician on service call

    Is there anyway to default the customer assigned technician to a service call.
    A technician is assigned to a business partner in the business partrner master. He must be assigned a role of technician.
    When you create an ecard for that customer, the techician is assigned from the BP master.  That is good. 
    However, when you create a service call for this customer, the technician does not default to the customer assigned technician.
    I hope I am missing something obvious.
    Thanks, David

    Hi David,
    Unfortunately, you didn't miss anything, that's how standard B1 work.
    You could use this formatted-search
    SELECT lastName+', '+firstName FROM OHEM
    INNER JOIN OINS ON OHEM.empID=OINS.technician
    WHERE internalSN=$[OSCL.internalSN.0]
    AND itemCode=$[OSCL.itemCode.0]
    Assign this formatted search in Technician field in Service Call document. Hope this help.
    Best Regards,
    Hendry Wijaya

  • Thanks this was very useful.. I have a brand new iphone 4s unlocked version from singapore and I am having the same problem constant network fluctuations, no service, call failed, invalid sim, sim failure, bars fluctuating from 5 - 3 - 2 - 1, no signal/ba

    I have a brand new iphone 4s unlocked version from singapore and I am experiencing constant network fluctuations on my iphone , no service, call failed, invalid sim, sim failure, bars fluctuating from 5 - 3 - 2 - 1, no signal/bars searching etc... Ifeel miserable after trying out all the options changed multiple sims, tried multiple carriers, restored the phone back and have set-up as new device but the problem does not get solved... its is so frustrating that after investing on a world's most expensive phone you cannot enjoy the calling features which the phone offers which is the main thing you own the phone for.. Rest of the things are working.. The funniest part I am not able to make calls or receive calls but can access the internet..  I have tried every possible thing and really very frustrated with this iphone of mine...I hope the problem gets solved.. would anyone have any solutions to this problem.. Does it mean one should never update software as I hear that after updating to IOS.5.1 the problem has started coming and same has been with there.... Apple says its a hardware failure which is very difficult to digest as sometimes I get 5 bars and able to make and receive calls but 95% of the time I am unable to. If anyone has any solution I will be very happy if he or share can share the same. Many thanks. its so disgusting to experience this on top of this apple does not support global warranty for the phone as you need to go to the country from where you bought the phone for replacement.. Truly sad state of affairs.. very very very dissappointing.

    Have a look at this it might help
    http://support.apple.com/kb/TS4148

  • Setting the attachment name in web service call scheduleReport

    Hi there,
    I searched the forum for this, found lots of threads but no useful solution...
    I am using BI Publisher 10.1.3.4.1 and I need to send a PDF report by email using its web service functionality. This works fine but the report is attached as "attachment.pdf" which is far from ideal. Is it possible to specify what the attachment should be called (e.g. "veryimportantreport.pdf")
    See below an example of the web service call I am doing.
    Thanks
    Luis
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
          xmlns:pub="http://xmlns.oracle.com/oxp/service/v11/PublicReportService"
          xmlns:pub1="http://xmlns.oracle.com/oxp/service/PublicReportService">
       <soapenv:Header/>
       <soapenv:Body>
          <pub:scheduleReport>
             <pub:scheduleRequest>
                <pub:cronExpression></pub:cronExpression>
                <pub:deliveryRequest>
                   <pub:contentType>pdf</pub:contentType>
                   <pub:documentData></pub:documentData>
                   <pub:emailOption>
                      <pub:emailBody>Message body</pub:emailBody>
                      <pub:emailFrom>[email protected]</pub:emailFrom>
                      <pub:emailReplyTo>[email protected]</pub:emailReplyTo>
                      <pub:emailServerName>emailserver</pub:emailServerName>
                      <pub:emailSubject>Subject</pub:emailSubject>
                      <pub:emailTo>[email protected]</pub:emailTo>
                   </pub:emailOption>
                </pub:deliveryRequest>
                <pub:reportRequest>
                   <pub:reportAbsolutePath>/Order/Order.xdo</pub:reportAbsolutePath>
                   <pub:attributeFormat>pdf</pub:attributeFormat>
                   <pub:parameterNameValues>
                      <pub:item>
                         <pub:name>P_ORDER_ID</pub:name>
                         <multiValuesAllowed>false</multiValuesAllowed>
                         <pub:values>
                            <pub1:item>123</pub1:item>
                         </pub:values>
                      </pub:item>
                   </pub:parameterNameValues>
                </pub:reportRequest>
             </pub:scheduleRequest>
             <pub:userID>luis</pub:userID>
             <pub:password>luis</pub:password>
          </pub:scheduleReport>
       </soapenv:Body>
    </soapenv:Envelope>

    mdonohue wrote:
    Sorry, product currently does not provide a way to name the attachment. I have entered an enhancement request to get that into a future release.That is a bit disappointing but thanks for letting me know!
    We are using BIP to generate reports from Apex and it works very well, except for this small detail.
    By the way, you sound very sure; are you related to Oracle in any way (I mean, is this an "official" answer)? I can't tell from your profile...
    Cheers
    Luis

  • Why Service Call and why not call Function module Directly in WD ABAP

    Hi,
    I have created a Webdynpro applications and the logic requires calling avrious Function modules.
    Do I need to create Service Call for each Function module or call them directly.
    It would be great if you can suggest me under what cases I need to opt for Service call
    For example, if I use 'RP_CALC_DATE_IN_INTERVAL', do I need to use Service call or call function module directly.
    Note: I have searched forums but could not get the correct answer which I want
    Thanks!

    The Service Call is really meant to be a wizard/time saver.  It has the advantage that it can generate matching context nodes/attributes for the interface of the Function Module you are calling. However everything that the service call does can also be created by hand.
    Personally I'm not a fan of what the service call wizard generates.  Its good as a time saver or for beginners, but I find I prefer to touch up the code it generates anyway. I much prefer to create a nice reusable model class with its own unit test and then consume this model class (with the service call wizard) from WD.  This model class might contain one or more function module calls depending upon what logic I need to access.

Maybe you are looking for

  • Iphone update needs to connect to iTunes - I DON'T HAVE A COMPUTER WITH ITUNES?

    My macbook gave up for good and I haven't purchased a new one yet, so I have been using an old PC (boo, I know). It doesn't have iTunes, so I have been using my iPhone4 for everything. My iphone has EVERYTHING stored on it (lots of songs, movies, boo

  • How to view recent threads

    In case it's any use to anyone, I discovered that it's possible to get a list of all recent message threads by going to URL http://community.bt.com/t5/forums/recentpostspage/post-type/thread They are sorted by the date/time of the most recent post to

  • Apple web site crashes safari on ipad

    I Have tried to get to the apple web site today and every time I try to access it safari crashes.     I can not understand how apples own web site can crash its browser on iPad.    ApparentLynn chrome does not have this issue

  • Boot Camp 4

    Hi i have boot camp 4.0.4 on my mac, should i install the lastest 4.0.4 to install windows 7 or just use what i have on my mac already?

  • Security in iTunes and Match.

    Hi All, A quick query on security within iTunes and something I have become increasingly wary about. I love iTunes match and the whole icloud thing, with close to 10,000 strong library now available in the atmosphere to multiple devices. As a result