Use GP API for some GP Runtime Work Center's Function

Hi ,experts:
i want to use GP runtime API to do some useful function of GP Runtime Workcenter's function.But when i use
a method ,got this error:
java.net.MalformedURLException: The protocol is not allowed
    at com.sap.security.core.server.csi.URLChecker._isValid(URLChecker.java:334)
    at com.sap.security.core.server.csi.URLChecker.isValid(URLChecker.java:775)
    at com.sap.tc.webdynpro.serverimpl.core.url.AbstractURLGenerator.checkURL(AbstractURLGenerator.java:791)
    at com.sap.tc.webdynpro.serverimpl.core.url.AbstractURLGenerator.computeWebResourceURL(AbstractURLGenerator.java:1304)
    at com.sap.tc.webdynpro.serverimpl.core.url.AbstractURLGenerator.getWebResourceURL(AbstractURLGenerator.java:279)
here is the code i wrote in the Web Dynpro Component Controller method:
       try{
       IWDClientUser wdUser = WDClientUser.getCurrentUser();     
       IUser user = wdUser.getSAPUser();  
       IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(user);
       IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
       IGPWorkItem[]  itemList = rtm.getWorkItems(GPWorkItemStatus.WORKITEM_STATUS_OPEN, userContext);
       if(itemList[0].isSingleTaskUI()){
            result = itemList[0].generateNavigationTargetForSingleTaskUI();
       }catch(Exception e)
how can i solve this exception and continue to complete my work?
best regards

Hi,
I fear that it is not possible to customize the Runtime WorkCenter. This link will always be there. However, it is possible for you to implement your own work center by using the GP Public API.
Administrator, Owner and Overseer are runtime concepts and cannot apply for browsing the Gallery. It is possible to define DT Permissions for each object. To do this, open a process/block/action and click on the tab "Permissions". There you can search for <i>Role</i>, <i>Group</i> or <i>User</i> and grant them special rights.
For more information, you can have a look at <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/8e/7f55429c0fab53e10000000a1550b0/frameset.htm">Granting for permissions for GP Objects on help.sap.com</a>
Hope this helps.
David

Similar Messages

  • I have been using Voice memos for some time but now I get a message to say No Microphone Available how do I get the function working again?

    I have been using Voice memos for some time but now I get a message to say No Microphone Available how do I get the function working again?

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • The wifi at my school isn't very good. And I can't send iMessages through it. It works for some apps like score center and my radar app, but doesn't work for other apps like clash of clans and iMessage. How can I get it to work on that  wifi network

    The wifi at my school isn't very good. And I can't send iMessages through it. It works for some apps like score center and my radar app, but doesn't work for other apps like clash of clans and iMessage. How can I get it to work on my school wifi. I have an iPhone 4S on AT&T and iOS 7.04

    In a roaming network, your "main" router is the device that would require port mapping/forwarding to be configured in order to access the IP camera from the Internet. This router is also the one that would be provide the private IP address for the camera which you will want to be a static one.
    So as you described your network, the IP cameras should be getting an IP address or you assigned it a static one and this is the address that you would enter in the Private IP address (or equivalent depending on the router used) field when setting up port mapping.
    If you are not able to access this camera from the local network, then this should be troubleshot first.

  • Image not displayed in pdf generated using Java API for Forms service

    Hi,
    I am creating a pdf document using Java API for Forms Service.
    I am able to generate the pdf but the images are not visible in the generated pdf.
    The image relative path is coming in the xml as defined below. The images are stored dynamically in the Livecycle repository each time a request is fired with unique name before the xml is generated.
    <imageURI xfa:contentType="image/png" href="../Images/logo.png"></imageURI>
    Not sure if I need to specify specify specific URI values that are required to render a form with image.
    The same thing is working when I generate pdf document using Java API for Output Service.
    As, I need to generate interactive form, I have to use Forms service to generate pdfs.
    Any help will be highly appreciated.
    Thanks.

    Below is the code snippet:
                //Create a FormsServiceClient object
                FormsServiceClient formsClient = new FormsServiceClient(myFactory);
                //Specify URI values that are required to render a form
                URLSpec uriValues = new URLSpec();
                                  // Template location contains the whole rpository path for the form
                uriValues.setContentRootURI(templateLocation);
               // The base URL where form resources such as images and scripts are located.  Whole Image path is passed in BaseUrl in the http format.
                      String baseLocation = repositoryPath.concat(serviceName).concat(imagesPath);   
                                  uriValues.setBaseURL(baseLocation);                                        
                // Set run-time options using a PDFFormRenderSpec instance
                PDFFormRenderSpec pdfFormRenderSpec = new PDFFormRenderSpec();
                pdfFormRenderSpec.setCacheEnabled(new Boolean(true));           
                pdfFormRenderSpec.setAcrobatVersion(com.adobe.livecycle.formsservice.client.AcrobatVersio n.Acrobat_8);
                                  //Invoke the renderPDFForm method and write the
                //results to a client web browser
                String tempTemplateName =templateName;
                FormsResult formOut = formsClient.renderPDFForm(tempTemplateName,
                                              inXMDataTransformed,pdfFormRenderSpec,uriValues,null);
                //Create a Document object that stores form data
                Document outputDocument = formOut.getOutputContent();
                InputStream inputStream = outputDocument.getInputStream();

  • How to use java api for function activity in embed oracle workflow?

    because i can't install standalone oracle workflow successfully.
    pls tell me how to use java api for function activity in embed oracle workflow?
    are there some patch or pulg-in package?
    ths a lot...........

    The Java Function Activity Agent is not certified for Oracle Workflow embedded in Oracle Applications. Installing standalone workflow should be a lot easier than what you have found, although it looks like you did hit a Pentium 4 issue with the Oracle Universal Installer. I suggest you contact Oracle Support or Oracle Consulting for assistance.
    because i can't install standalone oracle workflow successfully.
    pls tell me how to use java api for function activity in embed oracle workflow?
    are there some patch or pulg-in package?
    ths a lot...........

  • Newbie who want to use Java API for OLAP

    Hi all,
    I'm trying to learn how to use Java API for Oracle 10.2 OLAP. I went through the Java OLAP API user guide and I'm getting even more confused. Can somebody guide me to some good online materials?
    Many thanks!
    - Andrew

    Hi there,
    Did you see the examples in the Reference doc? :- http://download.oracle.com/docs/cd/B19306_01/olap.102/b14348/toc.htm
    Thanks,
    Stuart Bunby
    OLAP Blog: http://oracleOLAP.blogspot.com
    OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
    OLAP on OTN: http://www.oracle.com/technology/products/bi/olap/index.html
    DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

  • How do I renew a provisioning profile that has expired on my phone? I use an app for the company I work for and I cannot open it because it says the provisioning profile has expired.

    How do I renew a provisioning profile that has expired on my phone? I use an app for the company I work for and I cannot open it because it says the provisioning profile has expired.

    i'm not quiet sure atm but should normally work like this:
    connect to itunes store -> log out with ur account (upper right corner where ur apple id is displayed) -> sign in with ur wifes apple id -> activate computer (store->activate this computer)
    normally it should work this way but ur wife wont be able to use apps or music within itunes library purchased with the other apple id

  • My volume is greyed out when I turn on the Mac, but for some reason it works again when I turn on bluetooth. Nothing in system prefs changes this???

    My volume is greyed out when I turn on the Mac, but for some reason it works again when I turn on bluetooth. Nothing in system prefs changes this??? Its all very random and sometimes I do not have this problem at all or it is fixed again when I restart the Mac.

    please let me know if you figure out how to do correct it because mine has exacly the same problem.

  • Hi, I have used PDF export for some years. One file will NOT convert to readable text in Word.  Some

    Hi, I have used PDF export for some years. One file will NOT convert to readable text in Word.  Some headers and maps in this document are converted OK but the body text is garbled. I have tried converting to Docx, Doc and RTF with no success. I disabled OCR and it made no difference. What can I do please?
    Les

    Hi,
    Can you please provide me the file with which you are facing the issue.
    Thanks

  • I have been using Itunes Apps for some time. Today I signed to Itunes to get Apps updated. Apple said I must update my account. I did that with a new password. Itunes said invalid support. Now what can I do?

    I have been using Itunes Apps for some time. Today I signed to Itunes to get Apps updated. Apple said I must update my account. I did that with a new password. Itunes said invalid support. Now what can I do?

    What do you mean "invalid support"? What EXACTLY did it say? Did it say you had an unsupported SIM after updating the firmware on your phone?

  • Alerts & Warnings in GP runtime work center

    Hi all,
    can any one explain me how to trigger the alerts and warning in GP runtime work center and what are the basic setting needed to be done to get alerts. what are the suitations that will lead the process to come under the Erroneous Processes and Overdue Tasks .
    Thanks in advance
    kiran

    Hi Kiran,
    The Guided Procedures runtime and administration portal worksets (and thus the Guided Procedures inbox) should only be accessible by administrators.
    The UWL has to be configured to retrieve workflow items generated by the Guided Procedures framework.
    The Universal Worklist is used as the central access point to tasks, alerts and notifications. You can access
    the UWL to manage and track your tasks.
    Regards
    Manohar

  • PP Work Center ------  PM Functional Location, PM Equipment

    Hi,
    For a given PP Work Center , I want to have the table where details of PM Functional Location & PM Equipment are stored, in which the PP Work Center is used.
    Thnx,
    Shivaa.

    Hi Shivaa,
    Go to T.Code : SARA and giving archive object : PM* + press F4 you will get the following
    Try with the following tables:
    PM_EQUI    Equipment
    PM_IBASE   IBase
    PM_IFLOT   Functional Locations
    PM_IMRG    Measurement Documents
    PM_MPLAN   Maintenance Plans
    PM_NET     Object links, master data
    PM_OBJLIST Serial Number History
    PM_ORDER   Service and Maintenance Or
    PM_PLAN    Routings
    PM_QMEL    Maintenance Notifications
    From the above list click the suitable one and press database table tab. You will get all the relevant database tables.
    Here you go...
    If it is useful reward points
    Thanks
    Saravana
    Edited by: K Saravana Kumar on Jul 30, 2008 8:25 PM
    Edited by: K Saravana Kumar on Jul 30, 2008 8:26 PM

  • Data Warehouse:java.lang.NoClassDefFound Error while using OWB API for Java

    I was writing code to use the OWB APIs for Java:
    I have imported the folowing files:
    oracle.owb.connection.RepositoryManager;
    oracle.owb.connection.OWBConnection;
    oracle.owb.connection.ConnectionFailureException;
    when jvm tries to get instance of Repositary Manger by the following code
    reposManager = RepositoryManager.getInstance();
    I get the following exception:
    Exception in thread main
    java.lang.NoClassDefFoundError: com/objectspace/jgl/HashMap
    I have checked my OWB and Java environment but I cant locate com/objectspace/jgl.jar file. Can some one tell me were this jar is located in so i can import it.

    Either use some criteria you develop related to one of the keys on the table or use some sort of record limiting method.
    Note the method of limiting will vary related to the database you are using. You will have to look at the documentation.
    For example I am told this will work in MySQL to get 200 records starting at record 100.
    SELECT * FROM myTable ORDER BY whatever ASC LIMIT 100,200
    Because you are running out of memroy I assume the table is large,
    I am not sure what the impact of the above will have on performance because if in the above if the order by is not based on an index at the server level all the records will be selected and sorted before the records are limited.
    I would make sure you have an appropriate index.
    If you use the advanced search over the user forums using "resultset paging" and possibility the database you are using you should be able to get some ideas.
    I hope this makes sense to you.
    rykk

  • How to use standard APIs for customized services

    Hello,
    I try to use IUserMappingService which has some hard coded paths to services (user mapping service). However sys admin customized the services location and it's impossible to use standard SAP libraries. For example, the standard library has a path:  "com/sapportals/portal/prt/service/usermapping", but a customized path is "com/sap/portal/pdk/srv/usermapping". When I run this iView, I am getting a message: Caused by: java.lang.NoClassDefFoundError: com/sapportals/portal/prt/service/usermapping/IUserMappingService
    Please advise.
    Thanks,
    Yan

    I guess i know what the problem is. How have you given a reference to the UM service in the portalapps.xml file ??
    I think you would have given the reference as "UserMapping". Now the PRT will look for this particular service and in the portalapps.xml of this service the ClassName would be defined as com.sapportals.portal.prt.service.UserMapping, which the PRT is not able to find.
    You can try giving the FQN in the service reference, but i doubt it will work because the PRT will still look for the above class name at the predefined location.
    Regards, Akhilesh

  • How to use of API for Cancel Sales Orders

    Hi....
    I want to use API for Cancel Sales Orders. Plz give me advice how we can cancel orders. I know that there is procedure provide in ORACLE APPs (i.e. OE_ORDER_PUB.process_order). But in this procedure i know the how to create and update sales order, but how to Cancel order with the use of this API.
    Plz send me soultion as soon as possible. ITS VERY VERY URGENT BASE.
    Thanks in Advance.

    Hi all,
    We are importing Sales Orders on 11.5.9 using OE_Order_PUB.Process_Order API .We have supplied most of the mandatory fields and the same data works from the front end. When we use the API it throws a Ora 20001.
    A snapshot of the error message.
    SQL> exec pk_process_object.process_order('1o');
    Message Count is :2
    Message is RA-20001: User in Package OE_Header_Util Procedure Get_Order_Number
    Message is :User-Defined Exception in Package OE_Header_Util Procedure
    Pre_Write_Process
    Return Status is ErrorU
    PL/SQL procedure successfully completed.
    --------------------------------------------------------------------------------------------

Maybe you are looking for

  • Problem with hp deskjet 6940

    I have been using this printer for the past year now and now today all of a sudden it will not print.  When I try to print it says there is one job in the print queue but when I check the queue it says error. I cannot print anything!  What should I d

  • Zero stock query

    hi experts, how can i make a query that will display all items with zero stock? I have tried linking OITM and OITW('manage by warehouse' is selected), and using the 'onhand' attribute, but with no success.  thanks Michael

  • Problems creating session ejbs in a startup class

    public class startupTest implements T3StartupDef      private T3ServicesDef services;      public startupTest()      public String startup(String name, Hashtable args) throws Exception      try{           Context initialContext = getContext("t3://loc

  • Emails stay unread (inbox doesn't refresh)

    Hi, If I open an email in outlook 2010 they stay unread. I have enabled following options in the reading pane: Mark item as read when selection changes Single key reading using space bar I've also tried to enable the "Mark items as read when viewed i

  • JDev extensions in 11.1.1.4

    Having trouble finding out what .jar files to include in the projects library list to resolve various classes/interfaces etc. Currently looking for import oracle.javatools.buffer.ReadWriteLock;