How to render forms (.for) as PDF through webservice
Hi All,
Here is the situation:
We are working on a product catalog project where the catalog also contains a forms library in relationship with various Insuarnce products.
There is a catalog search capability being built that should be able to conduct a structured search based on the forms listed in the catalog and then a unstrcutured search that could search the content of an actual form.
The way we are looking at it is to extarct the forms (.for) files from Documaker MRL in PDF format and load into a SharePoint repository against which an unstructured search can be performed.
How can we extract the .for files from the MRL in a realtime process and create a PDF? From the list of available ewps services only doPublish has the distributionchannels options to create a PDF. However, it is dependent on availability of an import file as well as specification of key1 and key2.
The MRL is in Oracle 10g and DocServer and the presentment are on AIX boxes.
Any suggestion or recommendation will greatly help. Even an alternative approach that would enable the unstructured search for the forms is most welcome.
Thanks,
Prashant
Hi Prashant,
Do your forms change so frequently that you need real-time access to the FOR ???
One of the major issues I see with that kind of setup is ensuring that the calling web service gets the correct version of the form.
Say you have form 123 456 (2010-01) Documaker version 1, revision 10, that has been published and 123 456 (2012-06) Documaker version 2.1, not published, and a work-in-process. Unless you build a complete parallel forms management system, chances are you would often get the wrong version of a form.
Distributing a form in a "work-in-process" state is never good, but try to imagine the panic if, by mistake, a future version of a form, drastically reducing the coverage, is leaked.
You could probably build the search features on a set of folders containing the PDF version of approved, published forms. That's the kind of setup we have in place.
Similar Messages
-
How do I search for a word through multiple files in my directories ??
Hello everyone
How do I search for a word through multiple files in my directories ??
I am guessing one tedious way to do it would be to pass all the file names as command line arguments but I"m sure there exist a much easier and faster way to do it.
Thanks a lotYou need to pass only the directory name as parameter and then retrieve the files(recursively throug subdirs or not, however you wish) of that directory.
There were at least 2 threads yesterday on how to retrieve files from directory, and there are many others in the archive so I leave the search part to you ;)
HTH
Mike -
How to maintain EOIO for JMS to multiple webservices scenario
Hi,
I have a requirement that
how to maintain EOIO for JMS to multiple webservices scenario.
JMS queue has multiple messages, each message has to be sent to either of 2 receivers.
How to maintain EOIO in case, when there are 2 receivers.
Regards
SekharHi,
since messages are split between 2 webservices receivers, each would have its own SOAP adapter.
So if order of messages in the JMS queues is M1, M2, M3 and M4 . There is a field based on which split happens.
Say, if M1 and M3 have to go Webservice1 (will have its own mapping)
and M2 and M4 have to go Webservice2. (will have its own mapping)
we'll have two receivers in the receiver determination and hence two Interface determinations.
The result should be
M1 delivered to Webservice1
M2 delivered to Webservice2
M3 delivered to Webservice1
M4 delivered to Webservice2
How will we maintain EOIO in this case?
Regards,
Balaji.M -
Learn how to view and filter responses to your fillable PDF form and how to send data from your PDF form to an Excel spreadsheet using Acrobat X Std. or Pro. You can also check for responses on Acrobat.com.
http://adobe.ly/GJAFlCI cannot believe the quality of the Acrobat X tutorials. Why can’t they be like the ones for CS. Some balloon text boxes flash by so fast they cannot be read, timing is also an issue for other balloons.
Disappointed, If you like I can make better ones for you -
How to assign forms for Physical Inventory Doc printing ?
Hi all,
I have 2 forms for 2 differnet factory to print Physical Inventory Document .
I have create 2 output type with differnet form setting , but i can't find the way to assgin output type for the factory .
Does anyone know how to config ?
Thanks a lot .The transaction MI21 prints inventory using a SAPscript through INVENT.
-
I'm trying to render a form guide from a pdf, using the RenderFormGuide service, but I get the following error:
Failed to load TemplateStream for FormQuery= from location URI =repository://.
Does this mean that the only way to render a Form Guide is to pass the path to an xdp and not a document containing a pdf?Ok - thanks for the quick reply.
The reason I'm trying to render a Form Guide from a PDF is that once the user submits the Form Guide a PDF is rendered, but this PDF isn't Reader Enabled. So my thought was that if I used a Reader Enabled PDF to render the Form Guide I would end up with a Reader Enabled pdf once the Form Guide was submitted. I've set the 'Submit from' propety in the 'Guide Properties' to PDF.
Seen as this isn't possible, is there a way to Reader Enable the PDF the Form Guide submits to? -
Urg : how to find form for standard transactions
Hi
How to find smart forms for standard transaction and how to call or change the existing form to another zform .how to implement the forms ..
give helpful hints.
thanks
sureshHi,
for Smartforms material
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-press.com/downloads/h955_preview.pdf
http://www.ossincorp.com/Black_Box/Black_Box_2.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sapgenie.com/abap/smartforms.htm
How to trace smartform
http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
http://www.sap-img.com/smartforms/smart-006.htm
http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
Re: Need FAQ's
check most imp link
http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
step by step good ex link is....
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
regards
Sudheer -
How to install Bumpbox for a pdf
Hello everyone.
I'm looking feverishly for explicit instructions on how to install bumpbox to get it working in Dreamweaver CS4. I can't find anywhere on the web where exactly the folder or files should be installed (locally) and a good example of code to make it work for a pdf. Do you either know of a site that spells it out for novice to mid-level user or can you possibly provide me with what worked for you?
Again, I need an example of full code for a pdf and where to install the folder and/or files.
With thanks.
PaulThis doesn't do what you need?
http://www.artviper.net/website-tools/bumpbox-lightbox.php -
How to pass form for approval?
helo,
I have created a form using form portlet. I wana send this form for approver to approve. How can i pass this form so that, when approver log into portal a list of form that need approval appear on the page of approval. Please anyone help me!Hi Rajasekhar,
Seems you have extensive knowledge on the PCRs. I have some basic questions on which I need your help.
Can you pl. send me your email id/contact details so that I can be in touch with you.
my email:
[email protected]
Many thanks in advance.
MSR -
How to set bookmarks for interactive Pdf forms?
CAn
I cannot believe the quality of the Acrobat X tutorials. Why can’t they be like the ones for CS. Some balloon text boxes flash by so fast they cannot be read, timing is also an issue for other balloons.
Disappointed, If you like I can make better ones for you -
How to send an external mail(PDF) through SCOT
Dear All,
We have a requirement to mail customer invoice converting the smartform into a PDF. All the neccesary configuration that needs to be done in NACE and SPRO transactions has been done.Now when we issue the output through an output type through transaction VF03, output is successfully issued.In SP02 also it shows the printing is successfully completed.
But when i want to want to check the display log aginst the
output type and billing doc issued it says dat the processing log dosnt exist.We have configured the SCOT transaction for sending external email but it doesnt send the mail and even doesnt show any request in waiting and as well as no errors so we are not being able to identify whether the configuration done is wrng which doesnt seem to be the case or is dere a problem with SCOT configuration.
Could any1 pls help me with the entire flow of configuring SCOT if possible with screenshots for sending external email . or if possible wat is the possible problem we are facing...
Awaiting ur reply shortly.
Thanks & Regards,
Lailu Philip.Internal Table declarations
DATA: i_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
i_tline TYPE TABLE OF tline WITH HEADER LINE,
i_receivers TYPE TABLE OF somlreci1 WITH HEADER LINE,
i_record LIKE solisti1 OCCURS 0 WITH HEADER LINE,
Objects to send mail.
i_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
i_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
i_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
i_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
Work Area declarations
wa_objhead TYPE soli_tab,
w_ctrlop TYPE ssfctrlop,
w_compop TYPE ssfcompop,
w_return TYPE ssfcrescl,
wa_doc_chng typE sodocchgi1,
w_data TYPE sodocchgi1,
wa_buffer TYPE string,"To convert from 132 to 255
Variables declarations
v_form_name TYPE rs38l_fnam,
v_len_in LIKE sood-objlen,
v_len_out LIKE sood-objlen,
v_len_outn TYPE i,
v_lines_txt TYPE i,
v_lines_bin TYPE i.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZZZ_TEST1'
importing
fm_name = v_form_name
exceptions
no_form = 1
no_function_module = 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.
w_ctrlop-getotf = 'X'.
w_ctrlop-no_dialog = 'X'.
w_compop-tdnoprev = 'X'.
CALL FUNCTION v_form_name
EXPORTING
control_parameters = w_ctrlop
output_options = w_compop
user_settings = 'X'
IMPORTING
job_output_info = w_return
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 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.
i_otf[] = w_return-otfdata[].
call function 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = v_len_in
TABLES
otf = i_otf
lines = i_tline
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
others = 4.
Fehlerhandling
if sy-subrc <> 0.
endif.
loop at i_tline.
translate i_tline using '~'.
concatenate wa_buffer i_tline into wa_buffer.
endloop.
translate wa_buffer using '~'.
do.
i_record = wa_buffer.
append i_record.
shift wa_buffer left by 255 places.
if wa_buffer is initial.
exit.
endif.
enddo.
Attachment
refresh:
i_reclist,
i_objtxt,
i_objbin,
i_objpack.
clear wa_objhead.
i_objbin[] = i_record[].
Create Message Body
Title and Description
i_objtxt = 'test with pdf-Attachment!'.
append i_objtxt.
describe table i_objtxt lines v_lines_txt.
read table i_objtxt index v_lines_txt.
wa_doc_chng-obj_name = 'smartform'.
wa_doc_chng-expiry_dat = sy-datum + 10.
wa_doc_chng-obj_descr = 'smartform'.
wa_doc_chng-sensitivty = 'F'.
wa_doc_chng-doc_size = v_lines_txt * 255.
Main Text
wa_doc_chng-doc_size = ( v_lines_txt - 1 ) * 255 + strlen( i_objtxt )
clear i_objpack-transf_bin.
i_objpack-head_start = 1.
i_objpack-head_num = 0.
i_objpack-body_start = 1.
i_objpack-body_num = v_lines_txt.
i_objpack-doc_type = 'RAW'.
append i_objpack.
Attachment
(pdf-Attachment)
i_objpack-transf_bin = 'X'.
i_objpack-head_start = 1.
i_objpack-head_num = 0.
i_objpack-body_start = 1.
Länge des Attachment ermitteln
describe table i_objbin lines v_lines_bin.
read table i_objbin index v_lines_bin.
i_objpack-doc_size = v_lines_bin * 255 .
i_objpack-body_num = v_lines_bin.
i_objpack-doc_type = 'PDF'.
i_objpack-obj_name = 'smart'.
i_objpack-obj_descr = 'test'.
append i_objpack.
clear i_reclist.
i_reclist-receiver = '[email protected]'.
i_reclist-rec_type = 'U'.
append i_reclist.
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = wa_doc_chng
put_in_outbox = 'X'
TABLES
packing_list = i_objpack
object_header = wa_objhead
CONTENTS_BIN = i_objbin
contents_txt = i_objtxt
receivers = i_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
others = 8.
1. Use the Medium 7 for sending mails instead of 1 (printout)
2. Maintain the Mail IDs for all vendors in Vendor Master(check the ADR6 table)
3. Do the settings for sendiing mails in SCOT and SOST tcodes with the help of Basis person
4.In NAce also use medium 7 instead of 1 (print)
5. In the application doc Po Me22 N also configure the output type with the medium 7 for the partner(vendor) and other sommunication method settings.
6. CHeck the print program, I think it will consider the Medium and set the communication type automatically. check it by keeping a break point if it is not working.
n the Smartform Functiona Module we get the Spool ID of the Smartform for the output
use that spool ID and convert to PDF format and send mail using the fun modules
CONVERT_ABAPSPOOLJOB_2_PDF
SO_NEW_DOCUMENT_ATT_SEND_API1
you have to write related code for these fun modules in the Smartform driver program itself
and ask your basis persons to configure the SCOT and SOST tcodes to send mails to Outside Consignee Maid Id's
REWARD POINTS IF HELPFUL
rewar points if helpful. -
How to display employee photo in pdf through WebDynpro OR ABAP print Progr?
hi,
I have uploaded employee photos using TCODE OAOH. Now all the employee photos are stored in Archive link.
Now my requirement is i have get the employee photo and display it in PDF using PDF forms and webdynpro OR using ABAP print program.
I am able to get the employee photo from SAP archive link using ABAP code. After this i have to upload this to MIME reository. From MIME repository i have to display it in PDF forms from WEbDynpro.
I tried with ABAP print program, directly calling the PDF form in program and display the employee data with Employee Photo. With my program i am able to see only employee data. But it's not displaying employee Photo.
Plz any helps to display employee photo in PDF forms using either webdynpro OR ABAP printprogram.
If ur reply is related to WebDynpro, pla tel me how to upload photo to MIME repository From Archive Link.
Since all the employee photos are uploaded into Archive link using Tcode OAOH. From this i have to get the employee photo and upload it to MIME repository and i have to display it in PDF forms.
Any help are appreciated.......
Regards,
Shankar.Hi Sankar,
1)You can use the program BSP_UPDATE_MIMEREPOS to upload the photos in the mime repository.
2)Use the following code to get the content from your mime and set the content to your interactive UI element as Xstring format.
data:
mime_repository type ref to if_mr_api,
content type xstring,
url type string value '/SAP/BC/BSP/SAP/myBSPapplication/rajkumar.jpg' .
mime_repository = cl_mime_repository_api=>get_api( ).
call method mime_repository->get
exporting
i_url = url
importing
e_content = content.
wd_context->set_attribute( name = 'DATAS' value = content ).
Thanks,
Rajkumar.S -
How to declare name for delivered pdf-attachment (e-mail)
hi,
if I'm using the XMLP Enterprise Edition, is there any chance of influencing the naming of the delivered attachments, that are sent via e-mail? On my outlook-account, I'm receiving a "att001.pdf" file .. on another e-mail client I'm receiving a "xxx.dat" file ... how can I declare the name for the file? is there an entry in xdodelivery.cfg or something like that?
hopefully someone can help meHi,
use this property for deliveryrequest
then ur attachment filename will be displayed as u specified
delReq.addProperty(DeliveryPropertyDefinitions.SMTP_CONTENT_FILENAME, repTitle+rRequestID+".pdf");
Thanks&Regards
MadhuSudhan.M -
How to keep logs for one week through sm36 jobs creation
Hi
As i define a job through sm36. Its logs removed next day , but its logs removed through sm37 through next days. But some of the job logs does not removed for even one week. can somebody be help me to sort it out . I want to keep job logs for one week then where i have to define it. If some job is defined which remove all these logs then where we have to define that these logs will remain for one week , because some of the job logs will remain there for one week.
Thanks in advance
Regards
Ravi Kant Arya
+91 9999530385Hello,
please check the variants of the report used in the job SAP_REORG_JOBS. With the report RSBTCDEL2 you can specify very detailed how long logs should be kept for which jobs (e.g. depending on the job name or job class).
Regards
Christian -
How to create framework for web application through coded UI
I was creating a sample application:
Step1: opened internal Explorer and typed http://www.bing.com/
Step2: typed sachin and click on search
Step4: clicked on "Sachin Tendulkar - Wikipedia, the free encyclopedia"
I wrote the code. It was working but, my concern is line number of code. I have to identify object but before that I have to identify parents item and every new page it will change. I also follow this link (Hand-coding
a Coded UI Test) but, it was showing error in HtmlProperties
Here is my code:
BrowserWindow browserWindow = BrowserWindow.Launch(new System.Uri("http://www.bing.com/"));
BrowserWindow bw1 = new BrowserWindow(); // (browserWindow);
bw1.SearchProperties[UITestControl.PropertyNames.Name] = "Bing - Windows Internet Explorer";
bw1.SearchProperties[UITestControl.PropertyNames.ClassName] = "IEFrame";
bw1.SearchProperties[UITestControl.PropertyNames.TechnologyName] = "MSAA";
// bw1.DrawHighlight();
HtmlDocument document = new HtmlDocument(bw1);
document.SearchProperties[HtmlDocument.PropertyNames.Id] = null;
document.SearchProperties[HtmlDocument.PropertyNames.RedirectingPage] = "False";
document.SearchProperties[HtmlDocument.PropertyNames.FrameDocument] = "False";
document.FilterProperties[HtmlDocument.PropertyNames.Title] = "Bing";
document.FilterProperties[HtmlDocument.PropertyNames.AbsolutePath] = "/";
document.FilterProperties[HtmlDocument.PropertyNames.PageUrl] = "http://www.bing.com/";
document.WindowTitles.Add("Bing");
HtmlEdit ed = new HtmlEdit(document);
// htmlt ed = new HtmlEdit(document);
ed.SearchProperties[HtmlEdit.PropertyNames.Id] = "sb_form_q";
ed.SearchProperties[HtmlEdit.PropertyNames.Name] = "q";
ed.FilterProperties[HtmlEdit.PropertyNames.Class] = "b_searchbox";
ed.Text = "sachine";
HtmlInputButton button = new HtmlInputButton(document);
button.SearchProperties[HtmlButton.PropertyNames.Id] = "sb_form_go";
button.SearchProperties[HtmlButton.PropertyNames.Name] = "go";
button.FilterProperties[HtmlButton.PropertyNames.Type] = "submit";
// button.DrawHighlight();
Mouse.Click(button);
BrowserWindow bw2 = new BrowserWindow(); // (browserWindow);
bw2.SearchProperties[UITestControl.PropertyNames.Name] = "sachine - Bing";
bw2.SearchProperties[UITestControl.PropertyNames.ClassName] = "IEFrame";
// bw1.SearchProperties[UITestControl.PropertyNames.TechnologyName] = "MSAA";
// bw1.DrawHighlight();
HtmlDocument document2 = new HtmlDocument(bw2);
document2.SearchProperties[HtmlDocument.PropertyNames.Id] = null;
document.SearchProperties[HtmlDocument.PropertyNames.RedirectingPage] = "False";
// document.SearchProperties[HtmlDocument.PropertyNames.FrameDocument] = "False";
document2.FilterProperties[HtmlDocument.PropertyNames.Title] = "sachine - Bing";
document2.FilterProperties[HtmlDocument.PropertyNames.AbsolutePath] = "/search";
document2.FilterProperties[HtmlDocument.PropertyNames.PageUrl] = "http://www.bing.com/search?q=sachine&qs=n&form=QBLH&pq=sachine&sc=8-7&sp=-1&sk=&cvid=7ea461a67db341c1a6e6d14071f6ca29";
document2.WindowTitles.Add("sachine - Bing");
// document2.DrawHighlight();
HtmlCustom hc = new HtmlCustom(document2);
hc.SearchProperties[HtmlDocument.PropertyNames.Id] = "b_results";
hc.SearchProperties[HtmlDocument.PropertyNames.TagInstance] = "1";
// hc.DrawHighlight();
HtmlHyperlink hhl = new HtmlHyperlink(hc);
hhl.SearchProperties[HtmlDocument.PropertyNames.Id] = null;
hhl.SearchProperties[HtmlDocument.PropertyNames.InnerText] = "Sachin Tendulkar - Wikipedia, the free encyclopedia";
hhl.SearchProperties[HtmlDocument.PropertyNames.TagName] = "A";
hhl.FilterProperties[HtmlHyperlink.PropertyNames.AbsolutePath] = "/wiki/Sachin_Tendulkar";
// hhl.SearchProperties[HtmlDocument.PropertyNames.TagInstance] = "26";
// hc.SearchProperties[HtmlDocument.PropertyNames] = "http://en.wikipedia.org/wiki/Sachin_Tendulkar";
hhl.FilterProperties[HtmlHyperlink.PropertyNames.Href] = "http://en.wikipedia.org/wiki/Sachin_Tendulkar";
hhl.FilterProperties[HtmlHyperlink.PropertyNames.Class] = null;
hhl.WindowTitles.Add("sachine - Bing");
How to minimise no of line in this code.
vikashHi Viorel,
Thank you for your response.
I can reduce the size using helper variables but, I have written 100 lines of code for simple steps(already mentioned). Can I reduce ?
eg: I Created HtmlEdit object to type in text box but, for that, first I have to create their parents (BrowseWindow and HtmlDocument) objects. can I bypass their parents objects or reduce?
vikash
Maybe you are looking for
-
Blue Screen when Logging in after Upgrade
Hi, I upgraded to 10.5.5 yesterday and had no problems. Until today, just a few minutes ago when I started my iMac. A blue screen simply appeared and stayed instead of the login window. I tried out all kinds of keyboard commands but no reaction. Then
-
Siebel Problem With a Workflow Process (Pleaseee help REAL PROBLEM)
Well the problem is this i have a designed a workflow who is called by a JOB. Its functionality is to close Service Requests at certain time in the night. when i simulate a workflow against 2 different Servers it works fine without errors, but when i
-
Message no. /SAPAPO/OM011
Dear Experts , I am getting an Message no. /SAPAPO/OM011-Invalid Time Interval while creating an order using LPP (In RRP3) Can any body throw light and suggest how to correct this? Regards, NS
-
What the path tutorials don't tell you
Well I just learned about the multicolor paths. Not in any tutorial I've read yet. And now Path times 2.. What I'm trying to do is learn the cintiq, and the ins & outs of the different PS functions. I'm currently hitting walls using PATH's to draw a
-
How Can I Manage Photos?
I have taken 631 photos with my iPhone. I can't seem to copy them from the phone. I can't even sync them with my computer. If I choose a folder to sync the photos to, iTunes tells me this will delete all the photos on the phone. I'm baffled as to how