on 02-02-2006 1:40 AM
Hi,
I read a note about <b>How to get PDF on to Web Dynpro iView </b>, it was very helpfull, but the problem is in R/3 because I need that the Print Window do not open and send data direct to Web Dynpro.
the code is:
control_parameters-no_dialog = 'X'.
control_parameters-preview = ' '.
control_parameters-langu = 'S'.
control_parameters-getotf = 'X'.
...
output_options-xsfcmode = 'X'.
output_options-xsf = space.
output_options-xdfcmode = 'X'.
output_options-xdf = space.
output_options-tdnoprev = 'X'.
...
* OUTPUT_OPTIONS-TDNOPRINT = 'X'.
output_options-xsfoutdev = output_options-tddest = 'ZWIN'.
output_options-tdimmed = 'X'.
output_options-tddelete = 'X'.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'Z_REP_TRANS_PRES'
* VARIANT = ' '
* DIRECT_CALL = ' '
importing
fm_name = formato
* EXCEPTIONS
* NO_FORM = 1
* NO_FUNCTION_MODULE = 2
* OTHERS = 3
call function '/1BCDWB/SF00000022'
exporting
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
control_parameters = control_parameters
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
output_options = output_options
* USER_SETTINGS = 'X'
* USUARIO =
* FECHA_INI =
* FECHA_FIN =
tipo_rep = tipo_rep
* TIPO =
* LOGO = 'ZHR_CANTV_LOGO'
importing
* DOCUMENT_OUTPUT_INFO =
job_output_info = output_job
* JOB_OUTPUT_OPTIONS =
tables
transf_pres = transf_pres
* EXCEPTIONS
* FORMATTING_ERROR = 1
* INTERNAL_ERROR = 2
* SEND_ERROR = 3
* USER_CANCELED = 4
* OTHERS = 5
call function 'CONVERT_OTF'
exporting
format = 'PDF'
*/ MAX_LINEWIDTH = 132
importing
bin_filesize = numbytes
bin_file = bin_file
tables
otf = zoftdata
lines = zpdf
exceptions
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
others = 0.
Thanks in advance!!!
tgfch
Please see this sample applications
WDR_TEST_ADOBE_PDF_ONLY
WDK_SPOOL_TO_PDF
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tokio,
I've got a similar problem. We're reading a PDF File from an archive via
CALL FUNCTION 'ARCHIVOBJECT_GET_TABLE'
EXPORTING
archiv_id = is_archiv-archiv_id
document_type = iv_doctype
archiv_doc_id = is_archiv-arc_doc_id
IMPORTING
length = len
TABLES
archivobject = it_archivobject.
receiving the PDF data in table it_archivobject.
Now we're looking for a way to dieplay that PDF Data in a
web dynpro application and have no clue.
Any Help appreciated!
THX!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Claus,
Try use this web dynpro code to open the XSTRING that coming from abap side:
IWDCachedWebResource resource = WDWebResource.getWebResource(
wdContext.currentZReport_OutputElement().getPdf(), WDWebResourceType.getWebResourceTypeForFileExtensio("pdf"));
resource.setResourceName(this.getDescriptionReport());
// Create a External Window with the URL destination
IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(resource.getURL(), this.getDescriptionReport(), true);
// Eliminate some features of the window
window.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
window.removeWindowFeature(WDWindowFeature.MENU_BAR);
window.removeWindowFeature(WDWindowFeature.STATUS_BAR);
window.removeWindowFeature(WDWindowFeature.TOOL_BAR);
window.setWindowSize(780,430);
window.setWindowPosition(20,140);
window.open();
This code will open its PDF report!!!
Regards,
Luciano Leite
Hi Tokio,
The PDF or any other data has to be requested from the webdynpro application. And there are some standard BAPIs
(SDOK_****) which deal with upload or download of any binary data.
Hope it helps.
Regards
MK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tokio,
For displaying a pdf document you could use the InteractiveForm ui element provided by Web Dynpro. It is available for Web Dynpro ABAP and Java.
Best regards,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
and here's the link to the documentation (WDA):
InteractiveForm: http://help.sap.com/saphelp_nw04s/helpdata/en/0f/128841e8231709e10000000a155106/frameset.htm
Integrating Forms: http://help.sap.com/saphelp_nw04s/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/frameset.htm
Regards, Heidi
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.