How to call request object of IPortalComponent in KM Scheduler application

Hi
We are reading RFC Table data using JCO Connection Pool(JCOClientPoolEntry. Please find the below teo line code.If we put this code in KM Scheduler application then its throwing error for the request objecct of IPortalComponenetRequest.
IJCOClientPoolEntry jcoPoolEntry = null;
jcoPoolEntry = clientService.getJCOClientPoolEntry(sysId, request);
Can you please let me know how to use request object of IPortalComponent in KM Scheduler application?
Thanks,
Susmita

Hello GopalY,
In my experience its not possible to call OLE object in Webui. Maybe customer 3 party application will be supply some web service to handle credit card payments. I think this is the simple way to access 3party application.
Regards,
Zafer,

Similar Messages

  • How to get Request object and LDAP user

    Hi All,
    How to get Request object, coz i want to see the out put of this code
    IUser myUser = request.getUser();
    String uid=myUser.getUid();
    I want to get only LDAP user from the server, for that i am having  code but i think this code is returning me all user from the server.
    com.sap.security.api.IUser user = null;
    try {
          IUserFactory userFactory = UMFactory.getUserFactory();
         IUserSearchFilter searchFilter = userFactory.getUserSearchFilter();
    ISearchResult searchResult = userFactory.searchUsers(searchFilter);
       int count = 0;
        List list = new ArrayList();
         while (searchResult.hasNext()) {
                      count++;
                       String uniqueid = (String) searchResult.next();
                        user = userFactory.getUser(uniqueid);
                        list.add(user.getUniqueName());
    This code is giving me all user from the server LDAP and as well as portal user.
    But i want only LDAP.
    Please help me out. It's urgent.
    Regards,
    Deepak

    Hi
    use the following code
    //Request
    IWDRequest = WDProtocolAdapter.getProtocolAdapter().getRequestObject();
    //User
    IWDClientUser = WDClientUser.getCurrentUser();
    Regards
    Ayyapparaj

  • How to call a package from the Report in Oracle Application Express

    How to call a package from the Report in Oracle Application Express

    Hello,
    What do you mean? Something like SELECT mypackage.function( par1, par2) from dual?
    Or do you want to execute a procedure when something happens on the page, like clicking a button?
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • How to create request object manually?

    Can i edit a servlet request at the front controller level and disptach it to real url?
    I need the way(maybe a class) to edit the request parameters;
             request.getContextPath();
             request.getRequestURL();
             request.getPathInfo();
             request.getServletPath();i need the equvilance of these methods which are built to SET.
    is it possible?
    thank you

    1) Write a subclass of the HttpServletRequestWrapper
    class and overide your required methods.http://forum.java.sun.com/thread.jspa?threadID=682565&tstart=100
    I have used the wrapper in that forum but this is just for to set some Parameter to the request. But there is no method like setServletPath on the wrapper class? it is still missing and i need an HELP plz about how to override ServletPath on the request object.
    2)In the doFilter() method of your filter, call
    chain.doFilter() method giving your wrapped request
    object as an argument.I did it
      public void doFilter(ServletRequest req,ServletResponse res,FilterChain chain)throws IOException,ServletException {
           HttpServletRequest request = (HttpServletRequest) req;       
          HttpRequestWithModifiableParameters myReq= new HttpRequestWithModifiableParameters(request);
          request=(HttpServletRequest)myReq;
          HttpServletResponse response=(HttpServletResponse)res;
          chain.doFilter( request, response );
      }please help about just only how to override ServletPath on request object!!
    thank you

  • How to use request Object on form submit

    Hai all,
    i have a JSF page having simple form, username, password field and submit button, so on submit the form i want to get the data from the request object in next page without using a bean.
    How can i get it? I am looking for this problem for quite a long time, so can anyone help me...

    i have a JSF page having simple form, username,
    password field and submit button, so on submit the
    form i want to get the data from the request object
    in next page without using a bean.Why are you using JSF?

  • How to call a object in Session in workflow?

    In order to make my application work efficiently, i am going to put an class
    instance in Session. However, how can i call this object in a workflow
    e.g. in a business operation )?
    Or does anybody can tell me whether there is another way to maintain an
    instance through several workflows? By using variables, we simply can
    maintain an instance (e.g. EJB or javabean ) in a single workflow. Am i
    right?
    Thanks a lot.
    * Name: Gary Wang
    * Tele: 010-65546668-8119
    * Mail: [email protected]

    Is your "object" and "method" in a "package" Java? Loaded in the database or outside? (ie is it a java stored procedure? )
    null

  • How to call two different servlet-url in the same application

    Hi,
    I want to call, consecutively these methods in my application.
    response.sendRedirect(servlet-url1)
    reponse.sendRedirect(servlet-url2)
    but the second method dont answer,
    I think, the first method redirect s with response ,
    but how to call two different servlet ?
    thanks

    if you call the first redirect, the servlet is getting aborted, so you can redirect to the first servlet, working the stuff in it, and then in the second servlet you can redirect to the third servlet

  • How to call java function from PL/sql in oracle applications

    I am trying to call a java function from plsql procedure. Can any one explain how to call java function, and in which directory I have to store my java function in oracle applications. Do I need to register that java function from Application developer.
    Thanks
    Kranthi

    http://www.oracle.com/technology/tech/java/jsp/index.html
    Good Luck,
    Avi.

  • How to call business objects in BO part from a servlet in lean-webapp

    Hi Gurus,
    for oci-implementation (and as it has been suggested here: http://scn.sap.com/thread/3340669) we want to implement a servlet that calls certain actions in a business object. The servlet resides inside the leanwebapp-DC. The business object is in the bo-part of our own custom module. Our problem is to find a way for the servlet to call the business logic. Our first thought was to go via the moduleAccess. However, we could not figure out how to access the module of the leanwebapp.
    Any suggestions?
    Best regards,
    Christian

    Hey Wolfgang,
    thank you very much for your quick and accurate answer.
    After struggling a little bit with our project setup we implemented your solution and it worked immediately.
    However, we now have the problem to declare the module dependency between the leanwebapp and the bo-part of our module. The Development-and-Extension-Guide for WCEM 3.0 tells us (page 39) to do this in the metadata.xml of the calling module (which would be the leanwebapp). Unfortunately, the leanwebapp does not have a metadata.xml.
    Declaring the dependency in the .dcdef of the leanwebapp-DC leads to either:
    a runtime exception while calling ModuleAccess moduleAccess = wecSession.getModuleAccess("oci"); in the servlet (com.sap.wec.tc.core.modulemgmt.metadata.exceptions.ModuleRuntimeException: Module access of module 'oci' cannot be created. It is not part of the current application.) or
    a runtime time exception while accessing the servlet:
    Caused by: com.sap.wec.tc.core.common.init.InitializeException: Error initializing 'com.sap.wec.tc.core.modulemgmt.metadata.ModuleMetaDataDeploymentModel' com.sap.wec.tc.core.modulemgmt.metadata.exceptions.ModuleRuntimeException: The deployment unit contains multiple JAR files or folders which declare the same part/namespace combination. Module: 'oci', part: 'bo', namespace: 'xxx', JAR/Folder 1: 'D:\usr\sap\DE2\J02\j2ee\cluster\apps\xxx.com\xxx~oci~dpu\app_libraries_container\xxx.com~xxx~oci~bo~assembly.jar', JAR/Folder 2: 'D:\usr\sap\DE2\J02\j2ee\cluster\apps\xxx.com\demo-leanapp\servlet_jsp\demo\root\WEB-INF\lib\xxx.com~xxx~oci~bo~assembly.jar'
    Do you have any hints on how to declare the dependeny properly?
    Best regards,
    Christian

  • How to call BOR object- method in custom program

    hi all,
    I have the following details:
    BOR object : INSTLN
    Method: createdirect
    I need to call the above method in my custom program.
    I need to call it entirely. Means if it contains fn modules I dont want to call those fn modules seperately.

    Hi Sammy,
    Phil Soady from SAP Australia provided me with this little gem a few years back. The actual documentation for this can be found somewhere in the workflow programming area, but I just looked and couldn't find it for you. Anyway, this is a sample program I built to show how to do this. In this example I call the Display method of the Sales Document BO.
    INCLUDE <cntn02>.
    INCLUDE <cntn03>.
    FUNCTION zcallbomethod.
    *"*"Local interface:
    * Data declaration
      DATA: vbak_ref TYPE swc_object.
    * Declare and initialise container
      swc_container container.
      swc_create_container container.
    * Create object reference to sales document
      swc_create_object vbak_ref 'VBAK' '0000000009'. "Sales Document Number
    * Call Display
      swc_call_method vbak_ref 'Display' container.
    * Error handling
      IF sy-subrc NE 0.
      ENDIF.
    ENDFUNCTION.
    Cheers
    Graham Robbo

  • How to get request object in workflow?

    can anyone help me out how to use <ref>:display.state</ref> in workflow to get the state of the rquest object?

    Hi Sunil,
    Every field which we are creating in additional data ( charateristics) are saved in table. Kindly check and confirm the table name but i think it's MARCO , just search and check I am not sure about the table name.
    But the answer for your question is every data is saved in table. and from this table you can pick the values same like DRAW table for document type etc.Take help of workflow or abap person ,he can immediately give you table names.
    I hope this will resolve the query.
    Regards,
    Ravindra

  • How to Call Business Objects in Program

    Hi All,
    if i want to create PurchaseOrders how can i use Business Object in my program.i know how to create PO through Bapi's.how can i use this Business Objects and how to pass Vlaues into them?
    any Sample code>
    What are the diffrence between both PO upload bapi and business Object for PO.??
    Thank you,
    Madhu Rao.
    Edited by: madhubabu rao on Oct 29, 2008 10:41 AM

    Hi Madhu,
    Business Objects can be triggered via Work flow tasks. When ever you create a Purchase Order, check whether any standard event is getting triggered.
    Now create a work flow task with the above task as starting event, and link your BOR object to this.
    Or try to use the Function module SAP_WAPI_CREATE_EVENT.
    Regards,
    Subhani.

  • How to call Java Objects from ESB?

    I don't know whether its possible but if there is a way please let me know I'd really appreciate.
    I'm sending message to the JMS queue and I've created JMS adapter that I expect to be triggered when message gets into the queue. The message is an xml file that I read and look up some values that are Java classes and methods that I want to call. So how do I configure ESB to call Java Classes. I tried to look at the routing rules.
    Regards

    You could create the wsdl yourself and instead of the soap:binding use the java:binding
    not sure if this works...just a guess.

  • How to call function in included dll file through java application.

    Hi All,
    i am trying to create an java application which call c# functions using JNI. i am completed with the code and it is running fine when i tried to run from netbeans IDE. But when i tried from Calculator.jar file, first time it throws this error:
    F:\JavaProjects\Calculator\dist>Java -jar Calculator.jar
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no CSharpClient in java.library.path
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at calculator.CalculatorApp.<clinit>(CalculatorApp.java:20)
    After that i included that dll file in the cuurent directory. And compiled and tried to run, it throws an unexpected error:
    F:\JavaProjects\Calculator\dist>Java -jar Calculator.jar
    *# An unexpected error has been detected by Java Runtime Environment:*
    *# Internal Error (0xe0434f4d), pid=2640, tid=3700*
    *# Java VM: Java HotSpot(TM) Client VM (1.6.0_02-b06 mixed mode, sharing)*
    *# Problematic frame:*
    *# C [kernel32.dll+0x12a5b]*
    *# An error report file with more information is saved as hs_err_pid2640.log*
    *# If you would like to submit a bug report, please visit:*
    *# http://java.sun.com/webapps/bugreport/crash.jsp*
    Anyone have idea how to solve this error.
    Thanks in advance.

    This error is created whenever things go sour on the native side. The first thing you can try, and I assume you are using a Java<->C++<->C# bridge which includes two dlls, one created by C++ and another by C#. Is to make sure that the C# dll is compiled using /t:module switch during compilation.
    If you are using VS2008, or VS2005, you can add a post build syntax like:
    csc /t:module /out:"$(ProjectDir)$(OutDir)YourModule.dll" "$(ProjectDir)YourCSfile.cs"
    Hope this helps! If not, ensure first that the native code works by creating a native test app for it.

  • How to call Java Pgm from a VB / C / C++ Application???

    Hi,
    I have 3 applications in VB, C, C++ respectively.
    I have a java program which accepts a message id & message description.
    How can i call this java program from my VB, C, C++ applications and pass the parameters.
    Thanks,
    Karthik Narain

    o You could use an exec() call to run it in another process.
    o You could write JNI code to start the JVM and run your program. (Complicated)

Maybe you are looking for

  • Hard Drive Space Fluctuating?

    Recently my Macbook Pro seems to be running a bit slower and the hard drive seems to be fluctuating between 9 GB of free space and 13 GB of free space without me downloading anything? Something must be wrong? Also sometimes when on safari a random do

  • Looking for Nvidea GeForce 6600 OR Similar Graphics Card for Quad G5 PPC

    Hi there! Wishing a Happy New Year to yo'all! Was wondering whether someone might help me out with a minor issue I'm having... I have recently acquired a Quad 2.5GHz PPC G5 (with PCIe). When I bought it, it came installed with a NVIDIA Quadro FX 4500

  • N97 Corrupted Media

    Hey ya all, I got my N97 3 weeks ago and it was a kinda big upgrade to me since i`m using 7610 previously. I'm already a 8 years Nokia user including models like 8850, 8910 and also 8810. Since 7610 is the last multimedia phone i`m using, I just drag

  • How to reset computer password if I forgot my original password?

    how to reset computer password if I forgot my original password?

  • Incompatible Ink Cartridges

    Hello, My printer is currently giving me the error "Incompatible Ink Cartridges." This started occurring directly after a print, a print that came out poorly (faded text). The ink cartridges are half full and have never been replaced, in other words