Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FUNCTION MODULE

Former Member
0 Likes
576

Hi Experts,

I need to convert RAW data Into ITF format(sap script text format).Please tell me if there any function module which converts RAW(RTF) data to ITF format with code.I mean what are the parameters need to pass to th function module.I tried with CONVERT_RTF_TO_ITF bot its not converting.

2 REPLIES 2
Read only

Former Member
0 Likes
356

try

SX_OBJECT_CONVERT_RAW_TXT

Read only

abdulazeez12
Active Contributor
0 Likes
356

Text Conversion RFT to ITF (SAPscript Format)

RTF text (Rich Text Format) in table X_DATATAB of size in bytes X_SIZE is converted into the internal SAPscript text format ITF in result table ITF_LINES.

For the print formats (parameters concerned are SSHEET, WITH_TAB, and WITH_TAB_E) refer to the parameter documentation.

In the HEADER field you must specify the language (HEADER-TDSPRAS); HEADER-TDSTYLE and HEADER-TDFORM are relevant only if a print format conversion ( WITH_TAB = 'X') is concerned.

HEADER:

Text Header of Result Text (Part)

The text header contains information which describes a text module, for example short text, user who created the text, user who last changed it, etc. The structure of the header is defined in table THEAD.

SSHEET:

Print format; only effective for print format conversion

Description

Name of a style sheet (.dfv) or document template (.dot).

To make a format conversion take effect, enter the symbolic name here, for which in transaction "Format Conversion" (SE74) a conversion was maintained using the relevant SAPscript style or form.

In addition, you must set the WITH_TAB paramenter to 'X'.

WITH_TAB:

Print format conversion; 'X' = yes or ' ' = no

Possible entries are 'X' (Yes) or ' ' (No).

If WITH_TAB = 'X' is set, and the parameter SSHEET is also maintained, a conversion of paragraph and character formats is performed. The source and target format can be a SAPscript style, a SAPscript layout set, or an MS Word document template. Transaction SE74 (format conversion) should be used to specify the assignment between the respective paragraph and character markers and/or Word styles.

X_DATATAB:

Foreign Text Table (Binary)

Description

Source Table for TABLETYPE = 'BIN'

Hope this helps

Cheers

Shakir