How to Use Methods AFTER Work Item Execution (Modal Call)

Hi,
Need to execute a piece of code after a decision based on the result.
Hope this can be done using Methods After WorkItem Execution
Can anyone give some idea about how to use this.
Regards
Imman

Hi Mike,
I have a common piece of code that has to get executed irrespective of the decision made,but after the decision.
Imman

Similar Messages

  • How to set status for work items

    Hello Friend's,
    As per my client current  scenario  every work item will be sent to 3 useru2019s .If any one  of the  user click on work item  it will automatically call a  Ztransaction  for further action. Here if the user has viewed  the item and  back to sap inbox by clicking the back push button(in Ztransaction)  without any modification or taking the any action(SAVE)  then the rest of other user (2 users ) work items  are disappearing from  other user SAP inbox.
    But my client required that  whenever  the user click on back button it should be READY status to  all  the users  and it should not disappear  from other user SAP inbox.    
    Please provide me any advice to the above requirement.

    Hello Ranga,
    that requirement is solved here: Automatic put back workitem after execution
    But as it's quite an old one, it's hard to find here by the Forum's search option.
    A more advance way could also make use of the work item exits.
    Best wishes,
    Florin

  • How to find out particular work item is trigger by particular transaction

    Hi,
    can any one tell how to find out particular work item is trigger by particular transaction. in swfrevtlog we ill get custom obj type and also super business obj type,but i need to identify this work item id is triggered by this transaction. can any one help,
    Thanks in advance

    Hi,
    Sorry, but I don't believe that's possible. Even if you can identify the program, there could be multiple transactions that executed it.
    The only possible way, I think, would be to add an enhancement / badi which uses the callstack to determine the calling transaction at the time he event is raised (and then stores it somewhere).
    But that's not very elegant.
    Why do you need to know the triggering transaction? To influence the workflow? If so, another approach might be this:  pass the transaction code as an additional parameter to the workflow event & then pass that to the workflow.
    cheers
    Paul

  • How to exicute another users work item

    Hi ,
    How to exicute another users work item.Please suggest me how to do this or we have to do it programtically.
    Please let me know how to over come the problem.
    Thanks in Advance.
    Rohit.

    Hi,
    Execute SWIA, based on different selection paramenters you would be able to find the workitem(s) in list. Select one and client execute without check.
    You can also forward the workitem to another user and then execute normally.
    You can also use API for execute a workitem. Search in SAP_WAPI_workitem.
    regards,
    Imran

  • How to use "Context Menu" web item in WAD 7.0 ?

    Hi Experts,
    Kindly tell me How to use "Context Menu" Web item in SAP WAD 7.0 ?
    How to attach this Web item to my Graph/Chart ?
    Plz provide some documents on this.
    Full points will be given.
    Thanks.
    -Jay Jay
    Edited by: jayaprakash j on Oct 10, 2008 1:47 PM

    Hi Jay
    Web items and HTML elements (for example, tables, texts, and images) that you insert into a Web template, as well as the Web template itself, have a context menu. This context menu has context-sensitive menu entries that you can use to call various Web Application Designer functions. You can, for example, use the context menu to save a Web item (for which you have specified properties by using the parameters) as a reusable Web item, call the properties dialog box for this Web item, copy the Web item and paste it into another Web template, or delete the Web item from the Web template.
    for more info go to following link:
    http://help.sap.com/saphelp_nw70/helpdata/EN/2f/776b3d32390968e10000000a114084/frameset.htm
    Regards
    Vivek

  • How to use the validation work in Both TAB and Mouse keys in Forms6i

    Hi,
    I have a validation script once it's validated it should execute the query.But using When-Validate-Item i can't use execute_query.I am able to use the validation in Key-Next-Item trigger but if the user moves the cursor using mouse then it's not working.
    How to use the validation script working in Both Scenarios(Tab and Mouse keys).
    Can anyone please give inputs to rectify the above issue?.

    So you have multiple fields, but on at least one of them if it's valid you immediately want to execute the query?
    You could create a hidden field in a control block Query_Now default 'N'. In a WHEN-VALIDATE-ITEM on your item, if it's determined to be valid, then set Query_Now to 'Y'.
    In a WHEN-NEW-ITEM-INSTANCE at block level, check if Query_Now is 'Y'. If it is then execute the query (and set it back to 'N').

  • How to use method POST to send XML using utl_http?

    Hi,
    I am trying to work out how to use the POST method to mimic submitting data from a HTML form, using utl_http.
    I cannot use SOAP for this as the people I am sending the data to are just expecting an XML document to be sent to a standard CGI script running on their web server.
    There is a lot of documentation on how to submit data using the POST method (using Utl_Http.Write_Text etc), but I cannot find anything that tells me how to submit form variables.
    The examples on OTN say this:
    "Alternatively use method => 'POST' and Utl_Http.Write_Text to
    build an arbitrarily long message"
    but don't tell me how to actually place the data into the required input parameters of the CGI program I am hitting.
    I need to hit a URL such as
    www.asite.com/cgiprogram
    and pass in a parameter, eg
    in_param="test+data"
    I am currently doing this as a GET, which works, but the XML document I am passing in could potentially be bigger than the GET method will allow.
    Any help would be greatly appreciated.
    Thanks,
    Leon.

    Please try the PL/SQl forum

  • How to use ATO Model & ATO Item as bill for ATO Model

    Can anybody have an Idea of using ATO Item inside an ATO Model, ATO Model as a bill for another ATO model. In the below mentioned scenario, is it possible for the ATO Item(item_compE) to be manufactured based on the sales order.. I don't want to keep it manufactured.. But in Vision Instance, the parent Job is completed normaly & able to ship the SO. But when i checked the onhand for the ATO Item components, its not reduced.. ie it is not manufactured & shipped, but didn't throw any error....
         1     Order_itemABCDE (ATO Model)
         1.1     item_compA          (Purchased)
         1.2     item_compB     (Purchased)
         1.3     item_compC          (Purchased)
         1.4     item_compD          (ATO Option Class)
         1.4.1     item_compD1          (Purchased)
         1.4.2     item_compD2          (Purchased)
         1.4.3     item_compD3          (Finished)
         1.5     item_compE          (ATO ITEM)
         1.5.1     item_compE1          (Finished)
         1.5.2     item_compE2          (Purchased)
         1.5.3     item_compE3          (Purchased)
    Now I am creating a separate discreet job order for the ATO Item & keep the onhand available, & its working fine...Is there a way to automatically create a Job order for ATO Item along with the parent item from the Sales order?.
    Also How can I extend it to a requirement like, an ATO Model item, inside another ATO model item???For example ItemA(ATO Model) as a bill for ItemB(ATO Model). How it can be accomplished, as ItemA is not directly ordered thru SO, its jus a component for ItemB & want to manufacture based on requirement..
    Hope the Scenario is clear.. Please suggest if this can be achieved...
    Thanks
    Ranjith

    rrenji83 wrote:
    Can anybody have an Idea of using ATO Item inside an ATO Model, ATO Model as a bill for another ATO model. In the below mentioned scenario, is it possible for the ATO Item(item_compE) to be manufactured based on the sales order.. I don't want to keep it manufactured.. But in Vision Instance, the parent Job is completed normaly & able to ship the SO. But when i checked the onhand for the ATO Item components, its not reduced.. ie it is not manufactured & shipped, but didn't throw any error....
         1     Order_itemABCDE (ATO Model)
         1.1     item_compA          (Purchased)
         1.2     item_compB     (Purchased)
         1.3     item_compC          (Purchased)
         1.4     item_compD          (ATO Option Class)
         1.4.1     item_compD1          (Purchased)
         1.4.2     item_compD2          (Purchased)
         1.4.3     item_compD3          (Finished)
         1.5     item_compE          (ATO ITEM)
         1.5.1     item_compE1          (Finished)
         1.5.2     item_compE2          (Purchased)
         1.5.3     item_compE3          (Purchased)
    Now I am creating a separate discreet job order for the ATO Item & keep the onhand available, & its working fine...Is there a way to automatically create a Job order for ATO Item along with the parent item from the Sales order?.
    Also How can I extend it to a requirement like, an ATO Model item, inside another ATO model item???For example ItemA(ATO Model) as a bill for ItemB(ATO Model). How it can be accomplished, as ItemA is not directly ordered thru SO, its jus a component for ItemB & want to manufacture based on requirement..
    Hope the Scenario is clear.. Please suggest if this can be achieved...
    Thanks
    RanjithI don't know..if i got your requirement correctly or not
    Make ATO Item supply type as phantom for the ATO model Bill..this way when the job is created for the top model...ATO item will be exploded..
    HTH
    Mahendra

  • How to use method setXSLT

    Hi All!
    how I can use method setXSLT from OracleXMLQuery class
    when I try:
    java.lang.NoClassDefFoundError: oracle/xdb/XMLType
         oracle.xml.sql.query.OracleXMLQuery.setXSLT(OracleXMLQuery.java:747)
    code:
    xmlQuery = new OracleXMLQuery(this.mainDbConn.getConn(),sql);
    xmlQuery.setXSLT("/[path]/[name].xsl","");

    Specify stylesheet as a URI.
    xmlQuery.setXSLT("file://c:/util.xslt");this don't work :(

  • How to use methods when objects stored in a linked list?

    Hi friend:
    I stored a series of objects of certain class inside a linked list. When I get one of them out of the list, I want to use the instance method associated with this object. However, the complier only allow me to treat this object as general object, ( of Object Class), as a result I can't use instance methods which are associated with this object. Can someone tell me how to use the methods associated with the objects which are stored inside a linked list?
    Here is my code:
    import java.util.*;
    public class QueueW
         LinkedList qList;
         public QueueW(Collection s) //Constructor of QuequW Class
              qList = new LinkedList(s); //Declare an object linked list
         public void addWaiting(WaitingList w)
         boolean result = qList.isEmpty(); //true if list contains no elements
              if (result)
              qList.addFirst(w);
              else
              qList.add(w);
         public int printCid()
         Object d = qList.getFirst(); // the complier doesn't allow me to treat d as a object of waitingList class
              int n = d.getCid(); // so I use "Object d"
         return n; // yet object can't use getCid() method, so I got error in "int n = d.getCid()"
         public void removeWaiting(WaitingList w)
         qList.removeFirst();
    class WaitingList
    int cusmNo;
    String cusmName;
    int cid;
    private static int id_count = 0;
         /* constructor */
         public WaitingList(int c, String cN)
         cusmNo = c;
         cusmName = cN;
         cid = ++id_count;
         public int getCid() //this is the method I want to use
         return cid;

    Use casting. In other words, cat the object taken from the collection to the correct type and call your method.
       HashMap map = /* ... */;
       map.put(someKey, myObject);
       ((MyClass)(map.get(someKey)).myMethod();Chuck

  • Collect Idocs - Work Item Execution Time

    I have created an integration process that includes a collect process which follows the BpmPatternCollectTime pattern. Everything works great. I have one question though. When monitoring the process in SXMB_MONI and looking at the technical details for the collect block work item the execution time continues to grow, despite the work item having a status of completed with a creation date and latest end date. Why does this work item's execution time continue to grow, despite being in a completed status? Will this cause a problem? Does the SWWCLEAR job clean this up? I don't want to have workflow items out there with execution times climbing into days. I fear that will cause a performance issue, even though they show as completed status. By the way, this is in a PI 7.1 environment.

    hi Chris,
    >>>Your blog does provide some interesting points when collecting to generate a single file.
    file is only of of 5 possibilities that mz blog mentiones
    the point is that BPM is the worst approach out of those 5 and all other 4
    can easily replace your BPM IDOC collect pattern
    this way not only the vendor's system will work more efficienlty but also yours
    but you will do as you like/prefare and you can come back
    to the forum everytime you get an issue with a BPM - no problem
    Regards,
    Michal Krawczyk

  • How to find the UWL work item types source system?

    Hi Gurus,
    How to find the Universal Work List work item types source system?
    Thanks in Advance,
    Dharani

    Hi Dharani,
    You can achieve this by personalizing the view for UWL.
    Click on right side context menu of iView, click on personalize view
    Here you will get list of Available Attributes not Displayed select System ID in that.
    Save your settings and now you can see the task is from which system.
    This will solve your problem.
    Regards
    Kedar Kulkarni
    Reward points if useful

  • How do you delete a work item?

    I have requirements when a employee transfers their access must be approved by their manager. So I'm creating a Approval work item. Also, if a second transfer is sent for a user with a pending Approval work item I need to delete the pending work item. Does anyone know how to delete or terminate a work item?

    I am not sure you should delete the workitmes, in general workitems should be transferred to a different admin such as Configurator. You alwaays able to query the workitems queue and ower for that.
    --sFed                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to use an authenticated user for a proxy call

    Dear all,
    I am currently working on a JEE application where the user needs to authenticate (for this I have configured the web.xml).
    Now inside this application I need to do a proxy call to a PI webservice.
    I would like to use the user credentials of the already logged in user in order to call the proxy.
    What I don't want to do is to use a service user for the proxy call.
    The code I am trying to call looks something like this:
         private IntegratedConfigurationIn getPort() throws Exception{
              IntegratedConfigurationIn port = null;
              try {
                   IntegratedConfigurationInService service = null;
                   service = new IntegratedConfigurationInService();
                   port = (IntegratedConfigurationIn) service.getIntegratedConfigurationIn_Port();
                  BindingProvider bp = (BindingProvider)port;
                  bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, user);
                  bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, password);
                  if (url.length() != 0)
                       bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, url);
              catch (Exception ex){
                   ex.printStackTrace();
              return port;
    The examples I found to retrieve the userdata pointed to codes similar to this one:
    public HttpServletRequest getHttpRequest() throws Exception {
              // Get runtime context
              Properties props = new Properties();
              props.put("domain", "true");
              Context initialContext = new InitialContext(props);
              ApplicationWebServiceContext wsContext = (ApplicationWebServiceContext) initialContext
                        .lookup(" /wsContext/ApplicationWebServiceContext");
              HttpServletRequest req = wsContext.getHttpServletRequest();
              return req;
    com.sap.security.api.IUser sapUser = com.sap.security.api.UMFactory.getAuthenticator().getLoggedInUser(getHttpRequest(), null);
              IUser ep5User = com.sapportals.wcm.util.usermanagement.WPUMFactory.getUserFactory().getEP5User(sapUser);
    Now I don't know how to bring it togehter and how to use an authenticated user for the BindingProvider.
    I would appreciate any hints or ideas.

    Peter,
    from the first screenshot, what I understood is that, you are calling an inbound PI web service that is intended to create an integrated configuration object (this is used for whole lot of other reason completely) but not actually calling a development web service.
    For this, you would have to generate your client classes from the WSDL provided by the PI developer for that particular service. Once you get those client classes generated, you could used the method provided in the other screenshot to extract the user and password and call the intended web service.
    Vijay Konam

  • How to used BAPI_SALESORDER_CHANGE to add items

    Hi, I am trying to use the above bapi to add items to a sales order, but I can't get the qty to map across.  I had the same problem using the create bapi whcih I resolved by populating the schedule tables, but in change this just causes an "unhandled exception" to occur, so i can;t even step into the FM to see the problem.  Has anyone got any ideas.
    s_header_inx-updateflag  = 'U'.
    *   set item data
        s_items-itm_number     = s_stock-item_no.
        s_items-material       = s_stock-material_no.
        s_items-target_qty     = s_stock-quantity.
        s_items-target_qu      = s_stock-uom.
        s_items-ref_doc        = s_stock-agreement.
        s_items-ref_doc_it     = s_stock-agreement_item.
        s_items-batch          = s_stock-batch.
        s_items-plant          = s_stock-plant.
        s_items-store_loc      = s_stock-storage_location_no.
        append s_items to it_items.
    *   set flag to add items (I)
        s_itemsx-updateflag    = insert.
        s_itemsx-itm_number    = s_items-itm_number.
        s_itemsx-material      = abap_true.
        s_itemsx-target_qty    = abap_true.
        s_itemsx-ref_doc       = abap_true.
        s_itemsx-ref_doc_it    = abap_true.
        s_itemsx-batch         = abap_true.
        s_itemsx-plant         = abap_true.
        s_itemsx-store_loc     = abap_true.
        append s_itemsx to it_itemsx.
        s_sched-itm_number    = s_items-itm_number.
        s_sched-sched_line    = '0001'.
        s_sched-REQ_DATE      = sy-datum + 30.
        s_sched-req_qty       = s_items-target_qty.
        append s_sched to it_sched.
    *   set flag to add items (I)
    *    s_schedx-updateflag    = 'I'
        s_schedx-itm_number    =  s_items-itm_number.
        s_schedx-sched_line    = '0001'.
        s_schedx-REQ_DATE      = 'X'.
        s_schedx-req_qty       = abap_true.
        append s_schedx to it_schedx.
    * Now call the BAPI to add the items
      call function 'BAPI_SALESORDER_CHANGE'
        exporting
          salesdocument             = me->number
    *   ORDER_HEADER_IN             =
        order_header_inx            = s_header_inx
        SIMULATION                  = ' '
    *    BEHAVE_WHEN_ERROR           = 'P'
    *   INT_NUMBER_ASSIGNMENT       = ' '
    *   LOGIC_SWITCH                =
    *   NO_STATUS_BUF_INIT          = ' '
       tables
        return                      = it_return
        order_item_in               = it_items
        order_item_inx              = it_itemsx
    *   PARTNERS                    =
    *   PARTNERCHANGES              =
    *   PARTNERADDRESSES            =
    *   ORDER_CFGS_REF              =
    *   ORDER_CFGS_INST             =
    *   ORDER_CFGS_PART_OF          =
    *   ORDER_CFGS_VALUE            =
    *   ORDER_CFGS_BLOB             =
    *   ORDER_CFGS_VK               =
    *   ORDER_CFGS_REFINST          =
        order_schedules_in          = it_sched
        order_schedules_inx         = it_schedx
    *   ORDER_TEXT                  =
    *   ORDER_KEYS                  =
    *   CONDITIONS_IN               =
    *   CONDITIONS_INX              =
    *   EXTENSIONIN                 =

    hi,
    BAPI_SALESORDER_CHANGE didn't work for me either though i'm 100% sure the bapi works
    See SAP note 366265 which tells you how to fill the structures but
    you can use your program which you used to create the sales order to change the order and all you need to
    do is change a few parameters
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
       SALESDOCUMENTIN               =  P_VBELN
        ORDER_HEADER_IN               = ORDER_HEADER_IN
        ORDER_HEADER_INX              = 'U'
    (make sure your partners are blank, otherwise you'll get a duprec on VBPA)
    -( PS , yes, i;m saying , see if BAPI_SALESORDER_CREATEFROMDAT2 works for you)
    I hope this helps
    Paul Q
    Edited by: Paul Quinn on Jun 2, 2011 11:10 PM

Maybe you are looking for

  • Profit Center Value in the Purchase Order Pricing

    Dear Friends I am stuck at a process design step and I need your help to proceed further. We have created a new Condition type in MM Purchasing to display the charges incurred towards the inward freights. These freight costs vary depending on the Pro

  • Urgent Help - Preventing Cache in Flex 3

    Hi all, Am new to this forum and i have a query which needs to be fixed urgently. Actually Flex 1.5 supports <cache> configuration variable in flex-config.xml which can be used to prevent client-side caching. But I suppose Flex 3 doesn't support the

  • Camera glitch

    http://twitvid.com/VNMQT As you can tell from the video, the camera freezes after a few seconds. So far it seems to only be the rear facing part. Also it seems to do it on other apps as well.

  • Flash CS5 file crashes upon opening

    Yesterday at work I was working on a CS5 flash file, and had no problems with it. Saved it, and today it crashes Flash CS5 whenever I open it. is there any way to recover the file? I do have backed up versions, but I'd be losing days of work if I wen

  • PhotoSmart eStation Zeen must have the routers BROADCAST of the SSID set to on. Very insecure!

    When configuring the Photosmart Estation printer C510a to use the WiFi network, I discovered that the Zeen does not allow that the router hides its SSID. Instead the Zeen wants that the SSID is broadcasts by the router to be succesfull connecting to