Produce smartform output in word doc
I want to get my smartform output in a word doc instead of PDF. I've gone thorough the previous threads for the same thing but couldn't find any exact solution. can anyone tell me how this is to be done?
<promise removed by moderator>
Moderator message: please do more research before asking.
Edited by: Thomas Zloch on Apr 13, 2011 3:26 PM
Hi yogesh.,
There is no standard possibility to do Word outputs in SAP.
you can do manually..
After the print preview, Select the menu Goto->List Display.
Now select the menu System->List->Save->Local File.
Now you can select the radio buttion Rich Text Format.
Now you save the document as a .doc file (say test.doc)
That is it!!!!!
Anyway you can develop connection of Mail-merge technology of Microsoft and SAP ABAP class i_oi_document_proxy.
http://help.sap.com/saphelp_sm32/helpdata/EN/e9/0be980408e11d1893b0000e8323c4f/content.htm
with interface get_mail_merge_interface:
http://help.sap.com/saphelp_sm32/helpdata/en/6e/8fc2e3dd0d11d2bdba080009b4534c/content.htm
Refer this use ful link for word output
http://www.sap2word.de/abap.html
hope this helps.,
Thanks & Regards
Kiran
Moderator message: copy/pasted from several sources, please do not repeat if you want to keep your user ID!
http://www.google.com/search?q=%22Aftertheprintpreview%2CSelectthemenu+Goto%22&hl=en&source=hp&lr=&aq=f&aqi=&aql=&oq=
http://www.google.com/search?hl=en&source=hp&q=%22AnywayyoucandevelopconnectionofMail-merge%22&meta=lr%3D&aq=f&aqi=&aql=&oq=
Edited by: Thomas Zloch on Apr 13, 2011 3:35 PM
Similar Messages
-
How can we save smartform output as word document
Hi Friends,
Can anybody help me, how to save Smartform output as Word document instead of PDF file.
Thanks,
Ramana.Hi Venkat,
I think you can do it manually.
After the print preview, Select the menu <b>Goto->List Display</b>.
Now select the menu <b>System->List->Save->Local File</b>.
Now you can select the radio buttion <b>Rich Text Format</b>.
Now you save the document as a .doc file (say test.doc)
That is it!!!!!
<b>Award points if found useful.</b>
Regards,
SP. -
Download Smartform output in word document
Hi All,
I had a requirement to download the smartform output in ".doc" format.
I had run FM CONVERT_OTF with parameter value format = 'ASCII', and downloaded using .doc format
I was able to download but the output is not having logo and some different symbols are added.
Can any suggest what would be the exact procedure to download the output in word document.
Regards,
Dinakar.Hi Dinakar,
Please check the link provided:
Help with Smartform download - unwanted items showing in file
The solution provided in this link is very relevant for your question, so hope you will get the solution.
Thanks & regards,
Sarita Singh Rathour -
Smartform output in word format
dear all
i have created a smartform which needs to send to external mail ID.s as an .doc attachment.
how to do this. even i have no basic idea also. kindly help out.
regardsHi,
You cannot convert the smartfrom to word doc for this sap has not provided any provision, Instead you can convert to pdf and send as email.
You can check my reply in this thread..
[convert smartform output to pdf |Re: convert smartform output to pdf] -
Download java output to word doc
Hi ,
I would like to download the java output iview into Word document.
IS it possible ?
Thanks and regards,
SithiHi pradeep,
Thnx for ur reply....
My scenario is , I have created a Iview in Portal from a par file, which is a java code.
I would like to download this output from the portal to word doc.
so if i make any changes to it and save it. it has to save the changes in portal too...
hope the problem is clear.
Thanks and Regards,
Sithi -
Smartform output in word document
hi all,
how to download a smartform in word document so that the user can make changes in it. i tried converting the output into OTF format but formatting is not coming properly.how to overcome this?Hi,
Even i had the same requirement for a sales order form to download in word and then change it manually before sending to customer. I tried a lot of ways to do the same and finally raised a sap noted for the same.i got a reply from SAP that it is not possible to download forms in word with same allignments maintained with logo. SAP note 641560 says the same thing.
All you need to do is find a technical solution to fill the data which they want to fill maually or go for adobe form. Thats amazing technology to solve your issue. -
Print program for outputting a Word Doc in SAP DMS
Hi All,
I have a requirement wherein I need to PRINT a MS Word Document linked to a Material Master using SAP DMS. I had searched the SDN and found that the FM CV150_PRINT_DOC has been used by some of you for similar purposes.
Can anyone please describe how the FM can be used for the purpose mentioned above.
Please also let me know if it is possible to create an OUTPUT TYPE to be associated with the print program that I shall create.
Thanks in advance.
With regards,
NiharikaHi Bill,
Thanks for the reply.
Could you please describe in detail how OLE could be used for this? In case you have any sample code, kindly provide that.
Thanks in advance.
Warm regards,
Niharika. -
RH8 output as Word doc problem
I generated a project as a Word document to use for review purposes. The text is fine but I have an excel file that I added in as an htm. When it converts back to Word it's awful. Also a visio diagram does not reproduce well, but the problem there is that it's so small. Any suggestions for using Word for review with images, baggage files?
Could you filter out the baggage file when you generate the Word file and then manually enbed them once it has been created?
The RoboColum(n)
@robocolumn
Colum McAndrew -
Smartform convert to WORD - e-mail/fax
Hi All,
Quickly can we convert Smartform output to Word output. Currently I am doing Smartform converted to PDF and sending that as e-mail/fax. New requirement is to send in word format. Can we convert Samrtform to WORD and send as e-mal/fax?
Thanks in advance.
Regards,
TimCheck this code below ....
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZSD_SFM_ATTACH'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
CALL FUNCTION FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = wa_control
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS = wa_prnctrl
USER_SETTINGS = 'X'
CUST_LINE = gl_cust_line
IMPORTING
DOCUMENT_OUTPUT_INFO = wa_doc_info
JOB_OUTPUT_INFO = wa_outinfo
JOB_OUTPUT_OPTIONS = wa_job_opt
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
t_otf[] = wa_outinfo-otfdata[].
CALL FUNCTION 'CONVERT_OTF_2_PDF'
EXPORTING
USE_OTF_MC_CMD = 'X'
ARCHIVE_INDEX =
IMPORTING
BIN_FILESIZE = g_filesize
TABLES
OTF = t_otf
DOCTAB_ARCHIVE = t_docs
LINES = i_tline
EXCEPTIONS
ERR_CONV_NOT_POSSIBLE = 1
ERR_OTF_MC_NOENDMARKER = 2
OTHERS = 3
convert PDF 132 to 255
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
No translation
loop at i_tline.
i_objbin-line = i_tline-tdline.
append i_objbin.
endloop.
Convert PDF from 132 to 255.
LOOP AT i_tline.
Replacing space by ~
TRANSLATE i_tline USING ' ~'.
CONCATENATE w_buffer i_tline INTO w_buffer.
ENDLOOP.
Replacing ~ by space
TRANSLATE w_buffer USING '~ '.
DO.
i_record = w_buffer.
Appending 255 characters as a record
APPEND i_record.
SHIFT w_buffer LEFT BY 255 PLACES.
IF w_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
Refresh: i_reclist, i_objtxt, i_objbin, i_objpack.
clear w_objhead.
Object with PDF.
i_objbin[] = i_record[].
loop at i_record.
i_objbin-line = i_record-line.
append i_objbin.
endloop.
DESCRIBE TABLE i_objbin LINES v_lines_bin.
glt_objpack-head_start = 1.
Number of lines of an object header in object packet
glt_objpack-head_num = 0.
Start line of object contents in an object packet
glt_objpack-body_start = 1.
Number of lines of the object contents in an object packet
glt_objpack-body_num = v_lines_txt.
Code for document class
glt_objpack-doc_type = 'RAW'.
APPEND i_objpack.
Packing as PDF.
glt_objpack-transf_bin = 'X'.
glt_objpack-head_start = 1.
glt_objpack-head_num = 1.
glt_objpack-body_start = 1.
glt_objpack-body_num = v_lines_bin.
glt_objpack-doc_type = 'PDF'.
glt_objpack-obj_name = 'ReturnForm'.
CONCATENATE 'ReturnForm_output' '.pdf'
INTO glt_objpack-obj_descr.
glt_objpack-doc_size = v_lines_bin * 255.
APPEND glt_objpack.
glt_objhead = 'Return_form.PDF'. append glt_objhead.
Document information.
CLEAR i_reclist.
Fill the receiver list
clear gs_reclist.
condense gl_fax_num.
gs_reclist-receiver = P_Z_MFR_MAIL.
gs_reclist-rec_type = co_u.
append gs_reclist to i_reclist.
Sending mail.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = gl_doc_chng
put_in_outbox = 'X'
COMMIT_WORK = 'X'
TABLES
packing_list = glt_objpack
object_header = glt_objhead
CONTENTS_BIN = i_objbin
contents_hex = i_objbin
contents_txt = gt_objcont
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. -
Displaying BLOB of type word doc in XML Publisher pdf output
Hi all,
Please guide me relating the Displaying BLOB of type word doc in XML Publisher pdf output with links or pointers.In the following xml column TRADE_LICENSE_COPY is BLOB when queried from toad and if clicked on the ouput word doc is being opened directly.How to show the column value word doc as attachment in pdf output?
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by Oracle Reports version 10.1.2.3.0 -->
<XXTDIC_SUP_REG>
<LIST_G_BASIC_QUSNRY>
<G_BASIC_QUSNRY>
<RESPONSE_ID>194</RESPONSE_ID>
<UAE_REGISTRATION>Yes</UAE_REGISTRATION>
<TRADE_LICENSE_COPY>PK</TRADE_LICENSE_COPY>
<WEBSITE_DETAILS>com</WEBSITE_DETAILS>
<AMERICA_2009_2010>Between 81 and 90 %</AMERICA_2009_2010>
</G_BASIC_QUSNRY>
</LIST_G_BASIC_QUSNRY>
<LIST_G_CONTACTS>
<G_CONTACTS>
<CONTACT_PERSON>MR.NTF1 NTL1</CONTACT_PERSON>
<PHONE_NUMBER>0</PHONE_NUMBER>
<EMAIL_ID>na</EMAIL_ID>
<FAX_NUMBER>0</FAX_NUMBER>
</G_CONTACTS>
<G_CONTACTS>
<CONTACT_PERSON>MR.NTF1 NTL1</CONTACT_PERSON>
<PHONE_NUMBER>0</PHONE_NUMBER>
<EMAIL_ID>na</EMAIL_ID>
<FAX_NUMBER>-</FAX_NUMBER>
</G_CONTACTS>
</LIST_G_CONTACTS>
<LIST_G_SC_QUSNRY>
<G_SC_QUSNRY>
<RESPONSE_ID1>113</RESPONSE_ID1>
<FY3_PROJTYPE_COMMERCIAL>Between 21 and 30 %</FY3_PROJTYPE_COMMERCIAL>
<ENG_INSTALL_CAPABILITY></ENG_INSTALL_CAPABILITY>
<SCM_EXPERIENCE_PARTNERING>Have you had experience of "Partnering"?(i.e with major contracts / employers If so list them.Also please provide details</SCM_EXPERIENCE_PARTNERING>
</G_SC_QUSNRY>
</LIST_G_SC_QUSNRY>
<LIST_G_ADDRESS>
<G_ADDRESS>
<OFFICE_ADDRESS>Addres1</OFFICE_ADDRESS>
<ADDRESS_LINE1>Addre line1</ADDRESS_LINE1>
<ADDRESS_LINE2>Addre line2</ADDRESS_LINE2>
<ADDRESS_LINE3>Addre line3</ADDRESS_LINE3>
<CITY>City1</CITY>
<STATE>State1</STATE>
<COUNTRY>US</COUNTRY>
</G_ADDRESS>
<G_ADDRESS>
<OFFICE_ADDRESS>Addres2</OFFICE_ADDRESS>
<ADDRESS_LINE1>Addre line1</ADDRESS_LINE1>
<ADDRESS_LINE2>Addre line2</ADDRESS_LINE2>
<ADDRESS_LINE3>Addre line3</ADDRESS_LINE3>
<CITY>City2</CITY>
<STATE>State2</STATE>
<COUNTRY>IN</COUNTRY>
</G_ADDRESS>
</LIST_G_ADDRESS>
<LIST_G_DSN_QUSNRY>
</LIST_G_DSN_QUSNRY>
<LIST_G_PROD_SUB_CODE>
<G_PROD_SUB_CODE>
<PROD_SUB_CODE>060.42</PROD_SUB_CODE>
<PROD_SUB_DESC>Automotive Maintenance Items and Repair/Replacement Parts.Filters: Air, Fuel, Oil, Power Steering, Transmission and Water, and PCV Valves</PROD_SUB_DESC>
</G_PROD_SUB_CODE>
<G_PROD_SUB_CODE>
<PROD_SUB_CODE>060.60</PROD_SUB_CODE>
<PROD_SUB_DESC>Automotive Maintenance Items and Repair/Replacement Parts.Hose and Hose Fittings: Brake, Heater, Radiator, Vacuum, Washer, Wiper, etc.</PROD_SUB_DESC>
</G_PROD_SUB_CODE>
<G_PROD_SUB_CODE>
<PROD_SUB_CODE>207.37</PROD_SUB_CODE>
<PROD_SUB_DESC>Computer Accessories and Supplies.CRT Holders, Cases, Glare Screens, Locks, etc.</PROD_SUB_DESC>
</G_PROD_SUB_CODE>
<G_PROD_SUB_CODE>
<PROD_SUB_CODE>207.60</PROD_SUB_CODE>
<PROD_SUB_DESC>Computer Accessories and Supplies.Keyboard Dust Covers, Key Top Covers, Keyboard Drawers, Wrist Supports, etc.</PROD_SUB_DESC>
</G_PROD_SUB_CODE>
</LIST_G_PROD_SUB_CODE>
<LIST_G_CONT_QUSNRY>
</LIST_G_CONT_QUSNRY>
<LIST_G_BUSS_CLASS>
<G_BUSS_CLASS>
<BUSS_CLASS>SUPPLY_CHAIN</BUSS_CLASS>
</G_BUSS_CLASS>
</LIST_G_BUSS_CLASS>
<CF_SUPPLIER_NAME>N1</CF_SUPPLIER_NAME>
<CF_REG_STATUS>Draft</CF_REG_STATUS>
<CF_BUS_CLASS></CF_BUS_CLASS>
<CF_PROD_SUBCODE>060.36</CF_PROD_SUBCODE>
<CF_PROD_SUBCODE_MEAN>Automotive Maintenance Items and Repair/Replacement Parts.Electrical Accessories: Alternators, Ammeters, Coils, Distributors, Generators, Regulators, Starters, etc.</CF_PROD_SUBCODE_MEAN>
<CF_COUNTRY>India</CF_COUNTRY>
</XXTDIC_SUP_REG>
Thanks in advance.
Best Regards,
MahiMahi,
you can't do that yet. -
Capturing the output of a jsp page and save that output in a WORD .doc file
Hi,
This is Naveen. I got stuck up with a problem/doubt. URGENT ! URGENT !
My doubt is how to capture the output of a jsp page(the content is dynamic generated) and save that output to a MS-Word doc file.
I know that therez an option of using Servlets Filters, but this concept is supported by Servlet 2.3 spec. and not earlier. And we are working on previous spec. and our web-servers also supports the prev. version and not the 2.3 version.
If incase, therez a third-party utility for free usage, suggestions are appreciated.
Hope most of them came across this kind of functional requirement. If anyone of them succeeded in this, please express ur bitter experience if any, faced during the coding.
Thanks in Advance for help.
NaveenYou can set the MIME content type as .doc and try to open the Page.
res.setContentType("application/vnd.ms-excel"); to generate the Page output as Excel
res.setContentType("application/vnd.ms-word"); to generate the Page output as MS Word doc
Hope this helps.. -
Conditional build for chm and printed doc produce different outputs
I'm using RoboHelp HTML 9.0.2.271
In my TOC, I have two "books" of topics that I want to exclude from output because the topics won't be required at this time.
I right-clicked each book in the TOC and applied a condition ("Defer").
For the HTML Help (.chm), I made my build expression say NOT Defer and NOT Comment.
I generated the help.
The two books (and their topics) were excluded, as I expected.
For printed documentation (.doc), I made my build expression say NOT Defer and NOT Comment and NOT Online.
I generated the Word doc.
The two books were NOT excluded; they appeared in the printed doc.
The workaround is to delete them from the Chapter Layout window when I generate the printed doc, but I expected that since my build expression said to NOT include them, that they wouldn't be included.
Is my method wrong, or is it my expectation?You're right (of course!). My .chm file does actually contain those topics.
So, applying a condition to a TOC entry and then excluding it in the build has this effect:
HTML Help file (.chm): Now the topic entry will not appear in the TOC. The topic itself still exists in the .chm file, though, and you can find it by searching.
Printed output (Word): There doesn't seem to be any effect. That topic entry still appears in the Word TOC and the topic itself still exists in the .doc (or .docx) file.
So, to exclude a topic, I have to place the condition on the topic itself, by either right-clicking the topic in Project Manager and applying the condition or by opening the topic and applying the condition. Then I have to exclude that condition in the build.
Do I have it right yet? :-) -
Conversion of smartform output to DOC format
Hi,
I have a requirement to convert Smartform output to DOC format. Could anyone provide me any direction for this?
SSHi SS,
In the link sent by Anki Reddy... you can follow the same but in this FM change PDF to DOC thats it.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'DOC' * Change from 'PDF' * to DOC
MAX_LINEWIDTH = 132
ARCHIVE_INDEX = ' '
COPYNUMBER = 0
ASCII_BIDI_VIS2LOG = ' '
PDF_DELETE_OTFTAB = ' '
IMPORTING
BIN_FILESIZE = W_bin_filesize
BIN_FILE =
TABLES
otf = T_OTF
lines = T_pdf_tab
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 4
OTHERS = 5
Regards,
sg -
Downloading Smartforms Output into MS Word format
Hi,
Is there any way to download Smartform Output data in to MS Word.?...like the way we download Smartform data into PDF format.
is there any FM available to handle this like CONVERT_OTF, CONVERT_OTF_2_PDF in case of PDF.
Full points for useful answers.
Thanks,
Sree.Check these links
https://forums.sdn.sap.com/click.jspa?searchID=15917117&messageID=4709514
https://forums.sdn.sap.com/click.jspa?searchID=15917117&messageID=2950348
Thanks,
Phani. -
Early Watch not Producing Word.doc, or HTML Reports
Hello all,
I've managed to maintain the SDCCN, and the jobs associated with producing an Early Watch.
However, the process isn't producing any attachments, including a word doc, or an HTML report.
Oddly, in the operations screen from the CEN, I'm not able to view the report session at all, despite the Early Watch report being in the monitored system as a tree structure.
When trying to view the session through the operations screen in solution overview, the system throws that it cannot be viewed:
Cannot open session
Message no. DSWP033
Even odder is that the icon (the two bottles) suggests "Data has been transferred".
Any suggestions would be most helpful.
Message was edited by:
Kenneth PIn case any searches on this and needs a solution...
Believe it or not, the error was b/c of the >decimal< settings in my user ID. How very odd.
However, if you continue to get odd messages, please make sure that your user is set to display with decimals between powers of 10, and commas between powers of 1/10th.
ie 100.100.100,000
Maybe you are looking for
-
HELP iPhone wont connect to laptop
My husband and i both have the iphone 5 but mine suddenly stop connecting to my laptop it charges fine in the wall but once i plug the cable in the laptop it wont even charge much less connect to itunes . but if i connect my husbands iphone it will r
-
Change date field to a default date
Hello, my requirement is such that i need to have a Valid to Date as 31/31/9999, I tried using left(systime(0),11) which will give me for eg, 12/10/2010, which i need to change to 31/31/9999 How do i achieve this. thank you in advance
-
ORA-6571 ERROR (PACKAGE PRAGMA의 사용)
제품 : SQL*PLUS 작성날짜 : 1997-06-03 * ORA-6571 Error ( Package Pragma 의 사용 ) ============================================= SQL문 안에서 Stored function을 call하여 사용하는 경우 ORA-6571 error가 발생할 수 있습니다. 기본적으로 stored function이나 procedure, package에서의 DML 문장의 사용은 보장이
-
My iPod is in Chinese!!
My iPod is currently reading only in Chinese- how do I make it go back to English? Please help!
-
Importing space delimited iPad text files into number
Lots of iPad app collect data as space delimited text files ( where is tab key on iPad) how can I import these files into numbers for analysis and plotting?