Spool to pdf from RFC Connection
Hi friends,
I am trying to download Sap Quotation into PDF from VB application using RFC connection. The problem is WS_DOWNLOAD RAISING Exception NO_BATCH. I had read one of the link which talks about using datasets etc, but doesn't apply for my case.
I need to download PDF version of Sap Quotation using RFC connection from VB. please help me
Regards
Lakhbir
Hi Rich,
I had also found an Sap note that also says about using Datasets.. anyidea, we can have this done in some other way..
or should we give it up as not supported by Sap.
Similar Messages
-
Hi,
I´ve installed ESS BP on my portal and some of the reports are showed as a PDF file, and I was wondering how did they do that?
Seem like the rfc send the file, like a binary sent thru the function.
Any idea? Any sample how to do that?
Thanks,
EduEduardo,
I've used a binary type in a similar situation. The RFC retrievers a BINARY type and my Web Dynpro applications show the PDF result.
Following my Web Dynpro code:
IWDCachedWebResource resource = WDWebResource.getWebResource
(wdContext.currentZ_Pdf_Report_OutputElement().getPdf(),
WDWebResourceType.getWebResourceTypeForFileExtension("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();
Regards,
Luciano -
RFC-connection error: DETAIL: no connect of TP sapdb02 from host u0085 after 20
Hello!
I face with problem to set up successfully a RFC-connection from SOLMAN to the satellite system.
The network connection here is VPN.
The following error appears, when I execute the connetion test:
Error: Timeout during allocate
LOCATION: SAP-Gateway on host /sapgw03
DETAIL: no connect of TP sapdb02 from host after 20 sec.
COMPONENT: SAP-Gateway
Has some one any ideas how to solve this problem?
Thank you very much!
regards
ThomHi,
Did u get this issue sorted out.
Let me know if you did mate..
I think its some thing to do firewall port..
Thanks
James -
RFC connection error in recording eCATT from Solman
Hello,
I am trying to record eCATT from Solution Manager into our DEV box. I have set-up the RFC connection and tested them.
When trying to recording I got the following message:
"RFC error ThControl: illegal sap_dext call !!!/ connection"
Any suggestion?
Thank you.Hi
Did you ever find any solution for this, as I am receiving same error even though seems that all settings are in place?
Thanks! -
RFC connection from SAP R/3 to OS400 server
Hi,
I am trying to establish an rfc connection between an R/3 system and OS400 server.
I dont have much experience on communication interfaces i have seen different options in SAPRFC.ini file but still i wanted to get some expert comments from the experts.
Please help me on this.
Thanks
Junaid.Hi,
We had the same scenario here also. You can call .NET code from ABAP program using SAP .Net connector.
The data can be downloaded to SQL server based on periodic job wise (every Half an hour or 1 Hour) .
1. Write an ABAP report to get new personnal numbers from HR master tables based on created date.
2. Create a RFC to pass employees details.
3. You can create a proxy in .NET server stub code based on the above RFC.
4. Write code to get data .NET object and establise a connection to SQL server.
5. Write code to push data into SQL server tables.
6. After you complete the .NET code, when you generate this code will create an exe file.
7. You have to execute that exe with few command line arguments.
8. The command line arguments need to setup in RFC destination (SM59).
9. In that ABAP report call this RFC with RFC destination as you defined.
.NET code can be done by .NET person.
Let me know if you have any clarifications.
Thanks & Regards,
Govind. -
RFC Connection From SAP to Iseries server
Hi,
I wish you can help me wtih this issue.
We are running ECC 6.0 on iseries v5r3m0.
We are trying to connect to an other non-SAP V5r1M0 system. We are using OSS note 146624 for this purpose.
Our first problem is that we cannot copy pgm files to a V5R1 system from V5R3 system. This can be solved with manual extraction kernel.
However our problem is that we are getting an "SQL Error 0" short dump when we start abap report. What ever the entry in DBCON table is we get this short dump.
Did anyone configured RFC connection to a non-SAP Iseries system? What methos should we use?
Best RegardsHello Volker,
it is some time ago, you posted the original message here. I have a follow on question and I hope you can help.
Apart from the redbook I can't find any documentation about rfc with iseries and that gives some examples but no real explanation about what you are supost to do
I followed the rfc example "ILE RPG evoked from ABAP" and I can get it to work, as long as I ask for only one parameter from the ABAP.
Do you know how to get multiple parameters from ABAP? Just repeating the RfcGetData with different parameters doesn't work. The ABAP will cancel with "no data to receive" on the second parameter.
Also do you know how to create a rfc-trace for these requests?
Best Regards.
Richard la Croix -
RFC connection from SAP Data services to SAP ECC
We have data services set up in linux machine. I am trying to set up RFC connection between data services and SAP ECC.
From data management console after creating RFC connection i am getting "RFC_bad_connection" error message. Username , password, system number, hostname and client is working from SAP GUI and has all the authorizations. SAP gateway and service is name is correct.
Did anyone had similar issue and what was the solution. Do we have start the RFC connection from linux data services machine, i didn't see any sh executable to do so.
Thanks in advance for helping to solve the RFC connection issue.
Edited by: gupta sasha az on Dec 19, 2011 7:24 PMI am new to SAP and we have just started work on Data Services.
I wanted to know the complete procedure as in how can I establish a connection between Data Services and ECC.
Thanks for your help and time. -
Convert OTF to PDF and print PDF from Spool
Hi,
I have searched all the forums and service market place but could not find solution to my problem.
I am using Function module
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = p_spool
no_dialog = 'X'
dst_device = 'ISJB'
pdf_destination = 'S'
IMPORTING
pdf_bytecount = lv_bytecount
pdf_spoolid = lv_spoolid
otf_pagecount = lv_pagecount
btc_jobname = lv_jobname
btc_jobcount = lv_jobcount
TABLES
pdf = gt_pdf
EXCEPTIONS
err_no_otf_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_dstdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
this generates spool in SP01. Ideally it should generate a PDF spool file but it generates a BIN file of Format G_RAW. When I display the spool it displays all kinds of japanese characters which does not make sense,.
I setup printer ISJB with device type JPPDF (PDF converted for Japanese characters). Does any one know where the problem could be? Why I could not print the Spool in PDF?
Thank you,
JagadishHi,
check out this program which will convert spool to pdf
REPORT zsmartform_spool_g.
*************Types Declaration ****************************
TYPES : BEGIN OF gty_tab, " Spool Requests
rqident TYPE tsp01-rqident, " Spool request number
rqdoctype TYPE tsp01-rqdoctype, " Spool: document type
rqo1name TYPE tsp01-rqo1name, " TemSe object name
END OF gty_tab.
*********Work Area ****************************************
DATA: form_name TYPE rs38l_fnam, " Used to get the function module of Smartform
wa_outopt TYPE ssfcompop, " SAP Smart Forms: Smart Composer (transfer) options
gs_tab TYPE gty_tab. " Spool Requests
*******Internal Table Declarations ************************
DATA: gt_tab TYPE STANDARD TABLE OF gty_tab, " Spool Requests
gt_pdf TYPE STANDARD TABLE OF tline, " SAPscript: Text Lines
gt_spoolid TYPE tsfspoolid, " Table with Spool IDs
gt_otfdata TYPE ssfcrescl. " Smart Forms: Return value at end of form prnt
*********Variable Declarations ****************************
DATA: gv_bytecount TYPE i, "#EC NEEDED " PDF Byte Count
gv_file_name TYPE string, " File name
gv_file_path TYPE string, " File Path
gv_full_path TYPE string, " Path
gv_binfilesize TYPE i, " Bin File size
gv_rqident TYPE tsp01-rqident, " Spool request number
gv_name TYPE tst01-dname, " TemSe object name
gv_objtype TYPE rststype-type, " TemSe: Object type name
gv_type TYPE rststype-type. " TemSe: Object type name
START-OF-SELECTION.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZPDF_G'
IMPORTING
fm_name = form_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*Get Spool IDs
wa_outopt-tdnewid = 'X'.
wa_outopt-tddest = 'LP01'.
CALL FUNCTION form_name
EXPORTING
output_options = wa_outopt
user_settings = 'X'
IMPORTING
job_output_info = gt_otfdata
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*Assign the spool id
gt_spoolid = gt_otfdata-spoolids.
Generate spool and pdf for the output of the form
PERFORM sub_generate_spool_pdf.
END-OF-SELECTION.
*& Form sub_generate_spool_pdf
Generate Spool and PDF output
FORM sub_generate_spool_pdf .
DATA: ls_spoolid LIKE LINE OF gt_spoolid.
*----Get the Spool Number
CLEAR ls_spoolid.
READ TABLE gt_spoolid INTO ls_spoolid INDEX 1.
IF sy-subrc = 0.
gv_rqident = ls_spoolid.
ENDIF.
CLEAR gt_tab.
SELECT rqident rqdoctype rqo1name INTO TABLE gt_tab
FROM tsp01 WHERE rqident = gv_rqident.
IF sy-subrc = 0.
CLEAR gs_tab.
Get the TemSe: Object name into variable gv_name
READ TABLE gt_tab INTO gs_tab INDEX 1.
IF sy-subrc = 0.
gv_name = gs_tab-rqo1name.
ENDIF.
ENDIF.
CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
EXPORTING
authority = 'SP01'
client = sy-mandt
name = gv_name
part = 1
IMPORTING
type = gv_type
objtype = gv_objtype
EXCEPTIONS
fb_error = 1
fb_rsts_other = 2
no_object = 3
no_permission = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Check if temse object name type is 'OTF' or 'LIST'
IF gv_objtype(3) = 'OTF'.
PERFORM get_otf_spool_in_pdf.
ELSE.
PERFORM get_abap_spool_in_pdf.
ENDIF.
Generate F4 functionality from spool to pdf
PERFORM write_pdf_spool_to_pc.
ENDFORM. " sub_generate_spool_pdf
*& Form get_abap_spool_in_pdf
Generate the Spool number
FORM get_abap_spool_in_pdf .
REFRESH gt_pdf.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gv_rqident
IMPORTING
pdf_bytecount = gv_bytecount
TABLES
pdf = gt_pdf
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " get_abap_spool_in_pdf
*& Form get_otf_spool_in_pdf
Generate OTF data from the Spool Number
FORM get_otf_spool_in_pdf .
REFRESH gt_pdf.
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gv_rqident
IMPORTING
pdf_bytecount = gv_bytecount
TABLES
pdf = gt_pdf
EXCEPTIONS
err_no_otf_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_dstdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " get_otf_spool_in_pdf
*& Form write_pdf_spool_to_pc
Generate PDF format
FORM write_pdf_spool_to_pc .
CALL METHOD cl_gui_frontend_services=>file_save_dialog
CHANGING
filename = gv_file_name
path = gv_file_path
fullpath = gv_full_path
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
not_supported_by_gui = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
----DOWNLOADING THE PDF DATA***
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = gv_binfilesize
filename = gv_full_path
filetype = 'BIN'
TABLES
data_tab = gt_pdf
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " write_pdf_spool_to_pc -
Why can't I print to PDF from other document types when I'm on a wireless connection?
Example: When I'm on a wireless connection and attempt to print a Powerpoint file to PDF, the document remains in the Adobe Acrobat PDF printer queue in a status of "Error..Printing". I do not have this issue when I'm on a wired internet connection. My only option when converting documents to PDF while on wireless is to select "Save As" and save as a .pdf file type. This option does not maintain all of the formatting of the original file, so my preference is to print to pdf.
Interesting. What happens if you open Acrobat and select:
Acrobat 9: File > Create PDF > From File
Acrobat 11: File > Create > PDF from File -
Create Spool from Internal table & converrt the spool to PDF
Hi All,
My requirement is take data from a table and find amount specific to each Vendors . So I took all the data into ITAB and do all the calculation. Later after calculation I have to create a spool from this ITAB and this spool have to convert to PDF. Later this PDF have to seend via email.
To convert the internal table to Spool , I used
LOOP AT t_summ INTO wa_summ.
w-amount = wa_summ-remittanceamount.
CONCATENATE wa_summ-vendorcode
wa_summ-controlnum
w-amount INTO wa_textdata SEPARATED BY space.
APPEND wa_textdata TO t_textdata.
ENDLOOP.
DESCRIBE TABLE t_textdata .
w-file_length = syst-tfill * 1022.
l_doctype = 'LIST'.
l_layout = 'X_POSTSCRIPT'.
CONCATENATE ' Listbill Summary Report for' syst-datum INTO
l_title SEPARATED BY space.
l_receiver = syst-uname.
* Create Spool
CALL FUNCTION 'RSPO_SR_OPEN'
EXPORTING
dest = 'LOCL'
* LDEST =
layout = l_layout
name = 'SUMREP'
* SUFFIX1 =
* SUFFIX2 =
copies = '1'
* PRIO =
* immediate_print = ' '
* AUTO_DELETE =
titleline = l_title
receiver = syst-uname "
* division = l_pri_params-prabt " abteilung
* authority = l_pri_params-prber "
* POSNAME =
* ACTTIME =
* LIFETIME = '8'
* APPEND =
* COVERPAGE =
* CODEPAGE =
doctype = l_doctype
* ARCHMODE =
* ARCHPARAMS =
* TELELAND =
* TELENUM =
* TELENUME =
IMPORTING
handle = l_spool_handle
spoolid = w-spoolid
EXCEPTIONS
device_missing = 1
name_twice = 2
no_such_device = 3
operation_failed = 4
OTHERS = 5
. "#EC DOM_EQUAL
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'SLVC_C1022_TO_C255'
EXPORTING
i_file_length = w-file_length
TABLES
it_c1022 = t_textdata
et_c255 = lt_spool.
l_length = w-file_length.
LOOP AT lt_spool INTO ls_spool.
l_length = l_length - 255.
IF ( l_length > 0 ).
l_line_length = 255.
ELSE.
l_line_length = l_length + 255.
ENDIF.
* Write contents to spool
CALL FUNCTION 'RSPO_SR_WRITE'
EXPORTING
handle = l_spool_handle
text = ls_spool
length = l_line_length.
ENDLOOP.
* Close Spool
CALL FUNCTION 'RSPO_SR_CLOSE'
EXPORTING
handle = l_spool_handle
pages = 1
FINAL = 'X'
EXCEPTIONS
handle_not_valid = 1
operation_failed = 2
OTHERS = 3
By this I can see the spool with data in SP02.
Then to conver to PDF, I used
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = w-spoolid
no_dialog = 'X'
DST_DEVICE = 'LOCL'
* PDF_DESTINATION =
IMPORTING
* PDF_BYTECOUNT =
* PDF_SPOOLID =
list_pagecount = list_pagecount
* BTC_JOBNAME =
* BTC_JOBCOUNT =
TABLES
pdf = t_pdf
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
* BIN_FILESIZE =
filename = 'D:\t\t.pdf'
filetype = 'BIN'
TABLES
data_tab = t_pdf
* FIELDNAMES =
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22
But later when I go and open the PDF, I am getting an error saying'Page cannot be open because it dont have any pages'
Please help me
Regards,
NikhilHi Nikhil,
<li>If you are still not able to find out the problem. You can an alternative way , which is used for the same purpose.
<li>Try this way. It creates spool and and same CONVERT_ABAPSPOOLJOB_2_PDF fm is used to convert spool to PDF. It works. Test this test program.
REPORT ztest_notepad.
DATA:g_val TYPE c,
w_pripar TYPE pri_params,
w_arcpar TYPE arc_params,
i_pdf TYPE TABLE OF tline,
spoolid LIKE tsp01-rqident,
l_no_of_bytes TYPE i,
l_pdf_spoolid LIKE tsp01-rqident,
l_jobname LIKE tbtcjob-jobname,
l_jobcount LIKE tbtcjob-jobcount.
DATA:it_t001 TYPE TABLE OF t001 WITH HEADER LINE.
START-OF-SELECTION.
SELECT * FROM t001 INTO TABLE it_t001.
"Read, determine, change spool print parameters and archive parameters
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
in_archive_parameters = w_arcpar
in_parameters = w_pripar
layout = 'X_65_132'
line_count = 65
line_size = 132
no_dialog = 'X'
IMPORTING
out_archive_parameters = w_arcpar
out_parameters = w_pripar
valid = g_val.
IF g_val NE space AND sy-subrc = 0.
w_pripar-prrel = space.
w_pripar-primm = space.
NEW-PAGE PRINT ON NEW-SECTION PARAMETERS w_pripar ARCHIVE PARAMETERS w_arcpar NO DIALOG.
ENDIF.
LOOP AT it_t001.
WRITE:/ it_t001.
ENDLOOP.
NEW-PAGE PRINT OFF.
CALL FUNCTION 'ABAP4_COMMIT_WORK'.
spoolid = sy-spono.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = spoolid
no_dialog = ' '
IMPORTING
pdf_bytecount = l_no_of_bytes
pdf_spoolid = l_pdf_spoolid
btc_jobname = l_jobname
btc_jobcount = l_jobcount
TABLES
pdf = i_pdf.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'C:\temp\test.pdf'
filetype = 'BIN'
TABLES
data_tab = i_pdf.
Thanks
Venkat. -
Get PDF data from RFC and send in email.
Hello,
I need to get PO spool PDF from R/3 server into SRM server and send email from SRM.
Code for sending PDF in email is working fine if executed from R/3 .But in SRM server PDF
in email is not opening in SOST transaction. Its showing error "Adobe reader cannot open document because either its not a supported file type or the file has ben damaged(for example,it was sent as an email attachment and wasnt correctly decoded).
Is this due to some server specific settings? Any help is appreciated!Hi Kanchan,
If the generated PDF file is opened properly in R/3 & not in SRM, then it should be a version issue.
Please check for any relevant note wrt SRM/PDF.
Best regards,
Prashant -
When I want to create a pdf from a webpage I get:"cannot connect to server" why?
when I want to create a pdf from a webpage I get:"cannot connect to server" why?
Did you set you Preference im the right way? See
http://help.adobe.com/en_US/acrobat/X/pro/using/WS533B928E-576F-4dc3-AA14-73D08EEE8F20.w.h tml
the newer link leeds to https://helpx.adobe.com/acrobat/topics.html .
You could use the German link too:
http://help.adobe.com/de_DE/acrobat/using/WSa65464b4e07c3e0a781ee72f1298fed479c-7ffe.html
Hans-Günter -
While Changing ABAP List from Spool to PDF Whole List is not displaying
Hi,
There is Z Program to convert Payslip ABAP List to PDF, when it is generating in PDF from Spool, I cannot view whole Payslip.
Previously it is dislpaying fully in PDF file, But not Now.
Please Help me...............
With Regards,
Gaurav.Hi,
Thank you very much. My problem has been solved
Thanks & Regards,
Gaurav Mittal -
Printing SFP ADOBE generated pdf from spool.
I am trying to print ADOBE PDF file to HP Designjet Z5400 plotter. It successfully writes a pdf file to the spool. When I either release that spool file to print or have the print job set to print immediately I get a spool error - unable to read format G_RAW l_rc =128. However I can print the pdf from preview. It is NOT an issue with the printer printing the pdf file as I can do this. My issue is that I cannot print directly to the printer via the SAP spooler. I have entered incident to SAP with specific example of my program that produces the pdf spool file. I am directed to read notes that imply I have ADS problem which is ridiculous as I have plenty of SFP generated pdf files printing to HP and Canon laser printers. Again i am trying to print a very large label 2 X2 foot to HP Designjet Z5400 plotter directly via spool. My task is to direct label to different printers based upon MATNR field.
I would appreciate response from only people who have printed SPF ADOBE pdf to plotters.
The pdf that was created file size 5.7 KB.
SPAD settings
Device Type HPGL HPGL : Bus.Graphics: HP/GL plotter Device Class Standard printer
Model HP Designjet Z5400
Host Spool Access Method G G: Frontend print with control technologienew component SAPPDFPRINT, interactive forms can be printed on any Windows printer just like all of the other spool requests with the SAPWIN device types.
Refer to SAP notes:
1444342 - Device type-independent printing of ADS forms
968394 - Forms Printing from spool and from Preview PDF differ
1630403 - Mass printing of Adobe documents
Regards
Sandy -
Determine size of pdf from spool
All,
does anyone know how to determine size of pdf from spool.
i'm using RSPO_RETURN_ABAP_SPOOLJOB to get pdf file, but i want to know its size.
any idea?Assume the PDF data is in internal table gt_messg_att.
MOVE p_spoolno TO lv_spoolno.
* CONVERT THE SPOOL TO PDF
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = lv_spoolno
no_dialog = lc_no_dialog
* DST_DEVICE =
* PDF_DESTINATION =
IMPORTING
pdf_bytecount = lv_bytecount
* PDF_SPOOLID =
* OTF_PAGECOUNT =
* BTC_JOBNAME =
* BTC_JOBCOUNT =
TABLES
pdf = gt_pdf_output
EXCEPTIONS
err_no_otf_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_dstdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
* Transfer the 132-long strings to 255-long strings
LOOP AT gt_pdf_output INTO wa_pdf_output.
TRANSLATE wa_pdf_output USING ' ~'.
CONCATENATE v_buffer wa_pdf_output INTO v_buffer.
MODIFY gt_pdf_output FROM wa_pdf_output.
CLEAR wa_pdf_output.
ENDLOOP.
* TO CONVERT THE DATA INTO PDF FORMAT ELSE THE PDF FILE
* WON'T OPEN & REPORT WOULD GIVE A MESSAGE THAT
* THE FILE IS DAMAGED & COULD NOT BE OPENED
TRANSLATE v_buffer USING '~ '.
CLEAR : wa_messg_att,
gt_messg_att.
DO.
wa_messg_att = v_buffer.
APPEND wa_messg_att TO gt_messg_att.
SHIFT v_buffer LEFT BY 255 PLACES.
IF v_buffer IS INITIAL.
EXIT.
ENDIF.
CLEAR wa_messg_att.
ENDDO.
ENDIF.
* Get size of attachment
DESCRIBE TABLE gt_messg_att LINES lv_cnt.
READ TABLE gt_messg_att INTO wa_messg_att INDEX lv_cnt.
lwa_doc_data-doc_size = ( lv_cnt - 1 ) * 255 + STRLEN( wa_messg_att ).
Maybe you are looking for
-
Error in creating a process task adapter in OIM
Hi All, I am trying to create a process task adapter(Java Task) in OIM 11.1.1.5. The code tries to fetch the values of a process form using a lookup and store it in a hashmap. So have done import for Thor.Api.* and com.thortech.xl.dataaccess.tcDataPr
-
Are you 100% sure I'm losing Showtime through no fault of my own tonight at midnight?
And if so what happens then? Does my U-450 bill go down? Does EPIX replace Showtime in the U-300 and U-450 packages? Does it really do any good to call and curse someone out on the phone? Or is just switching providers my best option? I know some of
-
Hello. Actually i dont have programming skills so much and just tryingt to make ebay listing with dreamvever using Spry .I have a alsmost finsihed the the page, just one problem with spry I am trying to bulld collapsible Tab menu on my page and the
-
I'm working in Oracle forms and reports domain and would like to upgrade my skills . can anyone tell me what technology in oracle is apt to learn at this time after forms and reports and also the one that is demanding ?
-
Can I use my iPhone in Europe and will it work as a hotspot for my iPad?
Can I use my iPhone in Europe and will it work as a hotspot for my iPad?