How to display Adobe form build in SFP in BSP?
Hi ,
i have built an adobe form (not interactive one) using sfp, and it works fine in SAP GUI, by calling the FM behind.
now i want to display it on our sap portal, could you please tell me what's the easiest way to do that? how about in BSP?
Thanks and best regards.
Jun
Hi
I hope you ppl are able convert the pdf document into xstring. This sample code here will help you tranfer any pdf document, and will display in web browser.
Sample from BSP application sf_webform_04
which display smartfrom into pdf format
Fill HTTP request
response->set_header_field( name = 'content-type'
value = 'application/pdf' ).
response->delete_header_field( name = 'pragma' ).
response->delete_header_field( name = 'expires' ).
response->delete_header_field( name = 'cache-control' ).
some Browsers have caching problems when loading PDF format
response->set_header_field(
name = 'cache-control'
value = 'max-age=0' ).
start PDF viewer either in the Browser or as a separate window
if pdf_in_browser is initial.
response->set_header_field(
name = 'content-disposition'
value = 'attachment; filename=webforms.pdf' ).
endif.
finally display PDF format in Browser
l_pdf_len = xstrlen( l_pdf_xstring ). <= pass ur binary data here
response->set_data( data = l_pdf_xstring
length = l_pdf_len ).
navigation->response_complete( ).
Similar Messages
-
Error while opening Adobe Form Builder
Hi all,
I am trying to open an existing form in Adobe Form builder (TA SFP).
When ever I display a standard form say FP_TEST_01 and go to the layout tab, I get an error saying <i><b>Error occurred in communication with layout editor</b></i>. I am using ECC 5.0 system.
Am I missing any configurations?
We have all the required configurations set as mentioned in Configuration guide. (Required for ABAP stack).
Please help me out.
Thanks in advance.
Regards,
Ravikiran.Or go to http://service.sap.com/download > Download > SPs and Patches > Search for SPs and Patches > Enter 'Designer'. Install Designer 7.0 <b>and the 7.0 patch</b> (!).
Kind regards,
Markus Meisl
SAP NetWeaver Product Management -
How to integrate adobe forms using webdynpro-abap
Hi All,
How to integarte adobe forms with webdynpro -abap(se80).
Thanks & Regards
SumanHi suman,
First you have insert a element interactive form in the view.
In the properties of the interactive form you have properties called datasource and pdfsource.
You have to give the data which you want to display in the datasource throught binding.
These data you have to get it from the context. For pdfsource it should be xstring.
There is one more property called templatesource, when you give a name and double click. It automatically goes to SFP and you can create the form of your purpose. While creating it will ask for context. That context will be the same which you have declared in the view or component controller.
Regards,
Arun. -
Importing Adobe form into SAP (sfp)
Hi Friends
I am trying to import an Adobe form designed in Live cycle designer outside SAP into SAP form builder (tcode SFP). The form imports fine in 'Layout' section of form builder but when I save it, it doesn't get saved. I mean if I save and try to open form later in SFP tcode the saved form disappears. The form also disappears when I activate the from in SAP builder (tcode SFP).
Am I doing anything wrong while importing pdf file or form designed outside SAP? Please help.
Regards
SunnyHello,
I am aware its is possible to use "import" in SFP menu. But I don´t know how. I would like to assure you, you can just copy the layout in your source form (it was just some layout created in standalone LCD) and copy it into the opened layout (LCD in SAP) in your SFP transaction. Then the editor think you have just finished drawing that and everything works the way you expect.
Regards, Otto -
How to print adobe form immediately without preview?
Hi, Experts.
I made a WD4A using Interactive Form control
and the app is working fine and displays Adobe Form.
But I meet a new client needs on how to print immediately without display the form.
My client says that "I don't wanna see the form and just print form immediately when I click the print button".
I think there are some option parameters for solving those problem...
Plz. Help.
Regards Junha.Hello Junha,
you need to send the pdf to spool. There's a function module for it as far as I know. Can't remember the
name at the moment and having no access to a SAP system. A good way to find it would be searching
for SPOOL and PDF in the name.
Best regards,
Thomas -
How to configure adobe forms in OMLV for printing picking slip
Hello,
I want to configure a adobe form in OMLV transaction. But there is no column for putting adobe forms.
Can you tell me how do configure adobe forms for getting it printed from standard transaction whenever a transfer order is created.
Thanks in advance.Hi Ajay,
You are completely right that you cannot find anything with smartform in the customizing (OMLV). The reason for it: It is not there. It not even exists. Also the latest version of rlvsdr40 has nothing standard concerning smartforms.
I do not know why it is really necessary to use adobe or smartforms.
The only way is to build a new one (ZRLVSDR40). In that new one you have to use the sapscriptname (from OMLV)and treat it as a smartform- name.
I hope my explanation helps. Success.
Gr., Frank
Below how a smartform is called (from invoice)
determine smartform function module
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = lf_formname
IMPORTING
fm_name = lf_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
error handling
retcode = sy-subrc.
IF sy-subrc = 1.
MESSAGE e001(ssfcomposer).
ENDIF.
IF sy-subrc = 2.
MESSAGE e002(ssfcomposer) WITH lf_formname.
ENDIF.
PERFORM protocol_update.
ENDIF.
CALL FUNCTION lf_fm_name
EXPORTING
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = ls_control_param
mail_recipient = ls_recipient
mail_sender = ls_sender
output_options = ls_composer_param
user_settings = ' '
is_nast = nast
is_vbdka = vbdka
is_addres = addr_key
IMPORTING
document_output_info = document_output_info
job_output_info = job_output_info
job_output_options = job_output_options
TABLES
it_vbdpa = tvbdpa "Item information
it_vbdpau = tvbdpau "Subitem numbers
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5. -
How to display the form of time statement, which was created in trans. PE50
Hi to all!
I have created the salary statement with the PE50 and I want the form to be displayed in the ESS.
How to display this form?
Thank.Dear Siddharth,
I am getting this error for Time Statement here also we have used PE50 to create time statement for r/3 purpose, Which would be feasible one to work with for getting the display of Time Statement.
Form TH_TIME_ST does not exist
com.sap.pcuigp.xssfpm.java.FPMRuntimeException: Form TH_TIME_ST does not exist
at java.lang.Throwable.<init>(Throwable.java:194)
at java.lang.Error.<init>(Error.java:49)
at com.sap.pcuigp.xssfpm.java.FPMRuntimeException.<init>(FPMRuntimeException.java:34)
at com.sap.pcuigp.xssfpm.java.MessageManager.raiseException(MessageManager.java:112)
at com.sap.pcuigp.xssfpm.java.MessageManager.raiseException(MessageManager.java:122)
at com.sap.xss.hr.rep.fcrfw.FcRepFramework.reportBapiRet2Error(FcRepFramework.java:525)
at com.sap.xss.hr.rep.fcrfw.FcRepFramework.callRfcExecAction(FcRepFramework.java:357)
at com.sap.xss.hr.rep.fcrfw.FcRepFramework.initModel(FcRepFramework.java:292)
at com.sap.xss.hr.rep.fcrfw.wdp.InternalFcRepFramework.initModel(InternalFcRepFramework.java:256)
at com.sap.xss.hr.rep.fcrfw.FcRepFrameworkInterface.initModel(FcRepFrameworkInterface.java:136)
at com.sap.xss.hr.rep.fcrfw.wdp.InternalFcRepFrameworkInterface.initModel(InternalFcRepFrameworkInterface.java:198)
at com.sap.xss.hr.rep.fcrfw.wdp.InternalFcRepFrameworkInterface$External.initModel(InternalFcRepFrameworkInterface.java:258)
at com.sap.xss.hr.tim.per.selection.VcTimPerSelection.onInit(VcTimPerSelection.java:238)
at com.sap.xss.hr.tim.per.selection.wdp.InternalVcTimPerSelection.onInit(InternalVcTimPerSelection.java:246)
at com.sap.xss.hr.tim.per.selection.VcTimPerSelectionInterface.onInit(VcTimPerSelectionInterface.java:162)
at com.sap.xss.hr.tim.per.selection.wdp.InternalVcTimPerSelectionInterface.onInit(InternalVcTimPerSelectionInterface.java:144)
at com.sap.xss.hr.tim.per.selection.wdp.InternalVcTimPerSelectionInterface$External.onInit(InternalVcTimPerSelectionInterface.java:220)
at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:467)
at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:438)
at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:196)
at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:359)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:755)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:278)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:722)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:623)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:215)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:113)
at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:70)
at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:818)
at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.create(AbstractApplicationProxy.java:220)
at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1265)
at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:355)
at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:548)
at com.sap.portal.pb.PageBuilder.wdDoRefresh(PageBuilder.java:592)
at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:864)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:750)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:715)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:113)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:107)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:278)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:623)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:215)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:113)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:60)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:332)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:0)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:335)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:963)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:249)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:0)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:92)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:30)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:35)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:101)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
Appreciate your help on this.
Regs,
Raj -
Hi Experts.
Kinldy tell me how to install adobe forms ...Hi
Just follow these links.
https://www.sdn.sap.com/irj/sdn/adobe
http://help.sap.com/saphelp_nw70/helpdata/EN/c8/4adf7ba13c4ac1b4600d4df15f8b84/content.htm
Hope this will help you.
Regards:'
Alok -
How to display the Form output in multiple languages ? ------ Urgent
How to display the Form output in multiple languages ? -
UrgentHi,
Do u mean the Form output in 2-3 languages ...like form output will be having english russian etc...
for the above case , what u have to do ...
first have to get the transalations for all the fields
say for example : if the english word is PO Number , then u have to get the transalation text for PO Number :
after this , what u have to is ,,, Log on to SAP with russian language , then in the form o/p u have to paste that russian test ( translation text ) ...
do like this for all the components in the form .
Reward Points if it is Useful.
Thanks,
Manjunath MS -
How openning of adobe forms could be faster at Enterprise portal 7.0
I wander how openning of adobe forms could be faster at Enterprise portal 7.0. We are using for ESS/MSS functionality.
I found out that firs time an form is opened it takes longer than next times. Has anyone some good documentation
Than you in advance> I wander how openning of adobe forms could be faster at Enterprise portal 7.0. We are using for ESS/MSS functionality.
> I found out that firs time an form is opened it takes longer than next times. Has anyone some good documentation
I would say that this is caused by the Adobe Reader on the PC, not by the portal itself.
Markus -
Display Adobe Form in Module Pool Screen
Dear Friends ,
Is it possible to display adobe form in Module pool screen using Custom control.
What is the use of the class CL_GUI_ACF_BASE .
Pls give suggestion .
Thanks and Regards
Krishnan R.Hi Krishnan,
It is the first time I came across such a scenario.
Hope such kind of scenario is not possible. Instead you submit your data to a report and display your
Adobe form. -
Hi Experts, how to copy adobe form to a Z form? see details, thanks.
Hi Experts,
how to copy adobe form to a Z form? becuase when I click copy and enter the z form name and click ok, then I got an internal error occured SAP FP API, what is wrong? can anyone tell me the correct way to copy a standard adobe form? thanks in advance!
Kind regards
DawsonHi Dawson,
I have just done the same, but i couldnt get any error, its suceesfully asking for Dev class and saving.
I suggest you to show this msg to your basis guy, he is the person who has to help you out.
Regards,
Sujatha -
How to display struts form list values?
HI,
How to display struts form list values?
I am having master and child data.
I can set list values master and child in action class.
How to display the master and child data in struts jsp form.
<logic:iterate id="result" name="listofEmployees" >
<td ><bean:write name="result" property="id"/></td>
<td ><bean:write name="result" property="name"/></td>
<td > <bean:write name="result" property="list"/> </td>
</tr>
</logic:iterate>Here I am displaying master data succesfully.
How to iterate values of <td ><bean:write name="result" property="list"/></td>in action class i added bean class to this list.
how to iterate this list with java bean and display my child data
Thanks
saiStruts 1 or 2?
I guess 2 'cause you're just talking about Action, without mentioning the Form.
In STRUTS 1 it goes like this: forward to the page and use logic:iterate tag. Don't know about STRUTS 2, but It shouldn't be too different.
bye. -
How to Fill value in Input fields before displaying ADOBE FORM
Hi to all,
Please can anyone tell me how to fill the entry in ADOBE FORM before displaying?
I have written a program to generate ADOBE FORM, but I need while displaying ADOBE FROM some input field should already be filled by value and can not be changed.
Please can anyone tell me how to do that in program?
Below is the program.
DATA: fm_name TYPE rs38l_fnam,
fp_docparams TYPE sfpdocparams,
fp_outputparams TYPE sfpoutputparams.
Parameters: p_pdf_form_name type fname.
fp_docparams-langu = 'E'.
fp_docparams-country = 'IN'.
fp_outputparams-preview = 'X'.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = fp_outputparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = p_pdf_form_name
IMPORTING
e_funcname = fm_name.
E_INTERFACE_TYPE = E_INTERFACE_TYPE
CALL FUNCTION fm_name
EXPORTING
/1bcdwb/docparams = fp_docparams
IMPORTING
/1BCDWB/FORMOUTPUT = fp_outputparams
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3.
CALL FUNCTION 'FP_JOB_CLOSE'
IMPORTING
E_RESULT =
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
I shall be thankful to you for this.
Regards
Pavneet Rana
Edited by: pavneet rana on Jul 25, 2011 2:57 PMHello,
you need to provide the information via the interface, which you create for the Adobe form.
And then pass this values via the following function module inside your generation report.
CALL FUNCTION fm_name
check standard report : FP_EXAMPLE_01 as an example! -
How to display Adobe Interactive Form from ABAP (not WDABAP)
I have created a WD ABAP application that creates an Adobe Interactive Form (ZCI) and submits it for workflow. All of the data on the form is saved in custom itables in the SAP System. The end-users are supposed to save a copy of the form at the last step in the workflow before they "Acknowledge" the task in UWL. Once the acknowledge takes place, they can no longer display the form in UWL. They want an ABAP program that will read the data from the various custom tables and display a "print" version of the form (not interactive).
I am calling FM 'FP_FUNCTION_MODULE_NAME' to get the function module for the form. I then call FM 'FP_JOB_OPEN' with the parameter IE_OUTPUTPARAMS-REQNEW set to ABAP_TRUE. The call to the form FM has the following EXPORTING parameters:
EXPORTING
/1BCDWB/DOCPARAMS =
/1BCDWB/DOCXML =
I understand the /1BCDWB/DOCPARAMS but have no idea what needs to be done to for the /1BCDWB/DOCXML parameter. Can anyone offer any advice or assistance?Joyce,
this is really simple - the reason you have that /1BCDWB/DOCXML is because you defined your form interface to have an XML based interface.
While this is great for ABAP Web Dynpro, because the XML is generated for you, this is NOT the case with regular ABAP.
You should choose ABAP Data Dictionary-Based Interface. You will then be able to add tables, structures and fields to your interface.
For instance, here's code from a program where I call the form in regular ABAP
data: ls_worksheet TYPE Zxxx_structure.
* Fill the ls_worksheet structure here.
* Call the generated function module
CALL FUNCTION ls_function
EXPORTING
/1bcdwb/docparams = fp_docparams
worksheet = ls_worksheet
IMPORTING
/1bcdwb/formoutput = ls_form_output
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
Notice I do not have the /1BCDWB/DOCXML Exporting parameter.
Just change your interface to a Data Dictionary Based, and add the tables/structures/fields to it.
then, go to your calling program, fill them, and pass the data through the Exporting parameter.
Maybe you are looking for
-
Problem Regarding Changes in field in Table VBAK
Hi All, I am facing problem with data extraction for data source 2LIS_11_VAHDR. There is a field Request Delivery Date -VDATU, which was not picking data as the settings in Sales Order Creation were not set. Now the changes have been made while creat
-
Hi all, I am trying to migrate the MS SQL db to Oracle 8i using workbench. Tables and stored procedures that are not using cursors are successfully migrated. I am facing problem when i am trying to migrate a store procedure that has cursor in it. The
-
Can I use captured footage of the itunes visualizer in videos?
I know someone already asked about still images captured from the visualizer but I've been screencapturing the performance of the Itunes visualizer playing along to some of my bands music, obviously it pulses itself to whatever music is being played,
-
FSCM - NO Enter customer contact/Telephone icon in UDM_supervisor/Worklist
Hi All, Subj : FSCM - Enter customer contact or telephone icon in Worklist (UDM_supervisor) screen. Sometimes when i go into my worklist and process receivables of any customer, i could not see "Telephone" icon or "Enter Customer Contact" icon (is
-
Is necessay run entire flat file
in bdc flat file having 10000 records but in between means afere some records updated(5000) system crash.is necessary to run entire flat file or not. can anybody explain in detail in both methods.