XML - Header - Lines Report

Hi,
I have created Template for AR Invoice.
There are two parameters to the 1. AR Invoice Number 2. Sales Order Number.
for AR invoice report is working fine.
for Sales Order, the issue as follows.  I have 2 AR Invoices created of a Sales order.
I can able to see the two invoices and respective lines in the XML Data.  But, in the template output only One Invoices is shown and all Lines coming under it.
I am unable to rectify the issue.  How can Upload my Template & XML Output data for your reference.
Thanks in Advance.

Hi,
I have created Template for AR Invoice.
There are two parameters to the 1. AR Invoice Number 2. Sales Order Number.
for AR invoice report is working fine.
for Sales Order, the issue as follows.  I have 2 AR Invoices created of a Sales order.
I can able to see the two invoices and respective lines in the XML Data.  But, in the template output only One Invoices is shown and all Lines coming under it.
I am unable to rectify the issue.  How can Upload my Template & XML Output data for your reference.
Thanks in Advance.

Similar Messages

  • Text to Xml-Header Line

    Hi
    In text to xml scenario...how to eliminate the headers in text file
    Text file data is like
    H1-header line1
    H2-header line 2
    E100 Rahul - Data
    E101 Siva - Data.
    I need only data in xml file..what setting i have to make in file content conversion parameters in sender side..In blogs it is given for text to xml..In those i am not getting regarding header line removal from text file (sender)
    Give some suggestion to get this scenario
    Regards
    Prakash

    Hi Prakash,
    Create the Data type with all fields (Headr & Item) but while mapping do not map the header filds to target. But in your Content Conversion Define every thing (Header & Item filed lengths etc.) so this way your file will be ficked up by adapter and while mapping only Item values will be mapped and you will get only item data in your XML file.
    Below is the example when you have HEADER & ITEM structure.
    FCC is case sensitive, give all the names in FCC same as your Data Type.
    In Recordset Structure = Header,1,Item,*
    Header.fieldFixedLengths = (field lengths) e.g. 1, 4, 7
    Header.fixedLengthTooShortHandling=ignore
    Header.endSeperator='nl'
    Item.fieldFixedLengths = give the item field length as shown above
    Item.endSeparator = 'nl'
    Item.lastFieldsOptional = YES
    Regards,
    Sarvesh
    ****Reward points, if found helpfull.

  • Report without HEADER LINE

    how to create a report with out the HEADER LINE concept....because I want the output as only some of the fields from the table.....
    And this type of programming consumes much processing than the normal one.....
    NOTE: In normal process I am facing memory problem. It's giving error like "the WORKAREA <internal table> is not enough"
    Regards
    Suresh

    Check the below example ,it has both header line and withou header line:
    Internal table with header line
    here i am using get time field command ,so use both program and see comparision time
    report zxyz.
    Internal table with header line.
    DATA:BEGIN OF itab OCCURS 0,
    lifnr LIKE lfa1-lifnr,
    name1 LIKE lfa1-name1,
    END OF itab.
    data : f1 type i,
           f2 type i,
           f3 type i.
    start-of-selection.
    get run time field f1.
    SELECT lifnr name1 FROM lfa1 INTO TABLE itab up to 200 rows.
    loop at itab.
    endloop.
    get run time field f2.
    f3 = f2 - f1 .
    write :/ 'Time taken by query in Micro seconds', f3.
    Internal table without header line
    report zxyz1.
    Internal table without header line.
    types : begin of ty_itab ,
            lifnr LIKE lfa1-lifnr,
            name1 LIKE lfa1-name1,
            end of ty_itab.
    data itab type standard table of ty_itab.
    data wa_itab like line of itab.
    data : f1 type i,
           f2 type i,
           f3 type i.
    start-of-selection.
      get run time field f1.
      SELECT lifnr name1 FROM lfa1 INTO TABLE itab up to 200 rows.
      loop at itab into wa_itab.
      endloop.
      get run time field f2.
      f3 = f2 - f1 .
      write :/ 'Time taken by query in Micro seconds', f3.
    I would suggest use always internal table without header line.
    Thanks
    Seshu

  • Having header line in the structure inside another structure

    How can I have a header line in a structure within a structure?
    (I have posted a question before...but seems to be unclear..so I closed that thread and open a new one)
    Thanks!
    When compiling the below codes, I got error message stating that 'The internal table "IT_SALES_ORDER-DETAIL" has no header line - explicit specification of an output area with "INTO wa" or "ASSIGNING <fs>" is required'.
    I know that the problem can be solved by using field symbols... but I wonder I can have a header line declared in a structure within another structure.
    types: begin of ty_header,
             vbeln like vbak-vbeln,
             erdat like vbak-erdat,
             audat like vbak-audat,
             vkorg like vbak-vkorg,
             vtweg like vbak-vtweg,
             spart like vbak-spart,
             kunnr like vbak-kunnr,
             netwr like vbak-netwr,
             end of ty_header.
    types: begin of ty_detail,
             posnr like vbep-posnr,
             edatu like vbep-edatu,
             etenr like vbep-etenr,
             ettyp like vbep-ettyp,
             wmeng like vbep-wmeng,
             bmeng like vbep-bmeng,
             vrkme like vbep-vrkme,
             mbdat like vbep-mbdat,
             lddat like vbep-lddat,
           end of ty_detail.
    types: begin of ty_sales_order,
               header type ty_header,
               detail type ty_detail occurs 0,
           end of ty_sales_order.
    data: it_sales_order type standard table of ty_sales_order
          with header line initial size 0.
    data: it_selected_order type standard table of ty_header
          with header line initial size 0.
    select *
      into corresponding fields of table it_selected_order
      from vbak
    where erdat > '01.01.2005' and erdat < '31.12.2005'.
    write :/ sy-subrc.
    loop at it_selected_order.
      clear: it_sales_order-header, it_sales_order-detail.
      move-corresponding it_selected_order to it_sales_order-header.
      select *
        into corresponding fields of table it_sales_order-detail
        from vbep
       where vbeln = it_sales_order-header-vbeln.
      append it_sales_order.
    endloop.
    loop at it_sales_order.
      write :/ it_sales_order-header-vbeln.
      loop at it_sales_order-detail.
      endloop.
    endloop.

    You have to use a work area here, no header lines.
    report zrich_0002 no standard page heading.
    types: begin of ty_header,
    vbeln like vbak-vbeln,
    erdat like vbak-erdat,
    audat like vbak-audat,
    vkorg like vbak-vkorg,
    vtweg like vbak-vtweg,
    spart like vbak-spart,
    kunnr like vbak-kunnr,
    netwr like vbak-netwr,
    end of ty_header.
    types: begin of ty_detail,
    posnr like vbep-posnr,
    edatu like vbep-edatu,
    etenr like vbep-etenr,
    ettyp like vbep-ettyp,
    wmeng like vbep-wmeng,
    bmeng like vbep-bmeng,
    vrkme like vbep-vrkme,
    mbdat like vbep-mbdat,
    lddat like vbep-lddat,
    end of ty_detail.
    types: begin of ty_sales_order,
    header type ty_header,
    detail type ty_detail occurs 0,
    end of ty_sales_order.
    data: it_sales_order type standard table of ty_sales_order
    with header line initial size 0.
    data: it_selected_order type standard table of ty_header
    with header line initial size 0.
    <b>data: wa_detail type ty_detail.</b>
    select *
    into corresponding fields of table it_selected_order
    from vbak
    where erdat > '01.01.2005' and erdat < '31.12.2005'.
    write :/ sy-subrc.
    loop at it_selected_order.
      clear: it_sales_order-header, it_sales_order-detail.
      move-corresponding it_selected_order to it_sales_order-header.
      select *
      into corresponding fields of table it_sales_order-detail
      from vbep
      where vbeln = it_sales_order-header-vbeln.
      append it_sales_order.
    endloop.
    loop at it_sales_order.
      write :/ it_sales_order-header-vbeln.
    <b> loop at it_sales_order-detail into wa_detail.</b>
      endloop.
    endloop.
    Regards,
    Rich Heilman
    Message was edited by: Rich Heilman

  • Adding report header lines using expand.xsl style sheet

    Hello
    I would like to add a few header lines (appears only at the first page of the report) into my XML report that is based on expand.xsl style sheet. 
    Since I am not familiar with XML, is there any example or a modified (ready to run) expand.xsl style sheet that implements it?
    Thank you
    Zvika

    Hey Zvika,
    Chek out this website:  http://zone.ni.com/devzone/cda/epd/p/id/4759
    NI doesn't support any changes in the xsl however so if you change it you are on your own.  You can look to this website for help with that: http://www.w3.org/XML/
    Regards,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Create a new line in the xml-header structure.

    Hi,
    Can any one tell me how to create a new line in the xml-header structure.
    I am doing a IDOC-XI-HTTP scenario.
    Actually my mapping create this file:
    <b><?xml version="1.0" encoding="utf-8"?>
    <ORDERS05>
      <IDOC BEGIN="1">
        <EDI_DC40 SEGMENT="1"> </b>
    The result must look like this.
    <b><?xml version="1.0" encoding="utf-8"?>
    <ORDERS05>
      <IDOC BEGIN="1">
        <EDI_DC40 SEGMENT="1"> </b>
    Thanks and Regards,
    Eren

    Hi,
    thanks for you quick answer.
    I found a xsl script.
    It works fine.
    <?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" indent="yes"/>
       <xsl:template match="*">
          <xsl:param name="depth">0</xsl:param>
          <!-- New line with indenting. -->
          <xsl:if test="$depth > 0">
             <xsl:text>    </xsl:text>
          </xsl:if>
          <xsl:text>&#xA;</xsl:text>
          <xsl:element name="{name(.)}">
             <xsl:for-each select="@*">
                <xsl:attribute name="{name(.)}"><xsl:value-of select="."/></xsl:attribute>
             </xsl:for-each>
             <xsl:apply-templates>
                <xsl:with-param name="depth" select="$depth + 1"/>
             </xsl:apply-templates>
          </xsl:element>
       </xsl:template>
    </xsl:stylesheet>
    Best regards
    Eren

  • How to create 2 lines header in Report painter

    Hi. I am not good at Report painter. I want to create 2 lines header in Report painter just like SAP std report.
    When I create a new form, I only have one line header form but cannot add additional header line.
    I am looking at the 0SAPFS10-01 Trans.Fig.- Balances. which has two header lines
                               Debit              Credit            Balance       Accumulated Balanc
    Periods                     &1FY               &1FY               &1FY               &1FY
    I can create only one header just like
    Periods                 Debit              Credit            Balance       Accumulated Balanc
    cannot add additional line for
          &1FY               &1FY               &1FY               &1FY
    please advise me
    thanks in advance.

    In report painter you can select variouselements based on which the data will be pulled. I haven't seen any report painter with two header lines and don't think report painter allows that. But for your requirement I believe you can select the periods in the header line itself.

  • Download alv report output to excel format with out header line

    Hi experts,
    i want to download a alv report output into excel formatt with out the header line but it has to download including field description. as this output will fed into another transaction, the downloaded excel file should be with out header line.
    fro eg:
    Report   : Zabc                      ABAP Development          Page  :     1
    Run Date : 12/14/06                                                     System: UD400 
    Run Time : 08:45:37
    this header details should not be downloaded into the excel file.
    could somebody help me please.
    thanks
    deepu

    hi jayanti,
    thanks for your response.
    i have delclared all the field types as character but still it is not downloading and it 's sy-subrc is 4... the code is as below.
    *field names
      lt_fieldnames-value = 'Material Number'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Plant'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Material Group'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Material Description'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'UOM'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Price Unit'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Material Type'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'X-Plant Status'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Valuation Class'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = lw_avmng.
      APPEND lt_fieldnames.
      lt_fieldnames-value = lw_avntp.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Latest PO Qty'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Latest PO Cost'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'PO Creation Date'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = lw_fcaqt.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Prev. Yr. Std. Cost'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = lw_stcst.
      APPEND lt_fieldnames.
      CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
        EXPORTING
          file_name                       = 'XLSHEET'
        CREATE_PIVOT                    = 0
        DATA_SHEET_NAME                 = ' '
        PIVOT_SHEET_NAME                = ' '
        PASSWORD                        = ' '
        PASSWORD_OPTION                 = 0
        TABLES
        PIVOT_FIELD_TAB                 =
          data_tab                        = t_output1
          fieldnames                      = lt_fieldnames
        EXCEPTIONS
          file_not_exist                  = 1
          filename_expected               = 2
          communication_error             = 3
          ole_object_method_error         = 4
          ole_object_property_error       = 5
          invalid_pivot_fields            = 6
          download_problem                = 7
          OTHERS                          = 8
      IF sy-subrc <> 0.
        MESSAGE e001 WITH 'Data could not be downloaded'.
      ENDIF.
    ENDFORM.                               " z_dwn_xl
    thanks
    deepu

  • Pb with header line in my report

    hi,
    I have a problem with the alignment of the header line of my table in my report
    Indeed the header line is centered on the first page but not on the second one.
    I attach the code and a pdf which shows the problem.
    If someone can help me,please.
    Best regards
    Attachments:
    test pb array.vi ‏20 KB
    Document.pdf ‏24 KB

    Hi,
    Your VIs doesn't work on my computer. Is it really running on yours? Did you try with a word report and if so, do you have the same phenomena?
    Regards
    Manuel R
    AE dans une autre vie

  • 2 header lines in ALV report

    Hello All,
                Does any one have any idea how to create 2 Header lines in an ALv report
    as in 1 cummulative header and under that 2nd detailed header.
    Please help me out.
    Cheers,
    Deepthee Kasal

    Hi,
    It is not possible to have 2 detailed headers in ALV reports.
    Regards,
    Satish

  • Hard code header lines in report?

    Hello All,
    I am writting an abap report.  The report is outputted into AL11.  Two header lines are needed showing the fileds in the report, one in capitals and one not.
    What would be the best way to do this?
    Thanks,
    Nick.

    Hi Venkat,
    thanks for you response.
    The header line has about 150 fields, therefore it is to big to fit into one variable.
    If i create 150 variables for each individual field seems a bit excessive as I would have to do that twice.
    Any other ideas?
    Thanks,
    Nick.

  • How to create multiple report header line?

    Dear Experts!
    I am creating a report, which needs multiple lines for report header e.g. First row should have Report Name in bold. Then next line should have the month for which the report was executed and last line should have the person, who executed it.
    I know that I can get the text of these values by text variable but the problem is to format it and to put the text in different report header lines.
    Please help!
    Thank you,
    Tyagi

    Dear Tyagi,
    Are you using BEx Report Designer?
    You can use drag-and-drop for moving the fields. Just click on the cell and as the buttons appear, move it to your destination cell.
    Regards, Karol - SAP BI Development

  • Change exported XML from a report

    Hello,
    I need to export a XML from a report button with this structure:
    <LOTE CONTABLE>
    <CONFIG />
    <LOTE>LOTE</LOTE>
    <LINEAS>
    <LINEA>
    <FAC_CODI>1</FAC_CODI>
    <EFDESC>F/pruebass N 1</EFDESC>
    <EFTYPENT>P</EFTYPENT>
    <EFCOMPTE>960</EFCOMPTE>
    </LINEA>
    </LINEAS>
    I have a report with all the columns that I need. I have created a Report Queries (from Shared Components) to generate a XML with the same sql as the report but the XML that APEX generates by default has this structure:
    <ROWSET>
    <ROW>
    <FAC_CODI>1</FAC_CODI>
    <EFDESC>F/pruebass N 1</EFDESC>
    <EFTYPENT>P</EFTYPENT>
    <EFCOMPTE>960</EFCOMPTE>
    </ROW>
    </ROWSET>
    How can I change this structure? I want to add a header and replace "rowset" and "row" to "lineas" and "linea". Is it possible?
    Thank you very much in advance.
    Kind regards,
    Amparo

    >
    The issue is that in the following code, I've replaced this line:
    qryCtx := dbms_xmlgen.newContext('select hash_value from hash');
    with this line:
    qryCtx := dbms_xmlgen.newContext(V_Return);
    I did this because the value that I want to be in XML is in the variable V_Return and not in a table. I get a compilation error:
    PLS-00382: expression is of wrong typeCompilation failed
    Is there a way to use newContext with a variable value rather than a select statement from a table?
    >
    It seems unlikely. The DBMS_XMLGEN documentation says:
    >
    The DBMS_XMLGEN package converts the results of a SQL query to a canonical XML format. The package takes an arbitrary SQL query as input, converts it to XML format, and returns the result as a CLOB.
    >
    http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10577/d_xmlgen.htm#i1012053
    If <tt>VReturn</tt> is not a SQL query then you will need to use one of the (many) other ways of generating XML. This question has nothing to do with APEX and would be better addressed to the XML DB.
    Additionally, the recommended methods for XML generation, encryption and hashing are heavily version-dependent and you should always quote the relevant DB version/edition information to ensure an appropriate answer. For example, DBMS_OBFUSCATION_TOOLKIT is deprecated as of Oracle 10g and replaced by DBMS_CRYPTO.

  • Changing header in report painter

    Hi All,
    I have a requirement to change the header(column). I am using the global variable &5PY(Period/Year) in the characterictics value. So it displays an output like 06.2008. But the client needs this to be displayed as June 2008.
    Kindly help me out with this.
    Regards,
    Karthik

    In report painter you can select variouselements based on which the data will be pulled. I haven't seen any report painter with two header lines and don't think report painter allows that. But for your requirement I believe you can select the periods in the header line itself.

  • Extra header lines appearing in payload after singning and encrypting in Mail Receiver adapter PI 7.31

    Hi,
    We have a mail receiver adapter which is sending out a edi payload as attachment to the external receiver.
    When we send the normal .edi file it is ok.
    But when we sign and encrypt the payload and send it out, the external customer receiver decrypts and validates the message successfully but when their application tries to read the edi payload it finds the extra header lines as below :
      content-id:
    <[email protected]>
    Content-Disposition: attachment; filename=xxxxxxxx.edi Content-Type:
    application/xml
    At their end, their application (DataPower) expects the first three characters of the payload
    (decrypted payload) to be either UNA or UNB.This is how it validates whether the incoming message is an EDI message.
    But it encounters the extra MIME headers in the payload.
    Therefore it gets rejected by DataPower which thinks the content is an
    unknown message type.
    How to suppress the header lines appearing in the payload(after decryption and validation).
    Thanks,
    Guest

    hi,
    try content-type as "text/xml"

Maybe you are looking for

  • Global temp table in Oracle EBS

    hi gurus, i have a GTT with "ON COMMIT PRESERVE ROWS". i am populating this table through an OAF page and displaying the data. as per the documentation it should delete the data from the table once user logs out from the Oracle EBS but it's not happe

  • What's the maximum number of folders you can create?

    Hi folks I've just got my first iPod - (Nano 5th G, 16 Gb)- so I'n new on the block! I'm thinking of buying a bird calls DVD designed for MP3 players. One of the requirements is the ability to create 99 folders. Can this be done on my iPod? I can't f

  • To access a dynamic context node defined in a Used Component

    Hi Gurus, I need your help with something. I have a dynamic context node in ComponentA. I want it in Component B too. Component B uses Component A, but I am not able to get access to the context node. Is it possible to do this? Any suggestions how to

  • Syncing through icloud doesn't work., syncing through icloud doesn't work.

    My info on my iphone won't sync to icloud. Seems like the server is down?? has been earlier today but according to support it should be running now. no syncing at all from and to ipad, iphone x2, mbp /Jari

  • Too big switch - get data from array

    I have text file (CSV). Parse file and set data to array, e.g. ArrayList. Get data from array and initialize object MyDoc (by setXXX methods)      for (int index = 0; index < list.size(); index++) {                currentElement = list.get(index);