How to convert a Word Document to SAP SCript standard text.
Hi team,
Does any one know how to convert a word document or text in Word format to standard text.
So that we can use that standard text in Script output.
This might be very useful if we need to convert a lot of text into standard text.
Hi,
Create the name of the standard text you want in SO10.
When the editor is called up, select Text -> Upload and then browse for your file(s). Must be saved in RTF format in Word remember.
Cheers
Colin.
Similar Messages
-
How to convert a word document into the PDF format?
Please instruct me step by step on how to convert several Word documents into the PDF format?
If properly installed and updated (depending on the WORD version), you can simply do any of the following:
1. Open the doc in WORD and select Print, choose the Adobe PDF printer, print.
2. Open the doc in WORD and go to the Acrobat menu in WORD and select create PDF (this uses PDF Maker).
3. Open the doc in Acrobat and the conversion should be done based on PDF Maker. -
How do convert a Word document to a PDF on an iMac running 10.6.8?
How do I convert a Word Document to a pdf file on my iMac running OS X 10.6.8?
File- Print-Print PDF- Save as PDF
-
How to convert a word document to a fillable pdf form
hello -
how to I convert a word document into a fillable pdf form?Hi carolynm68845256
Please browse this link for detailed instructions regarding your issue: Acrobat Help | Creating and distributing PDF forms
Let me know if you face any challenges or if you have any other query.
Regards,
Rahul -
How to Convert a Word Document within BDN to PDF file
Hi All,
Currently, we have word documents stored within the business document navigator (Transaction OAOR) for our Materials. We want to be able to share these documents with our customers through a Web Interface such as Web Dynpro; however, we need to convert them to a PDF file first. Currently, we are obtaining the document contents in order to convert the word document to Binary. A Sample of this code is listed below. From this point, we are hoping to convert to PDF; however we are uncertain of how to do this. Is there a standard function module or class that will perform this conversion of a Word document. Any help will be greatly appreciated. Thanks.
*Get Information For BDS Form
gs_doc_signature-prop_name = 'DESCRIPTION'.
gs_doc_signature-prop_value = 'Description of Document'.
*Create BDS Instance
DATA gr_bds_instance TYPE REF TO cl_bds_document_set.
IF gr_bds_instance IS INITIAL.
CREATE OBJECT gr_bds_instance.
ENDIF.
*get the Document Contents
CALL METHOD gr_bds_instance->get_info
EXPORTING
classname = gc_docclass "BOR Object BUS1001
classtype = gc_classtype "BO for Business Object
object_key = gv_objkey "Material Number i.e. 000000000010034717
IMPORTING
extended_components = gt_extended
CHANGING
components = gt_doc_components
signature = gt_doc_signature
EXCEPTIONS
nothing_found = 1
error_kpro = 2
internal_error = 3
parameter_error = 4
not_authorized = 5
not_allowed = 6.
*Build the Object ID in order to Convert the Word Document to Binary
READ TABLE gt_extended INTO gs_extended INDEX 1.
gv_object_id-class = gs_extended-class.
gv_object_id-objid = gs_extended-objid.
*Convert the Word Document to Binary Format
CALL FUNCTION 'SDOK_PHIO_LOAD_CONTENT'
EXPORTING
object_id = gv_object_id "
CLIENT = SY-MANDT
raw_mode = 'X'
TABLES
FILE_ACCESS_INFO =
file_content_binary = gt_binary
*Convert to PDF!?!?!?!?
JohnHi
Refer this thread [Convert MS Word .doc to PDF;
Regards
Raj -
How to convert a word document to pdf
How do I convert a word document to pdf
Hi dionel33514362,
You can use either Adobe PDF Pack or Acrobat to convert Word documents to PDF.
Adobe PDF Pack is an online service, which allows you to upload files and convert them to PDF via a web interface.
See Acrobat Help | Create PDFs with Acrobat for information about creating PDF files in Acrobat. If you don't have Acrobat, please feel free to give it a try. You can download the free 30-day trial from the Acrobat link I mentioned above.
Please let us know if you have additional questions.
Best,
Sara -
How to convert a Word document to text or html in an ABAP program
Hi,
At my client's site, for the recruitment system, they have the word processing system set to RTF, instead of SAP Script. This means that all the correspondence is in Word format. A standard SAP program takes the word letter, loads word, does the mail merge with the applicant's info and then sends the document to a printer.
The program name is RPAPRT05. The program creates a document proxy (interface I_OI_DOCUMENT_PROXY) and manipulates the document using the methods of the interface.
Now what we want to do is to instead of sending the document to a printer, we want to email the document contents to the applicant. But I don't know how to get the content from the Word document into text or html format so that I can make an email from it.
I know I can send an email with the word document as an attachment, but we'd prefer not to do that.
I would appreciate any help very much.
ThanksOk, here's what I ended up doing:
First of, in order to call FM 'CONVERT_RTF_TO_ITF' you need the RTF document in a table with line length 156. The document is returned from FM 'DP_CREATE_URL' in a table with line length 132. So first I convert the table:
Transform data table from 132 character lines to
256 character lines
LOOP AT data_table INTO dataline.
IF newrow = 'X'.
Add row to new table
APPEND INITIAL LINE TO xdatatab ASSIGNING .
newrow = space.
ENDIF.
Convert the raw line of old table to characters
ASSIGN dataline TO .
Check line lengths to determine how to add the
next line of old table
newlinelen = STRLEN( newline ).
ADD addspaces TO newlinelen.
linepos = linemax - newlinelen.
IF linepos > datalen.
Enough space available in new table line for all of old table line
newline+newlinelen = oldline.
oldlinelen = STRLEN( oldline ).
addspaces = datalen - oldlinelen.
CONTINUE.
ELSE.
Fill up new table line
newline+newlinelen(linepos) = oldline(linepos).
ASSIGN newline TO .
newrow = 'X'.
Save the remainder of old table to the new table line
IF linepos < datalen.
oldlinelen = STRLEN( oldline ).
addspaces = datalen - oldlinelen.
CLEAR newline.
newline = oldline+linepos.
ELSE.
CLEAR newline.
ENDIF.
ENDIF.
ENDLOOP.
Write the last line to the table
IF newrow = 'X'.
APPEND INITIAL LINE TO xdatatab ASSIGNING .
Next I call FM 'CONVERT_RTF_TO_ITF' to get the document in SAPScript format:
Convert the RTF format to SAPScript
CALL FUNCTION 'CONVERT_RTF_TO_ITF'
EXPORTING
header = dochead
x_datatab = xdatatab
x_size = xsize
IMPORTING
with_tab_e = withtab
TABLES
itf_lines = itf_table
EXCEPTIONS
invalid_tabletype = 1
missing_size = 2
OTHERS = 4.
This returns the document still containing the mail merge fields which needs to be filled in:
LOOP AT itf_table INTO itf_line.
WHILE itf_line CS '«'.
startpos = sy-fdpos + 1.
IF itf_line CS '»'.
tokenlength = sy-fdpos - startpos.
ENDIF.
token = itf_line+startpos(tokenlength).
REPLACE '_' IN token WITH '-'.
ASSIGN (token) TO .
ENDIF.
MODIFY itf_table FROM itf_line.
ENDWHILE.
ENDLOOP.
And finally I use FM 'CONVERT_ITF_TO_ASCII' to convert the SAPScript to text. I set the line lengths to 60, since that's a good length to format emails to.
Convert document to 60 char wide ascii document for emailing
CALL FUNCTION 'CONVERT_ITF_TO_ASCII'
EXPORTING
formatwidth = 60
IMPORTING
c_datatab = asciidoctab
x_size = documentsize
TABLES
itf_lines = itf_table
EXCEPTIONS
invalid_tabletype = 1
OTHERS = 2.
And then the text document gets passed to FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' as the email body. -
How to convert a word document to PDF from a criteria workflow
Hi,
How to create a new revision in PDF format from a word document inside a criteria workflow? The inbound refinery converts documents to PDF automatically upon check-in, but I want to make the conversion in a specific step of a workflow.
Thanks,
MiguelYou could write a custom service and execute it within the workflow script using the executeService Idoc function.
-
Sap script-standard text in order confirmation
Hi Experts,
Can anybody solve my problem.I f my problem is solved they will definetely be rewarded with points.
The standard text will be stored as Name = ORDCONF_TEXT_(sales org)_(distributionchannel)_(division)
Text ID = ZSD
Examples: ORDCONF_TEXT_4000_01_01 ,
ORDCONF_TEXT_4000_01_80 , ORDCONF_TEXT_1000_01_01
The print program /form will need to pick up the
appropriate standard text based on the Sales Area
(combination of Sales Org / Distribution Center /
Division) of the sales order [VBAK-VKORG /
VTWEG / SPART], provided a standard text has been
created for that Sales Area. Itu2019s not required
that every sales area have a standard text, so if one
is not found, this step should be skipped and
the rest of the print program executed.
The new text should print after 2 blank lines after
the Printable Notes text (which is after the
line items and the Total Net Price prints).
The font should be the same size as the Printable
Notes, but bolded rather than italicized
The text should print in the same columns as the
Printable Notes currently print in (Material
Description / Scheduled Ship Date / Quantity)
So the logic i have used is this below code:
I used a subroutine in the layout of the main window becoz i need to print it in the main window below after 2 blank lines of line items.
PERFORM GET_OBJECT IN PROGRAM ZSDRP001_ORD_CONF_IRE
USING &VBDKA-VBELN&
CHANGING &ORDCONF_TEXT&
ENDFORM
INCLUDE &ORDCONF_TEXT& OBJECT TEXT ID ZSD PARAGRAPH A1
I called this subroutine in the print program:
FORM GET_OBJECT TABLES INPUT_TAB STRUCTURE ITCSY
OUTPUT_TAB STRUCTURE ITCSY.
DATA : TMP_VBELN LIKE vbdka-VBELN,
TMP_VKORG LIKE VBAK-VKORG,
TMP_VTWEG LIKE VBAK-VTWEG,
TMP_SPART LIKE VBAK-SPART,
TMP_TXNAM1(40) TYPE C VALUE 'ORDCONF_TEXT_',
TMP_TXNAM2(100) TYPE C.
DATA: v_text LIKE tline-tdline.
DATA : P_V_TEXT LIKE tline-tdline.
CLEAR : TMP_TXNAM1, TMP_TXNAM2, TMP_VBELN, TMP_VKORG, TMP_VTWEG, TMP_SPART.
READ TABLE INPUT_TAB WITH KEY NAME = 'vbdka-VBELN'.
IF SY-SUBRC = 0.
tmp_vbeln = input_tab-value.
ENDIF.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = TMP_VBELN
IMPORTING
OUTPUT = TMP_VBELN
CLEAR VBAK.
SELECT SINGLE VKORG VTWEG SPART
INTO (TMP_VKORG, TMP_VTWEG, TMP_SPART)
FROM VBAK
WHERE VBELN EQ TMP_VBELN.
IF NOT TMP_VKORG IS INITIAL AND
NOT TMP_VTWEG IS INITIAL AND
NOT TMP_SPART IS INITIAL.
CONCATENATE TMP_TXNAM1 TMP_VKORG tmp_vtweg tmp_spart into TMP_TXNAM2 SEPARATED BY '_'.
CONCATENATE TMP_VKORG TMP_VTWEG TMP_SPART into TMP_TXNAM SEPARATED BY '_'.
endif.
CONDENSE TMP_TXNAM2 NO-GAPS.
PERFORM read_order_text USING TMP_TXNAM2 CHANGING v_text.
READ TABLE output_tab WITH KEY NAME = 'ORDCONF_TEXT'.
IF SY-SUBRC = 0.
output_tab-value = P_V_TEXT.
MODIFY output_tab index sy-tabix.
endif.
endform.
*& Form READ_ORDER_TEXT
text
-->P_TMP_TXNAM2 text
<--P_V_TEXT text
FORM READ_ORDER_TEXT USING P_TMP_TXNAM2
CHANGING P_V_TEXT LIKE tline-tdline.
DATA: ztdid LIKE thead-tdid,
zlang LIKE thead-tdspras,
zobj LIKE thead-tdobject,
zname LIKE thead-tdname.
DATA: tlines TYPE STANDARD TABLE OF tline WITH HEADER LINE,
thead LIKE thead.
CLEAR P_V_TEXT.
ztdid = 'ZSD'.
zlang = 'E'.
zobj = 'TEXT'.
zname = P_TMP_TXNAM2.
CLEAR tlines.
REFRESH tlines.
CALL FUNCTION 'READ_TEXT'
EXPORTING
object = zobj
name = zname
id = ztdid
language = zlang
IMPORTING
header = thead
TABLES
lines = tlines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
LOOP AT tlines WHERE NOT tdline IS INITIAL.
MOVE tlines-tdline TO P_V_TEXT.
ENDLOOP.
ENDFORM. " READ_ORDER_TEXT
But still its not getting printed .Plz tell me where i am going wrong.
Thanks,
Sirishaa
Moderator message - Cross thread locked
Edited by: Rob Burbank on Nov 10, 2009 9:51 AMYou do not need to use the subroutine READ_ORDER_TEXT to get another text name because you already have it: TMP_TXNAM2 .
Pass this value back to your SAPscript, and it is okay.
Or you can even check the text object is empty or not, if no text is found, print 2 empty lines:
still use your subroutine to read the text, if no line is found, set TMP_TXNAM2 to empty, otherwise, no change,
In SAPscript, check the value is empty or not, then print 2 empty line or the text object... -
How do I convert a word document into a pdf and then upload it to a web site
How do I convert a word document into a pdf and then upload it to a web site so people can read it from my
site with Dreamweaver 4?. How can I do this? Can anyone please help? I'm only a newbie. Thanking you in anticipation.First you need to install a means of printing to pdf from word. I like cutepdf writer ( http://cutepdf.com/Products/CutePDF/writer.asp ). Once installed you will print the doc in word and under the printer selection you choose pdf.
Once you have the file you put it in your local site folders and upload it using Dreamweaver. Be sure to link to it from a page so users can get to it and I would recommend giving the link a target of _black so it will open in a new window (see the properties inspector in DW). -
How do I access Adobe from Word to convert a word document to pdf?
How to I access an Adobe command in Word to convert a Word document to pdf?
Certain versions of Word will have an Adobe PDF menu in the ribbon, which allows you to convert the Word file you're viewing to a PDF directly, maintaining all the links, bookmarks, destinations, etc. in it.
The other option is to use the PDF Printer and print the Word document to a PDF. This will result in a "flat" copy of the file, without any of the meta-elements described above. Basically the same as printing it out, only you use a virtual printer that generates a PDF file. -
How do I convert a word document to a pdf document that is protected
How do I convert a word document to a pdf document that is protected
Use Acrobat, or possibly CreatePDF.
-
How can I convert a Word Document to a PDF Document. The word document is already on my Pc
How can I convert a Word Document already on my PC, to a PDF Document
Using
Adobe PDF Pack
Adobe Acrobat
Microsoft Word 2007+ -
How to store word document in SAP
Hi Friends,
How to store and retrive word document in SAP?
Thanks & Regards,
Vallamuthu.MHi,
Check for the SAP ArchiveLink & BDS feature which SAP is providing . I think it will help you.
Regards
Maneesh Chandran -
How can I convert a Word document into Adobe PDF format?
How can I convert a Word document into Adobe PDF format?
You can use Adobe Acrobat or Adobe CreatePDF.
Maybe you are looking for
-
This message has appeared before, I thought I had dealt with it but it has just appeared again. I have also lost my firefox desk top page with the world logo enwrapped with a fox
-
How to configure broadcast ip permanently
hi I have facing problem regarding configuration of broadcast IP to resolve this ether i have to use ifconfig command for every restart or manually enter ip,netmask & broadcast ip in \etc\hostname.hme0 file in this case my default gateway will also c
-
I used to have a itunes account and made a new one which is this one but i noticed that i have 1.00 on my account now and the one from before. is their a way i can merge both my balances to buy the new angry birds game!??
-
Hi, I have LabVIEW 8.5.1 Student Edition and am not sure how to compile my VI into a standalone executable (.exe file) that can run without LabVIEW being installed on the computer (no data cards are being read, the VI is providing a simulation of an
-
All my clips are panned, quick change to 0
All my clips are -1 and +1 with one track louder than the other. I have to adjust each and every pan slider to 0 to hear it in both speakers. Is there a way to hightlight all the clips and change them all to 0 in one click?