Mapping from repeating header to unique headers.

Dear experts,
I would like to map a repeating segment of an Idoc structure to 5 segments with each different names of the target structure. The underlying fieldnames are identical. Ofcourse the number of segments in the source structure is 1, with cardinality 0...9999. Can you please advice on how to do this. (The other way around I could just use "duplicate subtree" to match the number of segments.)
Example:
<headerA>
<item>.....</item>
<item2>.....</item2>
</headerA>
<headerA>
<item>.....</item>
<item2>.....</item2>
</headerA>
<headerA>
<item>.....</item>
<item2>.....</item2>
</headerA>
Target structure:
<headerA>
<item>.....</item>
<item2>.....</item2>
</headerA>
<headerB>
<item>.....</item>
<item2>.....</item2>
</headerB>
<headerC>
<item>.....</item>
<item2>.....</item2>
</headerC>
Thanks in advance!
Will reward points!

Hi,
You can do this only with JAVA or ABAP-mapping.
Regards Mario
Sample with dom4j:
results = document.selectNodes("//header");
          int i = 0;
          for (Iterator iter = results.iterator(); iter.hasNext();) {
               Node node = (Node) iter.next();
               node.setName("header"+i);
               i++;
               System.out.println(node.getName());

Similar Messages

  • IR Report - Repeating Header Isuue

    IR Reports - Apex 3.2
    Question: Is there way to keep the main Table Column Header the same as Repeat Heading. I spent a lot time coloring the Column Header cell <blue> and they do not pass down to the Repeating Headers.... I tried numerous ways. Thanks in-advance.
    <style type="text/css">
    .apexir_WORKSHEET_DATA th{background:#8A7E3F}
    text-decoration:none;
    cursor:pointer;
    #apexir_WORKSHEET .apexir_REPEAT_HEADING {background:#8A7E3F }
    #apexir_EAC_CMDB_PLT {color:"#00FF00";text-decoration:none;
    cursor:pointer;}
    </style>

    Hi,
    Sorry, I now see what you are trying to do - I updated my styles to use #apexir_ENAME {color:#0000FF;text-decoration:none;cursor:pointer;} and then set the groupings. Only the first "Ename" heading is styled using this. That is because this is the only one that is given an ID of "apexir_ENAME" - the other group headings are just plain DIVs without IDs.
    The only way I've managed to get a style onto all of these is to add in a SPAN tag into the heading itself and style it that way. Whilst that does work, of course, it does mean that the SPAN definition is now part of the heading text so appears when you use "Select Columns" etc.
    I can't think of an easy way around this as I assume that the IDs are important to the IR functionality and should be unique on the page.
    Andy

  • How to acces the filename from Message Header during variable substitution

    Hi,
    We need to access the attribute filename from Message Header during Variable Substitution.We are able to access the following attributes of Message Header
    sender_party, sender_service, receiver_party, receiver_service, interface_name, interface_namespace,
    message_id (message ID with hyphens, for example 9fbe1ff1-9a0d-11d9-8665-cbf10a126331)
    message_id_hex (message ID in hexadecimal format, for example 9fbe1ff19a0d11d98665cbf10a126331)
    For example, if we want to specify the interface name from the message header in the target directory or in the file name scheme, we enter message:interface_name as the reference.
    In the same way i need to access the filename which we get in the Message Header(which we get in the Message Header when we check the Adaptor specific message properties and filename in sender CC).Any suggestions on the same
    Thanks and Regards,
    Bhargav
    Message was edited by:
            bhargav gundabolu
    Message was edited by:
            bhargav gundabolu

    Hi Bhargav,
    Use this UDF to retreive the file name from the Dynamic Configuration Payload in the mapping.
    getFileName(UDF) -
    > Filename(node in the target structure).
    public String getFileName(Container container)
       //write your code here
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return  ourSourceFileName; 
    Create a node in the target structure top hold the filename returned by the UDF.
    Now your payload will have the filename along with the actual data.
    U can use the variable substution now as u use for the other data in the payload since the filename is now a part of your payload.
    Regards
    San

  • Mapping with repeating records

    Hello,
    I have once schema which has two child records out of that second child has many child fields with repeating records, but when I mapped it further I am getting that second schema only once even it has multiple.
    Help me please ASAP
    Thanks in advance

    Nilesh,
    You have two options:
    Option1:
    Just ensure in schemas, in second child records, set the repeating child record's (repeating record under second child record) "Max Occurs" property is set to
    * (or unbounded). Ensure that this property (Max Occurs =
    *) is set for repeating records in both source and destination schemas. By this way, particular child record will repeat. This way gives more control on which child record you want to
    set as repeatable.
    Options2:
    Just set the second child record (which has the repeating records under it) "Group Max Occurs" property to
    * (or unbounded). By this way, all the child records of this second child, will be set to repeating record.
    Also ensure that the repeating records (not just the child elements, but also the repeating records) are mapped from source to destination.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Mapping from context to VC

    Hi everybody, I´m working in a mapping excercise where I want to map a data object in my context that has three header fields and one table to a Visual Composer view, I have no problems with the header fields because they are typed as xsd:string, the problem comes with the complex field (table) called Positions, for sure the 'Positions' type is not the same for the VC model and it never be, so my question is how do you make an input mapping from a complex field in the context to a VC,...
    As you can see here is my mapping :
    If I delete the 'Positions' mapping the build is ok, but when I map the 'Positions' field the build failed with the following message :
    Ant build finished with ERRORS
    com.sap.glx.paradigmInterface.bpmn.compiler.BPMNCompilerException: Mapping compilation failed!
    [ERROR] Incompatible expression type.
    Expected:Form.WS_Data_Object.Positions
    Found:PositionType
    Build stopped due to an error: com.sap.glx.paradigmInterface.bpmn.compiler.BPMNCompilerException: Mapping compilation failed!
    [ERROR] Incompatible expression type.
    Expected:Form.WS_Data_Object.Positions
    Found:PositionType
    MOIN forced shutdown initiated.
    It says clairly that expect a Form.WS_DATA_Object.Positions (VC) and found a 'PositionType' from my context.
    Do I need to cast every mapping !? How do you achieve that both types are the same !?
    Any help will be appreciated.

    I already change my WSDL (start message) to the Visual Composer start node type, and with that change I´m able to map:
    start message -> process context -> VC,
    all these objects have the VC types, so the question is....
    do I really need to create the VC data and then set my wsdl and process context DO with those types !?
    I was thinking in create a wsdl in my trigger then store the input values to a DO object of the same type and then mapping only the required displayed fields to the VC... but If I can´t modify the VC types to meet the context types all this is pointless and I need to recreate all my context into the VC isn´t !?
    Any comment will be appreciated. !
    thanks !

  • Stop Background Image in Table from Repeating

    Since CS4 has unfortunately removed the button for Background Image for tables, I found a neat work-around on the internet:  select the cell, then open the Tag Inspector panel, select the Attributes button and Show list view, and click inside "background" and use the folder icon to navigate to the background image.  However, I can't stop the image from repeating.  I've tried everything I can think of.  Can anyone help me?  No code responses, please.  Thanks!

    monelleny wrote:
    Can anyone help me?
    Yes.
    No code responses, please.  Thanks!
    Well, in that case, the answer is no.
    Quite honestly, if you're capable of searching for an answer on the internet, and using the Tag Inspector to add a background image, you should be capable of following simple instructions to handle CSS.
    To add a non-repeating background image to a table cell (or any element, for that matter), you use CSS. Create a CSS class like this in the head of the page:
    <style type="text/css">
    .background {
      background-image: url(images/bg.jpg);
      background-repeat: no-repeat;
    </style>
    Select the table cell, and then choose background from the Class menu in the Property inspector.

  • How do I know the source of 0DOC_CATEG in a report since mapped from 3 diff

    Hi,
    How do I know the source of 0DOC_CATEG in a report since mapped from 3 different sources
    I have in report a 2 chars, 0DOC_CATEG and 0DOC_TYPE which are in a dimension Dim1 in the multiprovider Mult1.
    In the Identification for the multiprovider, it shows that the 2 fields come from the cube, Cube1.
    Now in the 4 update rules from the underlying 4 ODS’s to the cube1, the characteristic mappings show that 0DOC_CATEG and 0DOC_TYPE are being mapped from 3 different ODS’s(Order Header, Billing Item and Billing header) to the cube1.
    So now, if in a report I see 0DOC_CATEG and 0DOC_TYPE, how do I know whether it came from the Order Header ODS, Billing Item ODs or Billing header ODS?
    Thanks

    hi,
    it is from the same cube then you can do for analysis  by adding the request id from the datapackage dimension and chk the corressponding req id in the manage tab of you cube/monitor screen.
    Ramesh

  • Repeating Header Rows - Not repeating beyond page 2

    Hello,
    I'm at my wit's end and I have yet to see a response to questions related to repeating headers (though I've seen it in a few forums).
    I have a flowed form with an initial header table and then 4 subforms, each made up of tables with a header group of two rows and then a user-modified number of data rows. Each of the subforms has it's own 2 line header, which includes a static "topic" row (with "add/delete row" button) and then a second header row with the column titles (9 columns across). As I said, these two header rows are grouped together.
    Each of the 4 subforms can (and does) flow on to multiple pages once filled in by the users. At first, my issue was getting the two rows (grouped) that make up my header to repeat on subsequent pages for each subform. No go - apparently grouped header rows can't make up an overflow leader (I can only choose one of the two), and when I check the box to make the GROUP appear on subsequent pages under pagination, it will only appear on page 1 and 2 for that particular subform...so I've given up on that. Now I just want the second header row (with the column titles) to appear on every page that each subform overflows on to, but I can still only get it to appear TWICE. Anytime a subform moves onto a third page, requiring a third instance of the header, it doesn't work.
    I came across one solution involving the "repeat header for each row", but that came with a host of new bugs, including a bug where every time I open, edit data in a particular subform and save the file, a NEW header group row is added to that subform (after 12 opens, there is literally 12 header rows at the top of each of my 4 subforms if I edit data in all 4)...though it solves the other issue and the header rows DO appear properly on subsequent pages beyond page 2!!!!
    Any solutions? I've run into this on three separate occasions over the past year when building forms and every time, I've hit this wall, given up the search for a solution and sacrificed aesthetics and functionality in my forms that I shouldn't really have to.
    Ck.

    Here is a sample I did for you..
    https://acrobat.com/#d=BSeyeLhbaeyqXfwX*wrwzA
    The difference with this file, is I created a table and then in the top row I merged all cells. Then created a table with two rows inside this merged cell.
    In the Header row properties I checked, repeat header in Subsequent pages.
    Let me know if you have any issues..
    Thanks
    Srini

  • How to map from XML(xsd) to Service

    Hi ,
    when i try to map from generated Xml to Service input i am getting below error like
    Failed to load "" type. 
     Please verify the fully-qualified type name is valid.
     Details: "".
     The type must derive from System.Web.Services.Protocols.SoapHttpClientProtocol.
     The type must have the attribute System.Web.Services.WebServiceBindingAttribute. 
    thanks in advance
    Chinna

    Hi Ram, thanks for ur reply,
    here i am sending multple fields data to <any> element typebecause of source will change every time in source data stucture type is 
    <root xmlns:apl='http://www.xxxx.in' xmlns:atl='http://www.xxxx.in/atl'>
        <product apl:entity='Product' apl:onNew='' apl:match='database.byId(id, Product)'>
            <id>id</id>
            <name>name</name>
            <external-id>externalId</external-id>
            <parent-id>string i:parent=database.byId(i, Product)</parent-id>
            <accounting-symbol>accountingSymbol</accounting-symbol>
            <long-name>alternativeName</long-name>
            <description>description</description>
            <is-closed>isClosed</is-closed>
            <accounting-code-purchase>accountingCodePurchase</accounting-code-purchase>
            <accounting-code-sale>accountingCodeSale</accounting-code-sale>
        </product>
        <apl:reply>
            <ImportAcknowledgement>
                <atl:repeat select="database.updatedItems">
                    <product>
                        <id>{id}</id>
                        <external-id>{item.externalId}</external-id>
                        <success>{successful}</success>
                        <message>{error}</message>
                    </product>
                </atl:repeat>
            </ImportAcknowledgement>
        </apl:reply>
    </root>
    in map i used masscopy functoid to map from Source Document root to destination Document root field.
    the above total data is sent to destination. destination structre is 
    RootNode
    TemplateId
    TemplateName
    Document
    <Any>
    after in logical ports i used to select existing ports and i deployed and in Bts admin i used SOAP adapter for sending the requset to Webservice . 
    here in this process iam getting the above error.
    thanks
    chinna

  • Executing a mapping from sqlplus in OWB 904

    I have used the below syntax to execute OWB 902 mappings as below:
    sqlplus / <<*sql*
    Execute MAP_SOMETHING.MAIN();
    sql
    I deployed the same mapping with new version of OWB 904.. it did not work. What is new syntax to execute the mapping from sqlplus?

    From OWB 9.0.4 on, you must use the execution template to execute your mappings from sql. The template file, that has a brief doc section in its heading is:
    <OWB installation directory>/owb/rtp/sql/sqlplus_exec_template.sql
    Regards:
    Igor

  • Copying Mapping from existing multple mapping to One to one mapping

    Hi Experts,
    I am having a scenario in which I am doing one to three mapping.
    I have a input file and I am tarnsforming it to three files HEADER, DETAIl and FOOTER.
    I am using only one mapping for it and it is completed.
    Now I need to do one to one mapping for each HEADER, DETAIL and FOOTer.
    Is there any way that I can copy my mapping from the existing one and do the one to one mapping.
    Regards
    Pradeep

    Hi,
    I guess it should be possible to copy your mapping (3 times) and remove the parts that you don't need.
    The problem (in PI 7.0) is that if you have more than one message at the target side and reduce it to one message your field mappings are lost.
    You can avoid this if you set the occurence of your target message to 0.. unbounded.
    If you don't want to do this you could copy for all fields the last field before the target field (right click on field -> copy) and paste it in your new mapping (this will copy your complete mapping structure).
    Regards
    Patrick
    Edited by: Patrick Koehnen on Jan 12, 2009 11:48 AM

  • Text mapping from SAP SRM confirmation to ECC Servic Entry Sheet

    How can we map Item and Header texts from SRM confirmations to ECC Service Entry Sheet appropriate fields.

    Hello Sanjeev,
    FIrst, run report /SAPSRM/GET_TEXT_CUST_ERP in SRM. This report copy texts from backend to SRM.
    Then use SPRO to map texts between SRM document and R/3 corresponding document:
    SAP Implementation Guide &gt; SAP Supplier Relationship Management &gt; SRM Server &gt; Cross-Application Basic Settings &gt; Text Mapping &gt; Text Mapping for Inbound and Outbound Texts
    Standard Text ID for ERP lines of service begin with "L". They are linked to customzing object ESLL.
    For more details, have a look at R/3 function module MMPUR_GET_TEXT_CUST_DATA.
    Regards.
    Laurent.

  • How to get the values from repeated frame?.

    Hi
    how to get the values from repeated frame?. i have to disply the first 3 digits in another place in my report.
    i have field empno in repeated frame and i want to disply first 3 digits in another place in the same report.
    thanks

    How often do you need to display it? It sounds like you might want to base a summary on that formula with a function of first or last. If it's a per page basis, it can be a page level summary. If it's at a higher level repeating frame, then you can create the summary at that level. I'd suggest taking a look at the online help for summaries using the first/last functions.
    Hope that helps,
    Toby

  • Unable to open Information Map from planning web Help menu

    Unable to open Information Map from planning web Help menu
    The error is :
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.

    Hi,
    It should be accessing :- http://<planning server>:8300/HyperionPlanning/help/en/hp_information_map/hp_information_map.html
    Can you access that address on the machine hosting planning?
    The file structure on the web server depending on which app server you use should be something like \Hyperion\deployments\Tomcat5\HyperionPlanning\webapps\HyperionPlanning\help\en\hp_information_map\hp_information_map.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Report Total lable when "repeat heading on break"

    Hi,
    I have a report where I'm breaking on the first column, and returning the totals.
    When I have "Default Break Formatting", since I am returning totals based on the first column, it says report total under the first column.
    However, If I have "Repeat heading on break", the first column won't show as one of the columns in the report, but it will show above the box. Because that first column is not gone, I realized that the lable "report total" is gone too, since there is no space to put it. It is still returning the totals correctly, but there is no lable that says "total" or anything like that.
    I wouldn't mind having that label on the second column, or someplace else. Can I do this?
    Thanks!

    Lila,
    If you want to take advantage of the features that HTML DB reports offer, such as column heading sorting, then writing your own PL/SQL region would not be an option. I was only confirming your observation that repeating headings only works for the first break column and suggesting an alternative approach. So you'll have to decide which is more important in your case, getting the formatting you're looking for or using those advanced reports features.
    As for the previous posting regarding new and older versions of HTML DB, HTML DB 1.5 was our first production release, shipped with the Oracle 10G database, and this version as well as HTML DB 1.5.1 offers the same kind of report heading sorting and the same type of column breaks.
    Regards,
    Marc

Maybe you are looking for

  • How do i get a dvd with osx snow leopard to boot from since i lost mine?

    Having trouble with my early 2009 intel iMac. I have reset PRAM and SRC, used disk utility in safe mode to repair disk permissions (several were found/repaired) and tried to verify disk. System said it could not verify disk because it needed to be re

  • How do I access the music from my Mac drive while booted into Windows?

    How do I access the music from my Mac drive while booted into Windows via Bootcamp? I tried using MacDrive but it's not supported for Vista 64-bit edition. Is there another program out there that I can use? I just want to be able to access my music t

  • How do I set up preferences of opening up garage band?

    Hi guys...every project I start I want to have it "time" mode, have the "loops" on the right side of the screen not on, and "lock automation curves to regions" checked. I realize this is a simple 4 to 5 clicks, but was wondering if I can say, "everyt

  • Displaying Purchase Order Quantity

    Hello,   I have problem when trying to display Disp_Quan (as Quantity) from Bapi_Po_Getitems as table column on web dynpro.  (I am sure data is there because I am able to popup message displaying the qty.)   Thank you very much. tbluong.

  • Elements 10 not starting

    Elements 10 organiser has decided not start correctly, its just waits with the little blue circle rotating - the editor will start. I have reinstalled the programme and scaned my computer  I have even checked the directory of the photo I was lasted e