Adobe Forms in ABAP Image upload from a local drive
Hello,
Can anybody suggest me the procedure, how to upload the image field dynamically of an employee which is existing in PA30 to SAP interactive forms (SFP). I have gone through many forums but could not able to find any right solution on it.. and hence my development is required to design the layout and call this not through WDP but using ABAP report SE38 in order to generate the employee CV, the programming logic completed till downlaoding the employee photo to local drive from PA30 and I need the same to upload the picture which is downloaded earlier by my driver program into adobe form. Can anyboby help me on this mentioned issue will be appreciated.
Thanks in advance.
Regards,
Murali.
Thanks Kittu for your speedy response, I have already checked the link which was sent by you...But I couldn't able to find any helpful solution to my requirement. Can you please suggest me any new procedure to solve my problem.
Similar Messages
-
How to use Adobe forms in ABAP
Hello Everybody,
I have used Adobe forms in webdynpro applications. Now, i want to use adobe forms in ABAP stack. Please provide me steps and guidelines to develop Adobe forms in ABAP.
What should be the infrastructure needed for that?
Thanks in Advance,
BhavikHi Bhavik,
there is extensive documentation on creating PDF-based forms for printing in ABAP Workbench (transaction SFP) on the SAP Help Portal at http://help.sap.com/saphelp_nw04/helpdata/en/d2/4a94696de6429cada345c12098b009/frameset.htm.
The infrastructure is identical (ADS on Java Engine) except that you need an ABAP backend (minimum 6.40) and the corresponding SAP GUI. You also need to create an HTTP connection from your ABAP system to the ADS in transaction SM59 (see ADS Configuration Guide).
Your Adobe LiveCycle Designer installation from the NWDS should be OK, if you are working on the same frontend. (If you have difficulties with Designer, uninstall it and install it with the SAP GUI again).
Note that Web Dynpro for ABAP integration is only supported as of NetWeaver 2004s (going into ramp-up with mySAP ERP 2005 this month), which means that interactive scenarios are more cumbersome to implement in ABAP with NetWeaver 04.
Some of the things you get with the Web Dynpro framework (such as the return of data in interactive scenarios via the WD context) would need to be manually coded when working in SFP, which was designed for output forms.
Hope this helps,
Markus Meisl
SAP NetWeaver Product Management -
Adobe Forms Interactive_OFFLINE SCENARIO_Get Image Local file/path name
Hi,
I have requirement In adobe forms interactive. Please refer on the scenario below.
OFFLINE SCENARIO:
1. User Click the IMAGE FIELD --> 2. Select Image from the local drive --> 3.? (requirement to be resolve: we need to get the image filename that was selected on step #2 and pass its value to a field) -THIS ONLY BE DONE IN JAVASCRIPTING.
Just to Iterate our issue:
We need to get the image filename that was selected on step #2 and pass its value to a field) -THIS ONLY BE DONE IN JAVASCRIPTING
WORK AROUND WE MADE
1. We tried the scripting which found on the link below but only applicable when user click a button and save the filename or filepath in the image list.
Adding attachment to form
2. Currently we are trying to get information with the EVENT class, object and method documentation just to address the requirement said above. As of now ongoing research just to suffice the requirement.
Your response is highly appreciated.
Thanks,
ChocoHello
Create a form with standard layout and it should work. Once the webservice is created and maintained in SOAADMIN, make sure the user has the relevant authorizations w.r.t to webservices, so that the form can call the webservice.
hope this helps.
Best Regards
Saujanya -
Error occured while showing adobe form in abap webdynpro application
Dear SAP-Masters ,
This is the mail regarding the error occured while showing adobe form in abap webdynpro application .
When i run the adobe form seperately it works fine but with abap web dynpro , i'll get following error .
Pls tell me how to resolve this problem .
The following error text was processed in the system D35 : WebDynpro Exception:
The error occurred on the application server DV35_D35_00 and in the work process 2 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: UPDATE_PDF of program CL_WD_ADOBE_SERVICES==========CP
Method: CREATE_PDF of program CL_WD_ADOBE_SERVICES==========CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
Method: CONV_VIEW_INTO_VE_ADAPTER_TREE of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
Method: SET_CONTENT_BY_WINDOW of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
Method: RENDER_WINDOWS of program CL_WDR_CLIENT_SSR=============CPHi Arjun ,
Thanx for ur reply ,
i got following results in ST22 dump analysis :
' An exception occurred that was not caught ' .
and
Source Code Extract
Line
SourceCde
79
x_xml = get_wd_context_as_xml( data_source = data_source ).
80
m_pdf_object->set_data( formdata = x_xml ).
81
catch cx_fp_exception into lr_fpexc.
82
raise exception type cx_wd_general
83
exporting
84
previous = lr_fpexc.
85
endtry.
86
if fillable = abap_true.
87
if m_version is initial.
88
m_version = m_pdf_object->get_version_info( ).
89
endif.
90
if version < ''.
91
set_usage_rights( m_pdf_object ).
92
endif.
93
endif.
94
endif.
95
endif.
96
97
only call the ads if requested
98
if execute_ads_call = abap_true.
99
try.
100
set document
101
m_pdf_object->set_document( pdfdata = pdf ).
102
103
execute, call ADS
104
m_pdf_object->execute( ).
105
106
get result
107
m_pdf_object->get_document( importing pdfdata = pdf ).
108
catch cx_fp_exception into lr_fpexc.
>>>>>
raise exception type cx_wd_general
110
exporting
111
previous = lr_fpexc.
112
endtry.
113
endif.
114
115
endmethod.
and
Error analysis
An exception occurred which is explained in detail below.
The exception, which is assigned to class 'CX_WD_GENERAL', was not caught and
therefore caused a runtime error.
The reason for the exception is:
WebDynpro Exception:
The occurrence of the exception is closely related to the occurrence of
a previous exception "CX_FP_RUNTIME_SYSTEM", which was raised in the program
"CL_FP_PDF_OBJECT==============CP",
specifically in line 255 of the (include) program
"CL_FP_PDF_OBJECT==============CM02Y".
The cause of the exception was:
ADS: com.adobe.ProcessingException: PDF is not interactive. Data can only be
| imported into interactive forms.(201501). -
Hi,
Iam a beginer to web dynpro . Can any send me some doccument related to adobe form in abap .
Wht are the things needed for abobe form in abap to get started in web dynpro .
What is meant by adobe doccument services in ABAP ? Requirement for Adobe doccument sercices in web dynpro ?
Very urgent .
Plz send me a user guide for that .Hi all,
Just an update because I know when I search for stuff and find a question the same as mine that is just unanswered that's very frustrating.
After speaking with OSS around this it seems that the ADS patch level wasn't correct and need updating.
W -
hi,
I am new to adobe forms in ABAP.can anybody please tell me the pre-requisites for the set up and step by step procedure to create Adobe Forms in ABAP?
Thanks,
Parama.Did you make an effort of searching on SDN, if not please do that.
Chintan -
Develop forms using Adobe Forms and ABAP Web Dynpro
Hi,
Could someone help me on how to learn forms development using Adobe Forms and ABAP Web Dynpro? Any suggestion on Tutorials / Books / other helpful hints please?
I have good knowledge of Smart Forms and used these to generate PDF Attachments via emails.
Thanks.
Regards
Keshavhttp://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/d-f/faq%20on%20interactive%20forms%20based%20on%20adobe%20software.faq
-
How to print interactive adobe form in ABAP ?
Dear all,
I've create a static adobe form in ABAP environment using SFP transaction. But when i build the form and test print out, system raise an error "<b>Device type unsuitable for ADS documents</b>". So, which device type should I use to print ADS documents ?
Thank you very much for your help,
Best regards,
Sylvecast.The printer selected for output must support Adobe forms (the default "local" printer does not). If you don't already have a printer that supports Adobe output, you can create one via SPAD using (for example) device type PDF1.
-
Adobe forms using abap documents
Hi,
Iam beginner in Adobe forms using abap. i searched the SCN for documents but i could not found any complete document for Adobe forms using abap.
Please provide me complete documents for Adobe forms using abap .
Thanks in advance,
Suresh.hi,
use th following link,
dpermana.files.wordpress.com/2008/02/how-to-use-webdynpro.doc
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80665d
Regards
Jayapriya -
Delete flat file from the local drive after downloading in the program
how to <b>delete flat file from the local drive after downloading in the program</b>
I am using gui_upload to upload flat file data in internal table. and after that i dont want that flat file in the disk. i want to delete it.Once the file has been uploaded into the internal table call the<b> FILE_DELETE </b>method of the class <b>CL_GUI_FRONTEND_SERVICES</b>.
DATA: v_rc TYPE i.
CALL METHOD cl_gui_frontend_services=>file_delete
EXPORTING
filename = 'C:\TEMP\MATERIAL.TXT'
CHANGING
rc = v_rc
EXCEPTIONS
file_delete_failed = 1
cntl_error = 2
error_no_gui = 3
file_not_found = 4
access_denied = 5
unknown_error = 6
OTHERS = 7.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Regards
Kathirvel -
Some time ago, while doing a bunch of things at once, FF asked me a question...not sure what it was as I was distracted by other things...I answered "yes" and since then my own website's subpages attempt to load from my C drive. This is not a problem with the homepage itself and it does not occur with other browsers. Driving me crazy and no one seems to know what is the problem...only with FireFox
http://www.questfundingservices.us is the home page which opens fine on any browser. But, in FF, any of my sub-pages attempts to open from the local drive. I believe this happens for other viewers of the site, but I am not 100% sure of that.
I never intentionally entered a <BASE local in the html and I don't think there is one, but you can check the source yourself.
This was never a problem until one day, while doing 50 things at once, I went to my website and FF popped up a question...Don't remember what it was and, in my haste I just said "yes", I think...and this problem has occurred ever since!!! -
Hi i am trying to disply image in adobe forms using ABAP, But i can't abl ?
hi friends,
I am using adobe forms to display the VORNA , NACHN and EMPPHOTO.
for this i created an interface with the 3 import parameters like IM_VORNA, IM_NACHN and IM_PHOTO.
Then i desingned the form with this interface.
I dragged the IM_VORNA, IM_NACHN to ADOBE form layout.
And for employee photo i created the IMAGEFILED in layout.
And i setted the imagefield binding property to $record.IM_PHOTO.
To call this ADOBE form i using the ABAP code.
My code is like this......
*& Report ZHR_EMP_PHOTO1
REPORT ZHR_EMP_PHOTO1.
TABLES: PA0001, PERSON.
DATA: ITAB_EMPDATA LIKE TABLE OF PERSON,
ITAB_DATA LIKE TABLE OF PERSON WITH HEADER LINE.
DATA: P_CONNECT_INFO LIKE TABLE OF TOAV0 WITH HEADER LINE,
P_DOCUMENT_TYPE LIKE TOAV0-RESERVE,
URL TYPE char255.
DATA: VORNA TYPE VORNA, "VALUE 'SHANKAR',
NACHN TYPE NACHN, "VALUE 'REDDY',
PATH TYPE XSTRING,
TPATH TYPE STRING.
DATA: FM_NAME TYPE FUNCNAME.
DATA: FP_OUTPUTPARAMS TYPE SFPOUTPUTPARAMS,
FP_DOCPARAMS TYPE SFPDOCPARAMS,
FP_FORMOUTPUT TYPE FPFORMOUTPUT.
PARAMETERS: PERNR LIKE PERSON-PERNR.
START-OF-SELECTION.
CALL FUNCTION 'HR_GET_EMPLOYEE_DATA'
EXPORTING
PERSON_ID = PERNR
SELECTION_BEGIN = SY-DATUM
SELECTION_END = SY-DATUM
IMPORTING
PERSONAL_DATA = ITAB_DATA
EXCEPTIONS
PERSON_NOT_FOUND = 1
NO_ACTIVE_INTEGRATION = 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.
MOVE ITAB_DATA-VORNA TO VORNA.
MOVE ITAB_DATA-NACHN TO NACHN.
*Function Module To check Existance of Image
CALL FUNCTION 'HR_IMAGE_EXISTS'
EXPORTING
P_PERNR = PERNR
IMPORTING
P_CONNECT_INFO = P_CONNECT_INFO
EXCEPTIONS
OTHERS = 2.
P_DOCUMENT_TYPE = P_CONNECT_INFO-RESERVE.
*Function Module To Get the URL of Image
CALL FUNCTION 'SCMS_DOC_URL_READ'
EXPORTING
STOR_CAT = SPACE
CREP_ID = P_CONNECT_INFO-ARCHIV_ID
DOC_ID = P_CONNECT_INFO-ARC_DOC_ID
COMP_ID = 'DATA'
DP_URL_ONLY = 'X'
IMPORTING
URL = URL
EXCEPTIONS
OTHERS = 10.
IF SY-SUBRC <> 0.
ENDIF.
MOVE url TO tpath.
CALL FUNCTION 'HR_KR_STRING_TO_XSTRING'
EXPORTING
* CODEPAGE_TO = '8500'
unicode_string = tpath
* OUT_LEN =
IMPORTING
XSTRING_STREAM = path
EXCEPTIONS
INVALID_CODEPAGE = 1
INVALID_STRING = 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.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
I_NAME = 'ZHRIN_EMP_PHOTO'
IMPORTING
E_FUNCNAME = FM_NAME
* E_INTERFACE_TYPE =
*WRITE: fm_name.
*/1BCDWB/SM00000204
*SAPR3://SAPR3CMS/get/520/Z2/4907DEB34A170115E10080000A8C6728/DATA
*MOVE 'SAPR3://SAPR3CMS/get/520/Z2/4907DEB34A170115E10080000A8C6728/DATA' TO PATH.
FP_OUTPUTPARAMS-NODIALOG = 'X'.
FP_OUTPUTPARAMS-GETPDF = 'X'.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
IE_OUTPUTPARAMS = FP_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.
fp_docparams-langu = 'E'.
fp_docparams-country = 'IN'.
fp_docparams-FILLABLE = ' '.
CALL FUNCTION fm_name
EXPORTING
/1BCDWB/DOCPARAMS = fp_docparams
I_VORNA = vorna
I_NACHN = nachn
I_URL = path
IMPORTING
/1BCDWB/FORMOUTPUT = fp_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.
DATA: lt_att_content_hex TYPE STANDARD TABLE OF solix. "TABLE OF TEXT80.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
BUFFER = fp_formoutput-PDF
* APPEND_TO_TABLE = ' '
* IMPORTING
* OUTPUT_LENGTH =
TABLES
BINARY_TAB = lt_att_content_hex
tables rlgrap.
DATA: ld_filename TYPE string,
ld_path TYPE string,
ld_fullpath TYPE string,
ld_result TYPE i,
gd_file TYPE c.
DATA: flength TYPE i.
*selection-screen begin of block m with frame.
data: p_file TYPE rlgrap-filename.
*selection-screen end of block m.
flength = xstrlen( fp_formoutput-PDF ).
* At selection screen
*AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
* Display save dialog window
CALL METHOD cl_gui_frontend_services=>file_save_dialog
EXPORTING
window_title = 'Enter File Name to Save'
default_extension = 'PDF'
default_file_name = 'accountsdata'
initial_directory = 'c:\temp\'
CHANGING
filename = ld_filename
path = ld_path
fullpath = ld_fullpath
user_action = ld_result.
p_file = ld_fullpath.
call function 'DOWNLOAD'
exporting
bin_filesize = flength
filename = p_file
filetype = 'BIN'
importing
act_filename = p_file
tables
data_tab = lt_att_content_hex.
with this code I am able to see the VORNA, NACHN field data in ADOBE Forms. But i am unable to see the employee photo.
Any helps will be appreciated.....
Regards,
Shankar.Or post a URL.
Shane H
[email protected]
http://www.avenuedesigners.com
=============================================
Proud GAWDS Member
http://www.gawds.org/showmember.php?memberid=1495
Delivering accessible websites to all ...
=============================================
"Alan" <[email protected]> wrote in
message
news:C0E592D7.29A315%[email protected]..
> go back to the dialog box, and re-browse to pick the
image.
> Find the pulldown in the "browse to file" dialog box
that gives a choice
> of
> Relative to site root, or Relative to document.
>
> set to relative to document.
> -
Adobe Form Layout is not loading from webdynpro abap
Hi Experts,
I am creating adobe forms using webdynpro.If i double click on the adobe form name from UI element properties,i am getting an error:
'Error while opening document'
Also in diagnosis it is written as:
'An error occured in the desktop application while opening the document' and also the message number is 'SOFFICEINTEGRATION143'.
Please help me to solve these issue.
Regards,
Arun.Hi,
I solved this issue by reinstalling Life cycle designer.
Regards,
Arun.
Edited by: ARUN.NAREIN on Oct 4, 2011 12:47 PM -
Submit button not triggering in adobe form : webdynpro abap
Hi All ,
I am a beginenr in Webynpro Abap . I am trying to catch a submit buttion from a Adobe form developed in webdynproabap .
I have 2 fiels along with the submit button ( of type submit to SAP )
I have written the code in the view action onsubmit and the the java script in the form is also there .
form is of type ZCL
I am not able to trigger the event. what can be the issue . should i do anything more ..
i tried with the 2 type of submit button one is hanging other one there is no reponse .. can any one let me know what can be the reason .
Regards
AbhilashHi
I have the below code in the script. I have hardcoded the breakpoint in the event code as see below .
containerfoundation_JS.sendmessageTocontainer(event.target,"submit"," ", " ","","") .
in the event I have the code .
DATA lo_nd_hsr TYPE REF TO if_wd_context_node.
DATA lo_el_hsr TYPE REF TO if_wd_context_element.
DATA ls_hsr TYPE wd_this->Element_hsr.
DATA lv_pernr TYPE wd_this->Element_hsr-pernr.
break-point.
navigate from <CONTEXT> to <HSR> via lead selection
lo_nd_hsr = wd_context->path_get_node( path = `ADOBE.HSR` ).
@TODO handle non existant child
IF lo_nd_hsr IS INITIAL.
ENDIF.
get element via lead selection
lo_el_hsr = lo_nd_hsr->get_element( ).
@TODO handle not set lead selection
IF lo_el_hsr IS INITIAL.
ENDIF.
@TODO fill attribute
lv_pernr = 1.
set single attribute
lo_el_hsr->set_attribute(
name = `PERNR`
value = lv_pernr ).
I activaated the trace also I am getting the error
"SAPWD_ZciWrapper_setMessageHandler (55) : Set message handler for control.."
I serached OSS . I got note 1223121 which says to run report FP_CHK_REPORT ..still it is not working . -
Saving a adobe form Output to presentation server from webdynpro
Hi all
I have a webdynpro aplication, where on clicking a button I want one adobe form output to be downloaded
in pdf format to local server.
currently while clicking the button its calling the webdynpro application where pdf is integrated and its displayed
on the browser.
Instead of the display I want to download to presentation server on clicking of the same button ,
The layout type of the PDF component is ZCI Layout and interface is XML schema based interface.With an XML based interface it is going to be much easier to display the form and then download it. The user could choose the save from the Adobe Plug-In toolbar or you can get the XSTRING content of the PDF from the PDFSource Property of the InteractiveForm UI element. With the XSTRING you can then, start a download with this content. However PDFSource doesn't get populated until the InteractiveForm is visible on the screen.
If you want complete background rendering of the PDF, you would have to call the form interface and pass the data into it with the XML format. Function Module based form interfaces are really much better suited to background calls because of their nice, flat and ABAP structure based interfaces.
Maybe you are looking for
-
ITunes will not allow me to put music (or anything else) on my iPhone. HELP
Recently got a new laptop which means the new iTunes had to be downloaded unfortunately. Now, iTunes will not let me add files to my iPhone 4s WITHOUT erasing all contents and syncing with the current itunes library (says it is synced with another it
-
PDF Optimization (web-optimized)
Hi, I am looking for some capabilities of WCC 11g for optimizing the uploaded PDF files. Essentially following is what i am looking for: Step1 User upload High res PDF files Step2 It goes through the workflow and admin checks the PDF file Step3 Once
-
Server Intelligence Agent Problem xi 3.1 sp3
hi everyone first of all i tried in Win7 & WinXP and Last Win2008 Server all of them same problem.. when i setup BO xi3.1 sp3 i can't see Server Intelligence Agent in Central Configuraiton Manager and i can't add in there as manually from ccm.exe whe
-
Using Autonomous Transaction in dbms_job on Oracle 8.1.6
I am submitting a package.procedure job to run using dbms_job.run procedure on Oracle 8.1.6 database. The package.procedure calls another autonomous transaction procedure to handle the exceptions. The dbms_job.run works fine if no exception is encoun
-
Does anyone know how to actually report this problem? I mean to I have to wade through telephone support just to tell them their firmware blows? As far as routing goes the unit seems to work fine. My connection to my mini upstairs seems to be slower,