Generate Spoool from classical report output
Hi ,
I have created a report with classical output.
for that i want to generate spool.
is there any FM or other way of generating spool from the output
Hi,
Declaration of local constants
CONSTANTS : lc_paart LIKE sy-paart VALUE 'X_65_132', " Paper Format
lc_locl TYPE sypdest VALUE 'LOCL'. " Destination
If print option is selected.
IF p_print IS NOT INITIAL.
MOVE c_x TO v_print.
ELSE.
CLEAR v_print.
ENDIF.
Setup the Print Parmaters
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
authority = space
immediately = v_print
new_list_id = c_x
no_dialog = c_x
user = sy-uname
IMPORTING
out_parameters = v_print_parms
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF sy-subrc NE 0.
CLEAR : v_print_parms.
ENDIF.
The printer destination has to be set up
IF v_print_parms-pdest = space.
v_print_parms-pdest = lc_locl.
ENDIF.
Explicitly set line width, and output format so that
the PDF conversion comes out OK
v_print_parms-linsz = c_linsz.
v_print_parms-paart = lc_paart.
Then u need write like this..
NEW-PAGE PRINT ON PARAMETERS v_print_parms NO DIALOG.
Perform output_display.
NEW-PAGE PRINT OFF.
Regards,
Nagaraj
Similar Messages
-
JNDI error while generating pdf from crystal reports in java
Hi, i want to generate PDF from crystal reports in java. I have the .PDF file with database configured into the report. Following details are available in report.
1. Server Name = testdb
2. Database Name = testdb
3. User
4. Password
I am using CR XI.
In CRConfig.xml i had given following details.
<JDBC>
<CacheRowSetSize>100</CacheRowSetSize>
<JDBCURL>jdbc:oracle:thin:@192.218.216.102:1521://TESTDB</JDBCURL>
<JDBCClassName>oracle.jdbc.driver.OracleDriver</JDBCClassName>
<JDBCUserName>user</JDBCUserName>
<JNDIURL>password</JNDIURL>
<JNDIConnectionFactory></JNDIConnectionFactory>
<JNDIInitContext>/</JNDIInitContext>
<JNDIUserName>testdb</JNDIUserName>
<GenericJDBCDriver>
<Default>
<ServerType>UNKNOWN</ServerType>
<QuoteIdentifierOnOff>ON</QuoteIdentifierOnOff>
<StoredProcType>Standard</StoredProcType>
<LogonStyle>Standard</LogonStyle>
</Default>
</GenericJDBCDriver>
</JDBC>
When i am calling from java as standalone, i am getting following error.
JRCAgent1 detected an exception: Error finding JNDI name (testdb)
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source) at com.businessobjects.reports.sdk.b.i.if(Unknown Source)
Can anyone let me know where is the problem?Actually, the question boils down to; does the framework support the fonts?
I believe that my question re. this working in the designer was valid. The designer does not use the framework, so if it works there, it is either a framework issue or a runtime print engine issue.
I believe if you use the code below, it will list fonts available to the framework:
foreach(FontFamily ff in FontFamily.Families)
System.Diagnostics.Debug.WriteLine(ff.Name);
For more information see kbase [1198306 - Crystal Report displaying incorrect font in Microsoft Visual Studio .NET|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333133393338333333303336%7D.do]
Ludek -
Download a classical Report output to excel
Hi All,
We have a requirement to download the output of a classical report into a Excel sheet and it should be in the same format as the report output.We don't just want to dump the internal table data into excel but need to display the classical report outputas it is in the excel sheet.
Regards,
AshishHi there,
I am not sure on your requirement, but if you want to write a program that manipulates Excel, you can choose to use OLE objects. Below is some sample code.
REPORT ZTEST_EXCEL.
INCLUDE ole2incl.
DATA: application TYPE ole2_object,
workbook TYPE ole2_object,
sheet TYPE ole2_object,
cells TYPE ole2_object.
CONSTANTS: row_max TYPE i VALUE 256.
DATA index TYPE i.
DATA: BEGIN OF itab1 OCCURS 0, first_name(10), END OF itab1.
DATA: BEGIN OF itab2 OCCURS 0, last_name(10), END OF itab2.
DATA: BEGIN OF itab3 OCCURS 0, formula(50), END OF itab3.
*START-OF-SELECTION
START-OF-SELECTION.
APPEND: 'Peter' TO itab1, 'Ivanov' TO itab2,
'=Sheet1!A1 & " " & Sheet2!A1' TO itab3,
'John' TO itab1, 'Smith' TO itab2,
'=Sheet1!A2 & " " & Sheet2!A2' TO itab3.
CREATE OBJECT application 'excel.application'.
SET PROPERTY OF application 'visible' = 1.
CALL METHOD OF application 'Workbooks' = workbook.
CALL METHOD OF workbook 'Add'.
* Create first Excel Sheet
CALL METHOD OF application 'Worksheets' = sheet
EXPORTING #1 = 1.
CALL METHOD OF sheet 'Activate'.
SET PROPERTY OF sheet 'Name' = 'Sheet1'.
LOOP AT itab1.
index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name
CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
SET PROPERTY OF cells 'Value' = itab1-first_name.
ENDLOOP.
* Create second Excel sheet
CALL METHOD OF application 'Worksheets' = sheet
EXPORTING #1 = 2.
SET PROPERTY OF sheet 'Name' = 'Sheet2'.
CALL METHOD OF sheet 'Activate'.
LOOP AT itab2.
index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name
CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
SET PROPERTY OF cells 'Value' = itab2-last_name.
ENDLOOP.
* Create third Excel sheet
CALL METHOD OF application 'Worksheets' = sheet
EXPORTING #1 = 3.
SET PROPERTY OF sheet 'Name' = 'Sheet3'.
CALL METHOD OF sheet 'Activate'.
LOOP AT itab3.
index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name
CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
SET PROPERTY OF cells 'Formula' = itab3-formula.
SET PROPERTY OF cells 'Value' = itab3-formula.
ENDLOOP.
* Save excel speadsheet to particular filename
CALL METHOD OF sheet 'SaveAs'
EXPORTING #1 = 'c:\temp\exceldoc1.xls' "filename
#2 = 1. "fileFormat
* Closes excel window, data is lost if not saved
* SET PROPERTY OF application 'visible' = 0.
Edited by: Thung Yuen Yap on Aug 10, 2010 1:52 PM -
Query regarding calling T-code MIGO from ALV report output
Dear friends,
I have to call MIGO transaction from my ALV report output. Now problem is that I have to set the value 'display' In the first header field, 'Material Document' in 2nd header field when MIGO is called from the report output. Morever there is no parameter ID for these two fields. So how to set the values w/o using parameter ids.
Regards,
RishiHi,
Try this coding,
FORM DISPLAY.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
IS_LAYOUT = AK_LAYOUT
IT_FIELDCAT = AK_FIELDCAT
TABLES
T_OUTTAB = ITAB.
ENDFORM. " DISPLAY
*& Form EVENT
FORM EVENT USING P_AK_EVENT TYPE SLIS_T_EVENT.
DATA : AK_EVENT1 TYPE SLIS_ALV_EVENT.
AK_EVENT1-NAME = 'USER_COMMAND'.
AK_EVENT1-FORM = 'USER_COMMAND'.
APPEND AK_EVENT1 TO P_AK_EVENT.
ENDFORM. " EVENT
*& Form USER_COMMAND
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
IF R_UCOMM = '&IC1'.
" AND SY-LSIND = '1'.
READ TABLE ITAB INDEX RS_SELFIELD-TABINDEX.
SET PARAMETER ID 'AUN' FIELD ITAB-BUDAT.
CALL TRANSACTION 'MIGO' AND SKIP FIRST SCREEN.
ENDIF.
ENDFORM. " USER_COMMAND
Regards,
Nikhil. -
Classic report output to image format
Hi Guru's
Please Help me out.
Bussiness users want to convert Classic report output to any of the Image format(e.g. Bitmap, jpg. etc.....) and then store in MIME Repository.
Please help me in this regards
Thank you,
Arbindhi arbind,
u can follow up wd SAP NOTE 1219077 ,
OR can follow d link
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do
it will gv u idea about the similar problem
hope it helps u ...
regards,
prashanti -
Formatting problem when downloading classical report output to excel sheet.
Dear Experts,
My classical report o/p looks like:
SI Name ID
1 xyz 11
2 abc 22
3 eet 33
4 jnc 44
When I download the same to a excel sheet from List->Save->file->Spreadsheet and save it.
The formatting looks like this:
SI Name ID
1 xyz 11
2 abc 22
3 eet 33
4 inc 44
That is the heading and column entries are in different columns.
There is no GUI_Download used.
Kindly help what may be the issue.Hi,
In the report output the formatting looks fine. It is exactly below the heading. But only when I save it to excel, this alignment issue is coming. Even the columns after this column are are properly aligned and there is no issue at all. Only this column in the middle has issue. -
Generate logs from user report options
Hi all !
I would like to know if there is a possibility to generate logs from report user selection:
E.g: users can fill execution options to delimit the scope of the report execution and the output, company code, date ranges, account numbers, cost.
- Is there a way to generate logs containing these report options that were typed / filled by the user for every transaction executed?
- If Yes could you please assist?
Thanks in advance for the cooperation!
Regards,There is a way of doing this using the object history, but the user can control this themselves and turn it off if they want to.
Read the SAP notes on term "RSSGOSHIRE".
Another way is to use parameter transactions or variant transactions, which the user cannot change or only change selected parameters for which you don't care about.
Cheers,
Julius -
Need to change auto generated text from pdf report
I have implemented pdf but it generated text from the autogenrated xml.
If I need to change that text then what should I want to do for that?
Following is my xsl file and the generated output in pdf.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:fn="http://www.w3.org/2005/xpath-functions">
<xsl:output method="xml" indent="yes" encoding="utf-8" omit-xml-declaration = "yes" />
<xsl:template match="/">
<fo:root>
<fo:layout-master-set>
<fo:simple-page-master master-name="my-page">
<fo:region-body margin="1in"/>
<fo:region-before extent="1in" background-color="silver" />
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="my-page">
<fo:static-content flow-name="xsl-region-before">
<fo:block height="150px" width="1024px" background-color="blue" >
<fo:external-graphic width="340px" src="http://localhost:9000/web-determinations9000/images/logo.png"/>
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block >
<xsl:apply-templates mode="dump" select="/session/entity/instance/attribute"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
output from pdf -
What is Student Id?=
65.0
Is scored more than 80% true%=
true
What is Student Name?=
asf
What is lastname?=
asdf
Is student eligible for gold medal?=
true
If i want "what is student id?" text to only student Id then what change I need for that?Hi,
Following is the code sample for your understanding:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:fn="http://www.w3.org/2005/xpath-functions">
<xsl:output method="xml" indent="yes" encoding="utf-8" omit-xml-declaration = "yes" />
<xsl:template match="/">
<fo:root>
<fo:layout-master-set>
<fo:simple-page-master master-name="my-page">
<fo:region-body margin="1in"/>
<fo:region-before extent="1in" background-color="silver" />
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="my-page">
<fo:static-content flow-name="xsl-region-before">
<fo:block height="150px" width="1024px" background-color="blue" >
<fo:external-graphic width="340px" src="http://localhost:9000/web-determinations9000/images/logo.png"/>
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block>
<xsl:apply-templates mode="dump" select="/session/entity[@name='global']/instance[@label='global']"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
<xsl:template match="/session/entity[@name='global']/instance[@label='global']" mode="dump" priority="100">
<fo:block margin-top=".5cm" margin-left=".1cm" border-start-style="solid">
Student ID:<xsl:value-of select="attribute[@id='var_student_id']/number-val"/>
</fo:block>
</xsl:template>
</xsl:stylesheet>Thanks,
Aakarsh -
In SAP 4.6c In classical reports output how to change Font size and Font type
Dear Experts,
In SAP 4.6c, in classical and interactive reports output how to change font size and font type.
Regards,
Zaker.These are HTML formatting questions. Nothing to do with the Oracle SQL and PL/SQL languages.
With old-style HTML, the font size and family are set using the font tag.
With modern style HTML, that is done using cascading style sheets (CSS).
Your favourite search engine will turn up tons of information on both. -
Classical Report Output...
Hi Experts,
I have made one classical report whose output is coming upto 4-5 pages depending on user input. But when we will take the printout of this, user want that print to be on only single A4 size paper...Please guide me..
Thanks in advance...
Best Regards,
VinayakHi,
Please go through the below link or else search for Classical report with multiple pages output.
[http://www.scribd.com/doc/7366175/02-ABAP-Book-Intelli-Reports]
[Change of Normal Classical Report to ALV Report;
Regards,
Vijaya Lakshmi.T -
How to restict number of lines from my report output
Hi,
I deveoped a noraml alv report where 26 fields displayed in the report output .But when nuber of lines exdeed 65,000 then we are unable to donload it to spread sheet .so we want to reduce the number of lines based on customer .How to do this in layout is there any facility to restict the number of lines ??
Please help meHi I am not sure but you can try like devide table entries in multiple internal tables.
Create saperate ALV Report and give customized button(Next and Back) to each report will have interlink to this reports. -
Displaying pages in classical report output
Hi all,
I am developing a report. In the report output I am displaying 4 lines. When I click on 1st line then list will display but on the second page after the intial output page and when I click on 2nd line then list will display on the third page after the second page.
My requirement is when I click on each line it will display the related page.
I can get the page and page line by the syntax:
read line 1 of page sy-index.
But how to display this one.
Suggest.
Thanks
Sanket sethihiii
for selecting lines like you gave in example..you can use
AT LINE-SELECTION.
CASE sy-lilli.
WHEN '5'.
logic for display page 2nd.
WHEN '6'.
logic for display page 3rd.
WHEN '7'.
logic for display page 4th.
WHEN '8'.
logic for display page 5th.
ENDCASE.
regards
twinkal -
Generate email from ABAP report.
Hi Folks,
I would like to know if it is possible to send email from to an external mail id from an ABAP report.
If it is possible then what are detailed steps that needs to be taken in order to achive it. Also let me know how to attach files to the created email.
Thanks,
ImranFAQ, please search the forums before posting, do not ask the same question once again.
Thread locked.
Thomas -
What to do with inconsistencies from RADCUCNT report output ?
Hi Everybody,
Im in preparation phase of non-unicode conversion to unicode ( after upgrade ECC6 EhP6 SP08 - NW731) and I have stuck in step of nametab creation.
The RADCUCNT report is showing me inconsistent objects with reason 2.
All those objects are not exist in DB and ddic dictionary as well.
This is reason why I have still nametab not consistent and I'm scary to do an export as in sap documentation are several attention that this step has to be consistent otherwise will export be failed or import not successful.
i did not find any relevant sap note what to do with such a objects.
Is possible to exclude those objects or something else?
thanks for any hints,
reg,
MartinHi Martin,
according to note #1062188 you can ignore this warning.
Please proceed as described afterwards:
According to unicode conversion guide, 3.1 Additional Preparation Steps, error "1EED: DD sources table xxxx could not be read" can be ignored.
Please check if there's any content left on the database to make sure these tables are obsolete. If you do not find contents, these tables should be removed as of Unicode conversion guide chapter 2.1.6:
If you want to exclude a table from export after the Consistency Check,
Drop the table from the database.
Delete the table entry from the nametab tables DDFTX, DDNTF, DDNTT on database level.
Reset the table in the Consistency Check.
A better choice for 2. is to remove nametab entries using function module DD_NAMETAB_DELETE via transaction SE37.
Afterwards please run report RADCUCNT again with variant UNICODE-02.
Therefore please execute steps 2.), 3.) and 4.) of the resolution part of note #1865781.
Cheers,
Andreas -
Generate graphs from Oracle Reports
How to use graphs in Oracle Reports server, the version of Oracle Application Server is 10.1.2.3
thanks,You need to develope your graph in reports builder. Then deploy the rep file to the server and run it.
You can open this post in reports forum.
Maybe you are looking for
-
How do i turn off block to access my banks e-mail account?
While accessing my banks e-account to download my statement, it informs me that Firefox is blocking it.
-
Youtube video cannot be played
can't play youtube video, even after i reinstall flash. the youtube video is just there with sound but the video just keep going back and forth. i am using mac os lion on the newest model of iMac
-
What happens when the ATV drive is full?
I'm considering purchasing either the 40GB or 120GB ATV and have a question about storage space. Will I be able to copy/sync to my computer, content purchased or rented on the Apple TV? I store my iTunes library on an external Firewire drive. TIA
-
Interactive PDF's in Documaker
Hi We are looking for an product which could be used for both Data Capturing and Form Processing in a real time environment.Does Documaker supports generation of interactive PDF's which can collect data from the user and can change the display of the
-
Rotating photo error in windows
i copied and pasted photos from my iphone 4s on to my laptop and wanted to rotate them because they were not correct, 10 out of 30 saved when i rotated them the others came up with an error message saying that the their is an error with the property