on 07-11-2011 8:26 AM
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.
Okay, I've got the solution. L_TOKEN contains the smartforms style. I have to set it according to my form.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.