2008 Nov 11 10:30 AM
Hi,
I want to display information to user using message type 'I'.
The information to be displayed consists of two lines , lets say string1 on first line & string2 on second line. How do i concatenate both these strings into one string with a newline character in between so that whenever this message is displayed it is displayed as
string1
string2
and NOT as string1 string2.
Pls guide me.
Bye
2008 Nov 11 10:51 AM
Hi,
You can use function module /RWD/POPUP_TO_DISPLAY_TEXTLIST to display messages of multiple lines or you can generate your own popup screen.
Example Code:
DATA: ttab TYPE TABLE OF tline WITH HEADER LINE.
ttab-tdline = 'line 1'.
APPEND ttab.
ttab-tdline = 'line 2'.
APPEND ttab.
CALL FUNCTION '/RWD/POPUP_TO_DISPLAY_TEXTLIST'
EXPORTING
titel = 'Title'
TABLES
text_table = ttab.
Regards,
Ali
2008 Nov 11 10:51 AM
Hi,
You can use function module /RWD/POPUP_TO_DISPLAY_TEXTLIST to display messages of multiple lines or you can generate your own popup screen.
Example Code:
DATA: ttab TYPE TABLE OF tline WITH HEADER LINE.
ttab-tdline = 'line 1'.
APPEND ttab.
ttab-tdline = 'line 2'.
APPEND ttab.
CALL FUNCTION '/RWD/POPUP_TO_DISPLAY_TEXTLIST'
EXPORTING
titel = 'Title'
TABLES
text_table = ttab.
Regards,
Ali
2008 Nov 11 10:55 AM
Thanks Ali for your response.
I want to display the multiline text in function 'POPUP_TO_CONFIRM' . I need to pass the string to 'text_question' variable. For this reason i want to have multiline text in one string variable.
Any idea how to do it .
2008 Nov 11 10:59 AM
You can use fm POPUP_TO_CONFIRM_STEP like this:
CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
EXPORTING
defaultoption = 'Y'
textline1 = 'msg line 1'
textline2 = 'msg line 2'
titel = 'Warning'
IMPORTING
answer = cevap.
Regards,
Ail
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |