Exporting Dynamic Document Output to a file
Hi,
Is it possible to export the output generated using Dynamic documents to a file other than *.html format? I am now using the method EXPORT_DOCUMENT, but it allows only HTML format. Please help
hi,
we can also view output in an excel sheet using BEx analyser.
Similar Messages
-
I can not export Pages document into a Word file
Please help! I have researched many feeds in regards to my issue. None of the suggestions seem to work. I need to export a Pages document into a Word file and get the error messge "an unknown error has occured". I have attempted to "Save as" and export directly from the file menu. All of my fonts have been validated. Not sure what my other options are. Can anyone give any insight? Thanks
In case if the files are missing for the once you have in your book module they can have issues exporting as PDF or JPEG.
Please check the same and replace the files which are missing or attach the same and then try exporting the same.
-Mandhir -
Trying to export my document as a SWF file but its not letting me...
Hi,
I have a document (brochure) that i have created in indesign cs5. I wanted to make it interactive, only in that you can turn the pages as you are viewing it online. So I have done this and added the page transitions, but when I go to export it, it doesn't give me the option of a SWF file...
Im not sure why this is or what im doing wrong here!?
Any help on this much appreciated!
Or perhaps a link to a post that already explains this, I cant find any info on it though.
Thanks!Here is an example of what I am trying to create... this brochure shows only the front cover as a single page, same with the back cover...
http://www.thebeardmore.com/conference-brochure/
my document is adding a extra white page next to the front and back cover changing them into spreads...
C:\Users\RBrown\Desktop\1.html
I have read an srticle which says you cant do anything about this... but then how has it been achieved in the example I have found online above?!
Can anyone help me with this please?!?! -
Hi guyzzzzzz,
i want the document for the following........
· Dynamic Documents Display
· Structure of Program that Use Dynamic Documents
· Classes for Dynamic Documents
· Important Methods of DD Classes
Demo/Exercise
Its very urgent, plz help me in this
Thanks in advance,
Vishnu. RHi,
Dynamic documents in ABAP Objects are HTML documents that are generated during runtime using ABAP code.
Dynamic documents enable developers to give totally a new look and feel to ABAP screens and report outputs (provided screens are used in the report output). Many features that are not possible in the traditional ABAP programming are available in dynamic documents. Why we are saying a new look and feel is it uses SAP HTML Viewer internally to bring HTML web page kind of look and feel to screens.
Dynamic documents may contain Forms and Tables, which intern can contain elements like input fields, push buttons, dropdown lists, texts, icons and pictures in different sizes. Of course some of these features are also available in ALV reports with limited usage, but not like in dynamic documents.
Features
The below mentioned are some of the features of dynamic documents.
Large font sizes and more colour options than traditional ABAP/4 (There are some limitations also)
ICONS and pictures in different sizes
Texts
Links
Pushbuttons
Input fields
Dropdown list boxes
Tables with row span and with column span
Tables with frames and without frames
Tables with buttons, icons, pictures, input elements and texts in it
Steps for using dynamic documents in ABAP program:
For using dynamic documents, all that we need is a screen and a custom control in that.
The following steps need to be done in the program in order to display a dynamic document in a screen.
Create a screen and a custom control in that using Screen Painter (This step is not required if we already have a screen and custom control in the program)
Define an object reference to the class CL_DD_DOCUMENT and instantiate it.
For example:
DATA: OBJ_DD TYPE REF TO CL_DD_DOCUMENT.
CREATE OBJECT OBJ_DD.
Dynamic document is ready now for including elements in that. The below are few methods, which we can use for adding elements to the dynamic document. Method Description
NEW_LINE To generate a line break
UNDERLINE To draw a horizontal line across the full width of the document
ADD_GAP To place a gap in a line
ADD_TEXT To add a text
ADD_PICTURE To add a picture
ADD_ICON To add a SAP icon
ADD_TABLE To add a table
ADD_FORM To add a form area
For example:
DATA: OBJ_TABLE TYPE REF TO CL_DD_TABLE_ELEMENT.
CALL METHOD OBJ_DD->ADD_TABLE
EXPORTING
NO_OF_COLUMNS = 2
WIDTH = u2018100%u2019
IMPORTING
TABLE = OBJ_TABLE.
Once all the elements are included, all these elements need to be merged into a single dynamic document. This can be done using method MERGE_DOCUMENT.
For example: CALL METHOD OBJ_DD->MERGE_DOCUMENT.
Dynamic document is now ready for display/print/export.
Method DISPLAY_DOCUMENT can be used to display document in the screen. Here it is possible to display dynamic document in an existing container or in the existing document also.
Method PRINT_DOCUMENT can be used to print the dynamic document. Here system enables local printing.
Method EXPORT_DOCUMENT can be used to export the document as a HTML file into PC.
In case of the dynamic document need to be refreshed based on the user action, one should first call the method INITIALIZE_DOCUMENT to clear the dynamic document contents. This method does not clear the dynamic document object reference. So it is possible to include another set of elements in the same dynamic document.
After displaying the document, any user action can be handled in the event RESOURCES_CHANGED of the class CL_GUI_RESOURCES. For example refreshing the document contents, displaying new contents on the same document etcu2026
Event RESOURCES_CHANGED can be triggered explicitly using the method ON_RESOURCES_CHANGED of the class CL_GUI_RESOURCES.
For showing a dynamic document in a report, a screen with custom control in it must be called from the program.
Example programs:
SAP provided a complete set of example programs (Package: SDYNAMICDOCUMENTS), which explain all the features mentioned in this weblog.
Program Description
DD_ADD_FORM_BUTTON Buttons on Forms
DD_ADD_FORM_INPPUT Interactive Elements: Forms with buttons
DD_ADD_LINK Interactive Elements: Links
DD_ADD_PICTURE SAP icons and pictures stored in BDS(transaction OAOR)
ADD_PICTURE To add a picture
DD_ADD_TABLE Tables
DD_ADD_TEXT Text input
DD_SPLIT_DOCUMENT Distribution of areas on dynamic documents
DD_STYLE_TABLE Style types & list colours
Also refer to this links:
/people/venkata.ramisetti/blog/2005/12/20/dynamic-documents-in-abap-objects
http://www.sapdevelopment.co.uk/reporting/ddhome.htm
www.saptips.com/WorkshopDescriptionsABAP.asp
Reward Points if found helpfull..
Cheers,
Chandra Sekhar. -
How to export report output into excel file
hi friends,
i would like to get the solution from you for how to export the report output into a .xls file. i know how to convert it into .rtf and .txt files but i think it's difficult to do this .xls way, could you help me to comeover this problem?
thankyou very much.The official answer is "delimited", which
generates adequate comma or other delimited
text. No formatting, and without extra
effort no support for non-ASCII characters.
Might be sufficient for you.
Note that Excel can read html files - we
built programs to generate html files with
name of "blah.xls" and some Excel-ish
extensions, so Excel is automatically opened
and the document is all nice and pretty.
(Oracle html output has some odd logic about
choosing number of columns, we didn't use
it.)
-- Allan Plum -
Export data from SAP Document Management System to File System(FileStore)
Hi,
We need to extract/ export data (documents and metadata) from SAP Document Management System to windows File System (File Store), can anyone suggest us tool or methodology to do the same.
Thanks,
NileshI'm also looking for a solution for this problem. We are capturing comments in BW-BPS layouts. They get stored in BW's document management system and we would like to export them out of the system for external reporting into an ACCESS database.
-
WHenWhen I export a pages document as an ePub file the result is a blank locked text edit file on my desk top not an ePub file as previously no problem creating. How do I fix? HHD
Try adding .epub to the end of the name.
I assume you are aware that to open an .epub file you need a special app, not TextEdit or Pages, right? -
My whole document comes out as low res when I export to PDF, even the indesign file also now low res. Tried changing display performance, but that's not helping.
Are your links up to date? What settings did you use?
-
Error document segments overwritten after file export
Hi,
Please give solution for this .
Error document segments overwritten after file export: In case of invoicing of regional church in BK 1008, an error has occurred while processing a batch-input-file. The file description is Z_DEB_B*. By exporting a file all open FI-documents are overwritten in the document text with the same text.
Thanks& Regards,
Hari
Edited by: Hari R on Sep 23, 2008 2:34 PMHi,
thank you for your help.
I am using an Adobe Acrobat XI Pro.
It is not a specific file that causes trouble, it is happening with all the documents with Hebrew fonts.
I tried the "Save as" option and the same problem happened. -
I am having trouble bouncing and creating an aiff file that plays back. I've checked my output settings which appear to be correct. Although I am able to create MP3s, the aiffs are blank. The happens when I try to export a track as an aiff file - it's blank.
When bouncing, do you use the Key Command or the button on the Output Channel Strip? The Key Command only bounces from the Stereo Output. The bounce button bounces from the Channel Strip it is on. So if you want to bounce out outputs 3-4 or higher, don't use the key command, but the button.
The strange thing here is that Logic, when it bounces an MP3, first bounces an AIFF, which at the end of the bounce process is being converted to MP3, so I can't imagine how you can get a silent AIFF and a normal MP3.
How have you listened to those bounces? iTunes? Quicklook? Quicktime? -
Anyone know how to output an XML file from ABAP to a non sapgui location?
I have a program that creates XML and then outputs a file via CALL METHOD cl_gui_frontend_services=>gui_download. But now I want to execute the program in background mode and therefore I need to be able to output that XML to a NON sapgui file location. Current code creates the XML to an internal table which is binary then the gui_download method converts that to output XML. . Does anyone know how I can change the code to either a) output the XML to an internal table which can be output via, say, a TRANSFER command..or, b) output the created binary table of XML to a NON sapgui file location?
Excerpts from current code are as follows:
first the XML is created (to the binary file)
Creating a ixml factory
l_ixml = cl_ixml=>create( ).
Creating the dom object model
l_document = l_ixml->create_document( ).
Fill root node with value XML
l_element_xml = l_document->create_simple_element(
name = 'XML'
parent = l_document ).
Create tag 'HEADER' as child of 'XML'
l_element_header = l_document->create_simple_element(
name = 'HEADER'
parent = l_element_xml ).
header information about the file and general data about the fleet follows
l_value = c_fleet_import.
l_element_dummy = l_document->create_simple_element(
name = 'TYPE'
value = l_value
parent = l_element_header ).
etc.......
then the xml is connected to the stream factory and rendered
Creating a stream factory
l_streamfactory = l_ixml->create_stream_factory( ).
Connect internal XML table to stream factory
l_ostream = l_streamfactory->create_ostream_itable( table = l_xml_table ).
Rendering the document
l_renderer = l_ixml->create_renderer( ostream = l_ostream
document = l_document ).
l_rc = l_renderer->render( ).
Saving the XML document
l_xml_size = l_ostream->get_num_written_raw( ).
and then output to the file
IF sy-subrc = 0.
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
bin_filesize = l_xml_size
filename = 'g:\sapdms\BSCC-DEV\EFPAC XML Files\ALL.xml'
filename = '/TRICK/727/OUT/ZEFP/EFPAC.XML' "doesnt work with sap gui
filetype = 'BIN'
CHANGING
data_tab = l_xml_table
EXCEPTIONS
OTHERS = 24.
as implied by the comments the method above will successfully output the XML file to the g:drive but will not output to /TRICK/ location, which is where I need it to go in a background mode run.
This is a problem which has defeated all our local expertise and I would appreciate any help given... Barry JonesTry this code below:
data l_xml_table2 type table of xml_line with header line.
W_filename - This is a Path.
if w_filename(02) = '
open dataset w_filename for output in binary mode.
if sy-subrc = 0.
l_xml_table2[] = l_xml_table[].
loop at l_xml_table2.
transfer l_xml_table2 to w_filename.
endloop.
endif.
close dataset w_filename.
else.
call method cl_gui_frontend_services=>gui_download
exporting
bin_filesize = l_xml_size
filename = w_filename
filetype = 'BIN'
changing
data_tab = l_xml_table
exceptions
others = 24.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif. -
Hi All,
I am downloading the ALV output to Excel file.I am making use of LIST--->EXPORT--->SPREADSHEET option.
My list is having Header, Footer, sub totals and totals.When i transfer the list i am facing following problems
1.Even i am getting the empty columns betweeen my output.
2.In the Place of sub totals i am getting astericks
3.On the top of the records downloaded,"DYNAMIC LIST DISPLAY" is found.I want to avoid this text on the top
Thanks,
Ravee...Hello Vinod,
1.I am getting the empty columns betweeen my output.
I am having 16 columns in the ALV output,but i got 19 columns in my excel file.
2.In the Place of sub totals i am getting astericks.
Generally there is no possibility to download the sub totals.i am using LIST->EXPORT->SPREADSHEET.
I am having the sub totals in my output.
*You would have noticed the' * ' for sub total and ' ** ' for grand totals values.*These sub total & total values are not downloaded but these asterisks are carried to excel file.
3.On the top of the records downloaded,"DYNAMIC LIST DISPLAY" is found.I want to avoid this text on the top.
I am using the application tool bar icon only.Still i am getting the same.
Thanks,
Ravee... -
Writing dynamic value to a text file in Openscript
How to write the dynamic values which i captured in a variable into a text file in openscript ? I searched throughout the user guide and i don't find any option for that. Please help, thanks in advance..
One method using Export Table to CSV
import oracle.oats.scripting.modules.basic.api.*;
// Class DOMTable
//export table content to a CSV file.
public void exportToCSVFile(String filePath, boolean overWrite) throws AbstractScriptException, IOException
{return;}
DOMTable maTable = null;
maTable.exportToCSVFile("c:\\temp\\export.csv", false);
OR to read & write in a file
Read a file & write in another file
String MonFichierSource = "C:\\Documents and Settings\\jmarzolf\\My Documents\\Clients\\CD-APPS\\DataBank\\CD-APPS-SBL.csv";
String MonFichierDest = "C:\\Documents and Settings\\jmarzolf\\My Documents\\Clients\\CD-APPS\\DataBank\\CD-APPS-SBL-2.csv";
Scanner MonScanSrc = new Scanner(new File(MonFichierSource));
FileWriter MonFichierDst = new FileWriter(MonFichierDest);
while (MonScanSrc.hasNextLine()) {
String MaLigne = MonScanSrc.nextLine();
if (MaLigne.contains("ALL USER RESPONSIBILITY")) {
MonFichierDst.write(MaLigne);
MonFichierDst.write("\r");}}
MonScanSrc.close();
MonFichierDst.close(); -
Smartform/Sap script output to Text file/PDF/WORD
Hi,
I need to download/transfer the output of smartforms/sap script to text file/pdf file or word file.How do i do that?
Do I need to create a new output device?
thnx in advance
chirantanHi,
Go through the following Code
Mail a sapscript
SAPscript: Autotmatically e-mail as PDF
How to convert sapscript(Purchage order) inot pdf format & send in mail
Check the following Code
REPORT ZRICH_0003.
DATA: ITCPO LIKE ITCPO,
TAB_LINES LIKE SY-TABIX.
Variables for EMAIL functionality
DATA: MAILDATA LIKE SODOCCHGI1.
DATA: MAILPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
DATA: MAILHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
DATA: MAILBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: MAILTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: MAILREC LIKE SOMLREC90 OCCURS 0 WITH HEADER LINE.
DATA: SOLISTI1 LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
PERFORM SEND_FORM_VIA_EMAIL.
FORM SEND_FORM_VIA_EMAIL *
FORM SEND_FORM_VIA_EMAIL.
CLEAR: MAILDATA, MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
REFRESH: MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
Creation of the document to be sent File Name
MAILDATA-OBJ_NAME = 'TEST'.
Mail Subject
MAILDATA-OBJ_DESCR = 'Subject'.
Mail Contents
MAILTXT-LINE = 'Here is your file'.
APPEND MAILTXT.
Prepare Packing List
PERFORM PREPARE_PACKING_LIST.
Set recipient - email address here!!!
MAILREC-RECEIVER = '[email protected]'.
MAILREC-REC_TYPE = 'U'.
APPEND MAILREC.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = MAILDATA
PUT_IN_OUTBOX = ' '
TABLES
PACKING_LIST = MAILPACK
OBJECT_HEADER = MAILHEAD
CONTENTS_BIN = MAILBIN
CONTENTS_TXT = MAILTXT
RECEIVERS = MAILREC
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
ENDFORM.
Form PREPARE_PACKING_LIST
FORM PREPARE_PACKING_LIST.
CLEAR: MAILPACK, MAILBIN, MAILHEAD.
REFRESH: MAILPACK, MAILBIN, MAILHEAD.
DESCRIBE TABLE MAILTXT LINES TAB_LINES.
READ TABLE MAILTXT INDEX TAB_LINES.
MAILDATA-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( MAILTXT ).
Creation of the entry for the compressed document
CLEAR MAILPACK-TRANSF_BIN.
MAILPACK-HEAD_START = 1.
MAILPACK-HEAD_NUM = 0.
MAILPACK-BODY_START = 1.
MAILPACK-BODY_NUM = TAB_LINES.
MAILPACK-DOC_TYPE = 'RAW'.
APPEND MAILPACK.
Creation of the document attachment
This form gets the OTF code from the SAPscript form.
If you already have your OTF code, I believe that you may
be able to skip this form. just do the following code, looping thru
your SOLISTI1 and updating MAILBIN.
PERFORM GET_OTF_CODE.
LOOP AT SOLISTI1.
MOVE-CORRESPONDING SOLISTI1 TO MAILBIN.
APPEND MAILBIN.
ENDLOOP.
DESCRIBE TABLE MAILBIN LINES TAB_LINES.
MAILHEAD = 'TEST.OTF'.
APPEND MAILHEAD.
Creation of the entry for the compressed attachment
MAILPACK-TRANSF_BIN = 'X'.
MAILPACK-HEAD_START = 1.
MAILPACK-HEAD_NUM = 1.
MAILPACK-BODY_START = 1.
MAILPACK-BODY_NUM = TAB_LINES.
MAILPACK-DOC_TYPE = 'OTF'.
MAILPACK-OBJ_NAME = 'TEST'.
MAILPACK-OBJ_DESCR = 'Subject'.
MAILPACK-DOC_SIZE = TAB_LINES * 255.
APPEND MAILPACK.
ENDFORM.
Form GET_OTF_CODE
FORM GET_OTF_CODE.
DATA: BEGIN OF OTF OCCURS 0.
INCLUDE STRUCTURE ITCOO .
DATA: END OF OTF.
DATA: ITCPO LIKE ITCPO.
DATA: ITCPP LIKE ITCPP.
CLEAR ITCPO.
ITCPO-TDGETOTF = 'X'.
Start writing OTF code
CALL FUNCTION 'OPEN_FORM'
EXPORTING
FORM = 'ZTEST_FORM'
LANGUAGE = SY-LANGU
OPTIONS = ITCPO
DIALOG = ' '
EXCEPTIONS
OTHERS = 1.
CALL FUNCTION 'START_FORM'
EXCEPTIONS
ERROR_MESSAGE = 01
OTHERS = 02.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
WINDOW = 'MAIN'
EXCEPTIONS
ERROR_MESSAGE = 01
OTHERS = 02.
Close up Form and get OTF code
CALL FUNCTION 'END_FORM'
EXCEPTIONS
ERROR_MESSAGE = 01
OTHERS = 02.
MOVE-CORRESPONDING ITCPO TO ITCPP.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = ITCPP
TABLES
OTFDATA = OTF
EXCEPTIONS
OTHERS = 1.
Move OTF code to structure SOLI form email
CLEAR SOLISTI1. REFRESH SOLISTI1.
LOOP AT OTF.
SOLISTI1-LINE = OTF.
APPEND SOLISTI1.
ENDLOOP.
ENDFORM.
Regards
Sreeni -
Dynamic documents in ABAP Objects (weblog)
Hi SDNers,
Do you want to implement the following features in ABAP Screens?
1. Large font sizes and more colour options than traditional ABAP/4 (There are some limitations also)
2. ICONS and pictures in different sizes
3. Texts
4. Links
5. Pushbuttons
6. Input fields
7. Dropdown list boxes
8. Tables with row span and with column span
9. Tables with frames and without frames
10. Tables with buttons, icons, pictures, input elements and texts in it.
Then please read the below weblog to incorporate these features...
<a href="/people/venkata.ramisetti/blog/2005/12/20/dynamic-documents-in-abap-objects">Dynamic Documents in ABAP Objects</a>
Thanks,
Ramakrishnaone limitation which comes to my mind immediately is that you cannot create spool output of the dynamic document.
Regards
Raja
Maybe you are looking for
-
How to get SAP application language only with SQL code
Hi all, is there a way to get the current language only whith a sql query on the Database? I know that Ican find that information from the Application object of the UI Api but in this case i can't access them. Thanks in advance, Luca.
-
[EJB:015001] error while deploying an ejb on weblogic app server
Hi, I'm trying to deploy an ear which has lot of modules and it is failing for one of the ejb module. The exception is as follows: <Mar 22, 2011 7:47:01 PM GMT+05:30> <Error> <Deployer> <WL-149265> <Failure occurred in the execution of deployment req
-
Flatten Annotations in PDF File
Hello, Is there a way to flatten the annotations in a pdf file to guarantee they will print with the document when the user receives it. thanks barbara
-
What is the easiest way to export all tables data from Oracle to MS SQL Server?
Hello MS, I would like to export all tables from Oracle 11.2 to MS SQL Server 2012 R1. Using the tool "Microsoft SQL Server Migration Assistant v6.0 for Oracle" did not work for me because there are too many warnings and errors regarding the schema c
-
AIRPLAY not working after Apple tv 6.0.2 update!!!
After the apple tv 6.0.2 update airplay isn't working properly. I have reset and restarted my apple tv, reset the wireless network and it keeps disconnecting. Homesharing will not connect even after logging in and signing out on iTunes. Does anyone k