PO RTF Template: Multiple attachments(long and shor text) displayed once

Hi
I have a RTF template for PO output communication program. These are the issues i am facing. could someone help.
1) The template does not display multiple short text elements for each line number. It only displays the first attachment.
<LINE_SHORT_TEXT>
<LINE_SHORT_TEXT_ROW>
<PO_LINE_ID>54015</PO_LINE_ID>
<SHORT_TEXT>short text 1</SHORT_TEXT>
</LINE_SHORT_TEXT_ROW>
<LINE_SHORT_TEXT_ROW>
<PO_LINE_ID>54015</PO_LINE_ID>
<SHORT_TEXT>short text 2</SHORT_TEXT>
</LINE_SHORT_TEXT_ROW>
</LINE_SHORT_TEXT>
In the template this
<?for-each:LINES_ROW?><?sort:LINE_NUM;'ascending';data-type='number'?>
<?LINE_NUM?> <?SHORT_TEXT?>
<?end for-each?>
2) The template does not display the multiple attachments(long text) for each line number. It only displays the first attachment.
</DISTRIBUTIONS_ROW>
</DISTRIBUTIONS>
</LINE_LOCATIONS_ROW>
</LINE_LOCATIONS>
</LINES_ROW>
</LINES>
<LINE_ATTACHMENTS>
<TEXT>long text attachment which is 2nd note.</TEXT>
<ID>53995</ID>
<TEXT>see this 5th long atta</TEXT>
<ID>53995</ID>
<TEXT>long text 1</TEXT>
<ID>54015</ID>
<TEXT>long text 2</TEXT>
<ID>54015</ID>
</LINE_ATTACHMENTS>
In the template i am doing this
<?if: PO_DATA/LINE_ATTACHMENTS/TEXT !=''?>
<?for-each:LINES_ROW?><?sort:LINE_NUM;'ascending';data-type='number'?>
<?if:LINE_NUM!=''?> <?concat('Line Number ',LINE_NUM)?> <?end if?>
<?variable@incontext:PoLnID;'PO_LINE_ID'?>
<?/PO_DATA/LINE_ATTACHMENTS/ID[child::text()=$PoLnID]/preceding-sibling::TEXT[1]?>
<?end for-each?>
3) Also I want the Total amount to be printed on the last page but the total amount header should still be there on every page and has "Continued" text when it has multiple pages.
4) Also the Text File attached to PO is not seen in the PDF PO. is there anything for it do ?
Please help
Thanks
Edited by: user525275 on May 1, 2009 2:14 PM

Hi Tim,
You are quite right... I'm trying to associate each of the text attachments with the proceeding ID.
I've simplified it (sorry, I hadn't turned on the monitoring of the forums) in the following forum post:
Basic RTF template question
BTW, thanks for your blog. It's been very helpful.
Cheers,
Andrew

Similar Messages

  • Significance of Long and short text Objects

    Hi all,
    I want to know the difference between Long and short texts and scenarios in which long texts are better to use than short texts.

    long text used for more than 256 character store in db.
    long text example,
    mm01 t_code sales inform
    to save the long text call function `save_text`.
    short text.
    field Description

  • ALV Grid  Subtotal text and Total text display

    Hello ABAPGuru's
    I want to display the subtotal and Total texts. alv grid program runing on background.
    Regards
    Sweety(Sri)

    Hello Neil,
    Here I have attached my routines.anyway my confusion. I have wrote the routine subtotal_text .but i am not passing ALV GRID FM.
    *&      Form  eventtab_build
    &----       This is used to get the list of events
    ----      <--RI_EVENTS  Internal table
    FORM eventtab_build  CHANGING ri_events TYPE slis_t_event.
    Structure for event handling.
      DATA: rs_event TYPE slis_alv_event.
    Returns table of possible events for a list type.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type = 0
        IMPORTING
          et_events   = ri_events.  " Table of events to perform
    Read the internal table with the TOP_OF_PAGE and move the
    form name to the internal table
      READ TABLE ri_events
        WITH KEY name = slis_ev_top_of_page INTO rs_event.
      IF sy-subrc = 0.
        MOVE c_formname TO rs_event-form.              " Form name
        MODIFY ri_events FROM rs_event
           INDEX sy-tabix.                  " Top of page event
      ENDIF.
      READ TABLE ri_events
         WITH KEY name = slis_ev_end_of_page INTO rs_event.
      IF sy-subrc = 0.
        MOVE c_form_eop_name TO rs_event-form.              " Form name
        MODIFY ri_events FROM rs_event
           INDEX sy-tabix.                  " Top of page event
      ENDIF.
      READ TABLE ri_events
          WITH KEY name = slis_ev_subtotal_text INTO rs_event.
      IF sy-subrc = 0.
        MOVE c_formname_subtotal_text TO rs_event-form.     " Formname
        MODIFY ri_events FROM rs_event
           INDEX sy-tabix.                  " Top of page event
      ENDIF.
    *&-- Delete all unneeded events:
    DELETE ri_events  WHERE form IS INITIAL.
    ENDFORM.                    " eventtab_build
    *&      Form  SUBTOTAL_TEXT
          text
    -->  p1        text
    <--  p2        text
    FORM SUBTOTAL_TEXT USING  ep_subtot_line     TYPE  type_data
                              e_event_data       TYPE  slis_subtot_text.
      IF NOT e_event_data-criteria IS INITIAL.
      E_EVENT_DATA-DISPLAY_TEXT_FOR_SUBTOTAL = 'Account Total'.
       ENDIF.
    ENDFORM.                    "SUBTOTAL_TEXT
    *&      Form  initialise_layout
          Initialise Layout
    FORM initialise_layout .
      i_layout-colwidth_optimize = c_x.
      i_layout-group_change_edit = c_x.
    *i_layout-subtotals_text = ' a'.
      i_layout-detail_popup   = c_x.
    i_layout-zebra          = c_x.
      i_layout-no_vline       = 'X'.
      i_layout-no_hline       = 'X'.
      i_layout-totals_text = 'Account Total'.
    ENDFORM.                    " initialise_layout
    Call the function module to display the report
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program     = v_program
          i_callback_top_of_page = 'TOP_OF_PAGE'       "Top Of Page
          is_layout              = i_layout
          it_fieldcat            = i_fieldtab
          it_sort                = i_sort
          it_events              = i_events         " Events
          is_print               = i_print
          i_default              = c_x
          i_save                 = c_save
          is_variant             = v_variant
        TABLES
          t_outtab               = i_data
        EXCEPTIONS
          program_error          = 1
          OTHERS                 = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Regards
    Sweety (Sri)

  • RTF Template - Multiple Groups, carriage returns/line breaks

    Hello - I developed an .RTF Word template with multiple groups. What I want to do is suppress a group heading and the associated new line generated for that group if the group value is blank. I tried IF statements, but I still see extra white lines in my output. Any idea? I also tried putting NO carriage returns in the Word template, and that didn't work.

    You can use a filter at the group level to check if the group value is blank..
    Something like this example: <?for-each-group:./Listofcity/city[./CityName !=''];CityName?>
    Provide information about your data structure/xml if you need the exact syntax.
    Thanks,
    Bipuser

  • BI Publisher -RTF Template issue: Output report not maintaining text with bullets and numberings.

    Hi All,
    I am currently working with generating reports using BI Publisher. My issue is that when I will preview the output(in PDF and RTF) format's  of the newly created template, then, if the data coming from DB have some bullets or numbering, then the BI publisher output will ignore the same and will show the complete data as one single line.
    For example if the data in the DB Field is like below:
    The XYZ has the below sub-parts:
    ABC : This again has two parts:
    abc1
    abc2
    CDE
    FGH
    Then  this data will appear as below in the BI Publisher output report's:
    The XYZ has the below sub-parts: •   ABC : This again has two parts:  o     abc1  o   abc2   •    CDE    •   FGH
    I want the format of the data (with bullets and number's) should be maintained in the BI Publisher Report as well, but I am unable to find any solution for the same.
    Any help on the same is much appreciated.
    Deep Bhoj

    in your query will u get all the columns always null when column1 is null
    in your template for each group u can write like below
    think G_1 as group in your xml
    <?for-each:G_1[COLUMN1!='']?><?COLUMN1?><?COMMENTS?><?end for each?>
    or if u are not sure u get null in both places every time u can write like below
    <?for-each:G_1[COLUMN1!='' and COMMENTS!='']?><?COLUMN1?><?COMMENTS?><?end for each?>

  • Create multiple pdf files and open them at once from java application

    I came across a very unique problem , i am hoping some one could help me out with that .
    I am using itext to create pdf files , i have filtered some records (preferably i can say around 90) which has the option to open pdf for individual record.
    Now i need to open all the pdf's of filtered records on a single click , without asking for a open dialogue box.
    Can anyone give me an idea how to go about this ??

    The simplest thing I can think of is to call Desktop.start() for each selected file wich will start the defaut application registred for the file type in the users system for each selected file. In this case it depends on the associated program and/or its configuration if it starts a single instance showing all the files or a separate instance for each file. The beauty of this method is that you don't need to know what reader application the user has installed nor where it is located on her hard disk.
    The other option that comes to my mind is ProcessBuilder. There you could set all selected files as parameter list to the call of the viewer application.
    This also does not asure that all files get openned in the same single instance but the chance is much higher. At the down side you need to know what viewer application the user has installed and where. Also: when speaking of 90 files you most likely rung into a limitation of the maximum length of the systems command line.
    bye
    TPD

  • Adobe captivate 7 mixed hebrew and english text displayed wrong

    hello all,
    when I create captions with mixed Hebrew and English characters or numbers, the caption is displayed all mixed up.
    Is there a fix for this issue ?
    If not, is there a simple workaround?
    thanks,
    Hanoch

    Hi
    I hope you have upgraded to the latest captivate version 8.0.1.242. If not please follow the steps mentioned on this post Adobe Captivate Help | Adobe Captivate 8 patch. Make sure to remove layouts and preferences as mentioned in the link.
    There is an issue with text in case of multi-hierarchal bullets but apart from that other things should work fine. You might just have to change some position parameters to fix the results. Can you please share the project, so that I can reproduce the issues at my end. My email address is [email protected] . You can send it via email or drop box.
    Captivate responsive output works for multiple browsers. Please check the link Tech Specs - eLearning, mobile learning & Training Software | Adobe Captivate 8 for details.
    Regards
    Tamish

  • RTF Templates and report file (.xdo)

    Hi all,
    I use Oracle report and I would like to migrate from that software to Oracle BI Publisher. During my tests, I encountered various problems like the following:
    I create my report (.xdo file is generated) in development with one RTF template. I load my template in the report and the system copy the rtf file is the same directory as the .xdo file. Also, the system modify the .xdo file to add a line like:
    <templates default="stkcinv">
    <template label="stkcinv" type="rtf" url="stkcinv.rtf" outputFormat="html,pdf,rtf"/>
    </templates>
    When my report and template are ok, I update my customer to install them in production mode. When they are installed, my customer would modify the RTF template so he duplicates the RTF template, modify the file and load it in the report. Now, in the report, I have two lines:
    <templates default="stkcinv">
    <template label="stkcinv" type="rtf" url="stkcinv.rtf" outputFormat="html,pdf,rtf"/>
    <template label="stkcinv2" type="rtf" url="stkcinv2.rtf" outputFormat="html,pdf,rtf"/>
    </templates>
    For my part, I modify the report in development to add a new value in the datamodel. Then I update another time my customer and erase the standard report by the new.
    the problem is that doing that, if I look at the .xdo file, I see that in the <templates> section, I have:
    <templates default="stkcinv">
    <template label="stkcinv" type="rtf" url="stkcinv.rtf" outputFormat="html,pdf,rtf"/>
    </templates>
    So the templates loaded in the .xdo file is lost and my customer must reload it in the new report. If my customer has 100 reports, each time I update the soft, he will have to reload all templates... Amazing...
    How can I do to avoid that problem ?

    Well there appears to be a bug in the RTF generator.
    It appears that Oracle want to use paragraph left and right indentation properties to pad text in cells away from cell borders. There is a bug in the rtf reader in word that causes problems if cell padding properties are used so paragraph indentation appears a sensible work round.
    By default there appears to be a left hand indentation of 5 applied to all paragraphs in cells. If a left hand cell maring is applied to cells then the left hand cell margin in the report increases in size.
    However, right hand cell margins appear to be ignored and NOT written as attributes to cell paragraph text in the the generated report, and this causes problems when trying to print an RTF report as numbers in cells get clipped by cell borders.
    Edited by: user7137712 on 18-Mar-2010 03:21

  • Landscape in RTF template does not work

    Hi,
    I try to generate an XLS (Excel) document from a RTF template built with Word and the BIP Desktop tool.
    Before saving the RTF template, I go in page setup and set the layout to "landscape".
    When I generate the final document, and open it in Excel, if I go to preview the document is in portrait mode, not landscape.
    How can I do to have the landscape mode ?
    thanks.

    Development has previously confirmed that Page Orientation is not supported for Excel output (ref. bug 8435974). There's an open ER / bug 9818198 which you may want to track via My Oracle Support.

  • Issue in RTF Template

    Hi All,
    Could you please solve the following requirement:
    Requirement: In my RTF Template for the fisrst page we are displaying parameters of the report.
    In the second page we have 2 tables one is for statement and other one is for Receipt.
    My requirement is in the second page i need to display "statement table" at the starting of
    second page[i.e @Header part] and "receipt table" at the end of the second page[i.e @tailor part].
    My issue is if statement table is having many rows some of the rows are skipped and displayed at 3rd page.and the receipt table is @ 2nd page.
    If receipt table is having many rows it is breks into two dispalyed at the end of second page and starting of 3rd page.
    Can anyone please provide me the solution.
    Thanks in Advance,
    Dhanasurya
    Edited by: DhanaSurya on Nov 6, 2009 1:06 AM

    Hi Dhanasurya,
    It sounds like you are using headers and footers, and that what you seeing is standard expected functionality.
    You could try extending your header/footer regions to make them bigger, but if there are too many rows of course then the tables will break across pages.
    Depending on your requirements you could limit the number of rows so they always if on one page, otherwise you'd need to either accept the data will break across pages, or implement something like Fixed Row Enumeration.
    Regards,
    Gareth

  • How to display a blob image in RTF template's Header.

    Hi,
    I want to display a blob image (logo company) in my RTF template,
    my problem is how i can display this image in the template's Header.
    I tried this
    <?
    <fo:instream-foreign-object content-type="image/jpeg" >
    <xsl:value-of select=".//LOGO"/>
    </fo:instream-foreign-object>
    ?>
    but was unsuccessful
    Thanks in advance.

    I tried this
    <?
    <fo:instream-foreign-object content-type="image/jpeg" >
    <xsl:value-of select=".//LOGO"/>
    </fo:instream-foreign-object>
    ?>
    but was unsuccessful
    sure
    what is red elements ?
    you template can be looks like
    ..... some data .....
    ( after  all data )
    <?template:footer_logo?>
    <fo:instream-foreign-object content-type="image/jpeg" ><xsl:value-of select=".//LOGO"/></fo:instream-foreign-object> (as field )
    <?end template?>
    <?call-template:footer_logo?> ( in header/footer )
    some remarks https://oralublog.wordpress.com/2014/10/04/bi-publisher-11g-footers-and-headers-in-rtf-template/

  • NS 9 and Text Display Properties (AFC)

    Text Display Properties not working in newScale 9
    Has anyone tested the newScale 9 in dev yet? We have an issue where the display properties of a text field is not taking effect when configuring the column length. It will just remain the default length no matter what the value is set at. We have exported the service from nS 9 back to 2008.3 and the text display changes work as expected. Is there a work around for this or is this a known bug?

    Hi Craig,
    Good news -- there is a hotfix for this already available. If you are going to be installing SP1 for newScale 9, the hotfix is included in the service pack. If you are not planning to install SP1, please contact customer care and ask them for 2009.1_HotFix_FormDataTypeTransform.

  • Unable to Maintain different Headers and footers in a multiple RTF template

    Hi All,
    I have a very complex requirement to Print Custom Invoice reports. The Report Consists of Three Templates 1) Invoice 2) Custom IMEI 3)Remiitance Slip.
    I have coded XMl such that for a given header level data all the corresponding data will be generated Including for Custom IMEI and Remittance Slip. So for the RTF design, In a word document i have three templates and the for every transaction all this three should be printed. so if there are 10 transactions than we need to print 10 sets (all 3) of invoices. The first Template is Invoice which has a header with all required information. If for the first template the lines data exceeds first page then on the second page the header needs to be printed only as Customer name, Transaction Num and page number. if the line level data goes more than 2 pages than the header needs to be same as that of 2nd page. On the last page of invoice template the totals and footer needs to be printed.
    After completion of invoice template Custom Imei template and remittance template must be printed for given transaction. But they shouldn't have any header or footer associated.
    Is this Functionality achievable by Oracle BI publisher RTF design?? If yes how would i code it in RTF. I have tried almost all possible solutions given in XML publisher User guide. Invoice template header and footer are repeating in other templates too.
    Issues are : 1) All there templates are tied together, so the header in First template, if it's line level data exceeds to second page should be different.
    2) Footer of the First template should only be displayed at the end of first template with Invoice totals.
    3) Header and Footer should not be part of template 2 and 3 which are tied to template one.
    Please, help me out with a solution, if needed i will provide the XML and RTF template too. I hope Someone really knows how to break this puzzle. Thanks for the help in advance

    Hi,
    My Req was for Three different templates tied together. So, if the First template exceeds page 1 then itz header should be a different one. Similarly with second template but they were independent of each other.
    In Your case you may probably try using MS word different First page header functionality to acheive different header from second page.
    Does this help?

  • Find and replace in RTF Template

    Hi,
    I'm using a if statement in my template, but i need to change a value within this statement. It's being used multiple times, therefor it would be easier to do a find and replace, is there a way to do a find and replace within the RTF template? Already openede it in Notepad++, but no luck
    Osman

    I don't think there is a way to find and replace all.. You can view all the code by using Field Browser -> Show All and then replace the code and update one by one from there..
    Thanks,
    Bipuser

  • How to print multiple footers for each page in RTF template xml report.

    Hi,
    How to print multiple footers for each page in RTF template xml report.
    i am able to print ( two sets ) ...
    up to last page ( one template ) and for last page ( another template).
    i want to change the footer information based on the group value printed in the report ( it might be 5 to 6) In every report run.. can you please check and let me know do we have any feasibility to achieve this.
    Thanks in advance.
    Regards,
    KAP.

    You can remove all other logic, like last page only contents (start@last-page:body), etc and section breaks if any you have inserted manually.
    Just have for-each@section logic.
    It would be difficult for me to guess what you have done without looking at your RTF or describing here.

Maybe you are looking for

  • ITunes has stopped working on my Windows 7 laptop.

      Problem Event Name: APPCRASH   Application Name: iTunes.exe   Application Version: 10.5.2.11   Application Timestamp: 4ee0844d   Fault Module Name: MSVCR80.dll   Fault Module Version: 8.0.50727.6195   Fault Module Timestamp: 4dcddbf3   Exception Co

  • No microphone while mix

    I can't seem to get volume through front or rear mic jacks when I'm mixing li've on the net. People saying? they hear the music fine but my voice is very low. I have mic volume all the way up but no change in volume. I tried recording voice in what y

  • PL/SQL TABLE declarations must currently use binary_integer indexes

    Hi, I am having procedure written in form6i, this procedure is having pl/sql table datatyep "v_suppmesg orcl.err_message.error_tabtype;" this pl/sql datatype is defined in database and the procedure in database is not having any error in it. But when

  • I need my data back

    Hello, I tried to download and install the recent iOS 8 update to my iPad 3. It failed to install too many times, so I decided to restart the device and give a try. The device appeared as if it is still loading and fails to startup no matter how much

  • Regarding reports and selection screens

    Hi, I have to call one report program from anthoer report program . But the ohter report program has a selection with radio buttons and check boxes and parameters. we have to fill that selection screen from this program with the data and we have to s