Regarding Layout  of rtf report

hi experts,
line:---
level
line :--
l1 l2 l3l l4
line: ---
here in my layout i have a single cell which is divided into 2 rows:
in 1 row i want to be print "LEVEL" as heading
in 2 row i want its different level come .
Please do needful for the same.
Amit Garg

HI
If u r modifying Ztable no probelm  because we will be having small amount of data .
IF u r updating standard table Do like below .
First collect all the records which you want to update to table into one internal table .
Then update the table with that internal table ..
IT will be better when you are updating standard table .
I think this will  help you ..
If u r not understood copy paste ur code i can solve ur probelm ...

Similar Messages

  • How to create a dynamic RTF report which creates dynamic columns based on dynamic column selection from a table?

    Hi All,
    Suppose I have table, whose structure changes frequently on daily basis.
    For eg. desc my_table gives you following column name on Day 1
    SQL > desc my_table;
    Output
    Name
    Age
    Phone
    On Day 2, two more columns are added, viz, Address and Salary.
    SQL > desc my_table;
    Output
    Name
    Age
    Phone
    Address
    Salary
    Now I want to create an Dynnamic RTF report which would fetch data from ALL columns from my_table on daily basis. For that I have defined a concurrent program with XML as output type and have attached a data template/data definition to it which takes in XML as input and gives final output of conc program in EXCEL layout. I am able to do this for constant number of columns, but dont know how to do it when the number of columns to be displayed changes dynamically.
    For Day 1 my XML file should be like this.
    <?xml version="1.0" encoding="UTF-8"?>
    <dataTemplate name="XYZ" description="iExpenses Report" Version="1.0">
    <dataQuery>
    <sqlStatement name="Q2">
    <![CDATA[
    SELECT Name
    ,Age
    ,Phone
    FROM my_table
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_my_table" source="Q2">
      <element name="Name" value="Name" />
      <element name="Age" value="Age" />
      <element name="Phone" value="Phone" />
    </group>
    </dataStructure>
    </dataTemplate>
    And my Day 1, EXCEL output from RTF template should be like this.
    Name     Age     Phone
    Swapnill     23     12345
    For Day 2 my XML file should be like this. With 2 new columns selected in SELECT clause.
    <?xml version="1.0" encoding="UTF-8"?>
    <dataTemplate name="XYZ" description="iExpenses Report" Version="1.0">
    <dataQuery>
    <sqlStatement name="Q2">
    <![CDATA[
    SELECT Name
    ,Age
    ,Phone
    ,Address
    ,Salary
    FROM my_table
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_my_table" source="Q2">
      <element name="Name" value="Name" />
      <element name="Age" value="Age" />
      <element name="Phone" value="Phone" />
      <element name="Address" value="Address" />
      <element name="Salary" value="Salary" />
    </group>
    </dataStructure>
    </dataTemplate>
    And my Day 2, EXCEL output from RTF template should be like this.
    Name     Age     Phone     Address     Salary
    Swapnill     23     12345         Madrid     100000
    Now, I dont know below things.
    Make the XML dynamic as in on Day 1 there must be 3 columns in the SELECT statement and on Day 2, 5 columns. I want to create one dynamic XML which should not be required to be changed if new columns are added in my_table. I dont know how to create this query and also create their corresponding elements below.
    Make the RTF template dyanamic as in Day1 there must 3 columns in EXCEL output and on Day 2, 5 columns. I want to create a Dynamic RTF template which would show all the columns selected in Dynamic XML.I dont know how the RTF will create new XML tags and how it will know where to place it in the report. Means, I can create RTF template on Day 1, by loading XML data for 3 columns and placing 3 XML tags in template. But how will it create and place tags for new columns on Day 2?
    Hope, you got my requirement, its a challenging one. Please let me know how I can implement the required solution using RTF dynamically without any manual intervention.
    Regards,
    Swapnil K.
    Message was edited by: SwapnilK

    Hi All,
    I am able to fulfil above requirement. Now I am stuck at below point. Need your help!
    Is there any way to UPDATE the XML file attached to a Data Definition (XML Publisher > Data Definition) using a standard package or procedure call or may be an API from backend? I am creating an XML dynamically and I want to attach it to its Data Definition programmatically using SQL.
    Please let me know if there is any oracle functionality to do this.
    If not, please let me know the standard directories on application/database server where the XML files attached to Data Definitions are stored.
    For eg, /$APPL_TOP/ar/1.0/sql or something.
    Regards,
    Swapnil K.

  • Error while creating a new layout in a report.

    I am getting this error message:
    Failed to save data.
    Error occurred when creating xml data.
    when I try to save after I create a new layout in my report.
    Is there some common problem with templates that could cause this to happen?
    I'll continue to look around for an answer but if anyone would like to see the template and a sample set of XML data so they can help me figure out what the problem is, that would be swell.
    -Nevermind. The problem seems to have dissapeared. Apparently the appropriate order of operations is
    1: Create new layout.
    2: Upload RTF Template
    Please feel free to delete this post -.-

    i am also getting the same error here and i have followed what you laid out, i am still getting the same error.
    Thanks

  • Creating layouts in ALV report

    Hi all,
    I have created a report when a user creates a layout in the report it should save the variant(layout) and display in the selection-screen with alv_variant and search help.Its working properly.
    But I have to create different layouts like the following:
    Layout with sort and subtotals,
    layout with sort and filter conditions like that.
    Can anybody help me regarding this matter.
    with regards
    chandu

    Sai,
    Here is a little sample program which shows you how to recall saved ALV Layouts. It requires the user to run the report, create their own variants, and this program allwos them to recall it from the selection screen.
    You can create gobal layouts (for your sorts, and totals) which canbe accessed by any user.
    Hope this helps.
    Cheers,
    Pat.
    *& Report  ZPATS_ALV                                                   *
    REPORT  zpats_alv                     .
    TABLES: kna1.
    TYPE-POOLS: kkblo.
    * structures *
    DATA: st_fieldcat TYPE slis_fieldcat_alv.
    DATA: st_variant1 LIKE disvariant.
    DATA: st_variant2 LIKE disvariant.
    * internal tables *
    DATA: BEGIN OF tbl_kna1 OCCURS 0,
      kunnr LIKE kna1-kunnr,
      name1 LIKE kna1-name1,
      stras LIKE kna1-stras,
      telf1 LIKE kna1-telf1,
      ort01 LIKE kna1-ort01,
      pstlz LIKE kna1-pstlz,
      sortl LIKE kna1-sortl,
      ernam LIKE kna1-ernam,
      spras LIKE kna1-spras,
    END OF tbl_kna1.
    DATA: tbl_fieldcat TYPE slis_t_fieldcat_alv.
    * global variables *
    DATA: fieldname(30) TYPE c.
    DATA: variant_exit(1) TYPE c,
          variant_save(1) TYPE c,
          variant_def(1)  TYPE c.
    * Seelction Screen
    PARAMETERS:      p_vari     LIKE disvariant-variant.
    * Initialization Event
    INITIALIZATION.
      PERFORM variant_init USING st_variant1.
      st_variant2 = st_variant1.
      CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
           EXPORTING
                i_save     = 'A'
           CHANGING
                cs_variant = st_variant2
           EXCEPTIONS
                not_found  = 2.
      IF sy-subrc = 0.
        p_vari = st_variant2-variant.
      ENDIF.
    * At Selection Screen On Value Request
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vari.
      PERFORM f4_for_variant.
    * Start of Selection Event
    START-OF-SELECTION.
      SELECT kunnr name1 stras telf1 ort01 pstlz sortl ernam spras
             INTO CORRESPONDING FIELDS OF TABLE tbl_kna1
             FROM kna1.
    * End of Selection Event
    END-OF-SELECTION.
      PERFORM get_fieldcat.
      PERFORM create_report.
    *&      Form  get_fieldcat
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM get_fieldcat.
      PERFORM write_fieldcat USING 'KUNNR' 'X' 1.
      PERFORM write_fieldcat USING 'NAME1' 'X' 2.
      PERFORM write_fieldcat USING 'STRAS' ' ' 3.
      PERFORM write_fieldcat USING 'TELF1' ' ' 4.
      PERFORM write_fieldcat USING 'ORT01' ' ' 5.
      PERFORM write_fieldcat USING 'PSTLZ' ' ' 6.
      PERFORM write_fieldcat USING 'SORTL' ' ' 7.
      PERFORM write_fieldcat USING 'ERNAM' ' ' 8.
      PERFORM write_fieldcat USING 'SPRAS' ' ' 9.
    ENDFORM.                    " get_fieldcat
    *&      Form  write_fieldcat
    *       text
    *      -->P_0060   text
    *      -->P_0061   text
    *      -->P_0062   text
    *      -->P_0063   text
    *      -->P_1      text
    FORM write_fieldcat USING    name
                                 key
                                 pos.
      st_fieldcat-fieldname   = name.
      st_fieldcat-tabname     = 'TBL_KNA1'.
      st_fieldcat-ref_tabname = 'KNA1'.
      st_fieldcat-key         = key.
      st_fieldcat-col_pos     = pos.
      IF name = 'PSTLZ'.
        st_fieldcat-row_pos = '2'.
      ENDIF.
      APPEND st_fieldcat TO tbl_fieldcat.
      CLEAR st_fieldcat.
    ENDFORM.                    " write_fieldcat
    *&      Form  create_report
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM create_report.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
           EXPORTING
                i_interface_check       = ' '
                i_callback_program      = 'ZPATS_ALV'
                i_callback_user_command = 'USER_COMMANDS'
                it_fieldcat             = tbl_fieldcat
                i_default               = 'X'
                i_save                  = 'A'
                is_variant               = st_variant2
           TABLES
                t_outtab                = tbl_kna1
           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.
    ENDFORM.                    " create_report
    *&      Form  USER_COMMANDS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM user_commands USING syst-ucomm LIKE syst-ucomm
                             selfield TYPE slis_selfield.
      CASE syst-ucomm.
        WHEN '&IC1'.
          READ TABLE tbl_kna1 INDEX selfield-tabindex.
          SET PARAMETER ID 'KUN' FIELD tbl_kna1-kunnr.
          CALL TRANSACTION 'XD03' AND SKIP FIRST SCREEN.
        WHEN OTHERS.
      ENDCASE.
    ENDFORM.                    " USER_COMMANDS
    *&      Form  VARIANT_INIT
    FORM variant_init USING g_variant LIKE disvariant.
    * Initialise the Variant Structure
      CLEAR g_variant.
      g_variant-report = sy-repid.
    ENDFORM.                               " VARIANT_INIT
    *&      Form  f4_for_variant
    FORM f4_for_variant.
      CLEAR st_variant1.
      st_variant1-report = sy-repid.
      CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
           EXPORTING
                is_variant = st_variant1
                i_save     = 'A'
           IMPORTING
                e_exit     = variant_exit
                es_variant = st_variant2.
      IF variant_exit = space.
        p_vari = st_variant2-variant.
      ENDIF.
    ENDFORM.                    " f4_for_variant

  • Problem with RTF Report Generation From OAF Page

    Hi,
    I have a requirement where from OAF page, on a button click, a RTF report should be generated. Template has been already defined for the same. If I want to generate report in .xls or pdf, it is working fine but in case of RTF it is showing that "Word cannot start the converter mswrd632" and then onclick of ok, it is displaying some junk data in word doc.
    Below is the code written in PFR-
    else if((outputType != null) && (outputType.equalsIgnoreCase("RTF")))
           outputType = "application/vnd.msword";//"application/vnd.ms-word.document";//"application/vnd.ms-word";
           ext = ".doc";
    if ((outputType != null) && (outputType.equalsIgnoreCase("RTF")))
          TemplateHelper.processTemplate(txn.getAppsContext(), "XXCUST", templateName, txn.getUserLocale().getLanguage(), txn.getUserLocale().getCountry(), in, TemplateHelper.OUTPUT_TYPE_RTF, null, pdfout);
    else
          TemplateHelper.processTemplate(txn.getAppsContext(), "XXCUST", templateName, txn.getUserLocale().getLanguage(), txn.getUserLocale().getCountry(), in, (byte)btype, null, pdfout);
    Please help urgently by sharing your ideas about solving this problem.
    Thanks,
    Annie

    hi Annie,
    Please check the links may be it will help you:
    https://forums.oracle.com/thread/2185528
    https://forums.oracle.com/thread/2545516
    https://forums.oracle.com/thread/2543842
    https://forums.oracle.com/thread/2342141
    if you get the right solution please mention here, it will help others.
    Regards
    Mahesh

  • Layout to a Report run in the background

    For a standard SAP Report which is run in background everyday with a variant . How can I attach a layout ( i created for sort column )to the report ? I want the output of the report to be as per the Layout ...How can i assign the layout to the report ?

    Hi,
    By attaching a layout, if you mean that you want the output spool to be changed as per the new layout, then i dont think that it is possible directly.
    You have to copy the standard program and do the changes. Later on schedule this program in background with the variant.
    Best regards,
    Prashant
    PS : How have u created a layout with sort column. Have you copied the standard program ?

  • Web layout of jsp report

    Hi All:
    Please let me know how can i run web layout of jsp report and publish it as portlet?
    I have successfully deployed my jsp report(web layout),namely my_rpt.jsp, as a J2EE application and when i write URL direlctly in address bar of browser it runs successfully.
    I have also published (as portlet) successfully my_rpt.jsp, with "execute" type "servlet", and it runs paper layout of report.
    But i m unable to run the web layout of this report,with "execute" type "JSP"
    i have provided "Oracle Reports Web Gateway URL for JSP reports " = http://webserver.domain_name:port/
    Please help me out whats the problem and how can i run my jsp report with web layout?.One thing more its not the problem with only my_rpt.jsp
    but other reports also shows the same behaviour.
    Any suggestion/solution would be highly appreciated.
    Regards
    Sam

    Hi Sam,
    When you register a report with Portal, you can either register it to be run via servlet or as JSP. If you would like to run the same report via servlet as well as a JSP, you will have to register it twice with Portal.
    If you want to run the report as JSP, keep these steps in mind:
    1. While registering the report, select "Execute as JSP" in step 2 of the registration process.
    2. When you write the "Oracle Reports File Name", provide the virtual path to the JSP. As an example, suppose you have written the following as "Oracle Reports Web Gateway URL for JSP reports "
    http://webserver.domain_name:port/
    And suppose when you run the JSP report successfully outside of Portal, you use the following URL:
    http://webserver.domain_name:port/mycontext_root/my_rpt.jsp
    In this case, you will have to provide the following as the value for "Oracle Reports File Name"
    mycontext_root/my_rpt.jsp
    Notice that the file name is actually not just the file name, but it is qualified by the virtual path to the JSP report (where you have deployed the report).
    If you keep the above 2 steps in mind, you should be able to run the report as JSP from Portal.
    Navneet.

  • Maintaining formats(layouts) on Crystal report with different database

    I was just needing some help maintaining the layout of a report but using a different database. The databases are very similar for example, a field for the database in use is line1xxxx what I wish to do is keep all the formating & point it line2xxxx database. Where line1 is the original Database & Line2 is the new database I wish to use. Both of these databases reside in the same folder its just that I need identical reports for both Line 1 & Line 2 & am trying to get away from duplicating all the work I did on the Line 1 report.
    Hopefully not too trivial for this forum.
    Thanks in advance.

    If you have same tables in both the databases then open the report and go to menu option in the report database-->set data source location and create new connection in the bottom window and select both existing connection from top window and new from bottom and click on update. Now the report points to the new database, so now use save as option to save the report with some other name so that you can have the old report with old connection and the new one with new connection.
    regards,
    Raghavendra.G

  • Copying user specific layout of standard report to some user ids.

    Hi ,
    I am using user specific layout of standard report in my customizing report for retrieving data from standard report.
    i want to copy this user specific layout of standard report to some end user user ids.
    if any body successfully solved this isseue previously, please help me to sort out this .
    Thanks & regards,
    Hari priya

    hi sadaram,
    Thanks for ur quick reply,
    I am using this user specific layout in my zreport for retrieving data from std report. i don't want this layout to be global for all users. i already created same layout in production also , but i want to copy this user specific layout to some of end users
    ( not all end users) with different user names.
    please suggest any solution to solve this issue..
    regards,
    Hari priya

  • Transport user specific layout of standard report from developer server to

    Hi ,
    I am using user specific layout of standard report in my customizing report for retrieving data from standard report.
    i want to transport this user specific layout of standard report from developer server (say client 400 ) to production server ( say client 100 ).
    Also i want to copy this layout for all end users ( different user names ) in production server.
    I tried to import user specific layout , it is possible only with in   the same server ( say developer server , but different clients , say 400 to 450).
    please help me to sort out this .
    Thanks & regards,
    Hari priya

    hi sadaram,
    Thanks for ur quick reply,
    I am using this user specific layout in my zreport for retrieving data from std report. i don't want this layout to be global for all users. i already created same layout in production also , but i want to copy this user specific layout to some of end users
    ( not all end users) with different user names.
    please suggest any solution to solve this issue..
    regards,
    Hari priya

  • Error -2147190908 when create a RTF report

    Hi ,
    Could someone can tell me why I get error -2147190908 when I create a RTF report by crystal report 9.
    It only happend on Windows 2008 SC X64,language is Simplified Chinese.
    thanks.

    Hi,
       Windows 2008 SC X64 language simplified Chinese is not the supported platform that Crystal Reports 9 suppose to work on.
       This combination hasn't been tested, and Crystal Reports 9 is a pretty old product that has been end of support for quite some time.
       It's quite surprising to see we are using CR9 against Windows 2008. Crystal Reports 2008 start supporting windows 2008 in SP1, you may refer to the platform support document here:
    http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/f05523e4-35c4-2b10-2c89-9fcf64b0dd22?quicklink=index&overridelayout=true
       Maybe we need to reconsider using Crystal Reprots 2008 SP1 or newer version to do the reporting on Windows 2008 OS.
       Hope this help to clarify.
    Best Regards
    Carlos Chen
    Edited by: Carlos Chen on Jan 19, 2010 11:47 AM

  • Protecting Standard Layout Of Any Report

    Hi,
    Is there any way to protect standard layout of any report?

    check this,
    Protecting  layout of a report
    Regards,
    Ravi

  • Help with print layout designer - backorder report

    Hello,
    There is a canned report in the reports section of Sales - A/R called "Backorder". I need to modify the layout on this report so that it shows customer name instead of customer code. Currently it is setup to show "customer code". The field is a variable and 'link to' field shows "F_160".
    How can I determine link to fields the corresponding #?
    Thanks!

    Hi Ali Shah,
    You can do your customization in the back order report like bring the purchase order vendor name and sales order customer and so.on if you want ....
    Put the Database field in the layout and PRESS Shift + Alt on same time and select the field  and selected the purchase order / customer name and map it.
    Now you will get the customer/vendor name in the repetative area... I Did the same and replying to your question here. so no doubt you can bring the information Mr.Ali.
    Best of Luck
    Regards
    PL.Chidambaram

  • Publish web layout of jsp report as portlet

    Hi All:
    Please let me know how can i run web layout of jsp report and publish it as portlet?
    I have successfully deployed my jsp report(web layout),namely my_rpt.jsp, as a J2EE application and when i write URL direlctly in address bar of browser it runs successfully.
    I have also published (as portlet) successfully my_rpt.jsp, with "execute" type "servlet", and it runs paper layout of report.
    But i m unable to run the web layout of this report,with "execute" type "JSP"
    i have provided "Oracle Reports Web Gateway URL for JSP reports " = http://webserver.domain_name:port/
    Please help me out whats the problem and how can i run my jsp report with web layout?.One thing more its not the problem with only my_rpt.jsp
    but other reports also shows the same behaviour.
    Any suggestion/solution would be highly appreciated.
    Regards
    Sam

    Hi sam ,
    Can you please tell me full process of to publish the report made in report builder in a portal (portlets). i am new to portal .
    can u please provide me guidance
    thanx
    anand

  • My Menu - Add a Query Print Layout to the Report Folder

    This is a newb question.  I can easily add a Query or form or most anything else to the Folders under My Menus ... But how can I add a specific Print Query Layout to the Reports folder un My Menu?
    I know it is simple but I can not find the steps in the documentation
    Thanks in advance!!! 
    Dana

    Kapil
    I tried that, but it adds the Query not the QPLD to the menu.
    I had figured that I could go the the QPLD memu and add the Report, but that adds the Query Print Layout Menu with all the reports.
    I feel like I am missing something very obvious here!!!
    Thanks for your quick response!!
    Dana

Maybe you are looking for

  • ABAP Dump due to RFC Function module call in another thread

    Hi, I am facing some problem since yesterday. In one of my executable program I am calling a RFC fm as below mentioned     REPORT ZREPORT. CALL FUNCTION 'Z_XXXXXXXXX'       STARTING NEW TASK L_NAME       DESTINATION IN GROUP 'TASK'       PERFORMING R

  • Store input characters in an array

    I am trying to read characters from Keyboard. And then I have to print a fixed number of characters on each line. Below is the code I used for inputing the characters. But I am trying to put every character into an array. Can I use read(char[] cbuf,

  • Hi, my MacBook keyboard letters are not responding but the numbers are

    Hello, the keyboard letters on my MacBook are not responding but the numbers are. Any help much appreciated

  • HT4906 I photo update????

    So, It appears we need to update to the latest I photo to be able to sync via the the cloud.  We had been able to sync via icloud until this fall.  Not sure when we lost that ability and why.  I am concerned about updating given the bad reviews. Any

  • OnSubmit change currentComponentInstance variable

    Hello, I have a BPM object where there are 2 variables of type string with static list values and a variable of type int. My variables are named question1,question2,correctanswers The variables question1,question2 are filled from user input in an int