AR: Journal Entries Report Convert to Excel using XML

Hi All,
The Client ask to add a column and change the output format to Excel (using XML Publish) to the standard report " AR: Journal Entries Report" whish is Spawned ..
i know the Report calls other report called "Journal Entries Report - Output" using some parameters one of them is "P_LAYOUT_DESCRIPTION" which may be 1 of these values
Print Detail By Account , Print Detail By Category , Print Summary By Account , Print Summary By Category
and each one of them has different layout
Now i want to know
1- the ability of adding a column to this report (SPAWNED)
2- The ability of translating the output to EXCEL,PDF,RTF (using XML Publisher)
I Know the steps of how to convert a report to XML using data definition and template, but the spawned program calls the "Journal Entries Report - Output" by specific parameters and doesn't mention the template name that will be used or output type of the template
as if i'll create 4 templates one for each layout how to let the Main report calls the output report giving it the correct template that should be displayed
Best Regards,
Amir

Sure i used it , and i created many templates for it with different layouts ,
But the user needs this report specially :(

Similar Messages

  • Add Journal Entries Report - Output to Request Set

    Hi All,
    I'm trying to create a Request Set for the receivable application
    The request set should contains two Programs
    1- AR: Journal Entries Report
    2- Journal Entries Report - Output
    I defined the request set and when i start adding the programs , i selected the first program AR: Journal Entries Report from the list and gave it sequence 10
    when i tried to add the other Report "Journal Entries Report - output" i didn't find it in the list and i'm not able to add it
    1-Do any one know why this program doesn't appeat in the list ?
    2- If i created a copy of this program and gave it other name , this program in the definition doesn't have any parameters although a parameters must be passed to it from the first request AR : Journal Entries report. how to pass parameters from the first program to it
    Best Regards

    nuppara,
    I need to add this report to the request set as it's a workaround to get the output of the AR: Journal Entries Report as Excel - I created a post asking this question also , u already replied to it.
    My workaround is like this , the AR: journal Entries Report automatically sumbit the program "Journal Entries Report - Output" based on the parameters that the user select
    Print Detail By Account , Print Detail By Category , Print Summary By Account , Print Summary By Category
    if i want to to make this report to be an Excel output so i'll have to create 4 templates but won't be able to assign the correct template to it , as the main request AR: journal Entries report calls it automaticcaly, and may run it 4 times
    so my workaround was like this
    i'll create 4 request sets ,
    the first RS will be for example AR: journal Entries Detail By Account, i'll add to it 2 programs the AR: journal Entries Report , and the Journal Entry Report - output -OR a program copied from it with the same design and i'll add parameters to it-
    i'll force the parameters of the AR: Journal Entries in this request set to be Print Detail By Account = 'Y' and the other options = 'N' so the report will call Journal Entry Report - output with the parmeter layout= 'Print Detail By Account ' will be displayed as text ... when it finish the request set will run the Journal Entry Report - output -OR the copied program - that i'll assign the correct template and data definition for it, so it'll run and display the output as Excel .
    I need to try this solution, but i was not able to add the journal Entries Report - Output to the request set :( and i'm not sure if i'll create a copy from it will be added or not,
    and also i'm not sure if this workaround may work , as i know when the AR: Journal Entires report complete it delete the data from the temp table so the 2nd request may work on an empty table , or it'll have a request_id different from the request_id of the temp table so it won't select any row
    all of this is just a brain storming to find the solution. :( i'm thinking by a loud voice here :-D
    i know it may not work but at least to try it i need to add this report to the request set.

  • Journal Entry report

    SAP experts,
    I need to find a JE report with the following columns in particular for the client. I know I can go to FB03, S_ALR_87012286, S_ALR_87012287 and S_ALR_87012289, but I am not a able to get a simple reports with these columns.
    Company code, Document no.,Posting date, total Amount, header text, doc type and reference.
    I can get the most from the above reports but cannot have the total amount for the journal entry.
    Please help, its urgent.
    thanks!

    Hi,
    Could you please let us know where to find the .opc file (ARRGTA) and with which editor to open it.
    We want to see the code for ARRGTA spwaned program.

  • Matrix Report converting to Excel

    Hi,
    I have a matrix with group report, when i tried to convert in excel data comes in tabular format,
    i need the data in excel similar to report format
    Please help
    Regards,
    NHM

    You can generate excel file by setting SYSTEM PARAMETER values as below
    DESFORMAT - DELIMITED
    DESTYPE -FILE
    DESNAME -File Name.XLS
    Although this is not a pure Excel file (Its only a tab delimited file) but you can open this with MSExcel or Open office Calc.
    Regards
    Ahamed Rafeeque Cherkala.

  • File is corrupted error while creating excel using xml

      Hi have created one excel file using XML code and sent it to mail as attachement. But when i open it, it displays error  message - file is corrupted and cannot be opened.
    below is my code - please review and tell what is wrong in it ASAP :
    * Creating a ixml Factory
       l_ixml = cl_ixml=>create( ).
    * Creating the DOM Object Model
       l_document = l_ixml->create_document( ).
    * Create Root Node 'Workbook'
       l_element_root  = l_document->create_simple_element( name = 'Workbook'  parent = l_document ).
       l_element_root->set_attribute( name = 'xmlns'  value = 'urn:schemas-microsoft-com:office:spreadsheet' ).
       ns_attribute = l_document->create_namespace_decl( name = 'ss'  prefix = 'xmlns'  uri = 'urn:schemas-microsoft-com:office:spreadsheet' ).
       l_element_root->set_attribute_node( ns_attribute ).
       ns_attribute = l_document->create_namespace_decl( name = 'x'  prefix = 'xmlns'  uri = 'urn:schemas-microsoft-com:office:excel' ).
       l_element_root->set_attribute_node( ns_attribute ).
    * Create node for document properties.
       r_element_properties = l_document->create_simple_element( name = 'TEST_REPORT'  parent = l_element_root ).
       l_value = sy-uname.
       l_document->create_simple_element( name = 'Author'  value = l_value  parent = r_element_properties  ).
    * Styles
       r_styles = l_document->create_simple_element( name = 'Styles'  parent = l_element_root  ).
    * Style for Header
       r_style  = l_document->create_simple_element( name = 'Style'   parent = r_styles  ).
       r_style->set_attribute_ns( name = 'ID'  prefix = 'ss'  value = 'Header' ).
       r_format  = l_document->create_simple_element( name = 'Font'  parent = r_style  ).
       r_format->set_attribute_ns( name = 'Bold'  prefix = 'ss'  value = '1' ).
       r_format  = l_document->create_simple_element( name = 'Interior' parent = r_style  ).
       r_format->set_attribute_ns( name = 'Color'   prefix = 'ss'  value = '#92D050' ).
       r_format->set_attribute_ns( name = 'Pattern' prefix = 'ss'  value = 'Solid' ).
       r_format  = l_document->create_simple_element( name = 'Alignment'  parent = r_style  ).
       r_format->set_attribute_ns( name = 'Vertical'  prefix = 'ss'  value = 'Center' ).
       r_format->set_attribute_ns( name = 'WrapText'  prefix = 'ss'  value = '1' ).
       r_border  = l_document->create_simple_element( name = 'Borders'  parent = r_style ).
       r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
       r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Bottom' ).
       r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
       r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
       r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
       r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Left' ).
       r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
       r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
       r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
       r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Top' ).
       r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
       r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
       r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
       r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Right' ).
       r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
       r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
    * Style for Data
       r_style1  = l_document->create_simple_element( name = 'Style'   parent = r_styles  ).
       r_style1->set_attribute_ns( name = 'ID'  prefix = 'ss'  value = 'Data' ).
       r_border  = l_document->create_simple_element( name = 'Borders'  parent = r_style1 ).
       r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
       r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Bottom' ).
       r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
       r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
       r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
       r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Left' ).
       r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
       r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
       r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
       r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Top' ).
       r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
       r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
       r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
       r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Right' ).
       r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
       r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
    * Worksheet
       r_worksheet = l_document->create_simple_element( name = 'Worksheet'  parent = l_element_root ).
       r_worksheet->set_attribute_ns( name = 'Name'  prefix = 'ss'  value = 'Sheet1' ).
    *  r_worksheet->set_attribute_ns( name = 'Protected'  prefix = 'ss'  value = '1' ).    " WORKING
    * Table
       r_table = l_document->create_simple_element( name = 'Table'  parent = r_worksheet ).
       r_table->set_attribute_ns( name = 'FullColumns'  prefix = 'x'  value = '1' ).
       r_table->set_attribute_ns( name = 'FullRows'     prefix = 'x'  value = '1' ).
    * Column Formatting
       r_column = l_document->create_simple_element( name = 'Column'  parent = r_table ).
       r_column->set_attribute_ns( name = 'Width'  prefix = 'ss'  value = '40' ).
       r_column = l_document->create_simple_element( name = 'Column'  parent = r_table ).
       r_column->set_attribute_ns( name = 'Width'  prefix = 'ss'  value = '90' ).
       r_column = l_document->create_simple_element( name = 'Column'  parent = r_table ).
       r_column->set_attribute_ns( name = 'Width'  prefix = 'ss'  value = '140' ).
       r_column = l_document->create_simple_element( name = 'Column'  parent = r_table ).
       r_column->set_attribute_ns( name = 'Width'  prefix = 'ss'  value = '150' ).
       r_column = l_document->create_simple_element( name = 'Column'  parent = r_table ).
       r_column->set_attribute_ns( name = 'Width'  prefix = 'ss'  value = '90' ).
       r_column = l_document->create_simple_element( name = 'Column'  parent = r_table ).
       r_column->set_attribute_ns( name = 'Width'  prefix = 'ss'  value = '90' ).
       r_column = l_document->create_simple_element( name = 'Column'  parent = r_table ).
       r_column->set_attribute_ns( name = 'Width'  prefix = 'ss'  value = '90' ).
       r_column = l_document->create_simple_element( name = 'Column'  parent = r_table ).
       r_column->set_attribute_ns( name = 'Width'  prefix = 'ss'  value = '90' ).
       r_column = l_document->create_simple_element( name = 'Column'  parent = r_table ).
       r_column->set_attribute_ns( name = 'Width'  prefix = 'ss'  value = '90' ).
    * Blank Row
       r_row = l_document->create_simple_element( name = 'Row'  parent = r_table ).
    * Column Headers Row
       r_row = l_document->create_simple_element( name = 'Row'  parent = r_table ).
       r_row->set_attribute_ns( name = 'AutoFitHeight'  prefix = 'ss'  value = '1' ).
    * RFQ No.
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Header' ).
       r_data = l_document->create_simple_element( name = 'Data'  value = 'RFQ No.'  parent = r_cell ).
       r_data->set_attribute_ns( name = 'Type'  prefix = 'ss' value = 'String' ).
    * RFQ Line Item No
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Header' ).
       r_data = l_document->create_simple_element( name = 'Data'  value = 'RFQ Line Item No.'  parent = r_cell ).
       r_data->set_attribute_ns( name = 'Type'  prefix = 'ss' value = 'String' ).
    * Material
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Header' ).
       r_data = l_document->create_simple_element( name = 'Data'  value = 'Material'  parent = r_cell ).
       r_data->set_attribute_ns( name = 'Type'  prefix = 'ss' value = 'String' ).
    * Quantity
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Header' ).
       r_data = l_document->create_simple_element( name = 'Data'  value = 'Quantity'  parent = r_cell ).
       r_data->set_attribute_ns( name = 'Type'  prefix = 'ss' value = 'String' ).
    *  Order UNIT
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Header' ).
       r_data = l_document->create_simple_element( name = 'Data'  value = 'Order Unit'  parent = r_cell ).
       r_data->set_attribute_ns( name = 'Type'  prefix = 'ss' value = 'String' ).
    *  Delivery Date
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Header' ).
       r_data = l_document->create_simple_element( name = 'Data'  value = 'Delivery Date'  parent = r_cell ).
       r_data->set_attribute_ns( name = 'Type'  prefix = 'ss' value = 'String' ).
    *  RFQ Creation Date
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Header' ).
       r_data = l_document->create_simple_element( name = 'Data'  value = 'RFQ Creation Date'  parent = r_cell ).
       r_data->set_attribute_ns( name = 'Type'  prefix = 'ss' value = 'String' ).
    *  RFQ Deadline Date
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Header' ).
       r_data = l_document->create_simple_element( name = 'Data'  value = 'RFQ Deadline Date'  parent = r_cell ).
       r_data->set_attribute_ns( name = 'Type'  prefix = 'ss' value = 'String' ).
    * Price
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Header' ).
       r_data = l_document->create_simple_element( name = 'Data'  value = 'Net Price'  parent = r_cell ).
       r_data->set_attribute_ns( name = 'Type'  prefix = 'ss' value = 'String' ).
    ** Login
    *  r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
    *  r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Header' ).
    *  CONCATENATE 'Login - ' lv_date+6(2) '/' lv_date+4(2) '/' lv_date+0(4) INTO l_value.
    *  r_data = l_document->create_simple_element( name = 'Data'  value = l_value  parent = r_cell ).
    *  r_data->set_attribute_ns( name = 'Type'  prefix = 'ss' value = 'String' ).
    * Blank Row after Column Headers
       r_row = l_document->create_simple_element( name = 'Row'  parent = r_table ).
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
    * Data Table
       LOOP AT it_final1 INTO wa_final1.
         CLEAR l_value.
         r_row = l_document->create_simple_element( name = 'Row'  parent = r_table ).
    * RFQ No.
         r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
         r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
         CLEAR l_value.
         l_value = wa_final1-ebeln .
    *    CONDENSE l_value NO-GAPS.
         r_data = l_document->create_simple_element( name = 'Data'  value = l_value  parent = r_cell ).           " Data
         r_data->set_attribute_ns( name = 'Type'  prefix = 'ss'  value = 'String' ).                               " Cell format
    * Line Item No
         CLEAR l_value.
         r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
         r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
         l_value = wa_final1-ebelp.
         r_data = l_document->create_simple_element( name = 'Data'  value = l_value   parent = r_cell ).           " Data
         r_data->set_attribute_ns( name = 'Type'  prefix = 'ss'  value = 'Number' ).                               " Cell format
    * Material
         CLEAR l_value.
         r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
         r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
         l_value = wa_final1-txz01.
         r_data = l_document->create_simple_element( name = 'Data'  value = l_value   parent = r_cell ).           " Data
         r_data->set_attribute_ns( name = 'Type'  prefix = 'ss'  value = 'String' ).                               " Cell format
    * RFQ QTY
         CLEAR l_value.
         r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
         r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
         l_value = wa_final1-ktmng.
         r_data = l_document->create_simple_element( name = 'Data'  value = l_value   parent = r_cell ).           " Data
         r_data->set_attribute_ns( name = 'Type'  prefix = 'ss'  value = 'Number' ).                               " Cell format
    * UNIT
         CLEAR l_value.
         r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
         r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
         l_value = wa_final1-meins.
         r_data = l_document->create_simple_element( name = 'Data'  value = l_value   parent = r_cell

    How to make a particular column non editable?
    Make your style protected and pass that style name to your required column while passing data.
    for example:
    Find below the code for protection of a style.
    Last two lines are very important.
    * Style for Headert
       r_style  = l_document->create_simple_element( name = 'Style'   parent = r_styles  ).
       r_style->set_attribute_ns( name = 'ID'  prefix = 'ss'  value = 'Headert' ).
       r_format  = l_document->create_simple_element( name = 'Font'  parent = r_style  ).
       r_format->set_attribute_ns( name = 'Bold'  prefix = 'ss'  value = '1' ).
       r_format  = l_document->create_simple_element( name = 'Interior' parent = r_style  ).
       r_format->set_attribute_ns( name = 'Color'   prefix = 'ss'  value = '#B2FF64' ).      
       r_format->set_attribute_ns( name = 'Pattern' prefix = 'ss'  value = 'Solid' ).
       r_format  = l_document->create_simple_element( name = 'Alignment'  parent = r_style  ).
       r_format->set_attribute_ns( name = 'Vertical'  prefix = 'ss'  value = 'Bottom' ).
       r_format->set_attribute_ns( name = 'WrapText'  prefix = 'ss'  value = '1' ).
       r_border  = l_document->create_simple_element( name = 'Borders'  parent = r_style ).
       r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
       r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Bottom' ).
       r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
       r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
       r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
       r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Left' ).
       r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
       r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
       r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
       r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Top' ).
       r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
       r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
       r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
       r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Right' ).
       r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
       r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
       r_format  = l_document->create_simple_element( name = 'Protection'  parent = r_style  ).
       r_format->set_attribute_ns( name = 'Protected'  prefix = 'ss'  value = '1' ).

  • Financial Reports import into excel using Smart View - error

    All,
    I have encountered an error message when trying to use R&A Import.
    The message is
    Oracle Hyperion Smart View for Office, Fusion Edition
    "Excel cannot insert the sheets into the destination workbook, because it contains fewer rows and columns than the source workbook. To move or copy the data to the destination workbook, you can select the data, and then use the Copy and Paste commands to insert it into the sheets of another workbook."
    This only affects some users and then they are able to reimport the reports no problem in the same workbook after the error is posted.
    Does anybody know how to fix this issue?
    We are using Excel 2007, Oracle Hyperion Smart View 11.1.13, Financial Reporting Studio, Hyperion Planning 11.1.13.

    Answer appears to be users were using Excel 2007 in compatibility mode. Switching from compatibility mode to saving in Excel 2007 removed the errors.

  • Exporting data view Report in reporting services to excel using an image click

    We have a report created in reporting services and on the initial page we have a clickable image that opens excel and exports the date to our spreadsheet. This doesn't work when trying it from outside the network. I there a way to get this to work externally.
    Thanks

    Hi Dan,
    If I understand correctly, you want to export to excel when you click an image in Business Intelligence Development Studio (BIDS) or Report Builder. As far as I know, it is not support in SSRS.
    In SSRS, we can add go to URL action to add parameter in the URL to work around the issue. As you’re mentioned above, we need deploy the report to report server to achieve the effect.
    Reference:
    http://social.msdn.microsoft.com/Forums/en-US/e4d99b03-e82d-4643-87dc-920bcb5644a3/how-to-export-ssrs-report-into-excel-format-using-query-string?forum=sqlreportingservices
    Since the issue is by default, I recommend you that submit this suggestion at
    https://connect.microsoft.com/SQLServer/. If the suggestion mentioned by customers for many times, the product team may consider to add the feature in the next SQL Server version. Your feedback is valuable for us to improve our products and increase the
    level of service provided.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Need to create a report having 40 columns using XML Publisher

    Hi XML Report Gurus,
    I have a weird requirement. I need to create a XML Publisher Report having 40 columns. This report would be a CSV Report.
    How can i create a RTF(Template) in MS-Word having 40 columns ?? I just cannot accomodate the columns, they start wrapping down.
    Can i create a template in Excel and map the data columns to the Excel columns?
    I can create a Oracle PL/SQL package and generate the output, but I want to know if I can achieve the same thing using BI Reports.
    Appreciate your feedback
    Kiran Ramachandra
    [email protected] __.____._

    What I did, I had the column titles in the XML file as data, like
    <COL01>Employee Name</COL01>
    <COL02>Employee Number</COL02>
    etc.
    I did it this way because columns were variable, and up to the user to pick. If you have fixed set of columns, you still can include their names in the XML file, this way you will be able to display then as fields on the template.

  • How to run report from context menu using XML Extensions?

    I have found an example how to run SQL command from context menu:
    <items>
    <folder type="TABLE">
    <name>UserDefined ContextMenus</name>
    <item TYPE="TABLE" reloadparent="true">
    <title>Create SYNONYM</title>
    <prompt type="check">
    <label>PUBLIC</label>
    <value>PUBLIC</value>
    </prompt>
    <prompt>
    <label>NEW SYNONYM NAME</label>
    </prompt>
    <sql>
    <![CDATA[CREATE #0# SYNONYM  #1# for "#OBJECT_OWNER#"."#OBJECT_NAME#"]]>
    </sql>
    <help>
    This action create a SYNONYM (optionally public) for the selected table.</help>
    <confirmation>
    <title>Confirmation</title>
    <prompt>SYNONYM "#1#" for "#OBJECT_NAME#" has been created.</prompt>
    </confirmation>
    </item>
    </folder>
    </items>
    </prompt>
    But instead of executing SQL command I need to show result page of report based on SELECT statement.

    Hi dz_r-
    Not sure exactly what you mean by "result page of report", but extensive documentation on the xml schema defining context menu actions is available at the schema location.
    &lt;items xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://xmlns.oracle.com/sqldeveloper/3_1/dialogs"
      xmlns="http://xmlns.oracle.com/sqldeveloper/3_1/dialogs">
        &lt;!-- your declarations here -->
    &lt;/items>
    Brian Jeffries
    SQL Developer Team

  • Journal entries in Data Transfer workbench

    Hi all
    When I try to Upload journal entries with debits and credits using data transfer workbench I get an error says Unbalanced transaction.
    I tried lot of things to change but still no go.
    can someone guide me with this data migration
    thanks
    vinodh kumar

    paste it in note pad and save this sample and open with excel
    RecordKey     LineNum     AccountCode     AdditionalReference     BaseSum     ContraAccount     CostingCode     Credit     Debit     DueDate     FCCredit     FCCurrency     FCDebit     GrossValue     LineMemo     ProfitCode     ProjectCode     Reference1     Reference2     ReferenceDate1     ReferenceDate2     ShortName     SystemBaseAmount     SystemVatAmount     TaxDate     TaxGroup     VatAmount     VatDate     VatLine
    RecordKey     LineNum     AccountCode     AdditionalReference     BaseSum     ContraAccount     CostingCode     Credit     Debit     DueDate     FCCredit     FCCurrency     FCDebit     GrossValue     LineMemo     ProfitCode     ProjectCode     Reference1     Reference2     ReferenceDate1     ReferenceDate2     ShortName     SystemBaseAmount     SystemVatAmount     TaxDate     TaxGroup     VatAmount     VatDate     VatLine
    1     1     110001                              28059     30.01.2009                                        abc pte ltd     abc pte ltd     31.01.2009          110001               30.01.2009                    
    2     2     110002                              50000     23.01.2009                                        abc pte ltd     abc pte ltd     31.01.2009          110002               23.01.2009                    
    3     3     261001                         28059          23.01.2009                                        abc pte ltd     abc pte ltd     31.01.2009          261001               23.01.2009                    
    4     4     261001                         50000          22.01.2009                                        abc pte ltd     abc pte ltd     31.01.2009          261001               22.01.2009
    Edited by: Vinod Kumar on Jul 28, 2009 6:56 AM

  • Uploading of Journal Entries to GL

    Hi guys,
       I am a new user of SAP, Right now, we are re-encoding our journal entries coming from different excel files to GL. Is there an easy way that we can do away with manual encoding to the SAP?
       I'm seeking your help with regards to this matter. Thank you in advance.
    Regards,
    Rudy

    HI
    There are 3 ways to upload Customer balances with some precausions as well..
    the ways will be a. BDC b. LSMW c. scat tool
    the precautions will be:
    1. If it is addition to existing balances then take the existing balances from trial balaces reports.
    2. consider the new balances with old balances then record (SHDB) the FB01 transaction for BDC if ur going through BDC program.
    3. If it is new balances then create one new document type with number range concept.
    4. After upload of the balances then tally the balances with existing ones , and disconnect the link between the document type with number ranges because with the same document type no one elce should post with the same document type.
    5. Consider the correct posting keys while uploading the balances
    Let me know for any assistance.
    Regards,
    Suresh

  • Cannot add journal entries programmatically

    Hi everyone
    I'm not able to insert Journal entries in the database.
    I'm using SAP Business One DI API Version 2007 and a copy of the database SBODemoUS. The code I'm using is inspired by the example in the SDK Help.
    I'm trying to add journal entries to the company database. When I execute the code, I get a System Message:
    [JDT1.Account][line:1],'Tax account has not been defined for the selected tax code', even though I'm not using a tax code. But when I assign a value to the property .TaxCode, I get a System Message: You can edit VAT fields only in Automatic VAT mode [JDT1.TaxCode][line: 1].
    I'm able to create journal entries manually in SAP B1 using the same information that I'm using in my code. But I cannot create journal entries programmatically.
    Here is the code that I'm using:
       Private Sub ImportJournalEntry()
          Dim rt As Long
          Dim errCode As Long
          Dim errMsg As String
          oCompany.Server = "PERSONNE-6D3DBE"
          oCompany.CompanyDB = "MYSBODEMO"
          oCompany.UserName = "manager"
          oCompany.Password = "manager"
          oCompany.language = 3
          oCompany.UseTrusted = False
          oCompany.DbServerType = BoDataServerTypes.dst_MSSQL2005
          oCompany.DbPassword = "sapwd"
          oCompany.DbUserName = "sa"
          rt = oCompany.Connect()
          If rt <> 0 Then
             oCompany.GetLastError(errCode, errMsg)
          Else
             Dim entries As SAPbobsCOM.JournalEntries =               DirectCast(Me.oCompany.GetBusinessObject(BoObjectTypes.oJournalEntries), JournalEntries)
             Dim str2 As String
             Try
                entries.TaxDate = DateTime.Now.ToShortDateString
                entries.StornoDate = DateTime.Now.ToShortDateString
                entries.ReferenceDate = DateTime.Now.ToShortDateString
                'First line
                'entries.Lines.TaxCode = "CA"
                entries.Lines.AccountCode = "112200000100101"
                entries.Lines.ShortName = "Cash at Bank "
                entries.Lines.Debit = 0
                entries.Lines.Credit = 125
                entries.Lines.Add() 'Add
                'Second line
             'entries.Lines.TaxCode = "CA"
                entries.Lines.AccountCode = "611000000100101"
                entries.Lines.ShortName = "Travel Expense"
                entries.Lines.Debit = 125
                entries.Lines.Credit = 0
                entries.Lines.Add() 'Add
                If entries.Add <> 0 Then
                   Dim num As Integer
                   Me.oCompany.GetLastError(num, str2)
                   SBO_Application.MessageBox(str2)
                Else
                   SBO_Application.MessageBox("Import was successful!")
                End If
                oCompany.Disconnect()
             Catch exception1 As Exception
                SBO_Application.MessageBox(exception1.Message.ToString & _
                      "   Source = " & exception1.Source.ToString & _
                      "    TargetSite = " & exception1.TargetSite.ToString & _
                      "    StackTrace = " & exception1.StackTrace.ToString)
                oCompany.Disconnect()
             End Try
          End If
       End Sub
    Thanks for any help

    Hello Vitor
    Thanks, I got the code to work. You were right about debit or credit, not both. I also removed the tax code.
    But the main reason I think it didn't work is because the account code I was using was incorrect. Since the company is using segmentation for their account code, we are suppose to use the account key, not the account code. In order to get the account key I found this function:
    Private Function GetAccountKey(ByVal v_sAccountCode As String) As String
          Dim oSBObob As SAPbobsCOM.SBObob
          Dim oRecordSet As SAPbobsCOM.Recordset
          Dim oChartOfAccounts As SAPbobsCOM.ChartOfAccounts
          Dim sStr As String
          '// Get an initialized SBObob object
          oSBObob = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoBridge)
          '// Get an initialized Recordset object
          oRecordSet = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
          '// Get an initialized oChartOfAccounts object
          oChartOfAccounts = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oChartOfAccounts)
          '// Execute the SBObob GetObjectKeyBySingleValue method
          oRecordSet = oSBObob.GetObjectKeyBySingleValue(SAPbobsCOM.BoObjectTypes.oChartOfAccounts, "FormatCode", v_sAccountCode, SAPbobsCOM.BoQueryConditions.bqc_Equal)
          sStr = oRecordSet.Fields.Item(0).Value
          GetAccountKey = sStr
       End Function
    So the final code looks like this. Although I don't pretend to have perfect code, I'm able to add journal entries.
    Private Sub ImportTitan2()
          Dim rt As Long
          Dim errCode As Long
          Dim errMsg As String
          Dim sAccountKey As String
          oCompany.Server = "PERSONNE-6D3DBE"
          oCompany.CompanyDB = "MYSBODEMO"
          oCompany.UserName = "manager"
          oCompany.Password = "manager"
          oCompany.language = 3
          oCompany.UseTrusted = False
          oCompany.DbServerType = BoDataServerTypes.dst_MSSQL2005
          oCompany.DbPassword = "sapwd"
          oCompany.DbUserName = "sa"
          rt = oCompany.Connect()
          If rt <> 0 Then
             oCompany.GetLastError(errCode, errMsg)
          Else
             Dim entries As SAPbobsCOM.JournalEntries = DirectCast(Me.oCompany.GetBusinessObject(BoObjectTypes.oJournalEntries), JournalEntries)
             Dim str2 As String
             Try
                entries.TaxDate = DateTime.Now.ToShortDateString
                entries.StornoDate = DateTime.Now.ToShortDateString
                entries.ReferenceDate = DateTime.Now.ToShortDateString
                'First line
                entries.Lines.SetCurrentLine(0)
                sAccountKey = GetAccountKey("112200000100101")
                entries.Lines.AccountCode = sAccountKey    'Account code
                entries.Lines.ShortName = sAccountKey
                entries.Lines.Credit = 300
                entries.Lines.Add() 'Add
                'Second line
                entries.Lines.SetCurrentLine(1)
                sAccountKey = GetAccountKey("611000000100101")
                entries.Lines.AccountCode = sAccountKey   'Account code
                entries.Lines.ShortName = sAccountKey
                entries.Lines.Debit = 300
                entries.Lines.Add() 'Add
                If entries.Add <> 0 Then
                   Dim num As Integer
                   Me.oCompany.GetLastError(num, str2)
                   SBO_Application.MessageBox(str2)
                Else
                   SBO_Application.MessageBox("Import was successful!")
                End If
                oCompany.Disconnect()
             Catch exception1 As Exception
                SBO_Application.MessageBox(exception1.Message.ToString & _
                      "   Source = " & exception1.Source.ToString & _
                      "    TargetSite = " & exception1.TargetSite.ToString & _
                      "    StackTrace = " & exception1.StackTrace.ToString)
                oCompany.Disconnect()
             End Try
          End If
       End Sub
    Thank you for your help. You put me in the right direction.

  • Crystal Report generation using XML

    I have some reports that were created using XML and as I recall when I created them using CR v. 9 I used a connections called ADO (Xml) or something like that. On one of my machines I have CR XI and the only option available is XML and when I add a field from this connection it inserts: "{NewDataSet\TableName.FieldName}" however, previously when I used the ADO XML connections it only inserted {TableName.FieldName}. In the version 9 CR i was using the professsional version and in the version 11 CR it is still the professional version but I can't seem to create an XML connector that doesn't prefix the table/field with "NewDataSet". My request is two fold, first, can you please direct me to some articles that I can read to better understand how to generate  CR from XML? My project is to generate the XML and then set the xml during runtime into the report using SetDataSource and then display the report using the CR viewing that I package and redist with my app. Secondly, why does the ADO XML connector not available in CR XI professional version and is there any way to get the CR v. 9 behaviour back?
    Thanks,
    Marcus

    Hi, Markus
    If you are planning to run reports from a .NET application, you need to have the Developer edition, not the professional.
    The ADO.NET Driver is not installed by default. Go into Control Panel - Add / Remove programs, and chose Crystal Reports, and change. You can expand the Database drivers, and you should see the ADO.NET driver there. Note: you need to have the .NET framework installed for this to work.
    Regards,
    Jonathan

  • What is the max Data size that can be converted to PDF using CR 2008 SP5

    Hi All,
    When I supply more data to convert to PDF using XML data source I get exception on converting the stream
    Exception :
    Error generating PDF. Exception:Object reference not set to an instance of an object.
       at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType)
    But it works with smaller size like 50-60K of data.
    I searched about the exception and the results were mentioning about wrong placement of runtimes.
    But my doubt is if the problem is with runtimes then why it works with less data?
    Thanks.

    Version of CR (be precise...)?
    Version of .NET?
    OS?
    Is this on your dev computer or after you deploy the app?
    Add code used in the app please.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Creating a text output using XML Publisher

    Hi All,
    Recently i created a  report for my client using XMl Publisher. The Data Definition was XML and the template type was RTF and i got the output in a PDF format. All was going smoothly until the client decided at the last moment that they wanted to print this in a dot matrix printer!
    I've read some articles on XSL- Text layout templates. But i can't get my head around it (I'm Functio-Technical as opposed to Techno-Functional )
    How do i convert my RTF template to give me a text output?
    Miranga

    From what I know, you will have to create another template based on "XSL" layout or eText layout (both of them require different coding methods). The RTF can not create text outputs even in 11g. This is based on my experience so far. You can create RTF output (available by default) based on the current layout that you use for PDF and see if it can be printed in a dot matrix printer though.

Maybe you are looking for

  • Mac Pro 2.66 intel won't start up.

    get  to the blue desktop and then stops.  took out the HD and reset logic board and removed memory one at a time an still stops at the blue screen with only my startup DVD.

  • Window not remembering the display it was on

    Hi, Dual Displays and Mavericks: Before Maverick I would have certain applications like mail and the finder open on one monitor and other apps open on the other. Now with mavericks they do not remember which monitor they opened last on and stick ther

  • Sound quality for recording concerts

    I love music and visit a lot of concerts. When I bought my E63 I noticed that while on my previous phone the sound got all distorted when I tried to record a loud live performance, it sounded pretty good on the E63, even if the concert got loud. Sinc

  • [SOLVED] Gnome 3 is completely messed graphically

    Hello guys I already searched for a similar problem in the forum but I was not able to find any. Here is the context : my workstation is completely up to date and is installed with Gnome 3 and systemd (no wild initscripts in legacy mode). My configur

  • Help needed on how to move caption

    when I select print with the caption option the caption is about 5cms below bottom of picture so doesn't print. how do I reposition the caption into the margin or even on the photo please? i Am printing to postcard size. The picture looks fine in pre