Skip to Content
0
Former Member
Oct 29, 2013 at 11:30 AM

Display a new line in a confirmation popup

1539 Views

Hello there,

I have a report where I would like to inform the user of some open events (taken from DB) and then ask him if he'd like to continue.

My code new is something like this:

SELECT ... INTO TABLE lt_events WHERE.... "my data

DATA newline TYPE string

newline = cl_abap_conv_in_ce=>uccp( '0d0a' ) "new line code

lv_question = 'Attention! there are some open events'.

CONCATENATE lv_question newline INTO lv_question.

LOOP AT lt_events INTO ls_events.

CONCATENATE lv_question newline ls_events-string INTO lv_question.

ENDLOOP.

CALL FUNCTION 'POPUP_TO_CONFIRM'

EXPORTING

titlebar = 'open events'

text_question = lv_question

...

.....

...

But when the popup appears in the screen everything is close to each other and without the new lines

How can I make the new lines appear in the popup??

Thanks