Adobe Forms function module - downloading the xstring output in PDF file
Hi Guys,
I'm using Adobe forms and fetching its output in an XSTRING PDF format. How can I download this XSTRING output to a PDF file and store on the local file system?
I'm using the following approach to getting a PDF output:
ls_outputparams-getpdf = 'X'.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = ls_outputparams.
* Get the name of the generated function module
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = 'ZADOBEFORM'
IMPORTING
e_funcname = lv_fmname.
IF sy-subrc <> 0.
ELSE.
* Call the Adobe Form function module
CALL FUNCTION lv_fmname
EXPORTING
/1bcdwb/docparams = ls_docparams
IMPORTING
/1bcdwb/formoutput = ls_form_output
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
* Close the spool job
CALL FUNCTION 'FP_JOB_CLOSE'.
Now, the variable LS_FORM_OUTPUT-PDF contains the PDF output in XSTRING. My question is how can I download this as a PDF file to my local machine.
Kind Regards,
Shailesh.
hi guys,
im using all FM to download my PDF adobe but in this part :
ls_spfli-carrid = 'AA'.
ls_spfli-connid = '0017'.
APPEND ls_spfli TO it_spfli.
flag = 'X'.
is_address_type = '1'.
is_address_number = '22515'.
is_person_number = '22517'.
is_country = 'IN'.
*&--- Call the generated function module
CALL FUNCTION '/1BCDWB/SM00000200'
EXPORTING
* /1BCDWB/DOCPARAMS =
it_spfli = it_spfli
flag = flag
is_address_type = is_address_type
is_address_number = is_address_number
is_person_number = is_person_number
is_country = is_country
IMPORTING
/1bcdwb/formoutput = fp_formoutput
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4
I have usage_error knowing that the execution of the function module in SE37 pass successfuly and also the execution of the forms .
in your opinion what can be the problem?
Kind Regards,
Similar Messages
-
How to download the script data into pdf file
how to download the script data into pdf file
i have one option to download the script data to pdf file --->rstxpdft4 program.
i have one doubt how to use this proogram.or any function module to download the script data to pdf file.
Thanks and regards,
Sri.Hi Sri Sai,
I know one method to convert the sapscript to pdf file :
first generate a Spool Request for the required Sapscript
then goto transaction SP01 and copy the generated Spool Request number
now execute the SAP report RSTXPDFT4
here enter the copied Spool request number and the target directory into the parameters
execute the report
required pdf file will be generated into the target directory
i hope it will help you out
Please refer this simple program:
http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
Reward points if found helpful....
Cheers,
Eshwar. -
Problem while downloading the alv output to excel file.
Hii,
While downloading the alv output to an excel file i am facing a problem. Either the output comes as 1.23456E+11 or the values get cut .
Cant put in txt file as the users require to calculate directy and i have even tried to increase the output length .But both doesnt help.
So what are the other ways to do so.
Edited by: mansi_v27 on Mar 24, 2010 12:35 PMHi,
Welcome to SCN!!!.
Please go through the forum rules. This has been discussed many times. You can search in the forum for this.
Infact there is no problem. Just expand that excel cell. You can see the full value. This is standard excel property.
Thanks,
Vinod. -
Adobe form not saving user-input data into saved pdf file
Hi forumers,
I'm a new abap developer and I'm tasked to create an interactive adobe form that will require the user to input data in the form.
No data is passed and received from PDF, but PDF has to be u2018Fillableu2019. I am able to fill out the form but when I actually save the form, it will be saved as a blank form again. I've seen the relevance of the LS_DOCPARAMS-FILLABLE = 'X' on this forum and I have incorporated it in my code. But how should I code the abap program to enable to save the user input as well into the form.
DATA: GV_FMNAME TYPE FPNAME,
LS_DOCPARAMS TYPE SFPDOCPARAMS,
LS_OUTPUTPARAMS TYPE SFPOUTPUTPARAMS.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
I_NAME = 'ZSC_ZRUFORREP'
IMPORTING
E_FUNCNAME = GV_FMNAME
* E_INTERFACE_TYPE =
* EV_FUNCNAME_INBOUND =
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
IE_OUTPUTPARAMS = LS_OUTPUTPARAMS
EXCEPTIONS
CANCEL = 1
USAGE_ERROR = 2
SYSTEM_ERROR = 3
INTERNAL_ERROR = 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.
LS_DOCPARAMS-FILLABLE = 'X'.
LS_DOCPARAMS-DYNAMIC = 'X'.
CALL FUNCTION GV_FMNAME
EXPORTING
/1BCDWB/DOCPARAMS = LS_DOCPARAMS
* IMPORTING
* /1BCDWB/FORMOUTPUT =
EXCEPTIONS
USAGE_ERROR = 1
SYSTEM_ERROR = 2
INTERNAL_ERROR = 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.
CALL FUNCTION 'FP_JOB_CLOSE'
* IMPORTING
* E_RESULT =
EXCEPTIONS
USAGE_ERROR = 1
SYSTEM_ERROR = 2
INTERNAL_ERROR = 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.
Thanks,
dgracheeNot quite yet, I have to say...
If you check the domain "FPINTERACTIVE", you'll see these values:
Print Form
X Interactive Form with Additional Usage Rights
N Interactive Form Without Additional Usage Rights
F
So, you are not providing "additional usage rights" (Adobe Form Credentials), meaning there could be a problem when you want to use those forms in a Production environment. -
Using Adobe Forms and document will not convert to a PDF file
I just purchased the Forms add on pack today and I was able to create a form with no trouble. I would like to have the form downloaded as a PDF (which is an option in this package) and I keep getting and error message that says Adobe is unable to download the form at this time. I tried opening and downloading the form on different computers at my work, all generating the same error message. Is there an Adobe issue, or could this be a security feature that is not enabled on my highly blocked/monitored work computer that I have limited control over? I can view the form as a link, embedded URL, and web form, just having so much difficulty getting it to open as a PDF, really the only way I want to use this program. If this is a temporary problem, then I can wait until its resolved, however, if I can never open any forms I create as a PD, the package is useless to me.
OS
Version
What are your steps to create a PDF?
PDF settings?
What is the content of your file?
What graphic did you use? -
How to download the report output into PDF format
Hi friedns
from the report output when user clicks download button
it has to download to PDF format
how to do this
thanks in advance
venuhi venu,
check this sample code
Save Report Output to a PDF File
This report takes another report as input, and captures the output of that report. The output is then converted to
PDF and saved to a local file. This shows how to use some of the PDF function modules, as well as an easy way to
create PDF files.
Source Code Listing
report zabap_2_pdf.
*-- Enhancements: only allow to be run with variant. Then called
*-- program will be transparent to users
*-- TABLES
tables:
tsp01.
*-- STRUCTURES
data:
mstr_print_parms like pri_params,
mc_valid(1) type c,
mi_bytecount type i,
mi_length type i,
mi_rqident like tsp01-rqident.
*-- INTERNAL TABLES
data:
mtab_pdf like tline occurs 0 with header line,
mc_filename like rlgrap-filename.
*-- SELECTION SCREEN
parameters:
p_repid like sy-repid, " Report to execute
p_linsz like sy-linsz default 132, " Line size
p_paart like sy-paart default 'X_65_132'. " Paper Format
start-of-selection.
concatenate 'c:\'
p_repid
'.pdf'
into mc_filename.
*-- Setup the Print Parmaters
call function 'GET_PRINT_PARAMETERS'
exporting
authority= space
copies = '1'
cover_page = space
data_set = space
department = space
destination = space
expiration = '1'
immediately = space
in_archive_parameters = space
in_parameters = space
layout = space
mode = space
new_list_id = 'X'
no_dialog= 'X'
user = sy-uname
importing
out_parameters = mstr_print_parms
valid = mc_valid
exceptions
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
others = 4.
*-- Make sure that a printer destination has been set up
*-- If this is not done the PDF function module ABENDS
if mstr_print_parms-pdest = space.
mstr_print_parms-pdest = 'LOCL'.
endif.
*-- Explicitly set line width, and output format so that
*-- the PDF conversion comes out OK
mstr_print_parms-linsz = p_linsz.
mstr_print_parms-paart = p_paart.
submit (p_repid) to sap-spool without spool dynpro
spool parameters mstr_print_parms
via selection-screen
and return.
*-- Find out what the spool number is that was just created
perform get_spool_number using sy-repid
sy-uname
changing mi_rqident.
*-- Convert Spool to PDF
call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
exporting
src_spoolid= mi_rqident
no_dialog = space
dst_device = mstr_print_parms-pdest
importing
pdf_bytecount = mi_bytecount
tables
pdf = mtab_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.
call function 'DOWNLOAD'
exporting
bin_filesize = mi_bytecount
filename = mc_filename
filetype = 'BIN'
importing
act_filename = mc_filename
tables
data_tab = mtab_pdf.
FORM get_spool_number *
Get the most recent spool created by user/report *
--> F_REPID *
--> F_UNAME *
--> F_RQIDENT *
form get_spool_number using f_repid
f_uname
changing f_rqident.
data:
lc_rq2name like tsp01-rq2name.
concatenate f_repid+0(8)
f_uname+0(3)
into lc_rq2name separated by '_'.
select * from tsp01 where rq2name = lc_rq2name
order by rqcretime descending.
f_rqident = tsp01-rqident.
exit.
endselect.
if sy-subrc ne 0.
clear f_rqident.
endif.
endform." get_spool_number
Regards,
Naveen -
To download the query output to falt file
Hi all,
i have a query which i know will give more than 65k records as the output for a selection.
i cannot run this query in excel due to its limitation.
if i run on web i cannot download this as downloading is happening to excel file only.
The customer ideally wants to download the query result to a text file(csv,tab-delimited etc) which inturn it will upload to MS-Access.
How do i achieve this?
SAP has given response use try using these options:
1.open interfaces to receive the output of a query via the MDX language.
2.open hub tool as it is designed for big amounts of data.(i suppose this is not possible as i want to download query output not the data target contents)
how do i achieve my scenario with option 1?
Are there any alternatives??
Any useful help will be rewarded.
Regards,
Dhanya.hi vivek,
thnks for the useful reply.
i have some problem with my ID,hence loggin in through my coleague's ID.
i will assign u points as i get logged in.
I did as u said by downloading it to unconverted format.
the file got download to a text file.where the output has
1.header rows(10 lines almost)
2.the values r coming in single quotes e,g:
'144000023073 'TAAS SETTLEMENT CONV 738 '19333000 '30.09.2006 '0.000
how can i remove all this?
Regards,
Dhanya
I -
Function module to deliver svript output to PDF format
hi all,
1) please tell me if ther is any FM to output sciprt
into a PDF format (user wants script o/p in PDF file format) .
2) is there any FM to convert date field to an integer
thanks in advance,
dharmahi,
FM is CONVERT_OTF.
CALL FUNCTION "CONVERT_OTF"
EXPORTING FORMAT = "PDF"
IMPORTING BIN_FILESIZE = FILE_LEN
TABLES OTF = OTFDATA
LINES = PDFDATA
EXCEPTIONS ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
OTHERS = 4.
for any clarifiaction pls mail me.
pls reward points, if this helped u.
regards,
anversha.
[email protected] -
How can I prevent Adobe Reader X from being the default to open .pdf files?
I have Adobe Acrobat Professional 9.0 and will soon be getting V 10.
I want Acrobat to open my .pdf files NOT Reader.
Reader was installed because a certain program required it.
Any help would be appreciated.
KamoxbThank you so much! Unfortunately for me, it is grayed out. I will need to get my IT admin person to set it for me.
Kathie Morris
Automated Publishing Tech
DLA Document Services
X1605
[email protected] -
How to download the content to a PDF source file.
Hi All,
I am using FileDownload UI element in the ADOBE interactive to download the content to a PDF file.
Please help me how to download content to a PDF file.
Thanks,
Archana.hi Archana,
you will get the byte format of the pdf form the pdf source attribute , create a resource using that byte data of type pdf as following
IWDResource iwdResource = WDResourceFactory.createResource(wdcontext.currentContextElement().getPdfSource(), "resource name", WDWebResourceType.PDF);
create a context element say fileresource of type iwdresource.
set it's value as following.
wdContext.currentContextElement().setFileResource(iwdResource);
and do the following code on the action of the download button.
public void downloadFile( )
//@@begin createExternalPopup()
// get the resource from the context
IWDResource resource = wdContext.currentContextElement().getFileResource();
//create an external window. A download dialog should appear
IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(resource.getUrl(WDFileDownloadBehaviour.AUTO.ordinal()) ,"Title");
//@@end
with regards
shanto aloor -
Error while determining the form function module
Hi everyone,
We are experiencing problems while displaying one adobe form in ESS. Its the Travel Expense form (PTRV_EXPENSE_FORM). When pressing the button to Display/Print the form we get an error message: "Error while determining the form function module", and no form I shown. The ADS server is configured correctly and there are other forms that are actually working, for example the Travel Request form. We are running WAS 7.0 with SP12.
Anyone has an idea what can cause the problem? Any help is greatly appreciated.
Thanks in advance!
Regards,
SophieViktor,
Thank you for your answer, it solved our problem!
Regards,
Sophie -
Travel Display Form: Error while determining the form function module
Hi,
In Travel Reqeust (ECC6/ESS) when i click the Display Form after raising the Travel Request it shows the error
"Error while determining the form function module"
Can anyone have idea on this?
Regards,
BoobalanHi,
This error was due to Not supported platforms of ADS (Adobe Document services)
It was not supported on itanium64 bit processors.
Please check where the ADS is supported in service.sap.com/pam
You can use the ADS in the Non-Supported Server by linking it to Supported Platform Server using the SM59 link. This will make the ADS files to work.
Please refer the ADS Config Doc for details.
Hope you also solve this problem.
Regards,
Boobalan -
How do I upgrade my account for adobe forms so I can download the submissions to a PDF?
How do I upgrade my account in adobe forms central so I can download the submissions to a PDF?
Hello,
I am sorry to inform you that it is not possible to purchase an Adobe FormsCentral subscription, as this service is retiring on- July 28 2015. It is not possible to upgrade the FormsCentral subscription, only existing users can use the service till retirement.
Please visit the links mentioned below:-
FormsCentral is retiring | Adobe Acrobat Blog
FormsCentral: Retirement FAQ
Regards,
Nakul -
What is control form function module.
hi
what is control form function module.Hi Chaitanya,
The function module CONTROL_FORM can be used to pass the control
commands to FORM THROUGH ABAP/4 PROGRAM.
<b>Function Call</b>
CALL FUNCTION 'CONTROL_FORM'
EXPORTING COMMAND = ?...
EXCEPTIONS UNOPENED =
UNSTARTED =
<b>Export parameters:</b>
COMMAND
Enter the SAPscript statement you want to execute in ITF format, but without the statement paragraph attribute '/:'.
<b>Exceptions:</b>
UNOPENED
The current form function could not be executed, since the form output was no yet initialized using OPEN_FORM.
UNSTARTED
No form was opened yet.
Possible reasons:
>The form processing was started using OPEN_FORM without specifying a form name, but no form was opened yet using START_FORM.
>The last used form was closed using END_FORM, but no new form was opened using START_FORM.
>The last filled page of the current form has no subsequent page. In this case, the system automatically terminates form printing after this page. You need no explicit END_FORM call.
>In the current form, no page contains a main window, but a text element shall be output in the main window.
Regards,
Rajesh K Soman
<b>Please rewared points if found helpful.</b> -
Need a function module to convert xstring to string in web dynpro applicati
hi,
need a function module to convert xstring to string in web dynpro application other than HR_KR_XSTRING_TO_STRING.
Moderator message: please (re)search yourself first.
Edited by: Thomas Zloch on Nov 17, 2010 5:31 PMHi,
Check the following link:
FM to convert XString to String
Regards,
Bhaskar
Maybe you are looking for
-
What do I need to do to get my music from my itunes library onto my phone? I originally added music from a diffnerent itues account, and now that I am trying to add from my own it will not transfer...however, in the bar on the bottom of itunes it sho
-
[SOLVED] How do I disable enp0s3?
I am trying to remove unwanted services from boot, specifically enp0s3 which I don't use as I don't have a ethernet card. This is my start up time analysis: $ systemd-analyze blame 24.503s [email protected] 1.625s systemd-logind.service 1.580s al
-
Not able to call an Action class
Hello Guys, I am trying to deploy a web application in SAP Netweaver developer studio, which is successfully deployed in Eclipse. When i try to click on Submit button in one JSP, then it's saying that "The requested resource does not exist" and the u
-
WRT54G v6.0 Disconnects From Server After Ten Minutes
I posted this once before and somehow it got....deleted? Anyway....here we go again. I purchased A WRT54G over the holidays. It has worked fine for me with the exception of a real estate data source (server) that I need to use for my business. I can
-
How to customise and navigate Content Type - SharePoint 2013 List
I need some advice here. I'm customizing forms that have list built using Content Types. I noticed the difference in the links is something like this below I have one default content list type called item and the other one is called College Form Item