Interactive forms upload/download data
Hi!
i want to upload and download the data that it is in pdf to sap crm web application server like this [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d05bc7e9-0183-2a10-17ab-cf77195fcdec]
thanks,
Raul Natu
Edited by: Raul Natu on May 13, 2009 1:12 PM
you have to use OLE techniques to achieve this.
for sample look at the coding of the following FM
KCD_EXCEL_OLE_TO_INT_CONVERT
this FM only takes the content from ACTIVE sheet.
what you need to do is first take the content from the ACTIVE sheet , then ACTIVATE the next sheet and read the content, etc.
Regards
Raja
Similar Messages
-
Offline Adobe Interactive Form Upload options - CRM 2007 sp4
CRM 2007 sp 4 Adobe Interactive Forms requirement
We intend to develop an Offline Adobe Interactive form which we are going to pass to Outlook through Groupware Integration to represent a customer visit to enable our sales people to record customer visits whilst in the field
Once the visit details have been saved to the offiline form the data in the form needs to be submitted to our system. From what i can see we have three options for this to take place: by Email / WebServices / WebDynpro-Upload can be used to post the data back to the CRM system.
What are the pros and cons of the three upload options?
Which is the easiest to implement?
Regards
EddieHi,
Thanks for your replies.
As per your replies, what i understand is : in the form properties, i have mapped the data source to context node (my data node) and pdfsource to (xstring content). And the template source should be mapped to the form name. Is this so?
If yes, i have tried this and i m able to see the form now.
But lets say, if they upload any other form, then this will lead to dump, isnt it ? Since the form template is mapped with a form name.
In wd java examples,. they mapped it as 'View.Form.xdp', i thought that the template soruce is dynamically gets mapped.
Any pointers on this, this would help.
Thanks,
Saujanya -
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 ?
-
Saving Interactive form filled with data onto Application server
Hi All,
I am able to save Interactive PDF filled with data on my local machine.But my requirement is to save it onto the application server.Could you please help me out.
Thanks in Advance,
PraveenaHi Praveena,
Use Function Module to CONVERT_OTFSPOOLJOB_2_PDF
Or make use of this code :
CONSTANTS: c_no(1) TYPE c VALUE space,
c_device(4) TYPE c VALUE 'locl'.
PARAMETERS: p_file TYPE LOCALFILE DEFAULT TEXT-F02 OBLIGATORY.
DATA: gd_buffer TYPE STRING OCCURS 0 WITH HEADER LINE.
lt_conv LIKE gd_buffer OCCURS 0 WITH HEADER LINE.
DATA lv_string TYPE string.
* CONVERT TO PDF FORMAT
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = itab-sp_numb
no_dialog = c_no
dst_device = c_device
IMPORTING
pdf_bytecount = gd_bytecount
TABLES
pdf = it_pdf_output
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.
LOOP AT it_pdf_output.
TRANSLATE it_pdf_output USING '~'.
CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING '~'.
APPEND gd_buffer.
DO.
counter = strlen( gd_buffer ).
IF counter GE 255.
lt_conv = gd_buffer(255).
APPEND lt_conv.
SHIFT gd_buffer LEFT BY 255 PLACES.
ELSE.
lt_conv = gd_buffer(counter).
APPEND lt_conv.
EXIT.
ENDIF.
ENDDO.
IF lt_conv[] IS NOT INITIAL.
OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc EQ 0.
IF sy-subrc 0.
MESSAGE e398(00) WITH 'Error creating file' p_file.
ENDIF.
LOOP AT lt_conv INTO lv_string.
TRANSFER lv_string TO p_file.
ENDLOOP.
CLOSE DATASET p_file.
IF sy-subrc EQ 0.
ELSE.
MESSAGE e398(00) WITH 'Error closing file' p_file.
ENDIF.
ELSE.
MESSAGE e398(00) WITH 'Error creating file' p_file.
ENDIF.
ENDIF.
Thanks,
Naresh -
Offline Interactive Form Upload for creating Business Transaction
Hi All,
I am using CRM Web Request for creating Business Transaction through Offline Interactive Adobe Form.
For that i have done PDF upload coding and then converting the PDF form to XML format.
Now the XML format of form is converted to string from xstring.
And then passing the XML to function module CRM_WEBREQ_EXTERN_CREATE_DOC along with the corresponding request category configured for the web request.Created the corresponding request category structure also.
still the business transaction is not getting created, the following error message is coming "XML incompatible for data structure of request category" .
Please respond if anybody has done the same scenario.
Or is there any other process that can be followed to upload offline interactive adobe form to create one order object.
Regards,
MadhuHi Maarten,
Is that aatribute binded to Dropdown field lying under a node of cardinality 1..1??
I think if that's so, ur error can be resolved by just putting this attribute in a node with cardinality 1..n.
Hope this helps..!!
Thanks,
Amita -
PDF Interactive Forms Not Saving Data in Preview
Interactive PDF forms opened in Preview doesn't seem to save data you fill in when you save the document. Acrobat seems to save and retain the document without a problem. Anyone know what's going on?
Adobe wants to keep you using only Adobe software so they have designed in incompatibilities with the OS. I don't know of any other PDF tool that can do fill-in forms. If you want to use fill-in forms, you'll have to print it using CUPS-PDF (I haven't tried this with Leopard yet). You could also use Skim to turn any PDF into a fill-in form.
-
Prepopulating Interactive Form with XML Data using VBA
I have an excel spreadsheet with data on it. I need to click on a button that will cause an Interactive PDF form to open and be populated with data from the spreadsheet. To do this I want to use an XML data file. I know how to create the file, but how do I cause the PDF to open in Adobe Reader with the XML data file using VBA? The link needs to be a soft link, in that the name of the XML file could change.
Many thanks for answers.strXFDFFile = "c:\temp\" & strFileName & "tmp.xfdf"
'Open the PDF file
appPDFInit = True
Status "Processing " & strFileName
DoEvents
' Create PDF File, if any
If strXFDFFile <> "" Then
Dim fldValue As String
Open strXFDFFile For Output As #1
Print #1, "<?xml version=""1.0"" encoding=""UTF-8""?>"
Print #1, "<xfdf xmlns=""http://ns.adobe.com/xfdf/"" xml:space=""preserve"">"
Print #1, "<f href=""" & strFilePath & strFileName & """/>"
Print #1, "<fields>"
For Each fdField In rsData.Fields
If IsNull(fdField.Value) Then
fldValue = ""
Else
fldValue = fdField.Value
fldValue = XMLit(fldValue)
End If
If InStr(1, fdField.Name, "ID") > 0 Then
fldValue = Format(fldValue, "##########")
End If
If InStr(1, fdField.Name, "ZIP") > 0 Then
fldValue = Format(fldValue, "#####")
End If
If InStr(1, fdField.Name, "Rate") > 0 Then
fldValue = Format(fldValue, "#0.00#")
End If
' Write #1, fdField.Name,
Print #1, "<field name=""" & fdField.Name & """>"
Print #1, "<value>" & fldValue & "</value>"
Print #1, "</field>"
Next
Print #1, "</fields>"
Print #1, "</xfdf>"
Close #1
End If
Dim x As Long
For x = 1 To 1000000: Next x
LaunchPDF.LaunchFile strXFDFFile, 0, 2
Make sure you reference the Adobe Acrobat Browser Control Library under Tools | References
It will merge to Adobe Reader. Note that I have made the strXFDFFile variable unique by including the name of the PDF file. This assures that you can merge to more than one PDF at a time (this is taken from a loop for multiple PDF files). Note that the XFDF file must include the path and the PDF file name in order to open the correct PDF for merging.
I don't have time to explain the code, but if you have any questions let me know.
Daniel H. Smith
Smith Enterpises LLC -
Hi abaper,
how can i download a script into local desktop
and how can i upload the same ?
i know there a standard program RSTXSCRP
to upload and download.
pls any one tell me how to solve this ?
Thanks & Regards,
VAni.Program RSTXSCRP
For Upload
in the Object selection Block
Choose the Radiobtton : Form
in the Object name mention the Script Name
Mode: IMPORT
in the Control Parameters
If the file is on Application server choose the radio button Application server
file is on Presentation server choose the radio button Frontend
and execute.
For Download
in the Object selection Block
Choose the Radiobtton : Form
in the Object name mention the Script Name
Mode: EXPORT
in the Control Parameters
If you want to download the file to Application server choose the radio button Application server
If you want to download the file to Presentation server choose the radio button Frontend
and execute.
Read the Documentation of the Program , it is well documented.
Regards
Vijay Babu Dudla -
Create offline interactive forms using webdynpro java with XML data source
Hi Gurus,
I am having a scenario like below:
Sales guy request for order list online from portal- Sytem receives the request and creat XML file- from xml file need to create a Offline interactive form-Sales guy fills it offline at customer site- uploads in portal -on submit xml has to be generated with captured data at customer site-Process to ECC.
So my questions are:
How to create the offline interactive form from XML?
Once filled offline interactive form uploaded into portal how to create XML again from pdf ?
Please give some idea on this as this is my first Offline interactive form using XML datasource.
Thanks
Ravi
Edited by: Ravi Sunkara on Jul 27, 2010 5:25 PMHi Otto,
Sorry for replying lately. First of all I did not get your suggestions as your are editing the same posting.
Secondly we will be using WDJ. Actually in between SAP Portal and ECC we are having adobe LCES so we need to create Interactive form using XML only. Once it is filled again the form will be submitted to another application which is running on FLEX, which will process the order.
if you can give me your personal id i can send you the detailed process
Thanks
Ravi -
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 -
Saving an Online Interactive Form onto Client PC and UWL query
Hi all,
I am pretty new to Adobe Interactive Forms and i have 2 questions which i hope someone can shed some light on.
1) Is it possible to save an Online Interactive Form after entering data as a PDF softcopy onto a local client machine before submission to the SAP R/3 system? This form is embedded in a Webdynpro App that is accessed through the portal.
2) I wish to integrate the Adobe Interactive Forms together with an approval workflow that is accessed through the portal UWL. I am wondering if my form needs to be embedded in a webdynpro app that allows an approver to view the filled in form filled in by the requestor. In addition, if the approver rejects the form, is it possible for the requestor to make the changes on the rejected form directly through the UWL or must the requestor create a new form?
Thank you all for your time and expertise! =)Its an interesting idea. but I think it would be better if your students download Eclipse Europa IDE (or similiar IDE) and learn how to work with it. The vendor spent over 20,000,000 dollors on creating it and your application is attempting to create an on-line IDE that will not have nearly as much functionality. I don't want to discurage you, but I suggest a different project. Alternatively, If you want, you can create a tutorial on setting up the IDE and how to create a simple project in it and launch it. Then again, there are probably a lot of other on-line examples already on this this. On the other hand, your application is great practice on updating your java skills.
-
Forms - document download problem
I have a form on a table with a blob and a mimetype column. The form upload / download works just fine on a http site.
The same setup on a https site works for document upload. But the download does not work -- the "Display column content" and "Save target as.." results in the following error: "Internet Explorer cannot download .. wwa_app_module.file_download from <site> The file could not be written to the cache".
This problem does NOT occur with the Firefox browser, however most of our users use IE.
Any suggetsions? If your solution involves custom code, please provide the detailed steps. THANK YOUHelo
use
select obj# into v_obj_id from sys.obj$ where name ='NAME OF THE PACKAGE' and type#=11;
update sys.source$
set source=replace(source,'Display column content','Text to display')
where obj# = v_obj_id
and source like '%Display column content%';
Best Regards
Jose -
Uploading data from Interactive form in Webdynpro ABAP
Hello All,
I am uploading data from an Offline interactive form to an ABAP WebDynpro application. Form is first downloaded, data is filled and now I am trying to upload the form to another WebDynpro application. Form DataSource is mapped to Context node with same data structure. However when I upload the form, form data does not pass automatically to specified context node.
Do I miss any important step in between? I am on SAP NetWeaver 2004s SP10.
Thanks,
Nitesh Shelar.hi,
the data is automatically passed to the context when the "interactive form" UI element is there in the view.
when you just upload the pdf, just like that, it will treat it like a PDF file, not an interactive form....
try using the same interactive form which you used to create the offline form.
i hope this helps,
regards,
-ag. -
How to download interactive adobe form with filled data
Hi Experts,
i have created a module pool program that is showing interactive adobe form, i created a button 'SAVE' to download the interactive adobe form to the presentation server.
but the problem is that i am unable to save the interactive adobe form with filled data. Please provide me the code how to download interactive adobe form with filled data.
Please provide me valuable information to clear the issue.
Thank you,
B. Raghu Prasad.Hi Raghu,
is this adobe form in web dynpro ? if so, I suggest to go to [Web Dynpro |Web Dynpro ABAP; forum to get more advice because it seems to be more specific topic.
Regards,
Vincent -
Upload interactive form and access field values in WD component
Hi Experts,
I want to upload a prefilled interactive adobe form in my webdynpro component and then I want to read the values filled in the form in my webdynpro component.
I don't want to display the interactive form in the WD component. Just need to read the values.
Please let me know how can I do it.
Warm regards,
Sushant SinghYou can use the fileupload and filedownload uielements.
Check these links:
[File Upload|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/b3/be7941601b1d09e10000000a155106/content.htm]
[File Download|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/09/a5884121a41c09e10000000a155106/content.htm]
When you upload a file and save in SAP, are you saving it as xstring.
If yes follow these steps for filedownload.
Follow these steps for file download:
1 Create FileDownload uielement in your View
2.Create an Attribute of type xstring.
3.Bind this attribute to the data property of your Filedownload uielement.
4. during fileuplaod as you are saving the document in xstring format, fetch the same from your database table and pass the value to filedownload i.e set the attribute bound to data property of filedownload uielement with the xstring content.
Maybe you are looking for
-
Safari, Open DNS ect.
Recently was having problems with Safari being slow. Came across a forum, possibly even an Apple Discussions thread, and someone mentioned changed the DNS settings, for Safari to run faster - (http://reviews.cnet.com/8301-13727_7-10354948-263.html).
-
How can I have popup text when user types something wrong?
I have some textarea and textfields created dynamically. I have set of rules in a text file. How can I have these rules popup when users make mistakes(e.g., forgets to capitalize the name)? Please provide your input. Thx. M
-
I went to install WM Patch 10.2.0.4.2 on my XE 10.2.0.1.0 database and it fails. The patch ReadMe implies that this will work, and I have had luck installing previous versions of the WM patch. The 10.2.0.2 WM patch installed wo errors for me and work
-
Linq orderby ascending with 0 last (as in 1, 2, 3, 0)
Hello, Can anyone suggest a way to modify this linq query such that the result returned is sorted ascending with 0 last (as in 1, 2, 3, 0)? var _players = from p in db.Players where p.ChampionshipId == _ChampId
-
URM: filesystem adapter configuration problem
Hi! Has somebody been able to configure the URM filesystem adapter on Linux? I have followed all the instructions and try to configure the adapter using the administration tool, but I get stuck when creating the search definition. Page 21, point 10 s