TcDataSet for Multiple Records

Hi,
I am trying to write one custom adapter to fetch some values from OIM database using sql query
That sql query returns multiple records.
I am using tcdataset APIs to get values. However I am able to write the code when it returns 1 value
What is the method of tcDataSet can be used when it returns multiple rows.
Pls suggest.It would be great if you could send some used code snippet.
Thanks!!

JRS wrote:
Hi,
I am trying to write one custom adapter to fetch some values from OIM database using sql query
That sql query returns multiple records.
I am using tcdataset APIs to get values. However I am able to write the code when it returns 1 value
What is the method of tcDataSet can be used when it returns multiple rows.
Pls suggest.It would be great if you could send some used code snippet.
Thanks!!
tcDataSet dataSet = new tcDataSet();
dataSet.setQuery(this.oDataProvider, strCheckQuery);
dataSet.executeQuery();
for(int i=0;dataSet.getRowCount() i++){
     dataset.gotoRow(i);
}

Similar Messages

  • Help needed in PL/SQL for updating the column for multiple records

    Hi,
    I am new to PL/SQL and need some help. What is the most effiecient way to update some field in a table as I may need to update thousands of records. I have a coulmn groupid can have multiple records tied to it. All the records attached to some groupid have a priority field also.
    How can I update the prorityfield value for all the groupids in a profiecient way. Here is a sample data
    GroupId     Priority
    1            1
    1            2
    1            3
    1            4
    1            5
    2            1
    2            2
    2            3
    3            1Here I have three groups 1, 2, 3. Now if any group contains only one record the priority remains same e.g. groupid=3 on top. If any group contains more than one record e.g. groupid=1 & 2 I want to re-arrange the priority fields e.g. If I want to update groupid=1 now if I change the priority of 2 to 5 (make it the last) I want to rearrange the remaing records priority i.e. if 2 becomes 5 as I have 5 rows for groupid=1 then 5 becomes 4, 4 becomes 3, 3 becomes 2 and 1 remains the same.
    Same wya if I want to make the priority 1 to 3 for groupid=2 then need 2 to become 1 and 3 to become 2 etc....
    Any help is appreciated.
    Thanks

    Hi,
    You don't need PL/SQL to do this (though you can put the following in PL/SQL if you want to):
    UPDATE     table_x
    SET     priority = CASE
                   WHEN  groupid     = 1
                   AND   priority = 2
                        THEN  5
                   WHEN  groupod     = 1
                   AND   priority     BETWEEN 3 AND 5
                        THEN  priority - 1
                   WHEN  groupid = 2
                   THEN
                        CASE
                             WHEN  prioity = 1
                             THEN  3
                             ELSE  priority - 1
                        END
                 END
    WHERE     groupId          IN (1, 2)
    AND     (     priority     BETWEEN 2 AND 5
         OR     groupid          = 2
         );There are lots of different techniques that can reduce your coidng: for example, the nested CASE statement used for groupid=2 above.
    You could do several smaller UPDATEs (for example, one just for groupid=1). Execution will be slower, but coding and testing will be faster.
    You could make the "magic numbers" 2 (for groupid=1) and 1 (for groupid=2) variables, even outside of PL/SQL.
    If you need more help, post the information that Satyaki requested.

  • Alv report for multiple record insertion

    hi,
    i'm new to abap. i'm using alv report for record display and insertion. how can i insert multiple records from alv to my table??

    well that can be achieved only by running BDC inside alv report to enter the entries.and in that too you can append or edit single entries only
    reward if useful
    regards
    vivek

  • Use of LIKE in where clause of select statement for multiple records

    Hi Experts,
    I have a account number field which is uploaded from a file. Now this account numbers uploaded does not match fully with sap table account numbers but it contains all of the numbers provided in the file mostly in the upright positions.
    For example in file we have account number as 2ARS1 while in sap table the value is 002ARS1.
    And i want to fetch data from sap table based on account number uploaded. So, i am trying to use LIKE with for all entries but its not working as mentioned below but LIKE is not working with FOR ALL ENTRIES.
    data : begin of t_dda occurs 0,
            dda(19) type c,
           end of t_dda.
    data : begin of t_bukrs occurs 0,
            bukrs type t012k-bukrs,
           end of t_bukrs.
    data : dda type t012k-bankn,
           w_dda type t012k-bankn.
    CONCATENATE '%'
                             '2ARS1'
                     INTO  W_DDA.
    MOVE W_DDA TO T_DDA-DDA.
    APPEND T_DDA.
    CLEAR T_DDA.
    free t_bukrs.
    SELECT BUKRS
      FROM T012K
      into TABLE t_bukrs
        for all entries in t_dda
    WHERE BANKN like t_dda-dda.
    Can anybody suggest what should i use to get the data for multiple account numbers using one select statement only instead on using SELECT UP TO 1 ROWS in LOOP....ENDLOOP ?
    Thanks in advance,
    Akash

    Hi,
    yes, For All entries won't work for LIKE with '%  '.
    I think the other alternative is go for Native SQL by writing sub-query
    sample code is here:
    data: begin of i_mara occurs 0,
              matnr like mara-matnr,
              matkl like mara-matkl,
           end of i_mara.
    exec sql.
    select matnr, matkl from mara where matnr in (select matnr from marc) and matnr like '%ma' into :i_mara
    endexec.
    loop at i_mara.
    write:/ i_mara-matnr, i_mara-matkl.
    endloop.
    hope u got it.
    regards
    Mahesh
    Edited by: Mahesh Reddy on Jan 21, 2009 2:32 PM

  • Bapi_po_create is not creating Purchase Orders for multiple records in file

    Hi All.
    iam trying to create contracts and Purchase Orders  In me21n,me31k .
    here iam using bdc for contract creation against services and using bapi_po_create for PO Creations.
    in this process i could create contracts and POs for the first record in the file but for second record bapi_po_create couldnt create POs and the return table in bapi says
    1.document contains no items.
    2.no services or limits have been maintained.
    wil be waiitng for  r great answer.
    bye.
    regards.
    seeta.

    Hi Seeta Ram,
    Did you pass the table PO_ITEM_SCHEDULES to BAPI_PO_CREATE with the coresponding Item numbers for each item in the table PO_ITEMS?
    Regards,
    Vitz.

  • Header line missing for multiple records in the Receiver Email.

    I have a file to email scenario
    I see the content in mapping has proper output with all the HDRs and ITMS. but when it comes throught the receiver it is missing the HDRs.
    Source
    HDR1***   ITM1***  ITM2****
    HDR2***   ITM1***  ITM2***ITM3**
    The email Body looks like the following:
    HDR1***   ITM1***  ITM2***ITM1**  ITM2***ITM3*
    I am missing the HDR for the subsequent recodrs and the subsequent items are shown as if they are the items of the first HDR1. I checked the Mapping the mapping output and it looks good, but when i actually get the email i see it missing susequent HDRs.

    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

  • Bdc session is not working for multiple records

    Hello Experts
    we have written abdc for f-27 using the session method.it is working fine for one record but if we supply mulite records it
    is giving the error, like bseg-wbter( ie amount which comes in the second screen) is not found in screen 1.
    ie the first screen.The bdc is working fine for one record in notepad.after completing the first record it goes to
    second record and in the first screen itself it says amount field not found in screen 1. But
    actually this field comes in second screen.
    my flat file is like this..
    10.10.2008     DA     9641     10.10.2008     1     IND     TEST          31     10001     320.21     10.10.2008     01     120021     345.94
    10.10.2008     DA     9641     10.10.2008     1     IND     TEST          31     10001     560.22     10.10.2008     01     120021     231.94

    please kindly see my program..
    LOOP AT itab.
        REFRESH itabbdc.
        PERFORM bdc_dynpro      USING 'SAPMF05A' '0100' 'X'.
        PERFORM bdc_field       USING 'BDC_CURSOR' 'RF05A-NEWKO'.
        PERFORM bdc_field       USING 'BDC_OKCODE' '/00'.
        PERFORM bdc_field       USING 'BKPF-BLDAT'  itab-bldat.
        PERFORM bdc_field       USING 'BKPF-BLART'  itab-blart.
        PERFORM bdc_field       USING 'BKPF-BUKRS'  itab-bukrs.
        PERFORM bdc_field       USING 'BKPF-BUDAT'  itab-budat.
        PERFORM bdc_field       USING 'BKPF-MONAT'  itab-monat.
        PERFORM bdc_field       USING 'BKPF-WAERS'  litab-waers.
        PERFORM bdc_field       USING 'BKPF-XBLNR'  itab-xblnr.
        PERFORM bdc_field       USING 'FS006-DOCID' itab-docid.
        PERFORM bdc_field       USING 'RF05A-NEWBS' itab-newbs.
        PERFORM bdc_field       USING 'RF05A-NEWKO' itab-newko.
        PERFORM bdc_dynpro      USING 'SAPMF05A' '0302' 'X'.
        PERFORM bdc_field       USING 'BDC_CURSOR' 'RF05A-NEWKO'.
        PERFORM bdc_field       USING 'BDC_OKCODE' '/00'.
        PERFORM bdc_field       USING 'BSEG-WRBTR'  itab-wrbtr.
        PERFORM bdc_field       USING 'BSEG-ZFBDT'  itab-zfbdt.
        PERFORM bdc_field       USING 'RF05A-NEWBS' itab-newbs2.
        PERFORM bdc_field       USING 'RF05A-NEWKO' itab-newko2.
        PERFORM bdc_dynpro      USING 'SAPMF05A' '0301' 'X'.
        PERFORM bdc_field       USING 'BDC_CURSOR' 'BSEG-WRBTR'.
        PERFORM bdc_field       USING 'BDC_OKCODE'  '=BU'.
        PERFORM bdc_field       USING 'BSEG-WRBTR'  itab-wrbtr2.
       PERFORM bdc_load USING 'F-27' itabbdc.
      ENDLOOP.
    *&      Form  open_session
          text
    -->  p1        text
    <--  p2        text
    FORM session_start .
      CALL FUNCTION 'BDC_OPEN_GROUP'
        EXPORTING
          client = sy-mandt
          group  = 'F-27DA'
          keep   = 'X'
          user   = sy-uname.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    "session_start
    FORM bdc_load USING tcode TYPE sytcode
                           bdcdata LIKE itabbdc.
      CALL FUNCTION 'BDC_INSERT'
        EXPORTING
          tcode     = tcode
        TABLES
          dynprotab = itabbdc.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.

  • ADI not working for multiple records

    Hi,
    We currently have an issue with ADI. The ADI we have produces an MS Word letter based on a custom view and custom integrator.
    On the person form, when I query for an employee and the resultset is 1 our ADI is working fine and the letter/word document is generated.
    When the query returns more than one employee, the Web ADI errors. It does not download any records into the excel file and then when it tries to open the word document it asks for Header Record Delimiters?
    In the excel document I get a Run-Time error '5922' Method 'Run' of object '_Application' failed.
    Is there a setting that only restricts ADI to return one row from this form?
    Any help would be greatly appreciated.
    Many thanks
    Martin

    Hi,
    We currently have an issue with ADI. The ADI we have produces an MS Word letter based on a custom view and custom integrator.
    On the person form, when I query for an employee and the resultset is 1 our ADI is working fine and the letter/word document is generated.
    When the query returns more than one employee, the Web ADI errors. It does not download any records into the excel file and then when it tries to open the word document it asks for Header Record Delimiters?
    In the excel document I get a Run-Time error '5922' Method 'Run' of object '_Application' failed.
    Is there a setting that only restricts ADI to return one row from this form?
    Any help would be greatly appreciated.
    Many thanks
    Martin

  • How to produce xsd for  multiple record with header

    Hi
    I tried with native format builder but that's of no use for me
    I have a flat file like this
    0+022+
    1+012+
    2+022+
    2+032+
    1+021+
    2+025+
    5+036+
    I need a schema for repeating records. My record starts for each 0 and ends for 5
    0=header 1=page 2=word 5=end
    Can somebody help me please.
    for now I have this schema but I get more number of xml elements than the data when I transform in bpel
    Also When i parse, as my records end with + {eol}, I get + at the end of the last element, how to get rid of that
    <?xml version="1.0" encoding="US-ASCII"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    xmlns:tns="http://www.oracle.com/ias/processconnect"
    targetNamespace="http://www.oracle.com/ias/processconnect"
    elementFormDefault="qualified" attributeFormDefault="unqualified"
    nxsd:stream="chars" nxsd:version="NXSD" nxsd:validateNxsd="true">
    <element name="PFW16">
    <complexType>
    <sequence>
    <element ref="tns:Header" nxsd:conditionValue="0"/>
    <element ref="tns:Pager" nxsd:conditionValue="1" maxOccurs="unbounded"/>
    <element ref="tns:Tail" nxsd:conditionValue="5" />
    </sequence>
    </complexType>
    </element>
    <!--Header Record -->
    <element name="Header" type="tns:HeaderType"/>
    <complexType name="HeaderType">
    <sequence>
    <element name="RecordTypeIndicator" type="string"
    nxsd:style="terminated" nxsd:terminatedBy="+"/>
    <element name="VersionNumber" type="string"
    nxsd:style="terminated" nxsd:terminatedBy="${eol}"/>
    </sequence>
    </complexType>
    <!-- Pager Record -->
    <element name="Pager" type="tns:PagerRecordType"/>
    <complexType name="PagerRecordType">
    <sequence>
    <element name="RecordTypeIndicator" type="int"
    nxsd:style="terminated" nxsd:terminatedBy="+"/>
    <element name="VersionNumber" type="string"
    nxsd:style="terminated" nxsd:terminatedBy="${eol}"/>
    <element name="words">
    <complexType>
    <sequence>
    <element name="Detail-Item" minOccurs="1"
    maxOccurs="unbounded">
    <complexType>
    <group ref="tns:WordsRecord"
    nxsd:conditionValue="2"/>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    <group name="WordsRecord">
    <sequence>
    <element name="RecordTypeIndicator" type="int"
    nxsd:style="terminated" nxsd:terminatedBy="+"/>
    <element name="VersionNumber" type="string"
    nxsd:style="terminated" nxsd:terminatedBy="${eol}"/>
    </sequence>
    </group>
         <element name="Tail" type="tns:EndType"/>
    <complexType name="EndType">
    <sequence>
    <element name="RecordTypeIndicator" type="string"
    nxsd:style="terminated" nxsd:terminatedBy="+"/>
    <element name="VersionNumber" type="string"
    nxsd:style="terminated" nxsd:terminatedBy="${eol}"/>
    </sequence>
    </complexType>
    </schema>

    You can get value into variable using a simple select sql line.
    Create a variable -> go to refreshing tab -> add sql code there with proper schema.
    Use variable in package in refresh variable mode.
    You are done . Enjoy.

  • Need help to solve update querry for multiple records.

    Could any of you please provide update querry for the following scenario.
    Requiremnt:
    1. Update the UNIQUE_ID of record ( same Identifier and Identifier_code
    where END_Date is not null) with the UNIQUE_ID of the record (( same  Identifier and Identifier_code
    where END_Date  is null).
    2. If More than one NULL in END_date then update UNIQUE_ID with max(EFFective_Date) of UNIQUE_ID
    Source  data
    UNIQUE_ID
    Identifier
    Identifier_code
    EFFective_Date
    END_Date
    1
    777
    abc
    2/14/2014 11:15
    2/28/2014 9:00
    1
    777
    abc
    2/21/2014 9:00
    3/7/2014 9:02
    2
    777
    abc
    2/28/2014 9:00
    3/14/2014 9:02
    2
    777
    abc
    3/7/2014 9:02
    3/14/2014 9:02
    2
    777
    abc
    3/14/2014 9:02
    NULL
    5
    888
    xyz
    2/14/2014 11:15
    2/28/2014 9:00
    5
    888
    xyz
    2/21/2014 9:00
    3/7/2014 9:02
    5
    888
    xyz
    2/28/2014 9:00
    3/14/2014 9:02
    6
    888
    xyz
    3/7/2014 9:02
    NULL
    7
    888
    xyz
    3/14/2014 9:02
    NULL
    OutPUT .
    UNIQUE_ID
    Identifier
    Identifier_code
    EFFective_Date
    END_Date
    2
    777
    abc
    2/14/2014 11:15
    2/28/2014 9:00
    2
    777
    abc
    2/21/2014 9:00
    3/7/2014 9:02
    2
    777
    abc
    2/28/2014 9:00
    3/14/2014 9:02
    2
    777
    abc
    3/7/2014 9:02
    3/14/2014 9:02
    2
    777
    abc
    3/14/2014 9:02
    NULL
    7
    888
    xyz
    2/14/2014 11:15
    2/28/2014 9:00
    7
    888
    xyz
    2/21/2014 9:00
    3/7/2014 9:02
    7
    888
    xyz
    2/28/2014 9:00
    3/14/2014 9:02
    7
    888
    xyz
    3/7/2014 9:02
    NULL
    7
    888
    xyz
    3/14/2014 9:02
    NULL
    Thanks in advance.

    Hi Vikash,
    This query will not produce results as per requirement:
    Try it with following data
    Insert into @TempTABLE values (1,777,'abc','2/14/2014 11:15','3/14/2014 9:02')
    Insert into @TempTABLE values (1,777,'abc','2/21/2014 9:00','3/14/2014 9:02')
    Insert into @TempTABLE values (2,777,'abc','2/28/2014 9:00','3/14/2014 9:02')
    Insert into @TempTABLE values (2,777,'abc','3/7/2014 9:02','3/14/2014 9:02')
    Insert into @TempTABLE values (2,777,'abc','3/14/2014 9:02',NULL)
    Insert into @TempTABLE values (5,888,'xyz','2/14/2014 11:15','3/14/2014 9:02')
    Insert into @TempTABLE values (5,888,'xyz','2/21/2014 9:00','3/14/2014 9:02')
    Insert into @TempTABLE values (5,888,'xyz','2/28/2014 9:00','3/14/2014 9:02')
    Insert into @TempTABLE values (7,888,'xyz','3/7/2014 9:02',NULL)
    Insert into @TempTABLE values (6,888,'xyz','3/14/2014 9:02',NULL)
    as per the problem statement, all records having 888,'xyz' should be updated with 6 not 7 as max effective date is associated with 6 not 7.
    Ashutosh
    Nope.
    can you check the original post first. It clearly states output as having 7 as id for all the records with 888,xyz
    also your above posted sample data is different from original sample data as you've dates jumpled up for the records with ids 6 and 7
    Please see the illustration for original sample data
    --sample table for illustration
    declare @t table
    (UNIQUE_ID int,Identifier int,Identifier_code varchar(100),EFFective_Date datetime ,END_Date datetime)
    --populate original sample data
    INSERT @t ([UNIQUE_ID], [Identifier], [Identifier_code], [EFFective_Date], [END_Date]) VALUES (1, 777, N'abc', CAST(0x0000A2D200B964F0 AS DateTime), CAST(0x0000A2E0009450C0 AS DateTime))
    INSERT @t ([UNIQUE_ID], [Identifier], [Identifier_code], [EFFective_Date], [END_Date]) VALUES (1, 777, N'abc', CAST(0x0000A2D9009450C0 AS DateTime), CAST(0x0000A2E70094DD60 AS DateTime))
    INSERT @t ([UNIQUE_ID], [Identifier], [Identifier_code], [EFFective_Date], [END_Date]) VALUES (2, 777, N'abc', CAST(0x0000A2E0009450C0 AS DateTime), CAST(0x0000A2EE0094DD60 AS DateTime))
    INSERT @t ([UNIQUE_ID], [Identifier], [Identifier_code], [EFFective_Date], [END_Date]) VALUES (2, 777, N'abc', CAST(0x0000A2E70094DD60 AS DateTime), CAST(0x0000A2EE0094DD60 AS DateTime))
    INSERT @t ([UNIQUE_ID], [Identifier], [Identifier_code], [EFFective_Date], [END_Date]) VALUES (2, 777, N'abc', CAST(0x0000A2EE0094DD60 AS DateTime), NULL)
    INSERT @t ([UNIQUE_ID], [Identifier], [Identifier_code], [EFFective_Date], [END_Date]) VALUES (5, 888, N'xyz', CAST(0x0000A2D200B964F0 AS DateTime), CAST(0x0000A2E0009450C0 AS DateTime))
    INSERT @t ([UNIQUE_ID], [Identifier], [Identifier_code], [EFFective_Date], [END_Date]) VALUES (5, 888, N'xyz', CAST(0x0000A2D9009450C0 AS DateTime), CAST(0x0000A2E70094DD60 AS DateTime))
    INSERT @t ([UNIQUE_ID], [Identifier], [Identifier_code], [EFFective_Date], [END_Date]) VALUES (5, 888, N'xyz', CAST(0x0000A2E0009450C0 AS DateTime), CAST(0x0000A2EE0094DD60 AS DateTime))
    INSERT @t ([UNIQUE_ID], [Identifier], [Identifier_code], [EFFective_Date], [END_Date]) VALUES (6, 888, N'xyz', CAST(0x0000A2E70094DD60 AS DateTime), NULL)
    INSERT @t ([UNIQUE_ID], [Identifier], [Identifier_code], [EFFective_Date], [END_Date]) VALUES (7, 888, N'xyz', CAST(0x0000A2EE0094DD60 AS DateTime), NULL)
    --do the update
    UPDATE t
    SET UNIQUE_ID = MaxID
    FROM
    SELECT MAX(CASE WHEN END_DATE IS NULL THEN UNIQUE_ID END) OVER (PARTITION BY Identifier,Identifier_code) AS MaxID,UNIQUE_ID
    FROM @t
    )t
    WHERE UNIQUE_ID <> MaxID
    AND MaxID IS NOT NULL
    --now check the output
    SELECT * FROM @t
    The output is as below
    UNIQUE_ID Identifier Identifier_code EFFective_Date END_Date
    2 777 abc 2014-02-14 11:15:00.000 2014-02-28 09:00:00.000
    2 777 abc 2014-02-21 09:00:00.000 2014-03-07 09:02:00.000
    2 777 abc 2014-02-28 09:00:00.000 2014-03-14 09:02:00.000
    2 777 abc 2014-03-07 09:02:00.000 2014-03-14 09:02:00.000
    2 777 abc 2014-03-14 09:02:00.000 NULL
    7 888 xyz 2014-02-14 11:15:00.000 2014-02-28 09:00:00.000
    7 888 xyz 2014-02-21 09:00:00.000 2014-03-07 09:02:00.000
    7 888 xyz 2014-02-28 09:00:00.000 2014-03-14 09:02:00.000
    7 888 xyz 2014-03-07 09:02:00.000 NULL
    7 888 xyz 2014-03-14 09:02:00.000 NULL
    Now compare it with original output and you'll find they're the same
    UNIQUE_ID Identifier Identifier_code EFFective_Date END_Date
    2 777 abc 2/14/2014 11:15 2/28/2014 9:00
    2 777 abc 2/21/2014 9:00 3/7/2014 9:02
    2 777 abc 2/28/2014 9:00 3/14/2014 9:02
    2 777 abc 3/7/2014 9:02 3/14/2014 9:02
    2 777 abc 3/14/2014 9:02 NULL
    7 888 xyz 2/14/2014 11:15 2/28/2014 9:00
    7 888 xyz 2/21/2014 9:00 3/7/2014 9:02
    7 888 xyz 2/28/2014 9:00 3/14/2014 9:02
    7 888 xyz 3/7/2014 9:02 NULL
    7 888 xyz 3/14/2014 9:02 NULL
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • N:1 multimapping for multiple records in every file

    Hi ,
    I am merging 2 files into a single file. First file has employee personal data and second file has employee salary data.I have created BPM and used correlation on EmpNumber to merge both the files. In BPM I am using fork step to recieve two files then use Transform step to merge the files and finally send dtep to send the output file.
    If both the input files have single employee record my scenario works fine. However my requirenment is file one will have 10 employee records . File two will have salary details of the same 10 employees . I have to  merge both the files and create 10 final records of employees .
    Here i am not able to use correlation as i dont have unique key in the file.
    Can any one tell me how to achive this?
    Regards,
    Shabari

    Please check the below blog
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/10526
    Refer the blog for the BPM design. You can make changes such that you include a fork(with two branches)inside the loop.  But without correlation how will you merge similar employee records.

  • Urgent Help in JSP for multiple records update

    I have a Order Placement form for the dealers. Here they place their orders online and submit the form. The details they enter are stored in Orders table in a database. This order is sent for processing. This is an external operation for the users of our products.
    This table has two extra fields AccptNo and DelDate, which are filled in by the Admin of the Stores Dept of our company. The Admin then logs in and views the new orders. He sees the new orders displayed in the following format. The data shown is from the Orders table.
    He is then reqd to just fill in the Accpt No and Del Date against the requisite Order.
    Having finished filling up all the details he clicks the Submit button which updates the Orders table. i.e the existing records are updated with the accptno and del dates or rather the records are overwritten.
    <html>
    <head>
    <meta http-equiv="Content-Language" content="en-us">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>New Page 1</title>
    </head>
    <body>
    <p><b><font size="3" face="Arial Unicode MS" color="#FF0000">Orders - Admin
    Page.</font></b></p>
    <b><font size="2" face="Verdana" color="#0000FF">
    Following are the new pending orders.</font></b>
    <form method="POST" action="updtOrd.jsp">
    <div align="center">
    <center>
    <table border="1" cellspacing="0" width="68%" bordercolor="#000080">
    <tr>
    <td width="13%" align="center"><font size="2" face="Arial Unicode MS"><b>Dealer
    Id</b></font></td>
    <td width="11%" align="center"><font size="2" face="Arial Unicode MS"><b>Product</b></font></td>
    <td width="13%" align="center"><font size="2" face="Arial Unicode MS"><b>Quantity</b></font></td>
    <td width="10%" align="center"><font size="2" face="Arial Unicode MS"><b>Value</b></font></td>
    <td width="53%" align="center"><font size="2" face="Arial Unicode MS"><b>Acceptance
    No.</b></font></td>
    <td width="53%" align="center"><font size="2" face="Arial Unicode MS"><b>Delivery
    Date</b></font></td>
    </tr>
    <tr>
    <td width="13%"><font size="2" face="Verdana">d0116033</font></td>
    <td width="11%"><font size="2" face="Verdana">ABC</font></td>
    <td width="13%"><font size="2" face="Verdana">100</font></td>
    <td width="10%"><font size="2" face="Verdana">100000</font></td>
    <td width="53%"><input type="text" name="T1" size="20"></td>
    <td width="53%"><input type="text" name="T6" size="20"></td>
    </tr>
    <tr>
    <td width="13%"><font size="2" face="Verdana">d0116065</font></td>
    <td width="11%"><font size="2" face="Verdana">XYZ</font></td>
    <td width="13%"><font size="2" face="Verdana">160</font></td>
    <td width="10%"><font size="2" face="Verdana">16000</font></td>
    <td width="53%"><input type="text" name="T2" size="20"></td>
    <td width="53%"><input type="text" name="T5" size="20"></td>
    </tr>
    <tr>
    <td width="13%"><font size="2" face="Verdana">d0116058</font></td>
    <td width="11%"><font size="2" face="Verdana">PQR</font></td>
    <td width="13%"><font size="2" face="Verdana">300</font></td>
    <td width="10%"><font size="2" face="Verdana">3000000</font></td>
    <td width="53%"><input type="text" name="T3" size="20"></td>
    <td width="53%"><input type="text" name="T4" size="20"></td>
    </tr>
    <tr>
    <td width="153%" colspan="6">
    <p align="center"><input type="submit" value="Submit" name="B1"></td>
    </tr>
    </table>
    </center>
    </div>
    </form>
    </body>
    </html>
    I hope this makes the scene clear still you may eat my head for more clarifications but please help me.
    Can mail me at [email protected]
    ThanQ

    Name your textfields for accetance number and del date as your primary key that must be dealer id in your case.
    You can do this by writing <input type=text name=<%=<something>%>>
    Then you can get all the parameters in jsp to which you are going to submit your request by using function getParameterNames(). That will return you all the primary keys posted as name of your textfield. Then get the parameter value from parameter name and run the sql.

  • File to IDOC for multiple records

    hi friends
       my requirement is to design a scenario for FILE to IDOC (for customers) say i have 120 customers. i have changed the XSD file for IDOC and strucked at Integration Process. can anyone guide me in BPM.
    thanks and regards
    suman.

    hi,
    you can search sdn for it.
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    Single File to multiple IDoc
    regards,
    ujjwal kumar

  • Calling Stored Procedure for Multiple records

    Hi,
    I have an use case where I have more than 2000 item and for every item I need to fetch around 70 more values as out parameters. Also i need to show all thoes values on UI.
    So calling SP in loop is a problem as I can see the rendering the values and it's very slow.
    Can anyone suggest better way to handle this case?
    -Ajit

    Hi...
    I don't know about the function you have written but...
    Procedure will be created like following
    Take an example: i want to create a procedure to take only first letter from the city of City column.
    For this...
    1). Create a physical table manually under the schema folder.
    2). Give the name and select Table Type as "Stored Proc".
    3). In "Default Initialization String" field, you should write the query saying "select substr(city,1,1) as Col1 from Regions". In query Col1 is the alias name i have given for the new column. (Click OK)
    4). So, now this column should be part of the table newly created. So create a physical column under this newly created table with "Col1" name.
    5). Double-click the column and specify the data type of that particular column. (This should be done otherwise you can't move it to BMM layer)
    6). Now you can add this table to BMM layer by performing necessary joins w/o any errors or warnings. (This would be depending on your business requirement, for this some times you need to add keys also to the procedure to perform the joins and all)
    7). By adding it to the presentation layer, in answers you can watch the results..
    NOTE:
    1). While writing the function names in Stored procedures, DB you are using is important. Because, functions will vary between the DB's.
    2). Column name of newly created should match with the name you specified in the procedure as alias.
    3). If you are retrieving 'n' no. of columns from the procedure then you need to create 'n' no. of columns manually.
    4). For physical columns created manually, you need to specify the data type according to the type of data it's retrieving.
    It may helpful to you in achieving your requirement. If not sorry... but i am sure it's helpful to you...
    mark as helpful if it's helpful else mark as correct if correct ;)
    Thanks & Regards
    Kishore Guggilla

  • Outbound file adapter for multiple record write

    am using jdev 10.1.3.1
    and SOA suite 10.1.3.1
    I am trying to read a table and write the records to a csv file.
    The bpel process I have constructed is :
    receive > assign input value to table select parameter > select records from table > assign table select output values to file input value > invoke file adapter to write a csv file > assign a literal to process out value.
    when i execute this process it is showing me an error on the file adapter invoke activity.
    the error is :
    </part></Invoke_2_Write_InputVariable></input><fault><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>null</code>
    </part><part name="summary"><summary>file:/C:/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_TableReader_1.0_594707f7f819a3a4a2002c98afbd42fa.tmp/WritePersonFile.wsdl [ Write_ptt::Write(People) ] - WSIF JCA Execute of operation 'Write' failed due to: Translation Error.
    Error while translating message to native format.
    ; nested exception is:
         ORABPEL-11017
    Translation Error.
    Error while translating message to native format.
    Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
    </summary>
    any help would be appreciated.
    thanks

    Hi,
    In your case, to write any data to a file, you need to define/use a schema when you are using a file adapter.
    Cheers,
    Abhi

Maybe you are looking for

  • MacBook Pro frozen on startup screen with progress bar and then it turns off

    Hello, I have a MacBook Pro 15" of early 2012 with a i5 Intel, 4GB of RAM  and a  500 GB HD. I was installing the new suit of Adobe, when suddenly my Mac got frozen, vertical coloured lines appeared and the image on screen went distorted. I had to re

  • Colors not consistent with Snow Leopard 10.6 on an Eizo SX2761W monitor

    I am unable to get any color consistency with Snow Leopard 10.6 on my Eizo SX2761W display. Most of the actual "content" (i.e. images, videos, websites, etc.) is displayed very saturated and dark, much more saturated and dark than in 10.5.8. I presum

  • Solaris 9 Sparc

    Has anyone downloaded the zipped ISO's for Solaris 9 Sparc? I completed all three downloads and created the CD's from the ISO's. The install disk works fine. I'm having trouble with disk 1, it seems to be corrupt. In fact the ISO claims to to be 564

  • WeChat 2.0 now available for Asha & other Series 4...

    A quick heads up that an updated version of the popular IM app WeChat is now available for Nokia Asha & other Series 40 phones. This version includes usability improvements for Full Touch phones and support for several new phone models. You can downl

  • Restart current song while iTunes is not the current active app

    In prior iTunes 11 / Mtn. Lion when using an Apple keyboard the F7 key when pressed would re-start a song that was playing with one press, and go to the previous with 2. This functionality has changed so that now it will go to the previous track with