cancel
Showing results for 
Search instead for 
Did you mean: 

Include text's paragraph format

Former Member
0 Kudos

Hi experts,

I have a include text in my smartforms. I'm using the smartform's form routine section to include this text, because my text is dinamically set up. After including it with the following code the paragraph and text formats are ignored. How could I apply my character and paragraph formats?

CALL FUNCTION 'SSFRT_READ_INCLUDE_TEXT'

EXPORTING

I_TEXTKEY = TEXTKEY

I_LANGUAGES = ls_LANGUAGES

IMPORTING

O_LANGU = LANGU

O_TEXT = lt_text

EXCEPTIONS

OTHERS = 1.

CHECK SY-SUBRC EQ 0.

CALL FUNCTION 'SSFCOMP_CONVERT_ITF_TO_TOKEN'

EXPORTING

I_TEXT = lt_TEXT

I_NAME = NAME

I_LANGU = 'H'

I_TEXTTYPE = ''

IMPORTING

E_TOKEN = L_TOKEN.

CALL FUNCTION 'SSFCOMP_WRITE_TEXT'

EXPORTING

NAME = NAME

LANGU = LANGU

STYLE = STYLE

STYLEVARI = STYLEVARI

TEXT = L_TOKEN

APPEND_MODE = APP_MODE

PROTECT = PROTECT

TEXTTYPE = ''

EXCEPTIONS

NON_MAIN_OVERFLOW = 1

OTHERS = 2.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Okay, I've got the solution. L_TOKEN contains the smartforms style. I have to set it according to my form.