Mapping header and detail fields

I want to map concatenated 1 header source field and  2 detail source fields into 1 target detail row field. Is it possible? I am getting message mapping error in SXMB_MONI. I changed the DT_Detail_Row.fieldFixedLengths, still getting error. Any suggestions  or ideas how I can map these fields?
Thanks.

Hey,
y cant u use 2 Staandard concat functions
where u concat ur two source fields using one concat and concat that output with the header source field using another concat fucntion and map that output to target field.
detail1
             Concat----
>
detail2                            concat----->target
             Header----
>
cheers
jithesh

Similar Messages

  • File content conversion - sender adapter for Header and detail records

    Hi Experts,
                     I am receiving a field of fixed length content format.(Header)The first line of the file will follow the structure X having some fields and (DetailRecord)subsequent lines in the file will follow structure Y having somes fields.There is no record identifier for Header and Detail records.In one file first line is Header records and remaining subsequent line is DetailRecord.What are the parameters we have to set for sender file content conversion parameters as i donot have any key field and key field value.And in one file we have only one header records ( first line) and n number of detail records from 2nd line onwards.
    Thanks
    Deepak

    Hi
    Refer the below fourm link,
    Flat file whitout id
    Regards
    Ramg.

  • Populate header and detail

    Hi,
    I have an internal table with the value below. I need to populate to header data line (1 record only)  and detail is an internal table
    When there is a change of customer, i need to copy 123 to header and 2 records of material (abc & xed), sales (100 & 200) and qty (10 & 12) to detail internal table.
    for customer 567, i need to copy to header and material aqs, sales 150 and qty 5 to detail internal table.
    May I know how can I achieve this?
    customer     material        sales      qty
    123              abc              100         10
    123              xed              200          12
    567              aqs              150           5
    877              abc               140         8
    Thanks
    Rgds

    Hello,
    As per my understanding, your requirement is that you have an internal table which has a combined data and you want to split it into headr and detail internal tables, based on the change of the customer number which is the first field in the combined internal table. If so then assume that it_com is the combined internal table and it_head and it_det as the header and detail interbnal tables respectively.
    First sor the combined internal table on customer number
    sort it_com by kunnr.
    Now loop across this table and on the event at new customer populate the header table and in the remaining loop populate the detail table.
    loop at it_com into wa_com.
      at new kunnr.
         wa_head-kunnr = wa_com-kunnr.
         append wa_head-kunnr to it_head-kunnr.
         clear wa_head-kunnr.
      endat.
    append the records from the combined table into the item table, whatever fields required
    endloop.
    Regards,
    Sachin

  • Keeping heading and detail on the same page

    Hi, I have a report with a group header section and a detail section.  How can I keep the heading section and all the detail section on the same page without starting each group on a new page?
    The detail section will have either 2 or 3 records with some of the objects set to grow if the data doesn't fit on one line.  This results in several changes of group appearing on the same page which is what I want.  However, what I don't want is the header section on one page with the detail section on the next, or the header and some of the detail records on one page with the rest of the detail records on the next.  What I would like is the report to start a new page if the header and all the detail records don't fit on the same page but without starting a new page for every group change.  How can I achieve this?

    you can put the group header and details into a sub report on the old group header section.
    then hide the details section

  • Header and Footer Fields

    Can the Header and Footer fields in Pages be changed from 3 to 1 or 2?

    If turned off and a Header is created, it will not replicate on subsequent pages.  I develop many multiple page documents and need the Headers/Footers within the body of the document.

  • XMLSequence EXTRACT HEAD and DETAIL in ORACLE 9.2

    Hi, sorry about my english i am from argentine.
    I have this XML:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <arrayOfServicio >
        <Servicio>
            <Nombre>Autenticacion</Nombre>
            <Descripcion>ws</Descripcion>
            <Activo>true</Activo>
            <Version>1.0</Version>
            <MetodosEntity>
                <Metodo>
                    <Nombre>RequestTicket</Nombre>
                    <Activo>true</Activo>
                    <Version>1.0</Version>
                </Metodo>
            </MetodosEntity>
        </Servicio>
        <Servicio>
            <Nombre>Consultas</Nombre>
            <Descripcion>wsConsultas</Descripcion>
            <Activo>true</Activo>
            <Version>1.0</Version>
            <MetodosEntity>
                <Metodo>
                    <Nombre>GetVigencia</Nombre>
                    <Activo>true</Activo>
                    <Version>1.0</Version>
                </Metodo>
                <Metodo>
                    <Nombre>GetSiniestralidad</Nombre>
                    <Activo>true</Activo>
                    <Version>1.0</Version>
                </Metodo>
                <Metodo>
                    <Nombre>GetAgrupados</Nombre>
                    <Activo>true</Activo>
                    <Version>1.0</Version>
                </Metodo>
                <Metodo>
                    <Nombre>GetSiniestralidadPorCuil</Nombre>
                    <Activo>true</Activo>
                    <Version>1.0</Version>
                </Metodo>
            </MetodosEntity>
        </Servicio>
        <Servicio>
            <Nombre>Referencias</Nombre>
            <Descripcion>wsReferencias</Descripcion>
            <Activo>true</Activo>
            <Version>1.0</Version>
            <MetodosEntity>
                <Metodo>
                    <Nombre>TablaReferencia</Nombre>
                    <Activo>true</Activo>
                    <Version>1.0</Version>
                </Metodo>
                <Metodo>
                    <Nombre>ListadoReferencia</Nombre>
                    <Activo>true</Activo>
                    <Version>1.0</Version>
                </Metodo>
            </MetodosEntity>
        </Servicio>
        <Servicio>
            <Nombre>General</Nombre>
            <Descripcion>WsGeneral</Descripcion>
            <Activo>true</Activo>
            <Version>1.0</Version>
            <MetodosEntity>
                <Metodo>
                    <Nombre>GetServicios</Nombre>
                    <Activo>true</Activo>
                    <Version>1.0</Version>
                </Metodo>
            </MetodosEntity>
        </Servicio>
        <Servicio>
            <Nombre>eServicios</Nombre>
            <Descripcion>wseServicios</Descripcion>
            <Activo>true</Activo>
            <Version>1.0</Version>
            <MetodosEntity>
                <Metodo>
                    <Nombre>SetComunicacion</Nombre>
                    <Activo>true</Activo>
                    <Version>1.0</Version>
                </Metodo>
            </MetodosEntity>
        </Servicio>
        <Servicio>
            <Nombre>VentanillaART</Nombre>
            <Descripcion>wsVentanillaART</Descripcion>
            <Activo>true</Activo>
            <Version>1.0</Version>
            <MetodosEntity>
                <Metodo>
                    <Nombre>ObtenerNovedades</Nombre>
                    <Activo>true</Activo>
                    <Version>1.0</Version>
                </Metodo>
            </MetodosEntity>
        </Servicio>
        <Servicio>
            <Nombre>Establecimientos</Nombre>
            <Descripcion>wsEstablecimiento</Descripcion>
            <Activo>true</Activo>
            <Version>1.0</Version>
            <MetodosEntity>
                <Metodo>
                    <Nombre>GetConsultaPorCuit</Nombre>
                    <Activo>true</Activo>
                    <Version>1.0</Version>
                </Metodo>
            </MetodosEntity>
        </Servicio>
    </arrayOfServicio>
    I am working in ORACLE 9.2 and i wrote this query but the result is not correct, i need to join HEAD and DETAIL in some way but cannot do that...
      select extractvalue(value(head),'//Servicio/Nombre/text()') ,
            extractvalue(value(head),'//Servicio/Descripcion/text()'),
            extractvalue(value(head),'//Servicio/Activo/text()'),
            extractvalue(value(head),'//Servicio/Version/text()')
            ,extractvalue(value(detail),'//Metodo/Nombre/text()')
            ,extractvalue(value(detail),'//Metodo/Activo/text()')
            ,extractvalue(value(detail),'//Metodo/Version/text()')
      from arwt_ws_return x
          , table(xmlsequence(extract (x.x_xmldoc, '/arrayOfServicio/Servicio'))) head
          , table(xmlsequence(extract (x.x_xmldoc, '/arrayOfServicio/Servicio/MetodosEntity/Metodo'))) detail;
    Ii really appreciate your help.
    Thanks!

    Hi,
    You can do that by passing the head element to the second XMLSequence. That way you maintain the correlation between the parent and its children :
    select extractvalue(value(head), '/Servicio/Nombre') as srv_nombre
         , extractvalue(value(head), '/Servicio/Descripcion') as srv_desc
         , extractvalue(value(head), '/Servicio/Activo') as srv_activo
         , extractvalue(value(head), '/Servicio/Version') as srv_version
         , extractvalue(value(detail), '/Metodo/Nombre') as met_nombre
         , extractvalue(value(detail), '/Metodo/Activo') as met_activo
         , extractvalue(value(detail), '/Metodo/Version') as met_version
    from arwt_ws_return x
       , table(xmlsequence(extract(x.x_xmldoc, '/arrayOfServicio/Servicio'))) head
       , table(xmlsequence(extract(value(head), '/Servicio/MetodosEntity/Metodo'))) detail
    Please also note that :
    - you don't need a descendant axis (//) if you know the exact path
    - you don't need to go down to the text() node if you're using extractvalue
    Hope that helps.

  • DMEE issue in header and detail record

    Hi Gurs,
    I am working in DMME payment medium .
    I have declared DMEE  header structure(00000001000001 ) as level 1 and detail (050000010020192             XX110000001) as also level 1.
    This is the output format i am getting.
    00000001000001                                                                               
    05000001002000             XX110000001                                                                               
    00000001000001                                                                               
    05000001002012            XX110000002                                                                               
    00000001000001                                                                               
    05000001002012             XX110000003                                                                00000001000001                                                                               
    05000001002011             XX110000004           
    But my requirment not lke this. i need to dispaly all detail items under one header also i need to increase the counter for every items starting from 2.
    Both header and detail are at  level 1.If i declared the detail as level 2 the output is not generated.
    This is what i need.                                                                               
    00000001000001                                                                               
    05000002002000             XXX110000001                                                        
    05000003002012             XXX110000002
    05000004002012             XXX110000003
    05000005002011             XXX110000004 
    Pls suggest me any solutions
    Thanks .

    NOT answered

  • DMEE Issues header and detail record

    Hi Gurs,
    I am working in DMME(PAYM) payment medium .
    I have declared DMEE header structure(00000001000001 ) as level 1 and detail (050000010020192 XX110000001) as also level 1.
    This is the output format i am getting.
    00000001000001
    05000001002000 XX110000001
    00000001000001
    05000001002012 XX110000002
    00000001000001
    05000001002012 XX110000003 00000001000001
    05000001002011 XX110000004
    But my requirment not lke this. i need to dispaly all detail items under one header also i need to increase the counter for every items starting from 2.
    Both header and detail are at level 1.If i declared the detail as level 2 the output is not generated.
    This is what i need.
    00000001000001
    05000002002000 XXX110000001
    05000003002012 XXX110000002
    05000004002012 XXX110000003
    05000005002011 XXX110000004
    Pls suggest me any solutions
    Thanks .
    Edited by: bala chandran on Oct 9, 2009 10:57 AM

    NOT answered

  • Disable header and item fields in VA02

    Hello, good day
    Could you please help me with next issue?
    I need to define how to inactivate some header and item fields in a sales order when VA02 is used, a logic to decide if the field must be desable will be applied, because of that I can't use standar customizing solution.
    I read a lot of threads, but many of them are not answered, and as far as I can see many recommended solutions are refered to similar code that I have now.
    I tried with next user exits:
    To block gray out header and item fields:
    User exit form USER_EXIT_FIELD_MODIFICATION Program: MV45AFZZ
    To gray out pricing grid
    User exit form: USEREXIT_FIELD_MODIFICATION Program: LV69AFZZ
    To gray out partner screens (item, header): No user exit identified, please advise
    to gray out new items in sales order: No user exit identified, please advise, I mean not allow new items.
    fields to block:
    XVBAK-LIFSK
    XVBAK-FAKSK
    XVBAK-KUNNR
    XVBKD-VSART
    XVBKD-INCO1
    XVBAP-UNTTO
    XVBAP-UEBTO
    XVBPA-KUNNR
    XVBPA-PARW
    XVBAP-ROUTE
    XVBAP-ABGRU
    The code is something like this in MV45AFZZ - USER_EXIT_FIELD_MODIFICATION
          CASE screen-name.
            WHEN    'XVBAK-KUNNR'
                 OR '*XVBAK-KUNNR'.    "Sold To
              screen-input = 0.
           END CASE
    but is not working. please advise.
    Disable Pricing grid: after apply this code, is possible to add new manual conditions, how can I disable input new item conditions?
    The code is something like this in  LV69AFZZ - USEREXIT_FIELD_MODIFICATION Program:
      Modify screen fields
        IF   SCREEN-NAME = 'RV61A-KOEIN'
          OR SCREEN-NAME = 'KOMV-KBETR'
          OR SCREEN-NAME = 'KOMV-KPEIN'
          OR SCREEN-NAME = 'KOMV-KMEIN'
          OR SCREEN-NAME = 'KOMV-KWERT'
          OR SCREEN-NAME = 'KOMV-KSCHL'
          OR SCREEN-NAME = 'KOMV-KUMZA'
          OR SCREEN-NAME = 'KOMV-KUMNE'
          OR SCREEN-NAME = '*RV61A-KOEIN'
          OR SCREEN-NAME = '*KOMV-KBETR'
          OR SCREEN-NAME = '*KOMV-KPEIN'
          OR SCREEN-NAME = '*KOMV-KMEIN'
          OR SCREEN-NAME = '*KOMV-KWERT'
          OR SCREEN-NAME = '*KOMV-KSCHL'
          OR SCREEN-NAME = '*KOMV-KUMZA'
          OR SCREEN-NAME = '*KOMV-KUMNE'.
             SCREEN-ACTIVE = '1'.
             SCREEN-INPUT = '0'.
             MODIFY SCREEN.
        ENDIF.
      Modify buttons
        IF   SCREEN-NAME = 'BT_KOAN'    "Add
          OR SCREEN-NAME = 'BT_KOLO'.   "Delete
             SCREEN-ACTIVE = '1'.
             SCREEN-INPUT = '0'.
             MODIFY SCREEN.
        ENDIF.
        IF   SCREEN-NAME = 'BT_KONY'.   "Update
             SCREEN-ACTIVE = '1'.
             SCREEN-INPUT = '0'.
             MODIFY SCREEN.
        ENDIF.
    Thanks in advace.
    Regards!

    Thanks Sai, for your prompt answer, as far as understand variants, I can't add any logic, to allow change or only display, I do no't include the logic in the sample code, but that's my case, I need the user exit due a logic must be applied and standar solution like variant or customizing are not the better option.
    I Found that in order to gray pricing grid we just put the code in user exit form: userexit_field_modific_leer include  LV69AFZZ
    and to block the other fields  and to block partner functions:
    Include Program: MV45AF0P_PARTNER_PREPARE                    User Exit Form: partner_prepare
    Edited by: Jose Carrillo on Mar 30, 2008 4:21 AM

  • Pivot with header and details

    I need to display data from both header and detail, details has to come from other table also
    --CREATE TABLE
    CREATE TABLE [dbo].[Table_Dept](
    [DeptId] [int] NULL,
    [DeptCode] [char](2) NULL,
    [DeptName] [nvarchar](100) NULL
    ) ON [PRIMARY]
    CREATE TABLE [dbo].[Table_Detail](
    [Header_ID] [int] NOT NULL,
    [Name] [nvarchar](50) NOT NULL,
    [DescValue] [nvarchar](max) NULL
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
    CREATE TABLE [dbo].[Table_Header](
    [Header_Id] [int] NULL,
    [UserName] [nvarchar](50) NULL
    ) ON [PRIMARY]
    --INSERT DATA
    INSERT INTO Table_Dept (DeptId, DeptCode, DeptName)
    VALUES (1, 'HO', N'Head Office'),
    (2, 'BO', N'Branch Office'),
    (3, 'RO', N'Reginal Office'),
    (4, 'SO', N'Sub Division Office')
    INSERT INTO Table_Header
    (Header_Id, UserName)
    VALUES (1, N'Ravi'), (2, N'Gopal'), (3, N'Deepa')
    INSERT INTO Table_Detail
    (Header_ID, Name, DescValue)
    VALUES (1, N'ListNumber', N'1005'),
    (1, N'PhaseCode', N'AA'),
    (1, N'DeptCode', 'BO,RO'),
    (1, N'City', 'Bangalore'),
    (2, N'ListNumber', N'1006'),
    (2, N'PhaseCode', N'AB'),
    (2, N'DeptCode', 'SO,RO'),
    (2, N'City', 'Delhi'),
    (3, N'ListNumber', N'1007'),
    (3, N'PhaseCode', N'AA'),
    (3, N'DeptCode', 'HO'),
    (3, N'City', 'Mumbai')
    --EXPECTED RESULT
    HeaderId
    ListNumber
    PhaseCode
    DeptName
    City
    User
    1
    1005
    AA
    Branch Office,   Reginal Office
    Bangalore
    Ravi
    2
    1006
    AB
    Sub Division   Office,Reginal Office
    Delhi
    Gopal
    3
    1007
    AA
    HO
    Mumbai
    Deepa
    ShanmugaRaj

    see below code
    SELECT *,
    STUFF((SELECT ',' + DeptName
    FROM Table_Dept
    WHERE ',' + t.DeptCode + ',' LIKE '%,' + DeptCode + ',%'
    FOR XML PATH('')),1,1,'') AS DeptName
    FROM
    SELECT h.Header_ID,
    td.ListNumber,
    td.PhaseCode,
    td.DeptCode,
    td.City
    FROM Table_header h
    INNER JOIN (SELECT Header_ID,
    MAX(CASE WHEN Name = 'ListNumber' THEN DescValue END) AS ListNumber,
    MAX(CASE WHEN Name = 'PhaseCode' THEN DescValue END) AS PhaseCode,
    MAX(CASE WHEN Name = 'DeptCode' THEN DescValue END) AS DeptCode,
    MAX(CASE WHEN Name = 'City' THEN DescValue END) AS City
    FROM Table_Detail
    GROUP BY Header_ID)td
    ON td.Header_ID = h.Header_ID
    )t
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
    In case of not having department table...consider the dept code, where the values are now comming from table and
    need result if the data is not displayed from table and they are static..
    use case when 'Bo' then 'Branch Office'
    when 'Ro' then 'Reginal Office'
    when 'So' then 'Sub Division Office'
    when 'Ho' then 'Head Office'
    kindly suggest how to replace my above query
    ShanmugaRaj

  • How to get text of itab header and structure field name dynamically?

    HI.
    I'm just trying display itab to web.
    of cause I can use <htmlb:tableView> but I need display by loop itable  for my special reason.
    the table is dynamic structure that means header line should be changes depends on structure description.
    '<htmlb:tableView>' certainly can display header line dynamically with just itable only.
    but don't know how to get these text and structure field name without 'tableView'.
    help me please.
    Thank you.
    <TABLE border=1>
    <TR style="background-color:#FFFF99" >
         <TD>header 1</TD>
         <TD>header 2</TD>
         <TD>header 3</TD>
    </TR>
    <%
    DATA: WA_STR TYPE FOPT_BSP_UI_REPORT.
    LOOP AT TT_itab INTO WA_STRUC.
    %>
    <TR>
         <TD nowrap><%=WA_STRUC-ORGUNIT_T%></TD>
         <TD nowrap><%=WA_STRUC-PRGROUP_T%></TD>
         <TD nowrap><%=WA_STRUC-PROCESS_T%></TD>
    </TR>
    <%ENDLOOP.%>
    </TABLE>

    DDIC structure means struture made from SE11?
    if yes,that's what I'm trying to display table.
    and my sepcial reason is this:
    my final purpose is download dynamic table to excel file.
    but when I download table comes form "<htmlb:tableView>" with changing http response header that shows some link error and useless icon and no table grid and etc...
    "<htmlb:tableView>" resulting lot of useless tags and script.
    think iterator has no function removing extra tags
    so  I'am trying to make simple html table.
    but problem is that itable is not just one structure can be more than 100 kinds of structure.
    in this situation is there any way to display dynamic itab into simple html table?

  • Way to update header and address fields to a functional location simultane

    Hi all,
       Can you please help me out in this.
    I used the FM  u201CISU_M_FUNCLOC_CHANGEu201D for changing the Functional data (Including Header and Address data), but this FM will not work for my requirement as it clears the entire data in the transaction and updates the one which i pass. I looked for the BAPI u201CBAPI_FUNCLOC_CHANGEu201D, this is also not working to update the Address fields.
    Please let me know the way i can update the header as well as address fields in a functional location simultaneously.

    not possible to upload data header and multiple items upload through LSMW-recordin
    try with below LSMW- IDOC method
    Message Type         INOTIF                      Notifications
    Basic Type           INOTIF01                    Notification IDOC
    Enhancement

  • Saving an invoice header and details in sql in one stored procedure.

    I would like to create an invoice in visual studio 2008 with a header and x amount of details (every time it's different). I want to be able to bring it all into sql encapsulated in one begin and commit transaction so that if there is an error anywhere
    on the way it can roll back and nothing will be saved to the database. 
    Debra has a question

    I have an article on my web site which includes a sample not too different from your situation. (In the sample data is read from a file, but that has little to do with the database communication.) Since you pass the data through TVPs, you can have the transaction
    in the stored procedure:
    http://www.sommarskog.se/arrays-in-sql-2008.html
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Mapping of header and Details

    Hi,
    I have a problem in given mapping case.
    Source :
    10    abc    india
    10    trgg    lanka
    10    mkn   chaina
    20    klnl    uyte
    20    uyty   us
    Taget:
    10
         abc    india
         trgg    lanka
         mkn   chaina
    20
         klnl    uyte
         uyty   us
    pls reply soon.
    can anyone suggest more blogs on UDF and nodefunctions usage ?
    Thanks & Regards,
    Kavan Shah

    Hi
    can you please tell me what is your requirement so that i can provide the solution
    Thanks
    Rinku

  • Header and Detail total mismatch

    Hi All,
            I have file to proxy scenario, and i am using XSLT mapping for source to Traget mapping,
    Here, I add all amounts in details and compare it to Header amount, issue is that although the totals are matching i am still getting total mismatch error.
    The number have 2 decimal places.
    This is the code that i am using:
    <xsl:if test="format-number(number($vInvoice),'#.00') != format-number(sum(a:MT_PaymentData/RecordSet/RecordLineItem/LineItemAmount),'#.00')">
                                       <xsl:value-of select="string('AmtMisMatch ')"/>
                                  </xsl:if>
    Pls advice,
    XIer

    Hi,
    Did you try to use it in your mapping? I mean import the zip in your Interface Mapping and try to execute it there.And see if you are getting the wrong output still. Even i was getting the wrong output in the XMLSPY for my code. But when i implemented the same code in mapping it worked fine.
    Regards,
    Sanjeev.

Maybe you are looking for

  • @media print css tag

    I am using the @media print rule to present my data in a printable format (letter size). The problem I am having is Safari shrinks the output to about 1/4 of the desired size. It works fine in IE and Firefox. Has anyone else experienced this issue?

  • T430 Intel HD4000 driver update crash and won't reinstall

    I clicked Update Driver under properties for the Intel HD4000 and the laptop crashed.  On reboot, the display is shown as a Generic PnP Moniter with Standard VGA Graphics Adapter also the driver for the graphic adapter shows 8-bit with a driver date

  • "Recent items"

    Hi I'm looking for a portlet to list recently added or changed items in a page group. Does anyone know where I can find a portlet like that? I know there is a "Recent objects" in the 9IAS portal, but I found that it cannot be altered to do what I'm l

  • Update problems from 10.7.5 upwards

    Hi, i have an Imac 27inch, Mid 2011. processor: 3.4 GHz intel core i7 memory: 8GB Storage: 2TB Currently on operating system Mac OS x Lion 10.7.5. i have a big issue from where when i try to do a software update it says "software update can't check f

  • AirMac Extreme and Airport Express not working with Netgear N Router?

    I've been using an AirMac Extreme (old model) as a wireless router, and Airport Express for it's airtunes functionality (conected to my Hi-Fi). These used to work fine, and both would show up in my Airport Utility on my Macs. I've now just upgraded t