Mapping Header / Item

Hi,
In a mapping I want to do that:
--> Inbound (Idoc):
Segment<b>1</b>-fieldA
Segment<b>1</b>-fieldB
Segment<b>2</b>-field<b>C</b>
Segment<b>2</b>-field<b>D</b>
<i>Segment1 and Segment2 are at the same hierarchical level.</i>
--> Outbound (row for a file):
row1: Segment<b>1</b>-fieldA Segment<b>1</b>-fieldB Segment<b>2</b>-field<b>C</b>
row2: Segment<b>1</b>-fieldA Segment<b>1</b>-fieldB Segment<b>2</b>-field<b>D</b>
(it seems that I'll need only ONE Segment1)
But by using "Splitbyvalue", "removecontext", I have only this:
--> Outbound:
row1: Segment<b>1</b>-fieldA Segment<b>1</b>-fieldB Segment<b>2</b>-field<b>C</b>
row2: Segment<b>2</b>-field<b>D</b>
==> pb: Segment1 is missing for my second line.
Anybody have an idea?
Regards.
Mickael.
Message was edited by: Mickael Huchet
Message was edited by: Mickael Huchet

Hi Mickael,
You can use a XSLT Mapping.
For Example:
Message before Mapping execute:
<?xml version="1.0" encoding="UTF-8"?>
<DATA>
     <SEGMENT1>
          <FIELD_A>DataA</FIELD_A>>
          <FIELD_B>DataB</FIELD_B>
     </SEGMENT1>
     <SEGMENT2>
          <FIELD_C>DataC</FIELD_C>
          <FIELD_D>DataD</FIELD_D>
     </SEGMENT2>
</DATA>
After Mapping:
<?xml version="1.0" encoding="UTF-8"?>
<DATA>
     <row1>DataADataBDataC</row1>
     <row2>DataADataBDataD</row2>
</DATA>
If this is the result you want, you have to use a XSLT Mapping like this:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
     <xsl:template match="/">
          <DATA>
               <row1>
                    <xsl:value-of select="//SEGMENT1/FIELD_A"/>
                    <xsl:value-of select="//SEGMENT1/FIELD_B"/>
                    <xsl:value-of select="//SEGMENT2/FIELD_C"/>
               </row1>
               <row2>
                    <xsl:value-of select="//SEGMENT1/FIELD_A"/>
                    <xsl:value-of select="//SEGMENT1/FIELD_B"/>
                    <xsl:value-of select="//SEGMENT2/FIELD_D"/>
               </row2>
          </DATA>
     </xsl:template>
</xsl:stylesheet>
Regards,
Robin

Similar Messages

  • Problem mapping header/items in 1 Message Type

    Hello,
    I'm currently facing the following problem in my message mapping:
    On my 'CRM side'
    I have a MessageType (DataType) consisting out of +/- 10 header fields and a field called 'ITEMS'
    'ITEMS' is table type field consisting out of +/- 5 item fields. Ofcourse 'ITEMS' can occur min1 time - max ?? times
    On My 'Dbase' side I have a MT containing 2 'update' statements
    1 table is updated for every header record ( mapped with header fields )
    1 table is updated for every item ( mapped with header fields as well as item fields )
    As far as the header data is concerned everything works fine.
    The problem is in the update per item.
    The fields that are mapped with the fields inside 'ITEMS' are working fine.
    But ... I need to put 3 fields from my header level in the 'item table' as well. So I mapped them from header level to 'Item table'
    This seems to work fine as long as I have only 1 item. From the moment I have more then 1 item, the mapping throws an error that he can not create the target item.
    I have the impression that he 'looses' the link between header and item(s) from the second item on.
    Can somebody let me know that I have to use a special function or something to do this type of mapping ( mapping from header level towards item level ) ?
    I tried already some things with the functions 'Remove context' and 'CollapseContext' but this does not seem to help.
    Every help is welcome,

    Hi,
    Here you will be passing some values from Header Segments to Item level. So definately there should be a link available between them to pass the appropriate values..
    For multiple Item fields you need to use the single header fileds as common
    you should go for UseOneToMany API in Node function
    Header field to be passed                  --------->
    (Update table for Item level) ITem Node ------->   UseOneToMany  -----> splitByValue -------> Target field
    (Update table for Item level) ITem Node ------->
    Thanks
    swarup

  • Mapping Header Values to Item Nodes

    Using the graphical mapping editor, I need to map values from a source header level node to a target item level node for each item in the source structure.
    eg.
    <b>Source</b>
    <HEADER>
      <H1>HeaderValue1</H1>
    </HEADER>
    <ITEM>
      <I1>Item1Value</I1>
    </ITEM>
    <ITEM>
      <I1>Item2Value</I1>
    </ITEM>
    <b>Target</b>
    <ITEM>
      <H1>HeaderValue1</H1>
      <I1>Item1Value</I1>
    </ITEM>
    <ITEM>
      <H1>HeaderValue1</H1>
      <I1>Item2Value</I1>
    </ITEM>
    If I map the source <ITEM> node to the target <ITEM> node and the <H1> and <I1> nodes as shown above, the <H1> node only appears on the first item. I need the <H1> node to appear for all target <ITEM> nodes.
    Any assistance would be appreciated.
    Thanks.

    Hi Briggs,
    This Mapping will Solve Ur Problem
    Source Structure:
    MT1  1..1
    Header 1..1
      H1 1..1
    Item 0..unbound
      L1 1..1
    Target Structure:
    MT2
    Item 0..unbound
      H1 1..1
      L1 1..1
    Mapping that solve Your Problem is :
    Item(source)-->Item(dest)
    H1(Source)>copy value (property=0)>H1(dest)
    L1(source)-->L1(source)

  • Create a new header+item after sync the item some informations are deleted

    Hi All,
    I have a DO with a backend adapter and 3 bapi wrapper (GetList, GetDetail, Create).
    When I create a new instance (header+item) on client side the data are correct in the database. After a sync the instance is also on the client and the Backend but he lost some informations in the item.
    For example i create e_top object (header) and t_vehicle object (item) the i added the item to the header an wirte it  in the database. In the datebase both tables for header and item are correct filled.
    Application Code:----
      public void SaveVehicle( java.lang.String Manufacturer, int Driver, java.lang.String Licence_Number, java.lang.String Type )  {
           VEHICLE_E_TOP e_top = model.createVEHICLE_E_TOP();
           e_top.setLICENCE_NUMBER(Licence_Number);
           wdContext.nodeVEHICLE_E_TOP().bind(Collections.singleton(e_top));
           wdContext.nodeVEHICLE_E_TOP().setLeadSelection(0);
           model.addToVEHICLE_E_TOPs(e_top);
           VEHICLE_T_VEHICLES t_vehicle = e_top.createNewT_VEHICLESs();
           t_vehicle.setDRIVER_ID(Driver);
           t_vehicle.setLICENCE_NUMBER(e_top.getLICENCE_NUMBER());
           t_vehicle.setMANUFACTURER(Manufacturer);
           t_vehicle.setTYPE(Type);
           wdContext.nodeVEHICLE_E_TOP().currentVEHICLE_E_TOPElement().model();
           e_top.addToT_VEHICLESs(t_vehicle);
           wdContext.nodeVEHICLE_T_VEHICLES().bind(Collections.singleton(t_vehicle));
           wdContext.nodeVEHICLE_T_VEHICLES().setLeadSelection(0);
           model.commit();
    Now when I snyc with the middleware the object is still on the client (1 row in the e_top table and 1 row in the item table) but in the row of the item table all data until the header key(Licence_Number) is deleted. In the Backend there is a new objekt with only the header imformations. 
    Best Regards,
    Dirk

    Hi,
    there was another post today n a similar issue. I still do not think it is a standard issue - so lets check first if your implementation is correct.
    You should have a look on the CREATE BADI in the backend and on the mapping in the DOE. I expect the CREATE handler does not get all informations form the client, cause you missed to do the propper mapping in the DOE on the middleware. Check this first. If you see the data on the client, the client side should be fine. Check the DOE and its mapping and the BADI implementation on the backend.
    Hope it helps!
    Regards,
    Oliver

  • Text in PO(text tab in header & item) is not shown in the Print Preview

    Hi Guys,
                I face a problem in ME23N.Text maintained in Purchase Orders (text tab in header & item)  is not shown in the Print Preview.
                Can you guys help.Do I need to write a subroutine pool for this.
                <<text removed by moderator>>
    Regards,
    Rajiv
    Edited by: Matt on Nov 12, 2008 1:20 PM

    Hi ,
    Use bapi bapi_po_getdetail .
    CALL FUNCTION 'BAPI_PO_GETDETAIL'
        EXPORTING
          purchaseorder   = is_ekko-ebeln
          item_texts      = c_x
          header_texts    = c_x
        TABLES
          po_header_texts = it_header_text
          po_item_texts   = it_item_text.
    Regards
    Neetesh

  • How to map promotional items

    Hi Experts,
    how to map promotional items with sales employee wise.
    and what is the difference bet sample and promotional items
    Regards,
    Amar

    I have no idea abt your process, but you can create new order reason as promotional items and assign to FOC order, you can create sales employee as customer and create FOC with customers ( sales employee).

  • How to multiple layers in the MAP web item?

    Hi experts,
    I'm working on a demo with BWGIS. I encounter several problems with the MAP web item.
    My demo:
    QA results visualized on global (region object - e.g. Europe, Asia), country (country object) and plant level. Use geo-drilldown to navigate into the lower layers functionality to get from the global view to the countries within one region and plants within one country.
    My settings:
    Region is a static geo-characteristic. For region I used the cont200.shp file. Also country is a static geo-characteristic, here I used cntry200.shp. For test I used ARCGIS to draw (points) some example plants in the country shape file. I uploaded this shape file to the plant object (also static).
    My success:
    I'm able to display the QA results in a separate global or country view within the 3.x Web template.
    My problems:
    A) The map web item in 7.0 does not display any data: it looks like no link can be made between the query result and graphic although we installed the latest IGS.
    B) I'm not able to drilldown from a global view to the countries within one region (doubleclick on one region in global view) within the 3.x Analyzer and 3.x Web template.
    My first question is about the concept of BWGIS:
    1) I want to use geo-drilldown (double-click) to navigate to the lower layers. For example in the global view I see only the QA result per region (shape file of region object) -> doubleclick on Europe, I expect to zoom in to Europe and see the QA results for all the countries in Europe (shape file of country object). How do I modell this in the web application designer?
    alt. 1a: 1 map – 1 layer - 1 dataprovider - underneath 1 query with region and country in the row is not allowed, so how to navigate between the two geo-relevant objects?
    alt. 1b: 1 map - 2 layers (2 shape files) - 2 dataproviders - 2 queries, one with QA result per region and one per country -> in that case both will be displayed at the same time, is not what I want. How to navigate between the two layers?
    alt. other ?
    2) I know how to make maps with multiple layers in ARCGIS, but do I need this for BWGIS, because one layer is one shape file? So do multiple layers in the map web item correspond to multiple layers in a ESRI ArcMap Document.
    More specific questions:
    3) Is there a lot of experience with the map web item in 7.0, documentation and working examples? Are there known problems (I can't find anything in sap notes). Is it better to still use the 3.5 Web Application Designer for this?
    4) There is very little information on SAP help, SDN and other forums about BEx Map and moreover the MAP web item. Does anyone have more documentation for me?
    Thanks in advance.
    With kind regards,
    Rick Stoll

    Hi Rick,
    I am working on the same topic. I am strongly interessted in solutions to your open questions, that you pulled forward in the past.
    Did you make any progress?
    Thanks in advance and regards
    Marcus

  • How to copy header/item text from Quotation to sales order?

    Dear All,
    On ECC 6, I am trying to get text copied from the quotation to the sales order (when the order is created with reference to the quote).
    As of now, the order creation is fine with all the right items & partners etc. in it, but the text is missing.
    The same text IDs have been assigned to both documents (at header & item levels).
    Is the text content supposed to be copied by standard SAP? Is there any customizing needed for this? Please guide me on how I can achieve this.
    Please help.
    Thanks
    Best regards,
    Rohit L
    Edited by: Rohit Lokray on Nov 26, 2009 10:49 AM

    Hi Rohit,
    Pls check this e.g.
    Text Determination Procedure
    You can define text for
    Customer
    Sales document
    Delivery
    Billing 
    1) Create new text types
    (Menu Path:  SPRO-IMG-Sales and distribution- Basic function-Text Control-Define text type). You can define new text type in this menu for your requirement for different objects (Customer, Sales document, Delivery and billing document). T-code: VOTXN
    2) Assign the new text ID in the text   determination procedure
    (Menu Path:  SPRO-IMG-Sales and distribution-Basic function- Text Control-Define text type). Click on change on application tool bar. Select text procedure   created and double click on Text ID'  s in text Procedure. Assign new text Id to Text determination procedure
    3) Define and Assign an access sequence to the new text ID
    (Menu Path: SPRO-IMG-Sales and distribution-Basic function-Text Control-Define access sequence for determining text).Access sequence can be defined only for sales document not for customer master. Select text procedure and double click on text id's in text procedure folder. Select text id and double click on access sequence and create new access sequence here.
    4) Assign the Text determination procedure with the sales document type.
    (Menu Path: SPRO-IMG-Sales and distribution-Basic function-Text Control-Define and assign text determination procedure) In this menu path you can assign text determination procedure to sales document type.
    [http://help.sap.com/saphelp_erp60_sp/helpdata/en/90/758534c960a134e10000009b38f83b/frameset.htm]

  • "SQL Server 2008 Reporting Services does not support map report items"

    Hi,
    I am trying some new feature that are introduced in SQL Server 2008 R2 version. While I try to use "Map" control within it, it threw the following error:-
    "Error 1 The map, Map1, was removed from the report. SQL Server 2008 Reporting Services does not support map report items. "
    -Also, similar kind of error I am getting for "Indicator" control.

    Hi Tej,
    I think you get this error message when you are deploying a report to report server using BIDS, correct?  If not, please provide more details on your scenario :-)
    If I guessed correctly, then this message is a result of trying to deploy a map report (a SSRS 2008 R2 feature) to a non-R2 2008 report server.  When deploying a report of RDL2010 format to a non-R2 report server, BIDS will downgrade the file to RDL2008 format, so that the non-R2 report server can process it.  Any report elements using features not supported in RDL2008 will be dropped during this downgrade process.
    BIDS gets the server version from a report project property called TargetServerVersion:
    http://technet.microsoft.com/en-us/library/ee635898(SQL.105).aspx
    If your report server is indeed the 2008 R2 version, then the TargetServerVersion property should be set to "SQL Server 2008 R2 Reporting Services."  The project property page also has a "Auto Detect..." option if you are uncertain about the version of your report server.
    Hope this helps!
    Cheers,
    LawrenceThis posting is provided "AS IS" with no warranties, and confers no rights.

  • Is there any report to get the header/item text at GR stage together?

    Hi gurus,
    Is there any report to get the header/item text at GR stage together with a date range?
    at the point of goods receipt?  Or a report that could be run to search for header/item text at GR stage together with a date range?
    Text that was entered at the point of goods receipt?

    Hi
    Check MB51 report with posting dates for materials/vendors and use the display variant document header text (which is GR header text). I hope this is the one you are looking for.
    Thanks

  • How to copy header items and paste it into a new channel

    Hi everybody,
    i'm trying to customize my tasks with DIAdem and got some big problem. I have a channel table in VIEW with 295 columns and have added a new column.In this column i want to write all the Header Items i've got.
    I've created a new channel with:
    Call ChnAlloc("Betriebsdaten_akt_Monat", 295, 1,DataTypeString,"Text")
    Call Zusfassg.Columns.Add(296)
    Then I use this command to read the header items:
    Set MyHeaders = View.ActiveSheet.ActiveArea.DisplayObj.HeaderItems
    But how could i now paste all these items into the new column i've created?
    Thanks in advance for your help.
    Kind regards
    Patrick
    Patrick Etoumann

    Hello Patrick,
    to be honest, I did not completely understand what you are trying to do - so if the answer does not fit 100%, please give me some more information about your task.
    Within the DIAdem Help (topic: Object HeaderItem) you can find this short script:
    Set oMyHeaders = View.ActiveSheet.ActiveArea.DisplayObj.HeaderItems
      For Each oMyHeaderItem in oMyHeaders
      Call MsgBoxDisp(oMyHeaderItem.Name)
    Next
    It calls a messagebox for each configured headeritem. If you want to write the titles of these items into a new channel you can use the ChT() variable. Specify the row and a textchannel as parameters of this function.
    But because you created a textchannels with a length that equals the numlber of displayed channels i think you rather want to copy the content of a specific header property to the rows of that column. In this case it might be most convenient to program a for loop and use the loop variable to reference the individual channels. With the command ChnPropGet(), the channel number and the property name you can read the value of a property.  Even here, use ChT() to store the data into the new channel.
    Ingo Schumacher
    Systems Engineer Sound&VibrationNational Instruments Germany

  • Sales BOM : Header item stock and cost

    Hello gurus,
    I'm very new for sales BOM and have one questions.
    We have material A and B (purchased from vendor).
    They will be assembled by 3PL company as C.
    Then we will sell C to the our customer.
    I want to set price/cost at the header item level.
    because we will sell material B free of charge.
    I've set C like below  
    1. Item category group. : ERLA
       Item category : TAQ
       Setting of A and B
        Item category group. : NORM
       Item category : TAE
    2. Then make BOM in tcode CS01 with C
        Material : C
        Plant: XXXX
        BOM Usage :5
        subitem : A, B
        Item category : N(Non-stock item)
    After then I tried to make a sales order
    with material C.
    I can get sub-items(A,B) successfully
    however system said there is no atp stock for C.
    How can I get stock of C from stock of A and B?
    And How can I set the cost of C with value of A+B?
    And How can I set the condition of C to calculate cost of C in header level?
    or can I set like
    price is determined in header level and cost is calculated in item level?
    Or please recommend nicer solution.
    Thank you very much.
    J.K.

    Hi Azam,
    It seems to me that you want to use Delivery Group for Sales BOM where If Mat A = Mat B + Mat C and Mat B Availability date is 20/07/2014 (DD/MM/YYYY) and Mat C availability is 25/07/2014 then Main line item should be confirmed with 25/07/2014.
    If any one sub Item is not available, then Any of the item from the Grouping should not be dispatched.
    If this is the requirement then, In Item Category (VOV7) for main Item update Create Delivery Group field with X and your requirement will be fulfilled.
    Do let us know the result after testing.
    Regards,
    MJ.

  • How to transfer google maps starred items to ovi m...

    Hi all, not sure if this is the right place to ask.
    Anyway, I'm wondering is there a way to transfer google maps starred items to ovi maps favorites?
    I find google maps a lot more efficient and smarter than ovi maps in finding places.  The issue is I don't know how to transfer google maps starred items to ovi maps -- so that I can use them for navigation purposes.  Somehow, ovi maps favorites are automatically transferred to google maps starred items, but NOT vice versa.
    Any helps?  Thanks in advance.

    From what I have seen, there is no easy way. This is the best I have come across, although it is a link by link job. Just make sure each of your waypoints are centred on Google Maps before ganking the link.
    http://map2nokia.appspot.com/
    Let me know if you find something more automated.

  • Exclude foreign data in delivery & billing at header & item level

    Dear all,
    I want to stop foreign data check from my export sales scenario in delivery or in billing document, I have not done any configuration for the same. Even by deselecting check in delivery or in billing at both level Header & Item level, my billing accounting document is not getting post due to foreign data incompletion. My requriement is system should not ask to maintian any foreign data to maintain in delivery & in billing document so that my billing doc will get posted directly to accounts even when I am selling goods to abroad.
    How to solve this issue, can anybody suggest in this matter.
    Thanks
    Regards,
    Savi

    If the shipping point country is different than ship-to party country, then foreign trade is activated. If you still want to switch off, then refer OSS 1459330 - Error Message: VF072 Foreign Trade Data Incomplete.
    Regards,

  • Printing header items

    Hi all,
    I am working on script.When the line items increases the header text element should be printed in script in next page but when there is no line item then the header text should not be printed.In my case when there is no line items in second page then also i m getting the header items.Please  tell me how to solve this.
    thanks
    Manu

    Hi
    Their are two ways you can do this.
    1-Instead of defining two pages in your script you can define one one page say 'First' and then in the next page of First you can give First page.
    2-You can trigger the new-page through some coding in the script.You can put a check for line item through a perform statement in your script code and then based on that you can trigger the new page for your script.
    Neha

Maybe you are looking for

  • How do I move the camera import settings in the list?

    I'd really love to delete all of the LR import presets since I never use them. It's a long list and my camera profiles, which  I do use are always at the bottom. I want them at the top of the list...if I can't delete all of the ones I never use. How

  • HT204266 I bought an app on my iphone and was charged 19.99 instead of .99.  How do I fix this?  Thx.

    I bought an app and was charged 19.99 instead of .99.  How do I fix this?  Thx. 

  • Regarding SHipment function exit

    Hi Experts,                 I have to update some custom table in the function exit of  VT01n transaction code based on some condition. I have done it using update statement as it is custom table there is no problem. BUT in the code After that UPDATE

  • WIP Report

    Hi,      I would like to know is there any WIP report availbale for a particular material quantity. EX: Let us take 1000 qty of that matrial, out of this 800 qty has been finished and made a GR for that qty. Then for rest of qty i need a work in proc

  • Command-tab between Terminal windows

    Hi, when I have multiple Terminal windows, I want to Command tab between these windows (like I can in Windows XP). However. the MacOS is treating the Terminal windows as one application. Anyone know how I can change this behaviour?   Windows XP Pro