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
359

Hi Experts,

Can any one plz give the Code to the Function Module CONVERT_RTF_TO_ITF .I mean what are the parametrs need to pass and with data declarations also.

3 REPLIES 3
Read only

Former Member
0 Likes
337

Looking at the FM ...

You need to use the parameters:

SSHEET - Print format; only effective for print format conversion

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

MASK_BRACKETS - use default X

ITF_LINES - Your SAPscript

Data:

SSHEET(1)

WITH_TAB like TDBOOL

MASK_BRACKETS like TDBOOL

ITF_LINES type table of TLINE

Read only

former_member156446
Active Contributor
0 Likes
337

all the parameters which are NOT checked with Optional check box are mandatory fields to be given as input

Read only

Former Member
0 Likes
337

Hi Shiva

Pls see the below code.

Pls reward pts if help.

CALL FUNCTION 'CONVERT_RTF_TO_ITF'

EXPORTING

header =

  • SSHEET = ' '

  • WITH_TAB = ' '

  • MASK_BRACKETS = 'X'

x_datatab =

x_size =

  • IMPORTING

  • WITH_TAB_E =

tables

itf_lines =

  • EXCEPTIONS

  • INVALID_TABLETYPE = 1

  • MISSING_SIZE = 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.

Pls reward pts if help.