Extract interactive form attachment from workflow workitem
Hi Friends,
I created a Webdynpro Java application which has an interactive form.
The user fills out the form, and submits.
The submission action triggers a simple workflow and adds the interactive form as an attachment to the workitem. (Using SAP_WAPI_START_WORKFLOW and SAP_WAPI_ATTACHMENT_ADD)
The new task shows up in UWL with the attached pdf form.
When user clicks the on the task in UWL, I want to launch another web dynpro application which will read the workitem id and get and display the interactive form in the web dynpro java application.
How do I extract the interactive pdf form from workflow in binary format?
so that I can display the form in my Web dynpro java application and bind it to the pdfSource context??
I thought I could just call the SAP_WAPI_GET_ATTACHMENTS, however this only returns some docId information for example:
OBJECT_ID DESCRIPT SHORTTEXT
SOFM FOL18 4 EXT34000000000023 Office Document Office Document
I need to get the binary for this pdf interactive form.
Edited by: K Ferguson on Jan 16, 2009 5:54 PM
Similar Messages
-
Interactive Forms objects in workflow
Hi everbody,
I'm currently trying to configure a workflow scenario with Interactive Forms by Adobe.
My problem is to initiate a workflow object with interactive forms. From my understanding the object type "dynp_form" in workflow builder doesn't have to do with interactive forms. Which object type do I have to use?
My next question is: can I use the predefined forms from SAP Forms Builder (SFP) in the workflow?
I thought about ISR-Wizard to define a form in the QISRCONF. But this doesn't seem to work either.
I have already configured the Adobe Document Services. The test program FP_PDF_TEST_00 works.
I'm working on SAP NW '04s ECC6.
Thanks for your replies,
OlafHi,
Welcome to Adobe Interactive Forms Development.
Well to start with, you got two options to go ahead...
Option-1 :
Using ISR Based Adobe Interactive Forms Development, where we develop forms using SFP transaction and attach them to a scenario which is defined in QISRSCENARIO txn. To get a better understanding about this ISR/PCR's, check this one.
http://help.sap.com/saphelp_erp2005vp/helpdata/en/54/957e40ec66ce62e10000000a155106/frameset.htm
Option-2 :
Using Web Dynpro based Adobe Interavtive Forms Development, where we design our Web Dynpro Application which has the Adobe Form. To have a better understanding of this development scenario, check this site.
http://help.sap.com/saphelp_erp2005vp/helpdata/en/42/c1151c55b33119e10000000a1553f7/frameset.htm
Well coming to your Workflow related query, My suggestion is to refer the Standard PCR based Workflows WS50000031 & WS50000041.
Yes, you can very much use the Standard forms in your custom workflows, for this you require to attach your workflow template number to the ISR Scenario.
My replies are well understood only after refering to the above mentioned links.
Hope this helps.
Regards
<i><b>Raja Sekhar</b></i> -
Help in sending mails with attachment from workflow
Hi Experts,
I have a document in my local PC. Can anyone tell me how to send it like an attachment from workflow.
Thanks in advance.Hi,
when u want to send the attachment along with document created, then u can see the Service Object in left hand top corner. There u can attach your file. So that it will go with the document.
Regards,
JMB -
Extract interactive form from workflow attachment
I have a multi-step approval process where you want to store the data in
the
backend only after final approval. (requestor >> expert >> approver)
I developed a WDJ app with Interactive forms that triggers Business
Workflow...
I created a Webdynpro Java application which contains an interactive form
for the Requestor.
The Requestor fills out the form, and submits. The submission action
triggers a simple workflow and adds the interactive form as an attachment
to
the workitem. (Using SAP_WAPI_START_WORKFLOW and
SAP_WAPI_ATTACHMENT_ADD)
The new task shows up in UWL with the attached pdf form.
When the approver clicks on the task in UWL it will launch a web dynpro
application which will display the interactive form.
How do I extract the interactive pdf form from workflow?
I want to display the form in my Web dynpro java application and bind
it to the pdfSource context??Can we know the reason why do you need to extract the Interactive Form from Workflow.When you are calling the workflow try to save the form in a shared folder and save the url of the shared folder in a field and try to acces it by using SAP Activity.You can create a button for that create an SAP activity and when you click on the button the Interactive Form can be opened.
Iam not sure weather i have answered your question or not? -
Update table after filling an adobe interactive form inside a workflow
Hi
I have the following workflow problem:
I made a webdynpro application that incudes an adobe interactive form. An user fill this form. After filling the form he will press the submit button. The data will be introduced in the custom table and a workflow will be started.
Inside the workflow, I attached the form filled by the user. After attaching it I introduce a user decision step in order to see the content of the pdf attachment, modify it and send again. So, the person that will execute the workitem has to open that pdf and fill some additional fields. The information should be updated in the table and then send to other persons. I don't know how to update the table with the new values that are inserted in the form in that decisional step and send the updated form to the other users.
Thank you in advance !
IuliaHi Iulia
You cannot do that through decision step with attachment. You have to do with task registation in t-code SWFVISU. so the work item will come to UWL once the approver clicks the work item it opens and entered his comments, You have to caputer the comments and pass these comments to the workflow container element from there you update to your custom table.
Regards
vijay -
Cannot save the Interactive form downloaded from abap webdynpro application
Hello Everyone,
Can anyone help me here.
I have created an interactive form in SFP tcode and used in abap webdynpro application.
scenario is i can downloade the form,fill it, sign it,save it and submit the form.
Some thing is going wrong when i try to sign the form downloaded from the application.It is giving the error ->
The document could not be saved. there was a problem in reading the document(26).
When i try to sign the form save as dialog box will come where we can save the filled form.but here when itry to save it is giving above error.and also i cannot save thye form form file option.
but form is working fine from sfp tcode not form application link.
What is going wrong.Can somebody please help me here.
Regards,
Menaka.H.BCheck the enabled and readOnly property of the InteractiveFormUI element in your application.
enabled should be true and readOnly should be false.
Also just FYI interactive forms are licensable in Productive environment for which you need Adobe Credentials. You may contact SAP Account Manager and Note 736902 for it.
Chintan -
Using Adobe Interactive Form - Attach The Static PDF.
Dear Experts,
Is it possible to attach the static pdf along with dynamic pdf, which is been created at run time in using NW 7.0 adobe interactive form(Interactive Form UI Element)., If yes then kindly let me know how can be done ..
Any help will greatly appreciated.
Thanks
ABSolved my self, converted PDF into image and used that pdf as a static image in Adobe Interactive Form.
-
Hi All....,
How can I attach a file inside form and send via email ?
Thanks in Advance.
Best Regards,
Sheetal.Hi Shital,
If you dont want to use a program to attach file, please see the blog:
/people/amit.rai4/blog/2008/02/01/demystifying-attachments-with-sap-interactive-forms
Or, you can refer FP_PDF_TEST_16 program in SAP.
Hope this helps,
Amit -
Extracting all form fields from a fillable pdf
Is there any way of extracting/exporting/copying all form fields from a pdf? Meaning, the wordings from all the fields so I can pass it along to another individual to use for cross referencing, since they are not able to see all the various form fields within the split screen?
Thanks!!!The person that needs this is looking for the entire running list of all the fillable field names within the pdf. Any kind of document that I can deliver them in, I am willing to take suggestions.
Right now, what I was thinking of doing was having the screen split between the pdf and the listing of field names in the sidebar and taking screen captures as I scroll down the pdf and corresponding field names in the sidebar until I got all pages.
Is there an email address I could contact you at to discuss offline? I have an example I could send you but don't want posted online.
Thanks! -
Travel Expense Form attachment in decision workitem
Hi all,
I have converted travel expense report to pdf file format. I used the following logic to attach the pdf file to attachment object container in the workflow
When i run the workflow attachment is there in decision workitem when i open that it is giving error that 'There was an error opening this document. The file is damaged and colud not be repaired'. Please help me
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.
DATA: office_object TYPE swc_object.
DATA: BEGIN OF SOFM_KEY,
FolderType LIKE SOFM-FOLTP,
FolderYear LIKE SOFM-FOLYR,
FolderNumber LIKE SOFM-FOLNO,
Type LIKE SOFM-DOCTP,
Year LIKE SOFM-DOCYR,
Number LIKE SOFM-DOCNO,
ForwarderName LIKE SOUB-USRNAM,
END OF SOFM_KEY.
DATA: REGION LIKE SOFD-FOLRG.
DATA: FOLDER_ID LIKE SOODK.
DATA: L_FOLDER_ID LIKE SOOBJINFI1-OBJECT_ID.
DATA: DOCUMENT_DATA LIKE SODOCCHGI1.
DATA: DOCUMENT_INFO LIKE SOFOLENTI1.
DATA: OBJECT_CONTENT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
DATA: OBJECT_CONTENT_HEX LIKE SOLIX OCCURS 0 WITH HEADER LINE.
DATA: LINES LIKE SY-TABIX, DOCUMENT_TYPE LIKE SOODK-OBJTP.
*- set default
IF DOCUMENT_TYPE IS INITIAL.
DOCUMENT_TYPE = 'PDF'.
ENDIF.
*- create office object
*-- get dark folder
REGION = 'B'.
CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
EXPORTING
REGION = REGION
IMPORTING
FOLDER_ID = FOLDER_ID
EXCEPTIONS
COMMUNICATION_FAILURE = 1
OWNER_NOT_EXIST = 2
SYSTEM_FAILURE = 3
X_ERROR = 4
OTHERS = 5.
IF SY-SUBRC NE 0.
MESSAGE E696
RAISING ERROR_SOFM_CREATION.
ENDIF.
*-- create office document
DOCUMENT_DATA-OBJ_NAME = 'ATTACHMENT'.
DOCUMENT_DATA-OBJ_DESCR = 'Travel Expense Form'
DOCUMENT_DATA-OBJ_LANGU = SY-LANGU.
OBJECT_CONTENT[] = mtab_pdf[]. "NOTE_TEXT[].
object_content_hex[] = IT_SIMULATION_DATA[].
DESCRIBE TABLE OBJECT_CONTENT LINES LINES.
DOCUMENT_DATA-DOC_SIZE = ( LINES - 1 ) * 255 + STRLEN( OBJECT_CONTENT ).
L_FOLDER_ID = FOLDER_ID.
if object_content[] is initial.
describe table object_content_hex lines lines.
document_data-doc_size = lines * 255.
endif.
call function 'SO_DOCUMENT_INSERT_API1'
exporting
folder_id = l_folder_id
document_data = document_data
document_type = document_type
importing
document_info = document_info
tables
object_content = object_content
contents_hex = object_content_hex
exceptions
folder_not_exist = 1
document_type_not_exist = 2
operation_no_authorization = 3
parameter_error = 4
x_error = 5
enqueue_error = 6
others = 7.
if sy-subrc ne 0.
message e696(wl)
raising error_sofm_creation.
endif.
*- set export parameter
SOFM_KEY = DOCUMENT_INFO-DOC_ID.
swc_set_element CONTAINER 'ATTACH' office_object.adobe reader verson 8 only but still I am getting the same error.
I am trying to pass the pdf tabel data to contents_hex to the FM SO_DOCUMENT_INSERT_API1 but both are having different sturctures. How can sove this problem. I download the pdf table data to pdf file in the pc and again uploaded the pdf file into contents_hex table structure and called the FM SO_DOCUMENT_INSERT_API1, But the work item step in backgroup process download and upload are not working out.
Please help me out -
Send Email Attachment From Workflow
Hi Experts,
I am working on the requirement of a Workflow. A mail has to be triggered to the customer with attachments. These attachments should be attached on the fly by the User, i.e, the User should be prompted to attach docs to the mail from WF before it is sent to customer. How can I acheieve this functionality?
Regards,
PrasadHai Shiva Prasad
Iam Sending a sample Code
Check this
REPORT ZRICH_0003.
DATA: ITCPO LIKE ITCPO,
TAB_LINES LIKE SY-TABIX.
Variables for EMAIL functionality
DATA: MAILDATA LIKE SODOCCHGI1.
DATA: MAILPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
DATA: MAILHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
DATA: MAILBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: MAILTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: MAILREC LIKE SOMLREC90 OCCURS 0 WITH HEADER LINE.
DATA: SOLISTI1 LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
PERFORM SEND_FORM_VIA_EMAIL.
FORM SEND_FORM_VIA_EMAIL *
FORM SEND_FORM_VIA_EMAIL.
CLEAR: MAILDATA, MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
REFRESH: MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
Creation of the document to be sent File Name
MAILDATA-OBJ_NAME = 'TEST'.
Mail Subject
MAILDATA-OBJ_DESCR = 'Subject'.
Mail Contents
MAILTXT-LINE = 'Here is your file'.
APPEND MAILTXT.
Prepare Packing List
PERFORM PREPARE_PACKING_LIST.
Set recipient - email address here!!!
MAILREC-RECEIVER = '[email protected]'.
MAILREC-REC_TYPE = 'U'.
APPEND MAILREC.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = MAILDATA
PUT_IN_OUTBOX = ' '
TABLES
PACKING_LIST = MAILPACK
OBJECT_HEADER = MAILHEAD
CONTENTS_BIN = MAILBIN
CONTENTS_TXT = MAILTXT
RECEIVERS = MAILREC
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
ENDFORM.
Form PREPARE_PACKING_LIST
FORM PREPARE_PACKING_LIST.
CLEAR: MAILPACK, MAILBIN, MAILHEAD.
REFRESH: MAILPACK, MAILBIN, MAILHEAD.
DESCRIBE TABLE MAILTXT LINES TAB_LINES.
READ TABLE MAILTXT INDEX TAB_LINES.
MAILDATA-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( MAILTXT ).
Creation of the entry for the compressed document
CLEAR MAILPACK-TRANSF_BIN.
MAILPACK-HEAD_START = 1.
MAILPACK-HEAD_NUM = 0.
MAILPACK-BODY_START = 1.
MAILPACK-BODY_NUM = TAB_LINES.
MAILPACK-DOC_TYPE = 'RAW'.
APPEND MAILPACK.
Creation of the document attachment
This form gets the OTF code from the SAPscript form.
If you already have your OTF code, I believe that you may
be able to skip this form. just do the following code, looping thru
your SOLISTI1 and updating MAILBIN.
PERFORM GET_OTF_CODE.
LOOP AT SOLISTI1.
MOVE-CORRESPONDING SOLISTI1 TO MAILBIN.
APPEND MAILBIN.
ENDLOOP.
DESCRIBE TABLE MAILBIN LINES TAB_LINES.
MAILHEAD = 'TEST.OTF'.
APPEND MAILHEAD.
Creation of the entry for the compressed attachment
MAILPACK-TRANSF_BIN = 'X'.
MAILPACK-HEAD_START = 1.
MAILPACK-HEAD_NUM = 1.
MAILPACK-BODY_START = 1.
MAILPACK-BODY_NUM = TAB_LINES.
MAILPACK-DOC_TYPE = 'OTF'.
MAILPACK-OBJ_NAME = 'TEST'.
MAILPACK-OBJ_DESCR = 'Subject'.
MAILPACK-DOC_SIZE = TAB_LINES * 255.
APPEND MAILPACK.
ENDFORM.
Form GET_OTF_CODE
FORM GET_OTF_CODE.
DATA: BEGIN OF OTF OCCURS 0.
INCLUDE STRUCTURE ITCOO .
DATA: END OF OTF.
DATA: ITCPO LIKE ITCPO.
DATA: ITCPP LIKE ITCPP.
CLEAR ITCPO.
ITCPO-TDGETOTF = 'X'.
Start writing OTF code
CALL FUNCTION 'OPEN_FORM'
EXPORTING
FORM = 'ZTEST_FORM'
LANGUAGE = SY-LANGU
OPTIONS = ITCPO
DIALOG = ' '
EXCEPTIONS
OTHERS = 1.
CALL FUNCTION 'START_FORM'
EXCEPTIONS
ERROR_MESSAGE = 01
OTHERS = 02.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
WINDOW = 'MAIN'
EXCEPTIONS
ERROR_MESSAGE = 01
OTHERS = 02.
Close up Form and get OTF code
CALL FUNCTION 'END_FORM'
EXCEPTIONS
ERROR_MESSAGE = 01
OTHERS = 02.
MOVE-CORRESPONDING ITCPO TO ITCPP.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = ITCPP
TABLES
OTFDATA = OTF
EXCEPTIONS
OTHERS = 1.
Move OTF code to structure SOLI form email
CLEAR SOLISTI1. REFRESH SOLISTI1.
LOOP AT OTF.
SOLISTI1-LINE = OTF.
APPEND SOLISTI1.
ENDLOOP.
ENDFORM.
Thanks & regards
Sreenivasulu P -
Error in generating adobe interactive form created from WSDL file
Hi,
I have created a form in SFP from a WSDL file.Copy paste the below program and when i run the program it gives me error message
"_Adobe reader could not open ..Because it is either not supported file type or has been damaged (...)"_. I am not sure whether i am doing right.If this is not the right one, then how can i generate a interactive PDF from WSDL.
DATA: ie_outputparams TYPE sfpoutputparams.
DATA: i_name TYPE fpname,
i_funcname TYPE funcname.
DATA: fp_docparams TYPE sfpdocparams.
DATA: fp_formoutput TYPE fpformoutput.
DATA: data_tab TYPE solix_tab.
ie_outputparams-getpdf = 'X'.
ie_outputparams-nodialog = 'X'. " suppress printer dialog popup
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = ie_outputparams.
TRY.
i_name = 'ZSPADOBE01'. "your form name
i_name = 'Z....'. "your form name
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = i_name
IMPORTING
e_funcname = i_funcname.
CATCH cx_fp_api_repository.
CATCH cx_fp_api_usage.
CATCH cx_fp_api_internal.
ENDTRY.
fp_docparams-langu = 'E'.
fp_docparams-country = 'US'.
fp_docparams-fillable = 'X'.
CALL FUNCTION i_funcname
EXPORTING
/1bcdwb/docparams = fp_docparams
IMPORTING
/1bcdwb/formoutput = fp_formoutput
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3.
CALL FUNCTION 'FP_JOB_CLOSE'
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
DATA: filename TYPE string,
path TYPE string,
fullpath TYPE string,
default_extension TYPE string VALUE 'PDF'.
cl_gui_frontend_services=>file_save_dialog(
EXPORTING
default_extension = default_extension
CHANGING
filename = filename
path = path
fullpath = fullpath ).
CHECK fullpath IS NOT INITIAL.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = fp_formoutput-pdf
TABLES
binary_tab = data_tab.
cl_gui_frontend_services=>gui_download(
EXPORTING
filename = filename
filetype = 'BIN'
CHANGING
data_tab = data_tab ).
cl_gui_frontend_services=>execute(
EXPORTING
document = filename ).Hi Sanu,
Hope this link help you.
[CALLING WEB SERVICES IN INTERACTIVE ADOBE FORMS|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20280d13-7b93-2e10-51a0-ba05fd26355a]
Regards,
Shaira -
Web dynpro Java, Interactive Forms, Workflow/UWL
I really wanted to watch this eClass entitled:
"Integration for Business Workflow and SAP Interactive forms by Adobe (Session 7)"
However, it didn't pull up in my browser.
I need to trigger a workflow from WDJ and I need to attach an interactive pdf form to a workflow/workitem from WDJ.
Would i use the standard "SAP_WAPI*" functions modules via Adaptive RFC model in WDJ?
Maybe these? SAP_WAPI_ATTACHMENT_ADD_REF, SAP_WAPI_GET_ATTACHMENTS
Also I am need to open a WDJ when the user clicks on the task in UWL. This WDJ will read the pdf attachment on the workitem and display it to the user.I solved this problem on my own. Aren't I cool?
-
Using interactive form to capture data from user u0096 please helpu0085.
Hi folks,
I am trying to use an interactive form to capture some data from the user.
This is what I have planned to do
User runs a program which will have four function module calls
(FP_JOB_OPEN
FP_FUNCTION_MODULE_NAME
'Function modules which the above function module returned'
FP_JOB_CLOSE)
This will display a print box where I can click on the print preview to get the interactive form.
From here I am not sure how to go about, but following is what I can think
Once the user enters the data in the form and he should be given some button to click(say save). This button click should trigger the program (PAI) which will read the data from the form (this data will be saved to a Z table)..
First of all, Can I do this? Please guide
Note: I am not using WebDynpro ABAP or JAVA. Rather I am trying to use a Module pool + interactive form solution.
Thanks in advancecould you tell me how to read data from the form ? which function module(s) to be used ?
-
Hi Gurus,
My scenario is when the customer send mail attachment with Sales order PDF document. The vendor should download that pdf forms. In that pdf forms we have an submit and cancel button. Once i submit that button that data should store in the database table. Here i am not using webdynpro. So,please give me idea how can we do this and how can i hardcode this.
Thanks
Kevin mikeon send button define a event which submits the form to a predefined email address, using transaction 'scot' configure the inbound processing.
create a class and implement the interface 'IF_INBOUND_EXIT_BCS'
now under the method tab of your class you will find the following two methods.
IF_INBOUND_EXIT_BCS~CREATE_INSTANCE
IF_INBOUND_EXIT_BCS~PROCESS_INBOUND
create a attribute named 'instance' make it as static and private and should be of the type same as your class name.
in 'create instance' method write the following code:
IF instance IS INITIAL.
CREATE OBJECT instance.
ENDIF.
Return the instance.
ro_ref = instance.
in 'PROCESS_INBOUND' method write the following code:
Get the email document that was sent.
DATA: document TYPE REF TO if_document_bcs.
document = io_sreq->get_document( ).
Get the interactive form attachment.
DATA: pdf_table TYPE bcss_dbpc.
pdf_table = document->get_body_part_content( 2 ).
Convert the pdf table into an xstring.
DATA: pdf_xstring TYPE xstring,
pdf_line TYPE solix.
CLEAR pdf_xstring.
LOOP AT pdf_table-cont_hex INTO pdf_line.
CONCATENATE pdf_xstring pdf_line-line INTO pdf_xstring
IN BYTE MODE.
ENDLOOP.
Get a reference to the form processing class.
DATA: l_fp TYPE REF TO if_fp.
l_fp = cl_fp=>get_reference( ).
Get a reference to the PDF Object class.
DATA: l_pdfobj TYPE REF TO if_fp_pdf_object.
l_pdfobj = l_fp->create_pdf_object( ).
Set the pdf in the PDF Object.
l_pdfobj->set_document( pdfdata = pdf_xstring ).
Set the PDF Object to extract data the Form data.
l_pdfobj->set_extractdata( ).
Execute call to ADS
l_pdfobj->execute( ).
Get the PDF Form data.
DATA: pdf_form_data TYPE xstring.
l_pdfobj->get_data( IMPORTING formdata = pdf_form_data ).
Convert the xstring form data to string so it can be
processed using the iXML classes.
DATA: converter TYPE REF TO cl_abap_conv_in_ce.
converter = cl_abap_conv_in_ce=>create( input = pdf_form_data ).
DATA: formxml TYPE string.
converter->read( IMPORTING data = formxml ).
CALL FUNCTION 'ECATT_CONV_XSTRING_TO_STRING'
EXPORTING
im_xstring = pdf_form_data
IMPORTING
ex_string = formxml.
TYPE-POOLS: ixml.
Get a reference to iXML object.
DATA: l_ixml TYPE REF TO if_ixml.
l_ixml = cl_ixml=>create( ).
Get iStream object from StreamFactory
DATA: streamfactory TYPE REF TO if_ixml_stream_factory.
DATA: istream TYPE REF TO if_ixml_istream.
streamfactory = l_ixml->create_stream_factory( ).
istream = streamfactory->create_istream_string( formxml ).
Create an XML Document class that will be used to process the XML
DATA: document TYPE REF TO if_ixml_document.
document1 = l_ixml->create_document( ).
Create the Parser class
DATA: parser TYPE REF TO if_ixml_parser.
parser = l_ixml->create_parser( stream_factory = streamfactory
istream = istream
document = document ).
parser->parse( ).
data: node type ref to if_ixml_node.
data: strChecked type string.
*getting form values
node = document->find_from_name( name = 'RESERVED'
strChecked = node->get_value( ).
this is how you can get the data into internal table
and eventually save it into you system.
configuring 'SCOT'
configure the inbound processing
put the name of your class and the default email address, this will do you job.
regards,
Suhail Khan
Maybe you are looking for
-
Problem with making symbols stay with their own graphics
Hello, In my flash document I have different muscles of the body that are each symbols(some muscles are in groups as one symbol). I am making a drag and drop flash game where you can drag and drop the muscles onto their targets on the body. The probl
-
External speakers not working on iphone
Hi, have a new iphone and the speakers do not work, at all! I can hear the ringtones etc with the earphones on but nothing without them. Have tried reset and plugging/unplugging the earphones but no luck at all, so frustrating!
-
Grayscale images too dark in InDesign
Hello everyone, Whenever I place a grayscale image in my InDesign (CS 3) document, it looks far too dark (compared to what I want and what I prepared in Photoshop). These are the specs of the images: tif, 300 dpi, grayscale, 15% dot gain profile. I'v
-
Processing in Aperture never stops
I was importing images into Aperture last weekend when the spinning beachball appeared and I had no option but to Force Quit. Now every time I try relaunching Aperture, it indicates it is processing but never stops. I've tried canceling in the Activi
-
HI GUrus, Can anyone please throw some light on this scneario on how we can streamline this a little bit. Current process: we do all third party/subcontracting combination tpye of purchases. we get a sales order from our customer for Material A. Mate