XML BI Publisher Output in 2 sheets Excel
Hi ,
I want XML BI Publisher output in 2 sheets Excel. first sheet contains Report details and next sheet contains Report output. Could we please help me in this?. I am using BI Publisher 11.1.1.0 and Oracle apps is R12.1.
Thanks
>
I am using Oracle Apps 11i.
>
for apps questions plz use Category: E-Business Suite - https://forums.oracle.com/forums/category.jspa?categoryID=3
>
I have to create one report in Oracle Apps in which the report output should be in Excel Format and in that excel 2 sheet should be generated.
One sheet is having data from one module and one sheet is having a data from other module.
>
look at 830960's link
also use Forum: BI Publisher - BI Publisher
>
Please suggest me how can i write a code like this and how can i create a concurrent?
>
- create your report and use it as data source for result report (excel)
- create excel template(for r12) or ,for example, xsl tempalte for 11i
- create concurrent and executable, for concurrent program set output as xml
>
What should be the value of output format in the concurrent program ?
>
xml
as another approach - convert your rdf report to xml publisher report
Similar Messages
-
XML Publisher report with multi sheet excel report
HI Guys,
I need help from you all to develop the report in xml publisher where the output should have multiple sheets in excel file can you pls guide me how to do thisplz see http://docs.oracle.com/cd/E28271_01/bi.1111/e22254/create_excel_tmpl.htm#ext_multsheets
-
XML publisher output report in excel format
Hi
I have created reports using XML Publisher, the default output preview format was PDF. While submitting the program, in the layout, I changed the format to EXCEL,it give me output in Excel. Now I need to send the output report as an attachment through e-mail.For this I have used a UNIX shell script to send the mail using uuencode and mailx commands.
I have fetched the name of the report from table using the following command.
SELECT file_name
FROM FND_CONC_REQ_OUTPUTS
WHERE FCR.CONCURRENT_REQUEST_ID = p_req_id;
The name of the report is : XXBG_PO_IFACE_SO_RPT_8556321_1.EXCEL
Following is the command to send the e-mail.
(cat $MAIL_BODY; uuencode XXBG_PO_IFACE_SO_RPT_8556321_1.EXCEL XXBG_PO_RPT.xls) | mailx -m -s "$MAIL_SUBJECT" $mail_id
I am receiving the mail with the attachement, but when i am trying to open the attachement it is throwing an error and nothing is displayed in the excel sheet.
Note: When I am sending the mail,in similar way, with 'PDF' attachement it is perfectly fine and the attachement is opening correctly.
Please help me.
Thanks in advance,
Madhu kumarHi schavali,
The error message is as follows
Microsoft Office Excel cannot access the file "https://xxxxxxx/Inbox/XXBG_PO_RPT.xls.
There are several possible reasons:
--The file path doesnot exist.
--The file is being used by another program.
--The workbook you are trying to save has the same name as a currently open workbook.
After throwing the error, it open s a balck excel sheet.
Hi hsawwan,
I have gone through the thread. I am able to see the report when I click the output tab on the concurrent request screen.
But the problem is, when I am sending the output report as an excel attachment then I am facing the problem.
There might be some problem with uuenocde or mailx command.
Thanks
Madhu Kumar. -
'XML Report Publisher' not producing Excel output
when i run a report from SRS window, selecting output format as EXCEL, output comes out great in EXCEL format(no problem here)
but when I run ‘XML Report Publisher’ and select the Request ID of the above report and give EXCEL as output format, output is coming in HTML.???
If I select PDF – comes out properly as PDF
If I select HTML – comes out properly as HTML
If I select RTF – comes out properly as RTF
But only If I select EXCEL – comes out properly as HTML
Does any one know what is this???
I badly need the EXCEL output from ‘XML Report Publisher’ because I have developed a template for a seeded process,
XML Report Publisher is the only way to get the output for these kind of Spawned reports.
Help will be highly appreciated!!!
Thanks
ssANY Updates on this?????
did any of you run into similar stitutation??
or
can any of you try this and see if it is acting the same? -
Problem to display a negative number in XML Publisher output in excel
Hi All,
I am facing problem in displaying a negative number in XML Publisher output in excel.
My requirement is that I have to display a negative number in brackets when the output is taken in excel format. Eg: If the value is -123 then i have to display it as (123).
I have put these brackets using a formula column in the RDF, but it is the default functionality of excel that whenever there is a number in brackets then it automatically displays that as a negative value.
Can anyone please help me how I can display this negative number within brackets and not as a negative digit. Is there any special tag or is there any formula which can be used to convert this into text and written in the Help text of RTF template.
This is very urgent. If someone knows please reply asap.
Regards,
ShrutiThis is very urgent. If someone knows please reply asap.We are all volunteers here, so no ones questions are more urgent then other ones.
If its that urgent it would have helped if you had chosen the correct forum to ask your question BI Publisher -
XML Publisher: where's XML Publisher output?
Hi,
The XML file created by report is in FND_Concurrent_Requests.outfile_name.
Where's the XML Publisher output?
I want copy the file generated (PDF or EXCEL) using utl_file.fcopy because bursting fail whe template is Type=>XSL-XML.
Do your guys have any suggestion with this case? any input is very appreciated.
thanks in advance
RobertWelcome to the forums !
Pl see if MOS Doc 305307.1 (How To Modify Print PO Report POXPOPDF With Custom Template) can help
HTH
Srini -
XML report publisher doesnt open in Excel directly but opens in Browser
I have run a seeded FSG report with XML as output option and then ran XML report publisher to this request with Output as EXCEL but When I click the View Output button the output opens in Browser. I want it to open in EXCEL.
How to do this?
ThanksHi
A quick Google
Open Control Panel
Open Folder Options
Click File Types
Locate "XLS Microsoft Excel Worksheet" -- Tip: Quickly scroll to items beginning with 'X' by pressing the 'X' key on the keyboard.
Click the Advanced button.
Highlight the default action (often Open), which is bold.
Check the box that says "Confirm open after download" and if "Browse in the same window" is checked, uncheck it.
Click Ok.
Regards
Tim
http://blogs.oracle.com/xmlpublisher -
Export XML data into multiple worksheet of an Excel file..using FO processr
Hi,
I need to export XML data into Excel output, the data should flow into multiple worksheet of the Excel file.
Let me know if this can be done using XML publisher. If yes, please provide me the steps to do the same.
Could not able to achieve this through by the below process:
(1) Created a RTF (which has single excel table structure).
(2) Generated the XSL file using XSL-FO Style Sheet.
(3) Passed the XSL file and XML
which exported the data into an Excel (single worksheet) format.
Please let me know, how this can be exported into multiple worksheets.
Thanks & Regards,
Dhamodaran VJ.Hi Dhamodaran ,
pass me the template you created and XML. "Created a RTF (which has single excel table structure)."
Let me have a look at it,
For ID, look at profile. -
How to open a form from Oracle XML Report .xls Output?
Hi All,
We have a requirement wherein we have one complex SQL query, requirement is to fetch the data from that query and show it to the user. So far, so good. We can either create a report thru' UTL file to show the output to the user or can create a XML report whose output can be in the excel format.
Now user wants to have a hyperlink i.e. when he clicks the BSA (Blanket Sales Agreement) from the report output, it should be able to route him to BSA screen (oracle form), so that he can directly correct the issue with that corresponding BSA on which he clicked.
i.e. requirement is to create a a hyperlink from report output which will route the user to that oracle form with the BSA queried.
Not sure how can we implement this. If anybody has come across this type of requirement, please share your ideas and the approach used so as to accomplish this. Any inputs on this will be highly appreciated.
Cheers!
-SumirHello Sumir,
we create reports in an XML format using http://matzberger.de/oracle/spreadsheet-en.html.
Within these files you can create hyperlinks to a forms application like
http://<applicationserver>/forms/frmservlet?config=xy&p_autoinit_module=ab&p_autoinit_arg=123
With these parameters we call a default forms module (welcome screen) and then start module ab and execute a query for 123. The user then can directly access the data he needs.
Regards
Marcus -
XML Report Publisher program is erroring out
Hi All,
I've customized the AR Customer Statements.
I've created a data definition as "ARXSGP" and uploded the sample_output.xml of Statement Generation Program to it. Also I've created a Data template as "ARXSGPO" and attached the data definition "ARXSGP" to it and uploaded the customized rtf file "XXHCC_CLE_F_ARCUSBALSL.rtf" and set the default output type to PDF.
As I donot wish to call the XML Report Publisher program manually every time when I Print the Statements through Print Documents-->Statements.
So I've done the below customization in ARXSGP.rdf file ie; Print Statements Report which is an Oracle Report.
I've added the below code in After Report trigger.
=======================================
FUNCTION AfterReport
RETURN BOOLEAN
IS
BEGIN
Below code added for Customer Statement Case Study
DECLARE
l_req_id NUMBER := 0;
L_XML_LAYOUT BOOLEAN := TRUE;
BEGIN
L_XML_LAYOUT := FND_REQUEST.ADD_LAYOUT (TEMPLATE_APPL_NAME => 'AR', TEMPLATE_CODE => 'ARXSGP', TEMPLATE_LANGUAGE => 'en', TEMPLATE_TERRITORY => 'US', OUTPUT_FORMAT => 'PDF');
IF L_XML_LAYOUT THEN
srw.message(20001, 'Template is picked ');
srw.message(20002,'Concurrent request Id : '||:p_conc_request_id);
l_req_id := FND_REQUEST.SUBMIT_REQUEST('XDO',
'XDOREPPB',
NULL,
NULL,
FALSE,
:p_conc_request_id,
222, -- Receivables
'ARXSGPO', -- Statement Generate
'en-US', -- English
'N',
'RTF',
'PDF');
IF l_req_id > 0 THEN
COMMIT;
ELSE
srw.message(20004, 'Failed to submit request');
END IF;
ELSE -- Not L_XML_LAYOUT
srw.message(20005, 'Template is not picked ');
END IF;
END;
--------------------Code Ends----------------------------
SRW.USER_EXIT('FND SRWEXIT');
RETURN (TRUE);
END;
==============================================
After Printing the Statements through Print Documents-->Statements
Statement Generation Program is being called and later XML Report Publisher program is also being invoked.
But the XML Report Publisher Program is erroring out with below error.
XML Publisher: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
XDOREPPB module: XML Report Publisher
Current system time is 03-SEP-2012 17:42:18
Oracle XML Publisher 5.6.3
java.lang.NumberFormatException: For input string: "ARXSGPO"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.parseInt(Integer.java:497)
at oracle.apps.xdo.oa.cp.JCP4XMLPublisher.runProgram(JCP4XMLPublisher.java:215)
at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
Start of log messages from FND_FILE
End of log messages from FND_FILE
Executing request completion options...
Output file size:
0
------------- 1) PUBLISH -------------
Disabling requested Output Post Processing. Nothing to process. The output of the request is zero byte.
Finished executing request completion options.
Concurrent request completed
Current system time is 03-SEP-2012 17:42:22
Please help out with a solution.
Thanks,
Tech Dfor r12 add one row for parameter "Dummy for Data Security" from desc of XDOREPPB
follow works for me
SQL> set serveroutput on
SQL>
SQL> declare
2 v_request_id number;
3 begin
4
5 begin fnd_global.apps_initialize(0, 20419, 0); end;
6 v_request_id := FND_REQUEST.SUBMIT_REQUEST('XDO',
7 'XDOREPPB',
8 NULL,
9 NULL,
10 FALSE,
11 'N', -- Dummy for Data Security
12 9888637, -- Request
13 0, -- Template Application
14 'XXAND10_1', -- Template
15 'en-US', -- Template Locale
16 'N', -- Debug Flag
17 'RTF', -- Template Type
18 'RTF' -- Output Format
19 );
20
21 dbms_output.put_line(v_request_id);
22 if v_request_id > 0 then
23 dbms_output.put_line('successfully submitted.');
24 commit;
25 else
26 dbms_output.put_line('not submitted.');
27 rollback;
28 end if;
29
30 end;
31 /
9888651
successfully submitted.
PL/SQL procedure successfully completed
SQL> 'Y' for "Dummy for Data Security" also works for me
SQL> declare
2 v_request_id number;
3 begin
4
5 begin fnd_global.apps_initialize(0, 20419, 0); end;
6 v_request_id := FND_REQUEST.SUBMIT_REQUEST('XDO',
7 'XDOREPPB',
8 NULL,
9 NULL,
10 FALSE,
11 'Y', -- Dummy for Data Security
12 9888637, -- Request
13 0, -- Template Application
14 'XXAND10_1', -- Template
15 'en-US', -- Template Locale
16 'N', -- Debug Flag
17 'RTF', -- Template Type
18 'RTF' -- Output Format
19 );
20
21 dbms_output.put_line(v_request_id);
22 if v_request_id > 0 then
23 dbms_output.put_line('successfully submitted.');
24 commit;
25 else
26 dbms_output.put_line('not submitted.');
27 rollback;
28 end if;
29
30 end;
31 /
9888652
successfully submitted.
PL/SQL procedure successfully completed
SQL> -
Barcode printing in XML report PDF output
Hi All,
I want to print barcode of invoice number / purchase order number in the XML report PDF output.
Anyone please suggest me with your ideas and experience.Hi Bogdan,
The steps mentioned in the doc is what i did in order.
I couldn't understand the step # 13 & 14.
Log in as XML Publisher Administrator
Navigate to Administration --> Font Files --> Create Font File
Available fields are Font Name and File
--> for Font Name, choose any descriptive name
--> file will browse your PC to locate the font file
Navigate to Font Mappings -->Create Font Mapping Set
Mapping name is the name you will give to a set of fonts.
Mapping code is the internal name you will give to this set
Type: 'PDF Form' for PDF templates. 'FO to PDF' for all other template types.
Create Font Mapping (this allows you to add fonts to a set)
Font Family is the exact same name you see in MS Word under Font. If you don't use the same name the font will not be picked up at runtime.
Style and weight must also match how you use the font in the RTF or PDF layout template. Normal and Normal are good defaults.
Language and Territory should remain blank (NULL) unless you have a strong business reason, as these fields can cause the font not to be picked up at runtime.
Navigate to Configuration General -> FO Processing -->Font Mapping Set. This can also be done at Data Definition and Template level, via the corresponding Edit Configuration button on those pages. The hierarchy is Site-> Data Def -> Template.
Select your new mapping set.
Make sure the font is not referenced under File --> Properties --> Custom in the RTF template file.
Under General, set a Temporary Directory. The font will be stored under a /fonts directory at runtime, initially created the first time the font is used.
Upload a template that uses your special font and test using preview or by submitting a concurrent request. -
XML Report Publisher - Blank Report Request Parameter
Hi
I have a custom template and custom data definition in Purchasing application. I ran PO Output For Communication and it generated the PDF. Now I want to do Bursting.
So, I assigned XML Report Publisher and XML Bursting (both out-of-box programs) to Purchasing responsibility. But when I try to run them, I don't see any values in Request ID LOV.
Please suggest what am I missing in there.
Thanks,
NewBieuser11061081 wrote:
Hi
I have a custom template and custom data definition in Purchasing application. I ran PO Output For Communication and it generated the PDF. Now I want to do Bursting.
So, I assigned XML Report Publisher and XML Bursting (both out-of-box programs) to Purchasing responsibility. But when I try to run them, I don't see any values in Request ID LOV.
Please suggest what am I missing in there.
Thanks,
NewBiePlease confirm that you have added those concurrent programs to the correct Request Group which is attached to the same responsibility.
From (System Administrator responsibility > Security > Responsibility > Define) query the responsibility name and get the Request Group. Then from (System Administrator responsibility > Security > Responsibility > Request), query the Request Group and add those concurrent programs.
Thanks,
Hussein -
Org.xml.sax.SAXParseException with XML Report Publish
Anyone see the following error in XML Report Publisher? This happened after I ran Employee W2 XML Interface and ran XML Report Publisher for the output of the PDF output.
--XDOException
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:570)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:235)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:182)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
at oracle.apps.xdo.oa.cp.JCP4XMLPublisher.runProgram(JCP4XMLPublisher.java:684)
at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
Caused by: org.xml.sax.SAXParseException: <Line 268, Column 6>: XML-20109: (Fatal Error) PI with the name 'xml' can occur only in the beginning of the document.
at oracle.xdo.parser.v2.XMLError.flushErrorHandler(XMLError.java:441)
at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:303)
at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:305)
at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:289)
... 17 more
Thanks.We are going to user Employee W-2 PDF.
-
Unable to find the published output for this request - problem
Hi ,
In the invoice Payables module i modified a report to be open in xml and not text as it was. The program name of this report iis Print Invoice Notice. I did same thing we normally do to register a xml report in ebs.
The problem is that when i run the report from the invoice form and from the button wich call this raport i get this error:
Unable to find the published output for this request.
No output file exist for the request
and if i see the log file i get this message :
Arguments
P_INVOICE_ID='10243'
APPLLCSP Environment Variable set to :
XML_REPORTS_XENVIRONMENT is :
+/oracle/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb+
XENVIRONMENT is set to /oracle/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
AMERICAN_ALBANIA.UTF8
+' '+
REP-3000: Internal error starting Oracle Toolkit.
Report Builder: Release 6.0.8.27.0 - Production on Fri Mar 27 02:30:46 2009
+(c) Copyright 1999 Oracle Corporation. All rights reserved.+
The thing is that if i run this report from Other ->Request -> Run of the same module this raport runs correctly
And if i change the output of my report (From concurrent manager) to text its open correctly even from there where i want to open it.
Can anyone give me any sugestion why i get this error while i try to open this xml publisher report from a button in a form in application?
PS: i am using ebs 11.5 version
Thanks in advance,
Best regardsHi,
REP-3000: Internal error starting Oracle ToolkitThis errors was discussed many times before in this thread, so please search for REP-3000 and fix this error first ( [REP-3000|http://forums.oracle.com/forums/search.jspa?threadID=&q=REP-3000&objID=c84&dateRange=all&userID=&numResults=15] )
Regards,
Hussein -
Download to multiple sheet excel in the background
Hi,
I am trying to download data into multiple excel sheets in the background. I was able to create comma delimited csv file in the server, which can be opened as excel file. This is good when it does not have more that one worksheets.
I have three internal table and to send these internal tables in different worksheets in the same excel file.
Is it possible to have multiple sheets excel file from the csv file?
Thanks,
LokmanHi Lokman,
<b>1</b>.
Yes it is Possible.
<b>2</b>.
Am sending one example program .That is clear to understand .
REPORT zvenkat_head MESSAGE-ID zvenkat .
INCLUDE ole2incl. " Include for OLE object
DATA: application TYPE ole2_object,
workbook TYPE ole2_object,
sheet TYPE ole2_object,
cells TYPE ole2_object,
h_f TYPE ole2_object. " font
*Structure for users deleted
DATA: BEGIN OF itab_yb001_udel OCCURS 0,
bname LIKE yb001-bname,
name_text LIKE addr3_val-name_text,
END OF itab_yb001_udel.
DATA: BEGIN OF itab_yb001_tadd OCCURS 0.
INCLUDE STRUCTURE yb001.
DATA: name_text LIKE addr3_val-name_text,
ttext LIKE tstct-ttext.
DATA: END OF itab_yb001_tadd.
*Structure for Transactions deleted
DATA: BEGIN OF itab_yb001_tdel OCCURS 0.
INCLUDE STRUCTURE yb001.
DATA: name_text LIKE addr3_val-name_text,
ttext LIKE tstct-ttext.
DATA: END OF itab_yb001_tdel.
DATA: BEGIN OF itab_yb001_uadd OCCURS 0,
bname LIKE yb001-bname,
name_text LIKE addr3_val-name_text,
END OF itab_yb001_uadd.
PARAMETERS: p_fname LIKE rlgrap-filename. " File name to download
PERFORM download_file.
FORM - DOWNLOAD_FILE
FORM download_file.
DATA index TYPE i.
CREATE OBJECT application 'excel.application'.
SET PROPERTY OF application 'visible' = 0.
CALL METHOD OF application 'Workbooks' = workbook.
CALL METHOD OF workbook 'Add'.
CALL METHOD OF application 'Worksheets' = sheet.
CALL METHOD OF sheet 'Add'.
Create 1 Excel sheet
CALL METHOD OF application 'Worksheets' = sheet
EXPORTING #1 = 1.
SET PROPERTY OF sheet 'Name' = 'Transactions Added'.
CALL METHOD OF sheet 'Activate'.
PERFORM f_xl_theader.
tell user what is going on
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
text = text-m03
EXCEPTIONS
OTHERS = 1.
LOOP AT itab_yb001_tadd.
index = sy-tabix + 1. " 1 - column name
PERFORM fill_cell USING index 1 0 itab_yb001_tadd-bname.
PERFORM fill_cell USING index 2 0 itab_yb001_tadd-tcode.
PERFORM fill_cell USING index 3 0 itab_yb001_tadd-name_text.
PERFORM fill_cell USING index 4 0 itab_yb001_tadd-ttext.
PERFORM fill_cell USING index 5 0 itab_yb001_tadd-agr_name.
ENDLOOP.
tell user what is going on
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
text = text-m03
EXCEPTIONS
OTHERS = 1.
Create 2 Excel sheet
CALL METHOD OF application 'Worksheets' = sheet
EXPORTING #1 = 2.
SET PROPERTY OF sheet 'Name' = 'Transactions Deleted'.
CALL METHOD OF sheet 'Activate'.
PERFORM f_xl_theader.
LOOP AT itab_yb001_tdel.
index = sy-tabix + 1. " 1 - column name
PERFORM fill_cell USING index 1 0 itab_yb001_tdel-bname.
PERFORM fill_cell USING index 2 0 itab_yb001_tdel-tcode.
PERFORM fill_cell USING index 3 0 itab_yb001_tdel-name_text.
PERFORM fill_cell USING index 4 0 itab_yb001_tdel-ttext.
PERFORM fill_cell USING index 5 0 itab_yb001_tdel-agr_name.
ENDLOOP.
tell user what is going on
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
text = text-m04
EXCEPTIONS
OTHERS = 1.
Create 3 Excel Sheet
CALL METHOD OF application 'Worksheets' = sheet
EXPORTING #1 = 3.
CALL METHOD OF sheet 'Activate'.
SET PROPERTY OF sheet 'Name' = 'Users Added'.
PERFORM f_xl_uheader.
LOOP AT itab_yb001_uadd.
index = sy-tabix + 1. " 1 - column name
PERFORM fill_cell USING index 1 0 itab_yb001_uadd-bname.
PERFORM fill_cell USING index 2 0 itab_yb001_uadd-name_text.
ENDLOOP.
Create 4 Excel sheet
CALL METHOD OF application 'Worksheets' = sheet
EXPORTING #1 = 4.
SET PROPERTY OF sheet 'Name' = 'Users Deleted'.
CALL METHOD OF sheet 'Activate'.
PERFORM f_xl_uheader.
LOOP AT itab_yb001_udel.
index = sy-tabix + 1. " 1 - column name
PERFORM fill_cell USING index 1 0 itab_yb001_udel-bname.
PERFORM fill_cell USING index 2 0 itab_yb001_udel-name_text.
ENDLOOP.
Save excel speadsheet to particular filename
CALL METHOD OF sheet 'SaveAs'
EXPORTING #1 = p_fname "filename
#2 = 1. "fileFormat
PERFORM err_hdl.
Closes excel window, data is lost if not saved
SET PROPERTY OF application 'visible' = 0.
Close the file
CALL METHOD OF workbook 'CLOSE'.
Quit the file
CALL METHOD OF application 'QUIT'.
FREE OBJECT application.
ENDFORM. "DOWNLOAD_FILE
*& Form F_XL_THEADER
Header for XL sheet
--> p1 text
<-- p2 text
FORM f_xl_theader .
output column headings to active Excel sheet
PERFORM fill_cell USING 1 1 1 text-t01.
PERFORM fill_cell USING 1 2 1 text-t02.
PERFORM fill_cell USING 1 3 1 text-t03.
PERFORM fill_cell USING 1 4 1 text-t04.
PERFORM fill_cell USING 1 5 1 text-t05.
ENDFORM. " F_XL_THEADER
FORM FILL_CELL *
sets cell at coordinates i,j to value val boldtype bold *
FORM fill_cell USING i j bold val.
CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = i #2 = j.
PERFORM err_hdl.
SET PROPERTY OF cells 'Value' = val .
PERFORM err_hdl.
GET PROPERTY OF cells 'Font' = h_f.
PERFORM err_hdl.
SET PROPERTY OF h_f 'Bold' = bold .
PERFORM err_hdl.
ENDFORM. "FILL_CELL
outputs OLE error if any *
--> p1 text
<-- p2 text
FORM err_hdl.
IF sy-subrc <> 0.
WRITE: / 'Fehler bei OLE-Automation:'(010), sy-subrc.
STOP.
ENDIF.
ENDFORM. " ERR_HDL
Header for XL sheet
--> p1 text
<-- p2 text
FORM f_xl_uheader .
PERFORM fill_cell USING 1 1 1 text-t01.
PERFORM fill_cell USING 1 2 1 text-t03.
ENDFORM. " F_XL_UHEADER
Please try to understand first and replicate to ur requirement.
Please let me know if u have any problem.
<b>Thanks,
Venkat.O</b>
Maybe you are looking for
-
I have facing the following problem during production order confirmationm 1] posting date not possible in your s& g/l account. 2] period 010/2007 is not open in s&g/l account pl.resolve the same
-
Is there any way at all to install Windows 7 32 bit onto a MacBook Pro 13 in Retina Late 2013? The windows software I need won't run on Windows 7 64 bit.
-
Problem with my 20GB Ipod Color Display
I bought my Ipod with color display a month ago. After charging it one day, my menu button suddenly wouldn't work. Everything else was working fine (all the other buttons) but the menu wouldn't show up, except I could still hear the clicking sound. F
-
How to dell laptop to a 23" mac monitor
How do I connect my dell inspirion to my 23" mac monitor. I have an adaptor (DVI to CRT I think) but my laptop doesn't have a place for the firewire cable. Any ideas how to make this work?
-
SQL Server Agent (MSSQLSERVER) service is failing to start
Hi All, I am using SQL Server 2008 R2 Express edition. When i start SQL Server Agent (MSSQLSERVER) service it is failing to start and gives the below error. On analyzing the Event logs i found the below event. The SQL Server Agent (MSSQLSERVER) servi