Problem using RFC to call an adobe form to create pdf file........
Hi,
I have an RFC that calls an adobe form to display the pdf output back in a bsp page...the RFC fails at the call to the adobe form (next call after after getting the form name) ...while debugging it looks like within this call it is trying to call fpcomp_job_open and failing on the call check_job_open ...
The code in my RFC looks like this....
DATA:
gs_outputparams TYPE sfpoutputparams,
fn_name TYPE rs38l_fnam,
fp_docparams TYPE sfpdocparams,
fp_formoutput TYPE fpformoutput,
frm_result TYPE sfpjoboutput,
lv_form TYPE fpname.
DATA: l_pdf_xstring TYPE xstring,
l_pdf_len TYPE i.
lv_form = 'ZHR_ASSESSMENT_FORM'.
Start formrocessing - OPEN spool job to send to printer
gs_outputparams-getpdf = 'X'.
call function 'FP_JOB_OPEN'
changing
ie_outputparams = gs_outputparams
exceptions
others = 1.
IF sy-subrc <> 0.
*// RAISE FP Open Error.
exit.
ENDIF.
Get name of the generated function module for the form
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = lv_form
IMPORTING
e_funcname = fn_name.
IF sy-subrc <> 0.
*// RAISE FP Get Form Module Name Error.
exit.
ENDIF.
Call the Adobe Form
CALL FUNCTION fn_name
EXPORTING
/1bcdwb/docparams = fp_docparams
gv_appraisal_id = gv_appraisal_id
IMPORTING
/1bcdwb/formoutput = fp_formoutput
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
others = 4.
IF sy-subrc <> 0.
*// RAISE Call Form Module Error.
perform f_build_message using 'E'
'ZEXT'
012
changing return.
exit.
ENDIF.
End from processing - Close spool job
CALL FUNCTION 'FP_JOB_CLOSE'
IMPORTING
e_result = frm_result
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
*// RAISE FP Close Error.
exit.
ENDIF.
form = fp_formoutput-pdf.
Thanks,
Venkatesh
what is the solution for this problem? I have the same problem. I get sy-subrc = 1 after CALL FUNCTION 'FPCOMP_JOB_OPEN'.
If I look more in detail I see that "Perform check_job_open" is creating the problem:
FORM check_job_open.
IF fpstat-is_opened = c_true. (--> exactly here is the problem. This condition is true so the program is terminated.)
PERFORM reset_status.
MESSAGE ID 'FPRUNX' TYPE 'E' NUMBER '101' RAISING usage_error.
ENDIF.
fpstat-is_opened = c_true.
fpstat-is_started = c_false.
ENDFORM.
Does somebody know why my job is open and what is the solution to have the job closed at the beginning of my processing?
Thanks in advance.
Similar Messages
-
Insert PDF into new Adobe Form - merging two PDF files into one
Hi everyone,
I need to enable access to archive PDF files but within a new PDF file containing header and footer.
Request is not to change archived PDF files at all.
I use Web Dynpro application to upload PDF file and to display new PDF file.
I thought converting archive PDF files into JPG files and than using an 'Image Field' object to display those in a new PDF file.
I am dealing here with PDF version 1.3 files.
I am also having trouble converting these PDF files into JPG files. Any sugestions one this problem?
Does anyone have any suggestion on how to deal with this concerning the fact that archive PDF files can not be changed?
Is there some other way to merge two PDF files into one using Adobe Designer?
Regards,
AmelHello, Lukasz:
I am also facing similar requirement from my customer.
And I found one useful blog, hope this blog can help you.
http://wiki.sdn.sap.com/wiki/display/WDJava/CombinePDFfileswithWebDynproforJava
Best regards, Nick. -
Is there anyoneelse there?
Hi timtimtimtim12345,
You can use Adobe PDF Pack to combine PDF files (12 at a a time using that service). When you use PDF Pack, you can determine what order the files are combined in, but it doesn't offer more granularity than that. If you wanted more control over how the pages are combined, you would want to use Acrobat, which is also offered as a monthly subscription (and as an annual one).
I am happy to swap your subscription for you. Please let me know if you'd like me to take care of that for you.
Best,
Sara -
Adobe will not create PDF files anymore
I have been using Adobe Acrobat 7.0 on my laptop for years, suddenly it stopped working. I try to reinstall and it won't activate so I still can't use it.. Why????
Hi dc78070165,
I am so sorry for the inconvenience caused. However this is just because Adobe Acrobat 7.0 is an outdated version & the now the activation server for it does not exist.
Please refer to the following KB doc. Error: "Activation Server Unavailable" | CS2, Acrobat 7, Audition 3
The above link will help you to install a special version that does not require activation.
In case you further need any help, please let us know. We will be more than happy to help you.
Regards,
Aadesh -
Error "Job already started" when calling a adobe form in Z function module
Hi All,
I have a error when calling a adobe form in a custom function module.
I am using FP_FUNCTION_MODULE_NAME to get the adobe form function module and then i am using FP_JOB_OPEN function module to control the printing parameters such as no print preview or no dialog ..etc.. I dont have any exceptions during the call of FP_JOB_OPEN function module ..
Later I am calling my function module which was generated for the adobe form and i am getting the error called " JOB ALREADY STARTED".
I tried executing the same function module in se37 and the PDF form output was generated, and also by commenting FP_JOB_OPEN function module the PDF form output was generated.
But i need the FP_JOB_OPEN function module to control the output based on the output type which triggers the form output such as the medium from nast record which says print or email or fax.. etc
Please let me know how to handling this error.Just as a followup note. If you are testing a function module from SE37 and the test button you will get a value in SY-CPROG. You must override this value for everything to work.
If you override the value of SY-CPROG with the main program that will be calling the function module you have no problem.
John W. -
Call for adobe form is going for dump for multiple users
hi,
i am calling an adobe form in a program i.e. for multiple users. now my problem is.....
3 people are using same tcode to generate the adobe form output for different data. but when they click at a time on the button to generate the adobe output, then adobe form is coming for only one user and it is going for dump for other users.
and this dump is coming because of exception "CX_FP_API_INTERNAL" in funtion module FP_FUNCTION_MODULE_NAME which i am using to get the function module name of the adobe form in my program.
can u please give me some solution to rectify this issue....That's nothing!
An engineer and I contacted Adobe technical support by phone to ensure the PC I was having custom built was configured to its optimum. They advised XP64 as the best operating environment. After that discussion we had to completely revise procurement, etc to get the bits and compatible XP64 compatible software, putting the build project back a few weeks as well, Imagine how I laughed when I found out on one of these forums that XP64 is the worst choice and totally unsupported by CS4!
I have written to Shantanu Narayen, Adobe CEO and didn't even get an acknowledgement I raised this last week on the Adobe stand at BVE and was told they'd get someone to contact me asap but guess what, niet...! To be fair there has been one Adobe executive that recognises the problem and the damage poor customer support is causing the company; he has been as helpful as he can. Unfortunately, it seems the overall Adobe culture at the top is "get the money and run". If your problem goes beyond what's already on their web pages, tough luck!
Regards,
Graham -
How to use OLE2 to call "Adobe" to open a PDF file and print it out
I would like to print out PDF file when use click a button on the FORM. Anyone knows how to do it?
I would like to know how to do it too; but I am still using Developer 6i.
I have a bunch of PDF files and would like to print them inside of FORM.
I am using the HOST command like host('C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe /p/h 123.pdf') to do it now; however, the problem is that I have to physically close "ADOBE" everytime, otherwise, the next PDF cannot be printed.
Please advise how to do it Form6i? -
Direct RFC And webservice in Adobe Forms
Dear All,
Does adobe Lifecycle designer intregate RFC as a webservice ?
Or we need to write a Java/Adap Dynpro and call the adobe Form?
Regards,
Anirban.Hello,
You can call a web service directly from an interactive form. To access RFCs, you need an application (typically webdynpro Java or ABAP).
Keep in mind that your form is interactive (meaning data storage and exchange capable) only if it has been generated by the ADS.
Regards,
Francois -
Hi,
In an Adobe form have a Submit button, after I click on this submit button should call another Adobe form.
How we can do?
Thanks and Regards,
Prabhakar DharmalaHi
To call an Adobe form u can use the folowing class CL_SSF_XSF_UTILITIES and method GET_BDS_GRAPHIC_AS_BMP as shown below.
CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
EXPORTING
p_object = c_graphics
p_name = lv_pernr1
p_id = c_bmap
p_btype = c_bcol
RECEIVING
p_bmp = ls_z_if_test_cv-im_photo
EXCEPTIONS
not_found = 1
internal_error = 2
OTHERS = 3.
So that the new PDF form will get opened with details. try it.
provide REWARD points...:-) -
We now use Acrobat xi for special active forms we created that include certifications and signature fields, some of the forms are programmed to create other forms, will we have a problem upgrading to DC
Our users use a form template to create other adobe forms with calculated fields, signature fields (using digital signatures)
, and buttons. Will we be able to continue developing these forms if we upgrade to Acrobat DC?Hi Alex ,
In general ,you would not have any issues and problems moving to Acrobat DC .It has a different user interface and with more enhanced features .
You would be able to develop the kind of forms you are referring to .
You could refer to the following document to get more information about Acrobat DC .
FAQ | Adobe Acrobat DC
If in case you are referring to any particular issue or problem or if you face any regarding Acrobat DC ,we are always here to help you with that .
Please feel free to write us back .
Regards
Sukrit Dhingra -
What is the use of interface in the adobe forms
Hi friends,
can any one tell,
what is the use of interface in the adobe forms for desigining the form.The main purpose of the form interface is to send the application data to the form.
The form interface is created separately from the form, which consists of the form context and layout. When you create a form, you must assign it to a form interface.
please have a look at the link below for more info:
http://help.sap.com/saphelp_nw70/helpdata/EN/96/6ee0d5b39640d68fc0078fc575114a/frameset.htm
http://help.sap.com/saphelp_nw70/helpdata/EN/f2/21021b911f4c0cae11459a4ce0bc62/frameset.htm
hope this helps,
harman -
I am having a problem using the help menu in Adobe elements 5
I am having a problem using the help menu in Adobe elements number five.
When I open the help menu, the dialogue box defaults to an unreadable display font. Is there any way to change that default font? Using the help menus to find a solution is not possible for I cannot read what it is displaying.For product, there is an option in preferences where we can set fonts. There are two options: One is application font and other is system font. I am talking about elements 8 which I have but not sure that will solve your problem which is help related.
Hope Help in 5th version is html which opens in Browser? Please confirm. -
How does Time Statment Web Dynpro calls an Adobe Form of R3?
Hi forum
I want to know how works the Web Dynpro of Time Statement. The cause of my dude is that this dynpro shows an Adobe Form that is into R3, not in NWDS and Adobe. I want to calls some Adobe Forms since a Web Dynpro for Java. Some body knows how to do this.
Thnks
Josué CruzHi,
If you go for TC HRFORMS, there you can find some HRFORMS global. we need to activate that form and configure the feature called "HRFOR". This works once implemented time evalution.
Thanks & Regards. -
The Adobe Forms was created with Disable Fields!
Hi All,
I am new in Adode Interactive Forms ABAP. I am trying to implement a simple scenario using Web Services published by RFC on ABAP side and simple form with one field MATNR to bring a Description MARKT, and button to call the Web Services. I configured ADS on Server, installed Adobe LifeCycle 8 and SAP GUI 7.1. I created the Adobe Form and it was actived.
My issue is, when a run the program to generate a PDF, using the FMu2019s 'FP_JOB_OPEN'
, 'FP_FUNCTION_MODULE_NAME', CALL FUNCTION i_funcname, the Adobe Forms was created with disables fields. I canu2019t fill it and canu2019t press the button to call WS on ECC.
Could you help me?
Thank you!
Fábio Ferri
SAP Consultant NetweaverHi fabio,
When you say the example ran successfully is it without any error messages..?
Did you check in spool "SP01" if there something sitting out there.
To my understanding PDF rendring is dependent in 2 aspects.
1) the output device type you select (this should be a PDF enabled printer)
2) Programatically if you say it should go to a printer or spool.
Just try with FP_TEST_00 either in sfp or SE38 and try both print preview and print.
in print priview it should display the PDF on the screen.
In print it should display as success message and in spool it should have the corresponding PDF. if both are working fine then the ADS and output device config are correct and it all depends on how do you handle the PDF output.
Just try the above approach and post the results,
Cheers, -
Error in opening the adobe form to create a PCR
Hi,
I m getting an error while i open the adobe form to create a PCR as follows.
Script failed. accessor '$record.ENAME.DATA.FIELD' is unknown.
Please help.
<b>Points are sure.</b>Hi,
I m getting an error while i open the adobe form to create a PCR as follows.
Script failed. accessor '$record.ENAME.DATA.FIELD' is unknown.
Please help.
<b>Points are sure.</b>
Maybe you are looking for
-
Lost plug-in settings after 7.2 upgrade
Hi after upgrading to 7.2 I seem to have lost Logic's factory presets for it's channel strip settings. On the arrange page, I used to go to the channel strip and click on the "inserts" triangle and one of the options was "factory". This option is no
-
Spliting inbound delivery line into transfer order lines
Hi I use WMS. And I have faced a problem. I have one line in inbound delivery and when transfer order is created from this delivery it contains also one line. But very often volume of material is more than one cell. Is it possible to split one l
-
ICal/Outlook time issue.
When I accept appointments generated from Outlook .ics files, iCal changes the time of the event in the reply email. How do I correct this? The date of the event in iCal is correct, it's only the confirmation to the event generator that is wrong. I'
-
How can I add an electronic signature line
How can I add an electronic signature line to a form in Adobe's FormCentral?
-
How to upload my songs to iTunes in my windows laptop to my iTunes in mac book pro?
i bought i phone 4 first then i downloaded iTunes in my laptop windows vista os i downloaded 693 songs which are well updated to my mobile now i recently bought mac book pro os x 10.7.2 i want to up load my music from my mobile to my mac which i cou