Approving Multiple records in SUP2.0 Workflow

Hi All,
i want to approve multiple records from SUP 2.0 workflow and send it to SAP backend. i have defined keys and child parameters in xbw file. the list view from whisc records are to be retrieved is not a default sybase generated list, but it is developed using custom.js file. i am unable to link the values of this list to key's defined in xbw file. can anybody provide me some solution for this as so how to link the keys with data in custom.js file. and then send this data to SAP backend as a structure.
thanks in advance.
Regards,
Kartik

Hi Ram,
By Multiple records i mean two things:
1. one header with multiple line items
2. multiple header with multiple line items.
In both the above cases, the input to a SAP backend would be a list view which can be generated from sybase given wizards.
i will give you a typical scenario which will make your understanding more clear on this:
Scenario
I as a manager would want to approve time sheet activities submitted by employees working under me. i can get either a weekly report, which would correspond to a single row in a list view. this weekly report would have total number of hours spent by an employee in the entire week. on clicking this, i can also view details of individual day, that is i list view  again with day(monday, tuesday and so on), some primary key, which would uniquely identify that row, and no. of hours for a particular day. now i want to pass this entire list to the backend, so that all the daily details are approved at one go. in order to do this, i can pass either one header with multiple line items(primary key, which would uniquely identify that row) or  multiple header with multiple line items i. e all the 3 headers like day, primary key and daily hours.
i hope this should give you a clear understanding of what i am looking for.
Regards,
Kartik

Similar Messages

  • APPROVING MULTIPLE INVOICES

    Hello
    How can I approve multiple invoices in my Workflow worklist?
    It is so time consuming in opening an invoice and approving them individually.
    Need your help on this
    thank a lot
    emgee

    We just had same requirement from the user, but it was not acceptable.
    Each invoice comes up with approval notification and the person has to review it before approval. We told them, go to worklist, select all --> Open and use continue button or after approval it brings up the next notification. We have customized APINV workflow to show more details in OAF Page format to include accounting string etc and there is no point in mass approval without checking those details.

  • Multiple records in Header Iface with same orig_sys_document_ref

    Hi,
    I am creating an Internal Requisitions for multiple Destinations (Ship To Orgs). Requisition is getting approved and after running Create Internal Order program, orders are populating in OE_HEADERS_IFACE_ALL and OE_LINES_IFACE_ALL.
    But the problem is: If I have Requisition created for multiple Ship To Orgs (Different Destination org for different line), then Header is populating multiple records with same ORIG_SYS_DOCUMENT_REF.
    Don't you think there should be only one header record and multiple line record with various ship to orgs? Because of this, when I run order import, first record gets imported successfully but other records fails.

    When I was at a client on 11.5.10, I ended up creating a personalization on the Requisitions screen.
    If someone created a requisition with 2 ship to orgs, it raised an error.
    It was not full proof but it was deemed satisfactory by the client.
    You can consider personalization or you can modify the requisition approval workflow to include the check for multiple ship-to condition.
    Hope this helps
    Sandeep Gandhi
    Independent Techno-functional Consultant

  • I want to update multiple record in database which is based on condition

    hi all,
    I am using Jdev 11.1.2.1.0
    I have one table named(Pay_apply_det) in this table i want to update one column named(Hierarchy) every time and according to change i want to update or i want to maintain my log table named(pay_apply_appr).It based on level wise approval when the lowest person approve the record show on next level but if the second
    level person back it will be show only previous level hierarchy.And when the final approval happen the Posting_tag column of pay_apply_det will be updated too with hierarchy column.
    i have drag pay_apply_det's data control as a table in my .jsf page and add one column approve status in UI .in the approve status i used radio group which return A for approve B for back R for reject through value binding i make it get or set method in it baking bean.
    in backing bean class i have written code
        public void approveMethod(ActionEvent actionEvent) {
            ViewObject v9=new UtilClass().getView("PayApplyDetView1Iterator");
            int h5=0;
            Row rw9= v9.getCurrentRow();
            String x=(String) rw9.getAttribute("RemarkNew1");
            System.out.println(x);
            String z=getR2();
            System.out.println(z);
            if(( z.equals("R") || z.equals("B") )&& x==null)
                FacesMessage fm1 = new FacesMessage("Plz Insert Remark Feild");
                fm1.setSeverity(FacesMessage.SEVERITY_INFO);
                FacesContext context1 = FacesContext.getCurrentInstance();
                context1.addMessage(null, fm1);  
            else{
            ADFContext.getCurrent().getSessionScope().put("Radio",getR2().toString());
            String LogValue=(String)ADFContext.getCurrent().getSessionScope().get("logid");
            ViewObject voH=new UtilClass().getView("PayEmpTaskDeptView1Iterator"); 
            voH.setWhereClause("task_cd='449' and subtask_cd='01' and empcd='"+LogValue+"'");
            voH.executeQuery();
            Row row1= voH.first();
            int h1=(Integer)row1.getAttribute("Hierarchy");
              System.out.println("Login Person Hierarchy on save button press.."+h1);
            ViewObject vo9=new UtilClass().getView("PayApplyDetView1Iterator");
            Row row9= vo9.getCurrentRow();
            if(getR2().equals("A")&& h1!=1)
             row9.setAttribute ("ApprHier",h1);
                row9.setAttribute("IsClaimed","N");
                row9.setAttribute("ClaimedBy",null);
                row9.setAttribute("ClaimedOn", null);
            else if(getR2().equals("B") ) {
                ViewObject voO=new UtilClass().getView("LoHierViewObj1Iterator");
                voO.setNamedWhereClauseParam("QHVO", LogValue);
                Row rowO = voO.first();
               h5=(Integer)rowO.getAttribute("LPrehier");
                System.out.println("Back lower hier..."+h5);
                row9.setAttribute ("ApprHier",h5);
                row9.setAttribute("IsClaimed","N");
                row9.setAttribute("ClaimedBy",null);
                row9.setAttribute("ClaimedOn", null);
              else if((h1==1) &&(getR2().equals("A")) )
                      row9.setAttribute ("PostingTag","Y");
                      row9. setAttribute ("ApprHier", h1);
                        row9.setAttribute("IsClaimed","N");
                        row9.setAttribute("ClaimedBy",null);
                        row9.setAttribute("ClaimedOn", null);
              else if(getR2().equals("R"))
                row9.setAttribute ("ApprHier",-1);
                row9.setAttribute("IsClaimed","N");
                row9.setAttribute("ClaimedBy",null);
                row9.setAttribute("ClaimedOn", null);
            BindingContext BC=BindingContext.getCurrent();
            BindingContainer ac=BC.getCurrentBindingsEntry();
            OperationBinding ob=ac.getOperationBinding("Commit");
            ob.execute();
           vo9.executeQuery();
            FacesMessage fm = new FacesMessage("Your Data Successfully Commited..");
            fm.setSeverity(FacesMessage.SEVERITY_INFO);
            FacesContext context = FacesContext.getCurrentInstance();
            context.addMessage(null, fm);
        }here i put my approve status radio value in session variable because i also want to update my pay_apply_appr table which code i written in pay_apply_det IMPL class.
    Every thing is running well when i update single record but when i want to update multiple record then my current row only updated in pay_apply_det but log table( pay_apply_appr) created for all record.
    so is there any solution plz help me.
    thanks
    RAFAT

    Hi Rafat,
    If you are able to insert into, all you need to do is iterate through the rows. For this , before the first IF condition
    if(getR2().equals("A")&& h1!=1)Get the row count using int numRows =vo9.getRowCount(); , and then write it before the IF condition
    if (int i=0;i<numRows;i++} After
    row9.setAttribute("ClaimedOn", null);
            }write vo9.next(); to iterate to next row,
    Hope this will work.
    Nigel.

  • Multiple record data merge into paragraph styles-applies the wrong style

    Hi, I've been working on this project for sometime and everytime I manage to get one part of the workflow to work another seems to break. My agency publishes catalogs in multiple formats: large-print, audio, braille, and HTML. I've been trying to redesing our work process so that the catalogs will be laid out from merged data out of comma-separated file. The data merges have worked fairly well in Word, but InDesign is a challenge. I'm merging multiple records on a page, like a mailing label. The paragraphs need to be formatted and I'm trying to apply a paragraph style to them. After much work, I think I've finally got the data merge to work correctly, but the wrong paragraph styles are applied. I'm going to apply a new master page to the data once the data is merge that uses the paragraph styles for text variable running headers and I need to build a table of contents based on the paragraph styles so I need this to work. Attached are some screenshots.
    Master page set up for data merge with paragraph styles:
    Here is the merged document with the wrong paragraph styles applied:
    I have only a few weeks to get this process ironed out to keep to our rigorous production schedule. If anyone can help I would really appreciate it.
    thanks,
    Lina

    I don't remember this happening in past versions. But I mainly use XML. And a quicky test converting your file to XML worked fine (and besides, it ends up all in continuous text frames...).
    I don't do much GREP. But you can do this via a Find/Replace.
    First, in your main document, you can delete the tags--but do this on a second copy of your working file!
    Change your Content Placement options to not remove blank lines (these are in the Datamerge panel).
    Then after the merge, change the format of the two blank lines at the beginning of the records without the two lines of data:
    Note the Change Format style is changing those two paragraphs to Title.
    Then rerun the find to remove the two blank paragraphs.
    I suspect this can be done easier. I am sitting awaiting an appointment and cannot go much further than this for now, sorry.

  • ESS Tax Declaration Multiple Records Restriction

    Hi,
    My client wants to restrict the tax declaration records to only one record.
    ex: as an employee if i want to declare HRA amount, then thru ESS, under compensation & benefits, i should be able to create only one record.
    presently employee am able to create multiple records for the same component & send for approval to my manager which requires a lot of time to go thru all of them.
    please suggest a solution for it...
    rgrds,
    ravi

    Thanks Mithun,
    Actual problem is:
    approver is able to see the same record for tax declaration type for the same employee, twice.
    ex: if the declare HRA once thru my portal, then my approver is able to see the record twice.
    Please let me know if we can restrict this to one record..
    Thanks & Regards,
    Ravi

  • Logic to fetch multiple records from BKPF, SRGBTBREL and SOOD

    Hi All
    Need help in developing a login for a report.
    We are trying to display records of a/c documents which have an associated note with them. This involves 4 categories.
    1)     My Document, I attached the note.
    2)     My Document, someone else attached the note.
    3)     No note attached.
    4)     All.
    The logic desired is as below:
    1)     BKPF-BUKRS + BKPF-BELNR + BKPF-GJAHR = SRGBTBREL-INSTID_A. (SRGBTBREL can have multiple records for this combination if multiple notes attached)
    2)     a) SOOD-OBJTY = SRGBTBREL-INSTID_B+17(3).
    b) SOOD-OBJYR = SRGBTBREL-INSTID_B+20(2).
    c) SOOD-OBJNO = SRGBTBREL-INSTID_B+22(12).
    Unique combination.
    I have fetched the details from the three database tables but finding it challenging to put it across in one output internal table. It doesnu2019t cover the scenario where multiple notes are attached to the document (One can be from the same person who created the document and another ones can be from different person or both from the different people).
    Thanks in advance,
    Harsh

    Code Snippet Part 2.
    * Approved Document.
        IF rb_app = 'X'.
          CLEAR wa_sood.
    *      READ TABLE gt_sood INTO wa_sood WITH KEY objtp = lv_objtp
    *                                               objyr = lv_objyr
    *                                               objno = lv_objno.
          LOOP AT gt_sood INTO wa_sood WHERE objtp = lv_objtp
                                         and objyr = lv_objyr
                                         and objno = lv_objno.
    *      IF sy-subrc = 0.
            IF wa_bkpf-usnam <> wa_sood-cronam.
    * Company Code.
              wa_output-bukrs = wa_bkpf-bukrs.
    * A/c Document No.
              wa_output-belnr = wa_bkpf-belnr.
    * Fiscal Year.
              wa_output-gjahr = wa_bkpf-gjahr.
    * Document Type.
              wa_output-blart = wa_bkpf-blart.
    * Document Date.
              wa_output-budat = wa_bkpf-budat.
    * Day On Which Accounting Document Was Entered.
              wa_output-cpudt = wa_bkpf-cpudt.
    * User name.
              wa_output-usnam = wa_bkpf-usnam.
    * Reverse Document Number.
              wa_output-stblg = wa_bkpf-stblg.
    * Transaction Code.
              wa_output-tcode = wa_bkpf-tcode.
    * Short description of contents.
              wa_output-objdes = wa_sood-objdes.
    * Creator Name.
              wa_output-cronam = wa_sood-cronam.
    * Date created.
              wa_output-crdat = wa_sood-crdat.
    * Time created.
              wa_output-crtim = wa_sood-crtim.
    * Status.
              WRITE icon_green_light TO wa_output-light.
              APPEND wa_output TO gt_output.
    *          CLEAR: wa_output,
    *                 wa_sood.
    *        ENDIF.
          ENDIF.
                   ENDLOOP.
        ENDIF.
    * All Documents.
        IF rb_all = 'X'.
    * Company Code.
          wa_output-bukrs = wa_bkpf-bukrs.
    * A/c Document No.
          wa_output-belnr = wa_bkpf-belnr.
    * Fiscal Year.
          wa_output-gjahr = wa_bkpf-gjahr.
    * Document Type.
          wa_output-blart = wa_bkpf-blart.
    * Document Date.
          wa_output-budat = wa_bkpf-budat.
    * Day On Which Accounting Document Was Entered.
          wa_output-cpudt = wa_bkpf-cpudt.
    * User name.
          wa_output-usnam = wa_bkpf-usnam.
    * Reverse Document Number.
          wa_output-stblg = wa_bkpf-stblg.
    * Transaction Code.
          wa_output-tcode = wa_bkpf-tcode.
          CLEAR wa_sood.
    *      READ TABLE gt_sood INTO wa_sood WITH KEY objtp = lv_objtp
    *                                               objyr = lv_objyr
    *                                               objno = lv_objno.
          LOOP AT gt_sood INTO wa_sood WHERE objtp = lv_objtp
                                         and objyr = lv_objyr
                                         and objno = lv_objno.
    *      ELSE.
            IF wa_bkpf-usnam <> wa_sood-cronam.
    * Status.
              WRITE icon_green_light TO wa_output-light.
    * Short description of contents.
              wa_output-objdes = wa_sood-objdes.
    * Creator Name.
              wa_output-cronam = wa_sood-cronam.
    * Date created.
              wa_output-crdat = wa_sood-crdat.
    * Time created.
              wa_output-crtim = wa_sood-crtim.
            ELSE.
    * Status.
              WRITE icon_yellow_light TO wa_output-light.
    * Short description of contents.
              wa_output-objdes = wa_sood-objdes.
    * Creator Name.
              wa_output-cronam = wa_sood-cronam.
    * Date created.
              wa_output-crdat = wa_sood-crdat.
    * Time created.
              wa_output-crtim = wa_sood-crtim.
            ENDIF.
    *      ENDIF.
          ENDLOOP.
          IF sy-subrc <> 0.
            WRITE icon_red_light TO wa_output-light.
          ENDIF.
          APPEND wa_output TO gt_output.
    *      CLEAR: wa_output,
    *             wa_sood.
        ENDIF.
      ENDLOOP.

  • Retrieve Approver Name in SHarePoint Designer workflow

    Hi,
    I have created a sharepoint designer approval workflow which is assigned to a sharepoint group. Anyone from that group can approve task.I am trying to update a column in list with approver's name but I am getting item creater's name. I have used the following
    actions to get Approver's name but none of them giving Approver's name, all are them giving Item creater's name only.
    1. Workflow Context: Current User
    2. Current Item : Modified By
    3. Task Process: Item Modified By
    Can anybody help me out to resolve this issue?
    Thank you,
    AA.

    Hi AA,
    As I understand, you created an approval workflow and assigned it to multiple accounts. And you would like to get approver’s name in the workflow.
    I tested the issue via creating an approval workflow and assigned it to everyone, then I logged in as another account and approved the task. When I accessed workflow history list via
    http://sitename/Lists/Workflow%20History/AllItems.aspx . I found approver’s name in one of the items. Then I returned to Approval task, and found out that [%Current Task:Modified By%] stored
    the approver’s name.
    You could use [%Current Task:Modified By%] parameter to get approver’s name. Please go to
     Approval process in your workflow and change the behavior of a single task, then you could get it per the reference below. If you would like to use it in workflow, you could set a workflow variable to it and use the workflow variable.
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • MSS Time Approval - multiple (different) selection options for manager?

    Hi all
    I am setting up MSS Time Approval delegation in ERP2005 without workflow, leave request, nor portal development environment set up.
    In this case, the customer needs to have multiple selection options for who to approve:
    1. The manager's direct reports (standard functionality)
    2. All subordinates, all levels down
    3. Delegate's (manager or non-manager) view of a particular (other) manager's direct reports
    3b. This might extend to a set of different delegation selections
    4. Add or remove certain individuals
    Now, getting 3. and 4. to work was simple using the BAdI (I think the enhancement spot is named APPR_CUST), method ...-edit_selection, but I am having difficulties with 2. and 3b. Now I am thinking along these lines, and I would greatly appreciate your input:
    A. It seems that the MSS "Approve working time" app only loads the data selection at the entry into this screen (INIT command from portal), using the start perspective determined for example by the IMG for defining the approval profile <-> view. My debugging suggests that the view change from the drop down menu (CHANGE_PERSPECTIVE command) only picks a different way to present the same data set.
    Could anybody please confirm or contradict this conclusion?
    B. Is it possible to present the entire "Approve working time" section in MSS in multiple different copies so that they would all generate an INIT command? Or is it possible to copy and modify the entire MSS tab, resulting in an ESS tab, one MSS, one "D"SS, one "A"SS (well, not suggesting that the top manager is one, but you get the drift...) and so on?
    If either of this were possible, it would be simple to make two modifications, one at the beginning of the FM called by the portal and one at the FM that returns the start perspective.
    So far I have been trying to catch and alter the CHANGE_PERSPECTIVE command into an INIT in the back end, but the Time Approval functionality is a bit too complex for me to feel entirely comfortable with this approach.
    Your input is much appreciated!
    Kind regards
    Niclas Arndt

    We too are using MSS for time approval of time entered via ESS.  We are on ECC 6.0 for the backend (no enhancement packs, at least not yet), currently sp stack 10 with hrsp 24, and EP 7.0 with stack 10 for the ESS/MSS business packages.  We are using the standard MSS UWL functionality for the approval, so it is workflow-based in my understanding.
    In other parts of MSS, the managers can see a few levels deep in the organization structure, based upon the definition we gave for their structural profiles.  For instance, in the team calendar/overview, or other team information, they have a choice for multiple levels or only direct reports.  However, in the time approval application, only direct reports are shown, so if a manager goes on vacation, at present the only way to cover time approvals for that manager's employees appears to be to temporarily assign a new 'chief' to that org unit, so HR involvement becomes necessary.  The manager doesn't have any method for delegating the approval or other MSS authorities.  We were hoping that by allowing multiple levels in the structural profile, such approvals would "roll up" to the next level, i.e. the manager's supervisor, so the next level manager could act as a backup to his/her managers on vacation.  That doesn't work, however.
    We have heard that a delegation feature for MSS will be available in an upcoming release, but I haven't found any information regarding whether that requires an upgrade, an enhancement pack, a later service pack level, or what or when that functionality will be available.  Does anyone know anything about that?
    Regards,
    Matt

  • How to iterate through multiple records read from a file adapter?

    I am reading multiple records from a file using SyncRead file adapter.
    I want to iterate through the records to perform some action on every record. How to do this?
    I found few threads related to this..but did not get the solution.
    Please note that I am using Jdev 10.1.3.4
    Thanks

    For count expression, I am getting following error:
    <Faulthttp://schemas.oracle.com/bpel/extensionhttp://schemas.xmlsoap.org/soap/envelope/>
    <faultcode>null:subLanguageExecutionFault</faultcode>
    <faultstring>business exception</faultstring>
    <faultactor>cx-fault-actor</faultactor>
    <detail>
    <code>XPathExecutionError</code>
    <summary>XPath expression failed to execute. Error while processing xpath expression, the expression is "ora:countNodes(bpws:getVariableData('Invoke_3_SynchRead_OutputVariable','EmpCollection','/ns4:EmpCollection'))", the reason is FOTY0001: type error. Please verify the xpath query. </summary>
    </detail>
    </Fault>
    I hard-coded count, in order to proceed. Then I got following error
    <Faulthttp://schemas.oracle.com/bpel/extensionhttp://schemas.xmlsoap.org/soap/envelope/>
    <faultcode>null:bindingFault</faultcode>
    <faultstring>business exception</faultstring>
    <faultactor>cx-fault-actor</faultactor>
    <detail>
    <code>null</code>
    <summary>file:/C:/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_BPELProcess4_1.0_dc4a703c46a242f69d6cea305b2df3a3.tmp/WriteDA.wsdl [ WriteDA_ptt::insert(VbEmpCollection) ] - WSIF JCA Execute of operation 'insert' failed due to: Mapping Not Found Exception. The mapping [C1] for descriptor [class bpel___localhost_default_BPELProcess4_1_0__MD5_ad2539e1386433a9e059bcc969732f11_.WriteDA.VbEmp] could not be found. The input xml record had an element [VbEmp/C1]. ; nested exception is: ORABPEL-11627 Mapping Not Found Exception. The mapping [C1] for descriptor [class bpel___localhost_default_BPELProcess4_1_0__MD5_ad2539e1386433a9e059bcc969732f11_.WriteDA.VbEmp] could not be found. The input xml record had an element [VbEmp/C1]. Make sure that the input xml is valid relative to the xsd and that the mapping exists in the Mappings.xml. If an old version of the descriptor without this mapping has been loaded by the database adapter, you may need to bounce the app server. If the same descriptor is described in two separate Mappings.xml files, make sure both versions include this attribute/mapping. </summary>
    <detail>null</detail>
    </detail>
    </Fault>
    The bpel code is as follows (I can share entire BPEL project..But not sure how to attach to the thread :( )
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <!--
    Oracle JDeveloper BPEL Designer
    Created: Wed Feb 03 18:00:26 IST 2010
    Author: administrator
    Purpose: Synchronous BPEL Process
    -->
    <process name="BPELProcess4"
    targetNamespace="http://xmlns.oracle.com/BPELProcess4"
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:ns4="http://TargetNamespace.com/InboundService"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:client="http://xmlns.oracle.com/BPELProcess4"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/file/ReadFA/"
    xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
    xmlns:ns3="http://xmlns.oracle.com/pcbpel/adapter/db/top/WriteDA"
    xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/db/WriteDA/"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
    <!--
    PARTNERLINKS
    List of services participating in this BPEL process
    -->
    <partnerLinks>
    <!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="client" partnerLinkType="client:BPELProcess4"
    myRole="BPELProcess4Provider"/>
    <partnerLink name="WriteDA" partnerRole="WriteDA_role"
    partnerLinkType="ns2:WriteDA_plt"/>
    <partnerLink name="ReadFA" partnerRole="SynchRead_role"
    partnerLinkType="ns1:SynchRead_plt"/>
    </partnerLinks>
    <!--
    VARIABLES
    List of messages and XML documents used within this BPEL process
    -->
    <variables>
    <!-- Reference to the message passed as input during initiation -->
    <!-- Reference to the message that will be returned to the requester-->
    <variable name="inputVariable"
    messageType="client:BPELProcess4RequestMessage"/>
    <variable name="outputVariable"
    messageType="client:BPELProcess4ResponseMessage"/>
    <variable name="Invoke_2_insert_InputVariable"
    messageType="ns2:VbEmpCollection_msg"/>
    <variable name="Invoke_3_SynchRead_InputVariable"
    messageType="ns1:Empty_msg"/>
    <variable name="Invoke_3_SynchRead_OutputVariable"
    messageType="ns1:EmpCollection_msg"/>
    <variable name="Invoke_3_SynchRead_InputVariable_1"
    messageType="ns1:Empty_msg"/>
    <variable name="Count" type="xsd:integer"/>
    <variable name="iterater" type="xsd:integer"/>
    </variables>
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <!-- Receive input from requestor. (Note: This maps to operation defined in BPELProcess4.wsdl) -->
    <receive name="receiveInput" partnerLink="client"
    portType="client:BPELProcess4" operation="process"
    variable="inputVariable" createInstance="yes"/>
    <!-- Generate reply to synchronous request -->
    <invoke name="Invoke_3" partnerLink="ReadFA" portType="ns1:SynchRead_ptt"
    operation="SynchRead"
    outputVariable="Invoke_3_SynchRead_OutputVariable"
    inputVariable="Invoke_3_SynchRead_InputVariable_1"/>
    <assign name="Assign_1">
    <copy>
    <from expression="1"/>
    <to variable="iterater"/>
    </copy>
    <copy>
    <from expression="1"/>
    <to variable="Count"/>
    </copy>
    </assign>
    <while name="While_1"
    condition="bpws:getVariableData('iterater') &lt;= bpws:getVariableData('Count')">
    <sequence name="Sequence_2">
    <switch name="Switch_1">
    <case condition="bpws:getVariableData('Invoke_3_SynchRead_OutputVariable','EmpCollection','/ns4:EmpCollection/ns4:Emp/ns4:C4') = &quot;Pune&quot;">
    <sequence name="Sequence_1">
    <assign name="Assign_3">
    <copy>
    <from expression="bpws:getVariableData('Invoke_3_SynchRead_OutputVariable','EmpCollection','/ns4:EmpCollection/ns4:Emp')[bpws:getVariableData('iterater')]"/>
    <to variable="Invoke_2_insert_InputVariable"
    part="VbEmpCollection"
    query="/ns3:VbEmpCollection/ns3:VbEmp"/>
    </copy>
    </assign>
    <invoke name="Invoke_2" partnerLink="WriteDA"
    portType="ns2:WriteDA_ptt" operation="insert"
    inputVariable="Invoke_2_insert_InputVariable"/>
    </sequence>
    </case>
    <otherwise>
    <sequence name="Sequence_3">
    <empty name="Empty_1"/>
    <assign name="Transform_1">
    <bpelx:annotation>
    <bpelx:pattern>transformation</bpelx:pattern>
    </bpelx:annotation>
    <copy>
    <from expression="ora:processXSLT('Transformation_3.xsl',bpws:getVariableData('Invoke_3_SynchRead_OutputVariable','EmpCollection'))"/>
    <to variable="Invoke_2_insert_InputVariable"
    part="VbEmpCollection"/>
    </copy>
    </assign>
    </sequence>
    </otherwise>
    </switch>
    <assign name="Assign_2">
    <copy>
    <from expression="bpws:getVariableData('iterater') + 1"/>
    <to variable="iterater"/>
    </copy>
    </assign>
    </sequence>
    </while>
    <reply name="replyOutput" partnerLink="client"
    portType="client:BPELProcess4" operation="process"
    variable="outputVariable"/>
    </sequence>
    </process>
    From the process flow, I can see that the array element expression works and the first employee record is correctly assigned to the Invoke_2_Input_Variable.
    However Invoke_2 is erroring out.
    Thanks
    Edited by: user8645981 on Feb 5, 2010 2:44 AM

  • How do I send single notifications to multiple people in the workflow?

    HI
    As I see you can send notification to one person at a time.
    For example, the approval notification goes to a approver once someone submits a expense report or po approval.
    How do I send single notifications to multiple people in the workflow?
    Any idea?
    Thanks in advance.

    Hi,
    You need to send the notification to a role, which can comprise one or more than one users. If you check the "Expand roles" checkbox, then a different copy of the notification will be sent to each member of the role; otherwise one notification is sent which can be viewed by all holders of the role.
    You should always send a notification to a role rather than a user, anyway - roles do not go on holiday, get sick or leave the company; users do.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://thoughts.workflowfaq.com ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Validate message multiple records in Business Rule

    I have Order message as below:
    <Orders>
    <Order>
    <Header>
    <BillToID>001</BillToID>
    <ShipToID>002</ShipToID>
    <Id>Order001</Id>
    </Header>
    <OrderLine>
    <Id>Line001</Id>
    <Date>2015-01-01T00:00:00</Date>
    <Qty>10</Qty>
    <Status></Status>
    </OrderLine>
    <OrderLine>
    <Id>Line002</Id>
    <Date>2015-01-01T00:00:00</Date>
    <Qty>15</Qty>
    <Status></Status>
    </OrderLine>
    </Order>
    <Order>
    <Header>
    <BillToID>002</BillToID>
    <ShipToID>003</ShipToID>
    <Id>Order002</Id>
    </Header>
    <OrderLine>
    <Id>Line003</Id>
    <Date>2015-01-01T00:00:00</Date>
    <Qty>5</Qty>
    <Status></Status>
    </OrderLine>
    <OrderLine>
    <Id>Line004</Id>
    <Date>2015-01-01T00:00:00</Date>
    <Qty>65</Qty>
    <Status></Status>
    </OrderLine>
    </Order
    </Orders>
    I want to use Business rule to check Quantity value and update status for the order line, that if quantity < 10 set the status to Approved, if quantity between 10 to 50 then set status to Pending, if quantity > 50 need to set the status to Reject.
    The business is simple, if the Order message just have one record, but when the Order message that contain multiple record the business rule just get the first quantity and set the status value. 
    Anyone have any idea to implement with that requirement?
    Thanks in advance!

    Have a look into the below articles and let us know if you face any further issue.
    They are addressing a similar issue
    http://www.neudesic.com/blog/apply-bre-rules-looping-data-dynamic-policy-execution/
    How to construct BRE "Condition" on multiple repeating record
    Thanks,
    Prashant
    Please mark this post accordingly if it answers your query or is helpful.

  • Combining multiple records into a single record (View)

    Okay so here is my scenerio:
    There is a table I have made that details SQL jobs and the various details about them. What i wan't to do is make a view with specific logic implemented. Fields that will be taken across to this view will be: LastRunDate, LastRunTime and Step_Status.
    JobName will also be used to define the logic but will not be a column in itself.
    What i wan't is an additional column using this logic, called 'DataSet'. For each Dataset there are multiple jobs that are unique to it, so there are multiple records being brought over from the table to view for one particular dataset. For example,
    for 'ExampleDataSet' there are three jobs, i wan't it so these jobs are combined and named as 'ExampleDataSet' under a calculated column called 'Dataset'. For the following fields i would like it so that LastRunDate and LastRunTime are the time in whichever
    job was last to be intitiated is the date and time set. For Step_Status, there are three possible results, 'Running', 'Failed' or 'Succeeded'. If any of the three jobs are 'Running', then 'Running'. If neither are running yet one has failed then 'Failed'.
    Only when all three have succeeded should it then be set to 'Succeeded'.
    I hope i have made that clear enough, please feel free to ask any questions if not. I am relatively new to SQL but i thought to at least try least try (I knew it wouldn't work) and it didn't work. But it may give you a better idea of
    what i wan't:
    CREATE VIEW [dbo].[vw_DataAvailabilityAnalysts] AS
    SELECT CASE
    WHEN JobName in ('Job1','Job2','Job3') and step_status='Running' THEN 'Running'
    WHEN JobName in ('Job1','Job2','Job3') and step_status='Failed' THEN 'Failed'
    WHEN JobName in ('Job1','Job2','Job3) and step_status='Succeeded' THEN 'Succeeded'
    END as StatusCheck,
    CASE WHEN JobName in ('Job1','Job2','Job3') THEN 'ExampleDataSet'
    END as DATASET,
    LastRunDate,
    lastruntime,
    step_status,
    FROM [CDS_Common].[dbo].[DataAvailability]
    Many Thanks,
    Plain_Clueless
    Plain_Clueless

    Okay so here is what my table looks like (Simplified). There are four columns and the data within is extracted via a Stored Procedure.
    JobName
    LastRunDate
    LastRunTime
    Step_Status
    Job1
    11/06/2014
    09:30:00
    Succeeded
    Job1
    10/06/2014
    09:37:20
    Succeeded
    Job2
    11/06/2014
    04:05:00
    Succeeded
    Job1
    09/06/2014
    02:17:41
    Succeeded
    As you can see there are 3 jobs which are all 'Job1'. This jobs are obviously different within the table however this represents that they are jobs which all update the same DataSet within our local warehouse. Whereas Job2 updates a different dataset alltogether.
    I wan't to create a view which will alagmate the jobs that are of the same DataSet, which will disclude the column JobName but would create a whole new column that looks like this:
    DataSet
    LastRunDate
    LastRunTime
    Step_Status
    DataSet2
    11/06/2014
    04:05:00
    Succeeded
    DataSet1
    11/06/2014
    09:30:00
    Succeeded
    Bascically what this shows you is all the Job 1's combined so they are one record, Amaglamated. The last time any of these jobs were run is the LastRunDate & LastRunTime, which was the first record in the first table provided. Again for Step_Status,
    there are three possible results, 'Running', 'Failed' or 'Succeeded'. If any of the three jobs are 'Running', then 'Running' (Absolute). If none of the three jobs are running yet one has failed then 'Failed'. If one has failed yet another is also running then
    'Running'.Only when all three have succeeded should it then be set to 'Succeeded'. (This last bit isn't as important).
    Hope this clears it up a bit,
    Plain_Clueless
    Plain_Clueless

  • Add Multiple records to G/L account group.

    Dear ABAP Experts,
    i have requirement that is using  BDC recording file  the Functional People wants to add records to the G/L Account group. The FI consultant gave the recording file, based on the recording file i developed a BDC program. This BDC program will work for single record. After creating single record system will ask for transport request .
    REPORT  ZDP_ACC_GRP.
    TYPES: BEGIN OF TY_TAB,
            KTOPL TYPE KTOPL,
            KTOKS TYPE KTOKS,
            TXT30 TYPE TXT30,
            VONNR TYPE VONNR,
            BISNR TYPE BISNR,
           TRKORR TYPE TRKORR,
       END OF TY_TAB.
    data: lt_tab type table of ty_tab,
           wa_tab type ty_tab.
    data: begin of record,
    * data element: KTOPL
             KTOPL_01_001(004),
    * data element: KTOKS
             KTOKS_01_002(004),
    * data element: TXT30_077T
             TXT30_01_003(030),
    * data element: VONNR_077S
             VONNR_01_004(010),
    * data element: BISNR_077S
             BISNR_01_005(010),
    * data element: TRKORR
             TRKORR_006(020),
           end of record.
    *       Batchinputdata of single transaction
    DATA:   BDCDATA type table of BDCDATA  WITH HEADER LINE.
    *       messages of call transaction
    DATA:   MESSTAB type table of BDCMSGCOLL  WITH HEADER LINE.
    *       error session opened (' ' or 'X')
    DATA:   E_GROUP_OPENED.
    *       message texts
    TABLES: T100.
    data:lv_file type string.
    parameters: p_fname type IBIPPARMS-PATH.
    at selection-screen on value-request for p_fname.
    CALL FUNCTION 'F4_FILENAME'
      EXPORTING
        PROGRAM_NAME        = SYST-CPROG
        DYNPRO_NUMBER       = SYST-DYNNR
        FIELD_NAME          = 'P_FNAME'
      IMPORTING
        FILE_NAME           = p_fname .
    start-of-selection.
    lv_file = p_fname.
    CALL FUNCTION 'GUI_UPLOAD'
       EXPORTING
         FILENAME                      = LV_FILE
    *   FILETYPE                      = 'ASC'
        HAS_FIELD_SEPARATOR           = 'X'
       TABLES
         DATA_TAB                      = LT_TAB
      EXCEPTIONS
        FILE_OPEN_ERROR               = 1
        FILE_READ_ERROR               = 2
        NO_BATCH                      = 3
        GUI_REFUSE_FILETRANSFER       = 4
        INVALID_TYPE                  = 5
        NO_AUTHORITY                  = 6
        UNKNOWN_ERROR                 = 7
        BAD_DATA_FORMAT               = 8
        HEADER_NOT_ALLOWED            = 9
        SEPARATOR_NOT_ALLOWED         = 10
        HEADER_TOO_LONG               = 11
        UNKNOWN_DP_ERROR              = 12
        ACCESS_DENIED                 = 13
        DP_OUT_OF_MEMORY              = 14
        DISK_FULL                     = 15
        DP_TIMEOUT                    = 16
        OTHERS                        = 17  .
    LOop at  lt_tab into wa_tab.
    perform bdc_dynpro      using 'SAPL0F09' '0020'.
    perform bdc_field       using 'BDC_CURSOR'
                                   'V_T077S-TXT30(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                   '=NEWL'.
    perform bdc_dynpro      using 'SAPL0F09' '0020'.
    perform bdc_field       using 'BDC_CURSOR'
                                   'V_T077S-BISNR(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                   '=SAVE'.
    perform bdc_field       using 'V_T077S-KTOPL(01)'
                                   WA_TAB-KTOPL."record-KTOPL_01_001.
    perform bdc_field       using 'V_T077S-KTOKS(01)'
                                   WA_TAB-KTOKS."record-KTOKS_01_002.
    perform bdc_field       using 'V_T077S-TXT30(01)'
                                   WA_TAB-TXT30."record-TXT30_01_003.
    perform bdc_field       using 'V_T077S-VONNR(01)'
                                   WA_TAB-VONNR."record-VONNR_01_004.
    perform bdc_field       using 'V_T077S-BISNR(01)'
                                   WA_TAB-BISNR."record-BISNR_01_005.
    perform bdc_dynpro      using 'SAPLSTRD' '0300'.
    perform bdc_field       using 'BDC_CURSOR'
                                   'KO008-TRKORR'.
    perform bdc_field       using 'BDC_OKCODE'
                                   '=LOCK'.
    perform bdc_field       using 'KO008-TRKORR'
                                   WA_TAB-TRKORR."record-TRKORR_006.
    perform bdc_dynpro      using 'SAPL0F09' '0020'.
    perform bdc_field       using 'BDC_CURSOR'
                                   'V_T077S-KTOPL(02)'.
    perform bdc_field       using 'BDC_OKCODE'
                                   '=BACK'.
    perform bdc_dynpro      using 'SAPL0F09' '0020'.
    perform bdc_field       using 'BDC_CURSOR'
                                   'V_T077S-KTOPL(02)'.
    perform bdc_field       using 'BDC_OKCODE'
                                   '=BACK'.
    perform bdc_transaction using 'OBD4'.
    ENDLOOP.
    FORM BDC_TRANSACTION USING TCODE.
       DATA: L_MSTRING(480).
       DATA: L_SUBRC LIKE SY-SUBRC.
    * batch input session
    * call transaction using
         REFRESH MESSTAB.
         CALL TRANSACTION 'OBD4' USING BDCDATA
                          MODE  'A'" CTUMODE
                          UPDATE 'S'"CUPDATE
                          MESSAGES INTO MESSTAB.
         L_SUBRC = SY-SUBRC.
           LOOP AT MESSTAB.
             SELECT SINGLE * FROM T100 WHERE SPRSL = MESSTAB-MSGSPRA
                                       AND   ARBGB = MESSTAB-MSGID
                                       AND   MSGNR = MESSTAB-MSGNR.
             IF SY-SUBRC = 0.
               L_MSTRING = T100-TEXT.
               IF L_MSTRING CS '&1'.
                 REPLACE '&1' WITH MESSTAB-MSGV1 INTO L_MSTRING.
                 REPLACE '&2' WITH MESSTAB-MSGV2 INTO L_MSTRING.
                 REPLACE '&3' WITH MESSTAB-MSGV3 INTO L_MSTRING.
                 REPLACE '&4' WITH MESSTAB-MSGV4 INTO L_MSTRING.
               ELSE.
                 REPLACE '&' WITH MESSTAB-MSGV1 INTO L_MSTRING.
                 REPLACE '&' WITH MESSTAB-MSGV2 INTO L_MSTRING.
                 REPLACE '&' WITH MESSTAB-MSGV3 INTO L_MSTRING.
                 REPLACE '&' WITH MESSTAB-MSGV4 INTO L_MSTRING.
               ENDIF.
               CONDENSE L_MSTRING.
               WRITE: / MESSTAB-MSGTYP, L_MSTRING(250).
             ELSE.
               WRITE: / MESSTAB.
             ENDIF.
           ENDLOOP.
       REFRESH BDCDATA.
    ENDFORM.
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
       CLEAR BDCDATA.
       BDCDATA-PROGRAM  = PROGRAM.
       BDCDATA-DYNPRO   = DYNPRO.
       BDCDATA-DYNBEGIN = 'X'.
       APPEND BDCDATA.
    ENDFORM.
    FORM BDC_FIELD USING FNAM FVAL.
         CLEAR BDCDATA.
         BDCDATA-FNAM = FNAM.
         BDCDATA-FVAL = FVAL.
         APPEND BDCDATA.
    ENDFORM.
    But the FI consultant wants to add multiple records to 'G/L account group'.After adding records before saving the system need to ask transport request at the last.
    How can I write code ...??
    Please help me.

    Hi Srikanth,
    Thanks for reply,
    You  are right we need to load hierarchy for G/L then we can see all the G/L's for all G/L groups.
    I have one more question when I check in RSA3 for the G/L account numbers, I could not find them.
    I am using the datasource fi_gl_4 and in rsa3 I can see 1000 records data and when I put filter on G/L account and search for the G/L number I needed I cant see it, but it is there in the functional transaction(f.01)?
    How to check for the required G/L's in rsa3 ?
    Thx

  • How to store multiple records for one master reocrd using sequnce

    dear,
    my question is in one form i have master block f and detail block.
    my question is i created one sequence and assign to master table. but i dont know how to assign that sequence to multiple record in detail table for that particular master record. i got lots of answer previously but i m not getting exactly.pls tell me full procedure otherwise gv me one demo application
    NOTe: the sequnce is created after master record commiting to database.
    PLS pls help me
    Thanks
    damby

    i did not get answer pls help me.

Maybe you are looking for

  • Problem with Android app

    One article in my folio should show a pdf-file, there is the link to this file in Web content frame. In iOS everything works fine, but Android devices don't show the file! Can native Android apps show pdf-files in Web Content???? And is it possible t

  • Best practice for Acess Control 10 nwbc (master data)

    We are in the process of bringing data over from our GRC AC 5.3 environment to GRC AC 10 and have ran into issues during Migrations. We have been able to go in and clean much of our data manually. We are at the point that we want to copy info over to

  • Re: problem in sending mail..

    n-s-d, see the JavaMail FAQ for instructions on connecting to GMail.

  • What are SDA and SCA

    Hi this is seshu, I have seen some material SDA and SCA what are those...can anyone explain ...Pls

  • Lcds and flash cs3

    it is possible to work with flash and lcds to create applications RMTP of similar way to work with flash and FMS2 to do for example, chat?