Diferent key field names within a recordset

Hi
Can we have different key field names for records within a recordset.
When i give different key field names for Header and detail records in a recordset i get the error below: -
message not processed: com.sap.aii.messaging.adapter.trans.TransformException: Transformer Conversion3.0.5227 Error initializing Class: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found (4408) Parameter 'xml.keyFieldName' is missing (4403) ; nested exception caused by: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found (4408) Parameter 'xml.keyFieldName' is missing (4403)
Thanks

Hello Pratihchi,
               One keyfield name is allowed, eventhough we have different records per recordset. Because we can differentiate the rows based on the keyfieldvalue and those value we need to mention in the fieldname. Check below link which contains the example on this.
https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5393- [original link is broken] [original link is broken]> [original link is broken] File Adapter->Sender File Adapter for Content Conversion
Regards.
Prasanna.

Similar Messages

  • Problem in key field name in FCC

    hi,
    I am using FCC on the sender side.
    Source file is
    1;;PY;X101;20060630;06;20060630;GBP;Ref.1;Payroll June 2006; (Header)
    1;1;40;S2225000;;1050;;;;;;;;;;;;;;;X101003;;;;;;;;;;;;;;;
    1;2;240;S2225000;;4563;;;;;;;;;;;;;;;X101004;;;;;;;;;;;;;;;
    1;3;31;3100001;;5013;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    1;4;31;3100002;;600;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    2;;PY;X101;20060630;06;20060630;GBP;Ref.2;Payroll June 2006;  (Header)
    2;1;40;S2225000;;530;;;;;;;;;;;;;;;X101003;;;;;;;;;;;;;;;
    2;2;40;S2225000;;2490;;;;;;;;;;;;;;;X101004;;;;;;;;;;;;;;;
    2;3;31;3100002;;3020;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    The first field in the header is the key field to identify the header, which keeps incrementing for evry occurence of the header.
    So for the first occurence of the header first field of header will be 1, first field of item will be 1( same as header) and second field of item will be the key field now  which will increment with evry occurence of item within the header.So there is no constant value for key field name.
    So how do i perform FCC for this type of structure?
    Regards,
    Loveena

    Hi,
    You can create a custom Adapater Module and add it in your Sender Adapter. This will add a Unique Identifier to your Header and Record item which you can give in FCC.
    For more details refer to this forum
    https://forums.sdn.sap.com/click.jspa?searchID=-1&messageID=6143385
    Thanks
    Amit

  • FCC configuration in Sender File Channel Without any key field name

    Hi Everyone,
    We have below flat file generated from ECC using standard tcode.
    The flat file is fixed length file and first record is header record followed by line items.
    There is no key field name in the file name.
    Can we read the file and convert into xml without any key field name?
    I want to understand if the FCC configuration for above file can be done without key name or not.
    Thanks,
    Vertika

    Hello,
    AFAIK, using FCC i really doubt u can convert file into xml.
    So technically, there are two options either read each line one by one and then do conversions in ur mapping or write a custom module which will read ur input file and convert into xml.
    Configuring Generic Sender File CC Adapter
    Thanks
    Amit Srivastava

  • What Oracle Table contains Partition Key Field Name?

    What Oracle table/view maintains the partition key field name?
    All_Tab_Partitions does not appear to maintain such information.
    When I use Toad -> Schema -> Tables -> Partitions, it lists the partition key field name that the partition is based.
    Thank You

    all_part_key_columns
    or
    USER_part_key_columns
    Edited by: OrionNet on Dec 5, 2008 3:56 PM

  • Different Key field Names - Possible?

    Hi All,
       I have 2 main nodes, Header and Detail. Is it possible for me to have a different nodes (like Hkey in header & Dkey in Detail) as keyfields?
    Thanks & Regards,
    Jai Shankar.

    No, you need to have one key field, and value of this can be different in each segment/node.
    E.g
    H,123,122...
    D,123,4,4....
    H,123,122...
    D,123,4,4....
    If your file looks like this, and assume your file contains H for ( Header)and D for (details)> and these values acts as key value to determine the nodes.
    Then keyfied name be any name like <i>Key</i>.
    But here, <i>Key</i> value is different in each segment right. It is possible in file adapter. SO I think it clarifies you.Also have a look into the given blog to get more
    Regards,
    Moorthy

  • Display Technical Field Names within a Transaction Screen

    Hi All,
    Someone once showed me how to do this and for the life of me I cannot figure out how to do it in ECC 6.0.
    I would like to display the technical field names of all fields in a transaction.  It is important to note that I am not looking for the <b>F1...Technical Details</b> solution.  I am well aware that the technical field name can be retrieved by this method.  I am really looking to see all the technical names of the fields in a particular transaction without a lot of clicking and searching.
    When I saw this before you could quickly change from technical field names to short field names and vise versa. 
    I know this could also be accomplished in SE11 or SE16 - but that is not exactly what I am looking for.
    Can anyone help??

    Hi Christopher,
    you know that Rollin Stones thing?
    You can't always get what you want.
    There is no such functionality for standard transactions.
    Regards,
    Clemens

  • Dynamic creating field names within Loop

    Hi,
    I've a record which comprises of a few key fields and then 52 qty fields, one for each week of the year. ( Not my design honest!!).
    Anyway with in a Cursor there are currently 52 "IF" statements clearing out values less than the current week number. I'd tried to replace this with the following. However I'm having trouble with the " 'c1_rec.qty'&#0124; &#0124;lv_count " bit.
    Has anyone got any ideas?
    lv_week:=22; ( added for clarity )
    lv_count:=1;
    WHILE lv_count < lv_week LOOP
    'c1_rec.qty'&#0124; &#0124;lv_count :=0;
    lv_count:=lv_count+1;
    END LOOP;
    John-Paul Thompson

    John-Paul;
    If I understand the question correctly, you have a table with 52 columns, one for each week of the year. You are trying to zero the quantity for each week prior to the current week. I'm going to take a sab at this. Bear in mind that I have no way to debug the code.
    DECLARE
    c NUMBER;
    n NUMBER;
    v_sql VARCHAR2(2000)
    lv_week NUMBER:=22; ( initialize week#)
    lv_count NUMBER:=1;
    BEGIN
    v_sql := 'UPDATE c1_rec SET '
    WHILE lv_count < lv_week LOOP
    v_sql := v_sql&#0124; &#0124;
    'qty'| |TO_CHAR(lv_count) &#0124; &#0124;' :=0';
    lv_count:=lv_count+1;
    IF lv_count < lv_week THEN
    v_sql := v_sql &#0124; &#0124; ', ';
    END IF;
    END LOOP;
    --sql := v_sql &#0124; &#0124; YOUR WHERE CLAUSE
    c:= dbms_sql.open_cursor;
    dbms_sql.parse(c, v_sql, dbms_sql.native)
    n:= dbms_sql.execute(c);
    dbms_sql.close_cursor(c);
    END;
    HTH
    Randall
    null

  • Field Names within a table

    Is there a document that will show the filed names in each table and what would be the valid layout for DTW?

    Hi John........
    Else you can do one thing.
    Login to SAP B1 and then go to Tools> Query> Query Generator--> Press Tab on yellow field where cursor is initially focused.
    The moment you put tab this will give you the list of All the tables with its Descriptions.
    Once you select any of the table this will display all the fields in the database in that table......
    hope this will help you......
    Regards,
    Rahul

  • Can I capture field names from DW recordset?

    ie, can i dynamically generate an array with
    FieldName->FieldValue?
    TIA,
    Jon Parkhurst
    PriivaWeb
    http://priiva.net.

    You could loop through the fields collection of a record. eg
    for each fld in rs.fields
    foo=fld.name & fld.value
    next
    Jules
    http://www.charon.co.uk/charoncart
    Charon Cart 3
    Shopping Cart Extension for Dreamweaver MX/MX 2004
    crash wrote:
    > ie, can i dynamically generate an array with
    >
    > FieldName->FieldValue?

  • Key Field Name not there_Content conversion

    Hello SDN,
                   I am doing a sender content conversion in send file adapter but i donot have a keyfield and my structure is :-
    Header,*,body,1 but there is no common field between header and body so i cant use a keyfield . Any solutions ?
    Regards,
    Anirban.

    Hi,
    Refer this ...
    http://help.sap.com/saphelp_nw70/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm
    Hope it helps..
    kumar.S

  • GUID in table key (field name IDHEADR) is not supported

    Hi Experts,
    the above mentioned message (see subject) was displayed after I have tried to generate a
    maintanace view thorugh se11/ Utilities/ Table Maint. Generator / F6.
    What is wrong ?
    How can this problem be solved
    Regards
    sas

    ok I have followed your instructions but now I get the dump
    Syntax error in program "SAPLZPD_ZSDTAB ".
    ""OK_CODE" has already been declared."
    The include has been created and last changed by:
    Created by: "SAP "
    Last changed by: "SAP "
    Error in the ABAP Application Program
    The current ABAP program "SAPLSVIM" had to be terminated because it has
    come across a statement that unfortunately cannot be executed.
    regards
    sas

  • Sender Adapter - Content Conversion Key Field Query

    Hi,
    I have a flat file of the following structure I am attempting to convert to XML using a file sender adatper:
    H1,H2,H3,H4
    D1,D2,D3,D4,D5,D6
    D1,D2,D3,D4,D5,D6
    D1,D2,D3,D4,D5,D6
    T1,T2,T3,T4
    Within the Content Conversion tab I have a Recordset Structure of:
    Header,1,Detail,*,Trailer,1
    i.e one header record, multiple detail records and one trailer as per the above example.
    It would seem that according to errors generated via Communication Channel Monitoring that this sort of Recordset Structure requires the Key Field Name to be set. I have searched around the forum and looked at the help.sap.com site and I'm struggling to understand what is required here.
    Anyone help ?

    >>It would seem that according to errors generated via Communication Channel Monitoring that this sort of Recordset Structure requires the Key Field Name to be set. I have searched around the forum and looked at the help.sap.com site and I'm struggling to understand what is required here.
    Yes you need to set key field value for your Header, Detail and Trailer
    Example:
    Header.keyFieldValue    H1
    Detail.keyFieldValue     D1
    Trailer.keyFieldValue   T1

  • Key field from content - Sender file adapter content conversion

    I am reading a source CSV file that has this structure. All rows in the source file are the same structure: line items of a PO. But there will be multiple POs in a single file, identified by the PO number as one column in the file.
    PONum,LineItemNum,Qty,Description
    001,1,34,Carrots
    001,2,17,Apples
    001,3,22,Bananas
    002,1,4,Mangos
    002,2,9,Coconuts
    003,1,44,Grapes
    Goal is to generate 3 messages, one for each PO:
    <po>
         <num>001</num>
         <line_items>
              ... 3 line items for PO # 001 ...
         </line_items>
    </po>
    <po>
         <num>002</num>
         <line_items>
              ... 2 line items for PO # 002 ...
         </line_items>
    </po>
    <po>
         <num>003</num>
         <line_items>
              ... 1 line item for PO # 003 ...
         </line_items>
    </po>
    Is there any way to use the Content Conversion Key Field Name to group the line items into the correct 3 messages? "Key Field Name" expects a static identifier for each type of row; but mine varies by the PO number in the content.
    Or do I need to do this in the mapping? If so, what is the easiest way to split 1 large message of all line items into multiple target messages based on the PO number? (I assume this is better than sending individual line item messages and aggregating them later, as long as the file size is OK.)
    Thanks in advance!
    RBL
    Edited by: Robert Burfoot-Lobo on Apr 8, 2009 11:43 AM

    Hi Robert,
    If ur goal is to split into 3 messages one for each PO, you can go for message split and using graphical mapping you can achieve that.
    Within the message mapping go to the tab Messages.
    Change the occurrence of the target message to 0..unbounded.
    Also this link may help you.
    /people/claus.wallacher/blog/2006/06/29/message-splitting-using-the-graphical-mapping-tool
    Regards,
    Madhu

  • Sender File adapter File Conversion with key fields

    Please help me guys, I already spent way too much time on this!
    I checked a couple of BLOGs and I think I'm doing the right thing except I'm not getting the result I would expect.
    I'm trying to create an IDoc using the from a flat file.
    I get the following error:
    During the application mapping com/sap/xi/tf/_MM_TEST_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~
    The Source file is this:
    H
    L0015
    The file adapter does create the XML below (looks fine):
      <ns:MT_SINGLE xmlns:ns="http://PPSC_TO_BO_INVOICE">
      <HEADER>
         <ID>H</ID>
      </HEADER>
      <LINE>
         <ID>L</ID>
         <SITE>0015</SITE>
      </LINE>
      </ns:MT_SINGLE>
    When I test the map in IR, with the XML that this file adapter created (above) it works fine!
    Also if I take away the HEADER from the source structure everything works fine and I can create the IDoc, therefore I think something must be wrong in the file conversion, the mapping is so simple there is nothing to fail there.
    The file conversion parameters that I have:
    Document Name: MT_SINGLE
    Document Namespace: http://PPSC_TO_BO_INVOICE
    Document Offset:
    Recordset Name: 
    Recordset Namespace:
    Recordset Structure: HEADER,1,LINE,*
    Recordset Sequence: Ascending
    Recordset per Message:
    Key Field name: ID
    Key Field Type: String (Case-Sensitive)
    LINE.fieldNames: ID,SITE
    LINE.fieldFixedLengths: 1,4
    LINE.keyFieldValue: L
    HEADER.fieldNames: ID
    HEADER.fieldFixedLengths: 1
    HEADER.keyFieldValue: H
    What am I doing wrong???
    Any help is much appreciated.
    Thanks,
    Viktor Varga

    Hi Viktor,
    Basic rules:
    1. Down load XML payload(output From Adapter) and test it in IR mapping program. If it is working there is no reason why it will fail in Runtime. Also Check Cache is up to date.
    Generally the problem lies with namespace.
    Hope this helps
    Regards,
    Satish

  • How to determine InfoCube name within the update rule start routine?

    We are attempting to delete all the records where all key figure values are zeroes. We have about 15% of such records and we really don't need them.
    We have yearly InfoCubes. We copy the InfoCube and update rules at the end of every year. So, we don't want to hard code any field names within the update rules.
    If I could determine the target InfoCube name within the update rule start routine, I can find out all the key figures dynamically. But, I don't see a way of finding out the InfoCube name.
    If you would share any ideas, I would really appreciate.
    Thanks.
    Sudhi Karkada.

    Hi Sudhi,
    I dont know if this is what you are looking for.
    if you want to delete a record from being inserted when all the Key figure values are ZERO then you can use a Update Routine for some characteristic in the below way
    If looking for the InfoCube:
    if COMM_STRUCTURE-KF1 = 0 and COMM_STRUCTURE-KF2 AND....
      RETURNCODE = 4.
    else
      RESULT = COMM_STRUCTURE-ChanracteristicObject.
    endif.
    If it is to an ODS / InfoCube in the start routine.
      DELETE DATAPACKAGE where KF1=0 and kf2=0 and .....
    Hope it helps.
    Regards,
    Praveen.
    ENDLOOP.
    Message was edited by: Praveen

Maybe you are looking for

  • Use of QuickVPN to access network behind a RV042

    Hello, I have a RV042, and all incoming WAN requests are forwarded to a network located behind the RV042. Internal IP range of the RV042 is 192.168.0.x (RV042 IP is 192.168.0.1, and everything is forwarded to SG300 L3 with IP 192.168.0.2), and some n

  • How do I download PDF files to my iPad?

    I have uploaded from my I-pad several PDF to the acrobat.com (cloud), so far so good. So no I have a local copy on my I-pad, and a cloud copy. Now I want to access the file from a different I-pad, which I can through the cloud, but I want to have it

  • Is it possible to get the handle of a HTML UI element in JSPDynpage?

    Hi Experts, I am new to Portal Development and my current requirement is as follows: User is provided an option to upload a file to KM from the JSP for which i used a HTMLB fileupload UI element. I was able to upload the file to the KM. But the clien

  • How to close, not delete, all open emails at one time.

    When I reply to an email, it isn't automatically closed. Therefore I have hundreds of open emails and in order to get back to my inbox I have to slide, with my cursor, through many of them. I don't want to delete them and it would take me way too lon

  • Sound on/off by click a button in flex4????

    hello everybody, i want to make a website by flex.in that have sound  effect. i want when i load page have sound and if i don't want to listen  i can click button.the sound will stop play and else. But i don't know  how to make on/off sound by a butt