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

Similar Messages

  • How to remove an object from session with JSF 2.0 + Faceletes

    hi all,
    I have a facelets page which calls a backing bean of session scope. Now when ever i click on this page i want the existing bean object to be removed from the session . In my existing jsp i have a logic something like this to remove the object from session
         <% if (request.getParameter("newid") != null) {
              request.getSession().removeAttribute("manageuserscontroller");
    %>
    Now i have to refactor my jsp to use facelets and i should not be using scriplets anymore . I did try with JSTL but the <c:remove> tag is not supported by facelets.
    Can someone help me how can i refactor this code to work for my facelets?
    I really appreciate your help in advance
    Thank you

    r035198x wrote:
    Redesign things so that the remove is done in a backing bean method rather than in a view page.Exactly that. I tend to cleanup session variables at the start and at the end of a page flow; generally the end is some sort of save or cancel action being invoked through a button but that is application specific.

  • 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,

  • How to call a function module from a workflow ? ?

    hi all,
    i have to call a function module from an workflow, i got a hint from someone that i have to enhance an object and then write and methode, in this methode i can call that function module. I dont know even how to go for it.
    Can anyone suggest that how to go for it ?
    thanks.
    raman khurana.

    Hi Raman Khurana,
    Please  go through the links it might be helpful , notsure
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/e4af8b453d11d189430000e829fbbd/content.htm
    http://www.abapcode.info/2007/07/standard-function-module-text.html
    http://it.toolbox.com/wiki/index.php/SAP_Workflow
    Regards,
    Sreekar.Kadiri.

  • How to call web dynpro ABAp application into workflow

    Hello All,
    How to call webdynpro application into workflow .Is it possible ?
    Scenario is : A web dynpro application should flow into 3 levels of approvals .
    Please share your knowledge .
    Thanks
    Sonal

    >
    Saurav Mago wrote:
    > hi,
    > I dont think from workflow , you can call WD application. 
    >
    > Thanx.
    Actually you can configure a workitem to launch WDA via UWL ( http://help.sap.com/saphelp_nw70ehp1/helpdata/en/59/d516690e854c7090ae15bf492a869f/frameset.htm ) or in the NetWeaver Business Client using the Business Workflow Workplace (WDA Application SWF_WORKPLACE).
    There is also a chapter in the upcomming SAP Press 2nd edtion workflow book on different aspects of Web Dynpro ABAP integration into Workflow:
    http://www.sappress.com/product.cfm?account=&product=H3057

  • How to call a standard sap transaction in workflow

    Dear All,
    I want to know how to call a standard sap transaction inside my workflow , please tell me how to get this done .
    Kind Regards,
    Anshu Kumar

    Hi,
    You can use the FM - ABAP4_CALL_TRANSACTION u2013 Initiates a transaction in a separate window
    inside the method in the BO.
    Implement that BO and the method in the Activity of the WF..!!
    Use the FM like this:-
    CALL FUNCTION 'ABAP4_CALL_TRANSACTION'
      EXPORTING
        tcode                         = 'ZSCREEN_884' - T-Code
       SKIP_SCREEN                   = ' '
       MODE_VAL                      = 'A'
       UPDATE_VAL                    = 'A'
    EXCEPTIONS
       CALL_TRANSACTION_DENIED       = 1
       TCODE_INVALID                 = 2
       OTHERS                        = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    If you do not want to use the FM u can use this Statement:-
    call transaction 'ZSCREEN_884'. - T_CODE
    Check the following links:-
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/delegationandRedefiningmethodsofbusinessobject+BUS1001
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/workflow%252bscenario
    Let me know if you still face any issues..!!
    Regards,
    Kanika

  • 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 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 detect the object or session in a database with library cache lock

    Hi Everyone,
    We've been experiencing frequent and high time waits for this event: library cache lock.
    - What causes this?
    - Is there a way to detect the object being locked?
    (this doesnt show up in V$LOCK)
    - Is there a way to detect the session that is causing the lock? aka blocking session?
    (I can detect the objects being blocked, they show up in v$session)
    thanks,

    Similar post is here, maybe that helps already:
    library cache lock
    And You can read this as well:
    http://www.ixora.com.au/q+a/0101/19235723.htm

  • How to call OBJECTS

    Hi all,
    i am using SAP 4.7 version. I am unable to call  the following objects .
    CREATE OBJECT LOGO_CONTAINER
    CREATE OBJECT LOGO.
    CALL METHOD LOGO->LOAD_PICTURE_FROM_URL
    How to call these objects ?
    Thanks in advance
    krupali

    Hi,
    This is the sample program helpful to u.
    CLASS counter DEFINITION.
      PUBLIC SECTION.
        METHODS: set IMPORTING value(set_value) TYPE i,
                 increment,
                 get EXPORTING value(get_value) TYPE i.
      PRIVATE SECTION.
        DATA count TYPE i.
    ENDCLASS.
    CLASS counter IMPLEMENTATION.
      METHOD set.
        count = set_value.
      ENDMETHOD.
      METHOD increment.
        ADD 1 TO count.
      ENDMETHOD.
      METHOD get.
        get_value = count.
      ENDMETHOD.
    ENDCLASS.
    DATA: cnt_1 TYPE REF TO counter,
          cnt_2 TYPE REF TO counter,
          cnt_3 TYPE REF TO counter,
          cnt_tab TYPE TABLE OF REF TO counter.
    DATA number TYPE i.
    START-OF-SELECTION.
      CREATE OBJECT: cnt_1,
                     cnt_2.
      MOVE cnt_2 TO cnt_3.
      CLEAR cnt_2.
      cnt_3 = cnt_1.
      CLEAR cnt_3.
      APPEND cnt_1 TO cnt_tab.
      CREATE OBJECT: cnt_2,
                     cnt_3.
      APPEND: cnt_2 TO cnt_tab,
              cnt_3 TO cnt_tab.
      CALL METHOD cnt_1->set EXPORTING set_value = 1.
      CALL METHOD cnt_2->set EXPORTING set_value = 10.
      CALL METHOD cnt_3->set EXPORTING set_value = 100.
      DO 3 TIMES.
        CALL METHOD: cnt_1->increment,
                     cnt_2->increment,
                     cnt_3->increment.
      ENDDO.
      LOOP AT cnt_tab INTO cnt_1.
        CALL METHOD cnt_1->get IMPORTING get_value = number.
        WRITE / number.
      ENDLOOP.
    Regards,
    Narasimha

  • Calling shared objects in unix from Forms 6i and 10g

    I would like to know how to call shared objects in unix from Froms 6i and 10g. Can anybody help in this regard? Your help is very well appreciated.

    Hi,
    Do you have any 11i instance where those custom forms are used? If yes, you will have to copy those forms from 11i to R12 instance, open the forms using Forms 10g builder, compile it and upload it back to the server.
    Note: 427879.1 - How To Customize And Compile An Application Seeded Form (FMB) Or Library (PLL)?
    Note: 743490.1 - Customization in Oracle Applications
    Note: 563258.1 - How To Upgrade 11i Custom Forms And Reports To R12
    Regards,
    Hussein

  • Calling business object in report ?

    Hi,
    i want to call bussiness object method in my report as that method will give me the data which i need to display in my report. But i dont know how to call business object it's method in ABAP report  and how to pass parameters to it.
    Plz help me out as  this is very urgent.......
    Thanks,
    rahul

    Hi Rahul,
    You have posted your query in a wrong forum, but still this is the solution:
    You can use macro SWC_CALL_METHOD from include <CNTN01> or directly a FM called SWO_INVOKE.

  • Calling Business Objects Reports

    Hi,
    I want to call Report made in Business Objects by clicking a button in form.
    I can see the Business Objects Library files in forms (OLE Packages) but i don't
    know how to call Reports objects on click of button.
    RDgs,
    savita

    can't you just host to the BO command line?

Maybe you are looking for

  • I cant restore my iPhone when i cancel the update

    Hi. i hope you can help me on this, i conect my iphone4s in my pc to update. and i push the button restore, so iTunes would update and restore (some times a have a problem when my iPhone detects i have more ocupated space than i really have, thats wh

  • My iPad doesn`t have cameras. I bought it today. What`s wrong?

    My iPad doesn`t have cameras.I bought it today. What`s wrong?

  • Using BC-XMW in mini ABAP engine 6.20

    Hello First of all I hope I'm in the right forum, if not I appologize, and hope some one points me to the right one. I installed the 6.20 test version and the GUI which seem to work OK. It is my intention to use CCMS via the BC-XMW interface. To use

  • Convert Chinese signs to UTF-8

    Hi there I am trying to find a tool, or some code, who can help me covert Chinese signs to UTF-8 format. The resen is that I am working on a project who has to develop a web-site containg both english and chinese text. So first of all to test oure se

  • IPhoto 2.0.1 and photoshop elements 3 work together?

    I import digital pics into iPhoto but usually edit them in photoshop cause it offers much more. When I edit and save an image w/i photoshop and save it back into an iPhoto album w/i the Photoshop program, or add it to a newly created folder in Photos