BizTalk FlatFile schema with header/Multiple Body/Trailer

Hi,
Can you please help to create a flat file schema for the below structure.?
I have a flat file with Header , multiple Body, Trailer. I am receiving XML as input and generate output as FlatFile.
My FlatFile looks like below, from Batch Header to Batch Trailer are repeated multiple times.
FileHeadercol1col2...
BatchHeadercol1col2..
BatchDetailCol1Col2..
BacthTaxCol2Col..
BatchDiscountCol1Col2..
BatchHeadercol1col2..
BatchDetailCol1Col2..
BacthTaxCol2Col..
BatchDiscountCol1Col2..
FileTrailerCol1Col2..
I have created a schema which is working fine if body occurs only once. but if we have more than once , I am getting error like unexpected error...
I have tried with few options and also verified in some references. still no luck.
Please Assist
Thanks,
Vinoth

Give us the delimiter rules.
Is "BatchHeader" is the tag for
the header? Or how the headers are identified?
How "col1col2" col1 and col2 are
delimited? Are they delimited by position i.e. first 4 characters after the header tag "BatchHeader"
is col1 and next four character after the col1 is col2?
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.

Similar Messages

  • Fixed width file outgoing with header,detail and trailer in one map

    we have a scenario where in we have to create an output file. the file is fixed width with three different kinds of records namely header, details and trailer. if the specification of the metadata of the file is specified how will we incorporate the creation of the file in one map since the map produces only one call to UTL_FILE and writes it.
    there is a work around in a crude way where in we can define the file as a CSV and pass everything in an appanded string in one column. but i wanted to know how we can get the three logical records in one map..
    thanks
    kamal

    The problem is not with generating the records.. i mean header , detail and trailer.
    it is how we put them into a fixed width sampled file. if we look at the code generated we will see only one call being made to generate the file.

  • FlatFile Schema Change - Message not getting changed correctly.

    A biztalk orchestration uses a flatfile schema (with three nodes accountnumber, date, amount) to send the output in .csv format. The generated .csv file presents the data in trheee columns specific to the three nodes.
    I am trying to add an new fourth node (Description) to the flatfile schema but the generated .csv file is presenting all the data in single cell instead of displaying using four different columns. I am trying to figure out a solution.
    Appreciate any pointers. Thanks

    Output file shows the new node with data.
    I think somehow the pipeline componenet not accepting the new schema structure. Hence tried the following steps and the solution seems working now.
    1) Deleted the pipeline reference in dependent application, stopped the dependent application.
    2) Stopped, Delete and re-deployed current application.
    3) Dependent application's sendport is enabled with the flatfile pipeline
    3) re-started the host instances, and dependent, and current applications.
    Flatfile conversion works OK now.
    Disabling & reenabling pipeline solved it.
    Thanks

  • Extracting body with header and trailer multiple times from a multirow file

    Hello Everyone,
    I am new to OSB and currently working on a project where I need to extract data from a flat file containing multiple rows of body and a single header and trailer in the following fashion:
    Original File:
    <Header></Header>
    <Details></Details>
    <Details></Details>
    <Trailer></Trailer>
    Desired format using OSB:
    <Header></Header>
    <Details></Details>
    <Trailer></Trailer> ... in a single file, multiple times
    Please help me in carrying out this functionality. It's really urgent and important.
    Thanks,
    Saurabh

    Some may argue this is not the right forum - database general might have been a little been than downloads - but now the thread is here I'll try an answer.
    As I see it It depends on your spooling tool.
    Lets assume you are using sqlplus.
    I that case the sql prompt command may serve your purpose
    Alternatively
    select 'header' from dual
    union all
    select field1||','||field2||','field3 .... /*must single string expression but may concatentate field */ from somtable
    union all
    select 'trailer' from dual;may suit.
    However I fear either I have not understood the question or if I have understood the question that you may have difficulties implementing this.
    Edited by: bigdelboy on 19-Apr-2009 14:32

  • Urgent ! XML Output with header, body, trailer

    Gurus,
    I am trying to use Report to output an xml file with header, body and trailer regions. However, I find that the tool does not allow me to create a header region with info like <report_date>, <report_name>, <report_desc> etc.
    Moreover, the tool is not flexible that in the group level, it always automatically fills in the outer tag for me even if I intentionally leave it blank.
    So, except using the XML file output function, is there any other way outputing XML file using the tool? Otherwise, I may need to hard code a program to do so!
    Thanks for your advice!
    Shoshi

    Hi
    Reports XML file is driven by your queries and groups therein. This means that the groups (and break groups) are represented in XML form.
    It is not driven by the layout. So your header region does not appear.
    What I suggest is that you need to create a report level formula column in the Data Model. The formula returns date, name and description etc. Since this is a part of Data Model now, it will appear in the XML output.
    Regards
    Sripathy

  • Sending email in BizTalk with specific format body

    Hi,
    I need to construct the email body with the values coming in the incoming message.
    Below is the sample mail format which I need to send.
    Requirement is just to receive xml file and send mail based on the values present in the incoming message.
    Can anyone please help to achieve this in pipeline component.
    Is orchestration is necessary to achieve. Please help.
    Mail format:
    Subject: Alert Notification message (from message)
    Body:
    ============================================================
    Alert Notification
    Ename:               Ramesh
    ID:                     56958521225
    Destination:         GRE
    Source:               TRV
    City:                   AMERSFOORT
    Pcode:                Utvtg45
    Severity:             CRITICAL
    Address:              Test city
    Description:          Description
    Thanks in advance.

    You can achieve your requirement with both messaging-only or using Orchestration. For your requirement, I would create a HTML based email as the output you have shown requires
    some formatting.
    Messaging-only way:
    Create an XSLT which can output the HTML format as you have shown.
    Transform the XML (which you process in BizTalk) to HTML based.
     I have come up a draft version XSLT to your output format. I am using some dummy XPATH(This is a pseudo code, I have not tested it. Intention is just to give you some idea)
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://biztalk.orderapp.schemas.EmailResponse">
    <xsl:template match="/">
    <html>
    <body>
    <div>
    Alert Notification<br />
    <TABLE BORDER="0" cellspacing="2" cellpadding="2" width="90%">
    <xsl:apply-templates select="/ns0:EmailResponse"/>
    </TABLE>
    </body>
    </html>
    </xsl:template>
    <xsl:template match="/ns0:EmailResponse">
    <tr>
    <td class="style2">
    Ename:</td>
    <td>
    <xsl:value-of select="ns0:Header/ns0:Ename/text()"/></td>
    </tr>
    <tr>
    <td class="style2">
    ID:</td>
    <td>
    <xsl:value-of select="ns0:Header/ns0:ID/text()"/></td>
    </tr>
    <tr>
    <td class="style2">
    Destination:</td>
    <td>
    <xsl:value-of select="ns0:Header/ns0:Destination/text()"/></td>
    </tr>
    <tr>
    <td class="style2">
    Soruce:</td>
    <td>
    <xsl:value-of select="ns0:Header/ns0:Soruce/text()"/></td>
    </tr>
    <tr>
    <td class="style2">
    City:</td>
    <td>
    <xsl:value-of select="ns0:Header/ns0:City/text()"/></td>
    </tr>
    <tr>
    <td class="style2">
    PCode:</td>
    <td>
    <xsl:value-of select="ns0:Header/ns0:PCode/text()"/></td>
    </tr>
    <tr>
    <td class="style2">
    Severity:</td>
    <td>
    <xsl:value-of select="ns0:Header/ns0:Severity/text()"/></td>
    </tr>
    <tr>
    <td class="style2">
    Address:</td>
    <td>
    <xsl:value-of select="ns0:Header/ns0:Address/text()"/></td>
    </tr>
    <tr>
    <td class="style2">
    Description:</td>
    <td>
    <xsl:value-of select="ns0:Header/ns0:Description/text()"/></td>
    </TR>
    </xsl:template>
    </xsl:stylesheet>
    Pass this XSLT as the parameter to the custom pipeline (with XSLT transform component) to apply this XSLT to the XML received. Use XSLT Transform Component (BizTalk Server
    Sample) which is part of BizTalk SDK sample.
    XSLT Transform Component (BizTalk Server Sample)
    Other way in messaging-only approach:
    http://blogs.msdn.com/b/nabeelp/archive/2008/09/11/sending-an-html-email-without-an-orchestration.aspx. Use this XSLT as draft for this approach.
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output omit-xml-declaration="yes" method="xml" standalone="yes" version="1.0" encoding="UTF-8" />
    <xsl:template match="/">
    <html>
    <head>
    <title>Email</title>
    </head>
    <body>
    <p>
    Alert Notification.
    </p>
    <table class="style1">
    <tr>
    <td class="style2">
    Ename:</td>
    <td>
    <xsl:value-of select="//EmailMessageOut/Ename" /></td>
    </tr>
    <tr>
    <td class="style2">
    ID:</td>
    <td>
    <xsl:value-of select="//EmailMessageOut/ID" /></td>
    </tr>
    <tr>
    <td class="style2">
    Destination:</td>
    <td>
    <xsl:value-of select="//EmailMessageOut/Destination" /></td>
    </tr>
    <tr>
    <td class="style2">
    Soruce:</td>
    <td>
    <xsl:value-of select="//EmailMessageOut/Soruce" /></td>
    </tr>
    <tr>
    <td class="style2">
    City:</td>
    <td>
    <xsl:value-of select="//EmailMessageOut/City" /></td>
    </tr>
    <tr>
    <td class="style2">
    PCode:</td>
    <td>
    <xsl:value-of select="//EmailMessageOut/City" /></td>
    </tr>
    <tr>
    <td class="style2">
    Severity:</td>
    <td>
    <xsl:value-of select="//EmailMessageOut/Severity" /></td>
    </tr>
    <tr>
    <td class="style2">
    Address:</td>
    <td>
    <xsl:value-of select="//EmailMessageOut/Address" /></td>
    </tr>
    <tr>
    <td class="style2">
    Description:</td>
    <td>
    <xsl:value-of select="//EmailMessageOut/Description" /></td>
    </tr>
    </table>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>
    Use SMTP adapter to email the output.
    Using Orchestration:
    Similar way, apply the XSLT in orchestration. I would use this if you use dynamic SMTP adapter (even you can use custom pipeline component for dynamic SMTP adapter without
    the need to Orchestration).
    Refer this article for help
    Sending an HTML-Formatted E-Mail Message from BizTalk
    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.

  • Is a record ID field required for File Adapter (Header, Body, Trailer)?

    Hi,
    File to File scenario. The sender file is a text file i.e. .txt which needs a conversion on the sender file adapter. There are three structures in the file namely header (one), body (many) and Trailer (one). From what I can see I need a record Id field (with the same name) in all the structure types, can anyone confirm this for me?
    Thanks,
    Leanne

    That is correct. If you have a variable number of records of a particular type, then you need a way to accurately identify each type of record... and that is done via the key field (or Record ID)  which is present in each record type.
    Extract from SAP Online Help:
    <i>Key Field Name
    If you specified a variable number of substructures for Recordset Structure, in other words, at least one substructure has the value ‘*’, then the substructures must be identified by the parser from their content. A key field must be set with different constants for the substructures. In this case, you must specify a key field, and the field name must occur in all substructures.
    Specify the Key Field Type to be used to compare the predefined values. This entry is used if the key field name is defined.
    NameA.keyFieldValue: Specify the value of the key field for the structure. This entry is mandatory if the key field name is set. Otherwise, the entry is ignored.</i>
    For more info, refer to the SAP Help:
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm

  • How to create schema for Header and Footer with pipe delimiter file BPEL11g

    Hi all,
    I have issule creating Schema for Header and Footer with body file .The file format is Pipe delimiter.The following format below like is...
    Softeware Components:File Adapter(Read) 11g,
    1|1211|000|577|5444
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|0000|57|6988|4554|sfdgh|5448|3333|ituu|44445|55546|544|788|7788
    1|4544|000|yted
    I hope get the sollution for this from this Forum..Please help me out..Thankyou.

    You mean how many rows or columns..?
    If coloumns means 5 and rows only one(1).

  • Error calling a BizTalk WCF Service with WCFTestClient

    I have published schema as a wcf service (WCF-CustomIsolated). I can browse to the wsdl from the local server and from my PC. I can call the service from a console application running on my pc, but when I attempt to add the service from the wcf test client,
    I get the message:
    Warning: No code was generated.If you were trying to generate a client, this could be because the metadata documents did not contain any valid contracts or servicesor because all contracts/services were discovered to exist in /reference assemblies. Verify
    that you passed all the metadata documents to the tool.Warning: If you would like to generate data contracts from schemas make sure to use the /dataContractOnly option.
    Was there a configuration step I missed?

    Hi Jeremy, probably not a configuration issue. I remember reading somewhere the inability of the client to consume the service in such scenarios. I am assuming metadata publishing is enabled. Will try and search the article I read.q
    Praveen Behara
    MCST : BizTalk Server 2006 R2, 2010
    Yup, metadata publishing is enabled. I can browse to the wsdl.   This is a pure message solution, so I'm using a custom disassembler pipeline component to receive the request and generate a response.  When the wcf test client tries to add
    the service, the execute method of my pipeline fires, which seems odd to me, because we're not actually making a request at this point,  only trying to get the meta data I would think.
    When adding the service, wcf test client's request has an action of
    http://schemas.xmlsoap.org/ws/2004/09/transfer/Get with an empty body like this:
    POST http://myserver/MyService/test.svc HTTP/1.1
    Content-Type: application/soap+xml; charset=utf-8
    Host: myserver
    Content-Length: 512
    Expect: 100-continue
    Accept-Encoding: gzip, deflate
    Connection: Keep-Alive
    <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">
    <s:Header>
    <a:Action s:mustUnderstand="1">http://schemas.xmlsoap.org/ws/2004/09/transfer/Get</a:Action>
    <a:MessageID>urn:uuid:8bd3f321-0a94-44f1-9eb4-5575068cc408</a:MessageID>
    <a:ReplyTo>
    <a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
    </a:ReplyTo>
    <a:To s:mustUnderstand="1">http://myserver/MyService/test.svc</a:To>
    </s:Header>
    <s:Body/>
    </s:Envelope>
    I'm assuming somehow the BizTalk receive location would have to be configured to behave differently under this circumstance instead of passing the message to the pipeline component...

  • How to have Header and body in reciever SOAP adapter channel

    Hi Experts,
    Please help me with the following scenario.
    I am designing a webservice scenario and have the WSDL available .
    The webservice expect the SOAP message as follows
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Header>
        <SecurityHeader xmlns="http://onefile.cyzone.co.uk/webservices/proactive">
          <PortalID>int</PortalID>
          <Username>string</Username>
          <Password>string</Password>
        </SecurityHeader>
      </soap:Header>
      <soap:Body>
        <OrganisationCreate xmlns="http://onefile.cyzone.co.uk/webservices/proactive">
          <Organisation>
            <Title>string</Title>
            <Standards>
              <Standard>
                <StandardID>int</StandardID>
              </Standard>
              <Standard>
                <StandardID>int</StandardID>
              </Standard>
            </Standards>
          </Organisation>
        </OrganisationCreate>
      </soap:Body>
    </soap:Envelope>
    I imported the WSDL as external definition and can see all messages in XI
    In the corresponding operation( from WSDL) as given below, it indicates SecurityHeader to be used as SOAP header. However, the WSDL has OrganisationCreate and OrganisationSecurityHeader as separete messages. How do we combine these two in Message Interface.
    - <wsdl:operation name="OrganisationCreate">
      <soap:operation soapAction="http://onefile.cyzone.co.uk/webservices/proactive/OrganisationCreate" style="document" />
    - <wsdl:input>
      <soap:body use="literal" />
      <soap:header message="tns:OrganisationCreateSecurityHeader" part="SecurityHeader" use="literal" />
      </wsdl:input>
    - <wsdl:output>
      <soap:body use="literal" />
      </wsdl:output>
      </wsdl:operation>
    Please advice.
    Thanks in advance,
    Mona

    Hi,
    Yes you are not supposed to create SOAP envelop, you have to cerate whole.
    See below links Consuming XI Web Services using Web Dynpro – Part II-/people/riyaz.sayyad/blog/2006/05/08/consuming-xi-web-services-using-web-dynpro-150-part-ii
    Consuming XI Web Services using Web Dynpro – Part I -/people/riyaz.sayyad/blog/2006/05/07/consuming-xi-web-services-using-web-dynpro-150-part-i
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0d7349b6-0901-0010-ddbe-ec43178a61ff
    /people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client
    /people/kevin.liu/blog/2006/04/12/wsdl-11-binding-extension-for-soap-12
    Regards
    Chilla..

  • RTF template design issue for header and body section

    Hi All,
    I have a RTF template having header and body sections.
    in header section i have order number, customer number etc.
    in body part i am displaying details for the respective order.
    But the problem is in header part my query is returning multiple row , so my requirement is for each row i.e order, i need to display the details accordingly.
    Ex: Header query returns order number : 1,2,3
    in my page i need below way:
    Order number :1
    a,b,c
    order number :2
    c,d,e
    order number :3
    g,h,g
    I tried to use loop in header section , but it is repeating only for header part not body part please help me on this.
    Thanks
    Deb

    Avinash thanks for your help,
    Actually in my requirement the header level and line level invoice numbers are different, in header level i have different invoices and for each invoice i need to display some other invoices along with some data.
    I have sent you the respective RTF file and Sample XML file to your mail, could you please help me on this, i am struggling whole day on this.
    the link between the header and line section is header_id.
    Thanks in advance
    Deb

  • Biztalk 2013 integration with CRM 2015

    Hi,
    I am working on a BizTalk 2013 integration with CRM 2015 on premise server and currently developing a POC to see how it works. There are quite a few good articles on BizTalk-CRM integration and I am referring them while building this POC. However I thought
    of taking expet’s advice for this. Here are my requirements as of now.
    Search CRM contacts by Fname, Lname etc.. And definitely not by Contact ID which is GUID. In this case BizTalk can expect responses like Single contact, Multiple contacts, Contact Not found or soap fault.
    Create a single contact record in CRM from BizTalk.
    Update Contact details in CRM like multiple addresses for a single contact.
    So we have 2 approaches to integrate CRM, using untyped soap endpoint or CRM SDK.
    I did an orchestration today with soap endpoint for “Retrieve” operation bypassing a GUID and can see the response returned. But how to pass the fname, lname etc. instead of GUID as there are no fields to populate in the soap Retrieve schema?
    Is it wise decision to use untyped soap UI instead of CRM SDK proxy by keeping the above 3 requirements in mind?
    Using SOAP endpoint, how can achieve the requirement 1 that returns multiple contacts?
    I have seen articles using Query and Fetch to get multiple contacts and I really don’t understand it. Is it the only way to get multiple contacts?
    Thanks!
    JB

    Hi Abhishek,
    While exploring the CRM REST capabilities i found the below content on MSDN that says the REST endpoint works only for getting the contact by uniqueID and not by firstname and lastname etc...
    https://msdn.microsoft.com/en-us/library/gg328090.aspx#BKMK_RetrievingRecords
    Retrieving records
    HTTP GET is used when you are retrieving records. When a unique identifier for
    a specific record is provided, only that record will be retrieved. Otherwise, any system query options that are defined will be applied and up to 50 records will be retrieved that match any system query option filters.
    We can't use a GUID as it is name search from customer website and GUID available at that stage.
    So if it works only with GUID then we have to use either CRM SDK or SOAP enpoint right?
    Cheers
    JB

  • With header line & with out header line ?

    what is difference between with header line & without header line ?

    When you create an internal table object you can also declare a header line with the same name. You can use the header line as a work area when you process the internal table. The ABAP statements that you use with internal tables have short forms that you can use if your internal table has a header line. These statements automatically assume the header line as an implicit work area. The following table shows the statements that you must use for internal tables without a header line, and the equivalent statements that you can use for internal tables with a header line:
    Operations without header line
    Operations with header line
    Operations for all Table Types
    INSERT <wa> INTO TABLE <itab>.
    INSERT TABLE ITAB.
    COLLECT <wa> INTO <itab>.
    COLLECT <itab>.
    READ TABLE <itab> ... INTO <wa>.
    READ TABLE <itab> ...
    MODIFY TABLE <itab> FROM <wa> ...
    MODIFY TABLE <itab> ...
    MODIFY <itab> FROM <wa> ...WHERE ...
    MODIFY <itab> ... WHERE ...
    DELETE TABLE <itab> FROM <wa>.
    DELETE TABLE <itab>.
    LOOP AT ITAB INTO <wa> ...
    LOOP AT ITAB ...
    Operations for Index Tables
    APPEND <wa> TO <itab>.
    APPEND <itab>.
    INSERT <wa> INTO <itab> ...
    INSERT <itab> ...
    MODIFY <itab> FROM <wa> ...
    MODIFY <itab> ...
    Using the header line as a work area means that you can use shorter statements; however, they are not necessarily easier to understand, since you cannot immediately recognize the origin and target of the assignment. Furthermore, the fact that the table and its header line have the same name can cause confusion in operations with entire internal tables. To avoid confusion, you should use internal tables with differently-named work areas.
    The following example shows two programs with the same function. One uses a header line, the other does not.
    With header line:
    TYPES: BEGIN OF LINE,
    COL1 TYPE I,
    COL2 TYPE I,
    END OF LINE.
    DATA ITAB TYPE HASHED TABLE OF LINE WITH UNIQUE KEY COL1
    WITH HEADER LINE.
    DO 4 TIMES.
    ITAB-COL1 = SY-INDEX.
    ITAB-COL2 = SY-INDEX ** 2.
    INSERT TABLE ITAB.
    ENDDO.
    ITAB-COL1 = 2.
    READ TABLE ITAB FROM ITAB.
    ITAB-COL2 = 100.
    MODIFY TABLE ITAB.
    ITAB-COL1 = 4.
    DELETE TABLE ITAB.
    LOOP AT ITAB.
    WRITE: / ITAB-COL1, ITAB-COL2.
    ENDLOOP.
    Without header line:
    TYPES: BEGIN OF LINE,
    COL1 TYPE I,
    COL2 TYPE I,
    END OF LINE.
    DATA: ITAB TYPE HASHED TABLE OF LINE WITH UNIQUE KEY COL1,
    WA LIKE LINE OF ITAB.
    DO 4 TIMES.
    WA-COL1 = SY-INDEX.
    WA-COL2 = SY-INDEX ** 2.
    INSERT WA INTO TABLE ITAB.
    ENDDO.
    WA-COL1 = 2.
    READ TABLE ITAB FROM WA INTO WA.
    WA-COL2 = 100.
    MODIFY TABLE ITAB FROM WA.
    WA-COL1 = 4.
    DELETE TABLE ITAB FROM WA.
    LOOP AT ITAB INTO WA.
    WRITE: / WA-COL1, WA-COL2.
    ENDLOOP.
    The list, in both cases, appears as follows:
    1 1
    2 100
    3 9
    The statements in the program that does not use a header line are easier to understand. As a further measure, you could have a further work area just to specify the key of the internal table, but to which no other values from the table are assigned.
    Internal table with header line
    you can use anywhere except obkect oriented concept.
    Internal table without header line :
    You should use in Object oriented concept..
    Always try to use without header line,performance point of view it is best..
    Example :
    Without header line.
    Structure
    types : begin of ty_itab ,
    matnr type mara-matnr,
    end of ty_itab.
    Internal table
    data i_itab type standard table of ty_itab .
    Work area
    data wa_itab like line of i_itab
    With header line
    data : begin of i_itab occurs 0,
    matnr like mara-matnr,
    end of i_itab
    itab with header lines are obsolete, anyway it will work but not recommended. instead use work area or more effiecient is field symbols. so donot use itab with header line.
    i will explain use of itab w/o header line.
    Data: itab1 type standard table of mara with header line occurs 0,
            itab2 type standard table of mara,
            wa_itab2 type mara.
    loop at itab1.
    "This will work fine.
    endloop.
    loop at itab2.
    "This will give erro that itabd does not hav workarea
    endloop.
    "so write
    loop at itab2 into wa_itab2.
    "This will work
    endloop.
    <b>The difference between
    whih header line and with out heater line of internal table.
    ex:-
    a) Data : itab like mara occurs 0 with header line.
    b) Data: itab like mara occurs 0.
    -While adding or retrieving records to / from internal table we have to keep the record temporarily.
    -The area where this record is kept is called as work area for the internal table.
    -The area must have the same structure as that of internal table. An internal table consists of a body and an optional header line.
    -Header line is a implicit work area for the internal table. It depends on how the internal table is declared that the itab will have the header line or not.
    a) Data : itab like mara occurs 0 with header line.
    table is with header line
    b) Data: itab like mara occurs 0.
    table is without header line</b>
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • Map input schema with highest id value in the node to output schema

    <job job_reference="4444">
    <jobnotes/>
    <appointments>
      <appointment id="1" slot_id="1" slot_ref="0830-1030" slot_start_time="08:30" slot_end_time="10:30" slot_description="0830-1030" date="19/02/2014" time="" tk_rowid="7367"
    kept="" reason_code="" narrative="" status="DEL" scheme_id="1" day="4" created_by="" creation_date="19/02/2014 11:58:09" amended_by="" amended_date="19/02/2014 11:58:15"
    apb_exported="N" />
      <appointment id="2" slot_id="2" slot_ref="1030-1230" slot_start_time="10:30" slot_end_time="12:30" slot_description="1030-1230" date="19/02/2014" time="" tk_rowid="7368"
    kept="" reason_code="" narrative="" status="ENT" scheme_id="1" day="4" created_by="" creation_date="19/02/2014 11:58:38" amended_by="" amended_date="19/02/2014 11:58:38"
    apb_exported="N" />
    </appointments>
    </job>
    The above is the input schema. I need to map the elements in appointment node with highest ID to the elements in the output schema. Of the two appointment nodes above, I should only pick up one node with highest ID and map the elements of it to
    the output schema.

    My apologies for not giving the input schema right.
    <jobs>
    <job job_reference="4444">
    <jobnotes/>
    <appointments>
      <appointment id="1" slot_id="1" slot_ref="0830-1030" slot_start_time="08:30" slot_end_time="10:30" slot_description="0830-1030" date="19/02/2014" time="" tk_rowid="7367"
    kept="" reason_code="" narrative="" status="DEL" scheme_id="1" day="4" created_by="" creation_date="19/02/2014 11:58:09" amended_by="" amended_date="19/02/2014 11:58:15"
    apb_exported="N" />
      <appointment id="2" slot_id="2" slot_ref="1030-1230" slot_start_time="10:30" slot_end_time="12:30" slot_description="1030-1230" date="19/02/2014" time="" tk_rowid="7368"
    kept="" reason_code="" narrative="" status="ENT" scheme_id="1" day="4" created_by="" creation_date="19/02/2014 11:58:38" amended_by="" amended_date="19/02/2014 11:58:38"
    apb_exported="N" />
    </appointments>
    </job>
    <job>
    <job job_reference="1111">
    <jobnotes/>
    <appointments>
      <appointment id="1" slot_id="1" slot_ref="0830-1030" slot_start_time="08:30" slot_end_time="10:30" slot_description="0830-1030" date="19/02/2014" time="" tk_rowid="7367"
    kept="" reason_code="" narrative="" status="DEL" scheme_id="1" day="4" created_by="" creation_date="19/02/2014 11:58:09" amended_by="" amended_date="19/02/2014 11:58:15"
    apb_exported="N" />
      <appointment id="2" slot_id="2" slot_ref="1030-1230" slot_start_time="10:30" slot_end_time="12:30" slot_description="1030-1230" date="19/02/2014" time="" tk_rowid="7368"
    kept="" reason_code="" narrative="" status="ENT" scheme_id="1" day="4" created_by="" creation_date="19/02/2014 11:58:38" amended_by="" amended_date="19/02/2014 11:58:38"
    apb_exported="N" />
    </appointments></job></jobs>
    I should pick up details of the appointment with Higesht ID for every job. For every job one record should exist as the ouput.
    With the existing mapping, i am getting just one record as output no matter how many input jobs are there.
    Input schema has got multiple jobs and within each job there are many appointments. So in each job I should pick up the one
    with highest ID

  • Urgent : Dynamically showing or hiding Header, main , or trailer section in reports

    Hi List,
    I have posted this question earlier also but didn't get any response. Can somebody please have a look at it and let me know whether it's possible or not ?
    Hi List,
    Can some body tell me how to hide/show header, main, or trailer section programatically ? I have a report in which i have to show or hide these sections based on a condition. I'm checking for value of a parameter and based on some calculation i have to show or hide main section. I mean if main section is visible then header section should not or vice versa.
    Can somebody suggest some way to achieve this ?
    Thanks in advance for your help

    did u tried format trigger or conditional formatting.
    U can write a basic checks using conditinal
    formatting for ex.
    if param1 greater than 100 hide the object.
    hope this helps.
    sh
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Manish Kothari ([email protected]):
    Hi List,
    I have posted this question earlier also but didn't get any response. Can somebody please have a look at it and let me know whether it's possible or not ?
    Hi List,
    Can some body tell me how to hide/show header, main, or trailer section programatically ? I have a report in which i have to show or hide these sections based on a condition. I'm checking for value of a parameter and based on some calculation i have to show or hide main section. I mean if main section is visible then header section should not or vice versa.
    Can somebody suggest some way to achieve this ?
    Thanks in advance for your help<HR></BLOCKQUOTE>
    null

Maybe you are looking for

  • Is there a way to create a preset for drop shadows?

    I'm setting up a template for a new brochure that will need drop shadows on every product that is being placed. Is there a way to save a preset for a drop shadow so I need not have to recreate the shadow every time? Also this is being distributed to

  • Using a expresscard FW800; G-Raid drive unmounts on it's own

    I'm using a NitroAV Fw800 dual expresscard to connect my 500gig G-Raid drive that i use for video editing. I have never had a problem with it using Tiger. Ever since I upgraded to leopard it is behaving strangely. I mount the drive and all is well, (

  • BE on 365 w/ Access 2013

    need a sanity check from those that are further along on this: 1: Made a web database, just tables only, via Access 2013 which defacto is at 365 teamsite... let's call Wdb Opening then a local traditional database - Lets call Local.accdb, and selecti

  • How do I remove duplicate attachment files in Mail

    While looking in the Mail folder I have found numerous duplicate pdf files.  Are these the attachments to a Email and can the dups be erased?  Thanks,  HJZ

  • Changing Audio Animation

    I have applied an audio animation to an audio track but I'd like to only apply the affect to a portion of the song.  How can set mark points and just have the affect to apply to the section I want? Thanks in advance. Best, Chris