01-07-2008 12:10 PM
Hi All,
Is there any Function Module which can display 500 character text in warning popup window??
Urgent please help !!
Regards,
Parvez.
01-07-2008 12:24 PM
have a look at function
POSTING_YOUR_QUESTION_ONCE_IS_SUFFICIENT
or maybe
PUTTING_URGENT_INTO_SUBJECT_IS_OFFENSIVE
01-07-2008 12:34 PM
hi,
try with ISU_POPUP_TEXT_EDIT.
if u don't have the ISU verticalizzation try this way:
create a new function with 1 importing parametre type string.
>funcion zpopup.
>
>call screen 100.
>
>endfunction.
in this dynpro you have to create a text editor elemet. in this way:
1 - create a custom container in the dynpro called 'EDITOR'.
2 - in the top include insert this variables:
>data: cont type ref to cl_gui_custom container.
>data: editor type ref to cl_gui_textedit
>DATA: BEGIN OF my_tab OCCURS 0,
>rec(100) TYPE c,
>END OF my_tab.
3 - in the PBO process insert this code in a module or in a form
>MODULE EDITOR.
>IF editor IS BOUND.
>CREATE OBJECT cont
>EXPORTING
>container_name = 'EDITOR'.
>CREATE OBJECT editor
>EXPORTING
>parent = cont.
>ENDIF.
>
>CALL METHOD editor->SET_SELECTED_TEXTSTREAM
>EXPORTING
>selected_text = your_string
>enable_editing_protected_text = '0'
>EXCEPTIONS
>error_dp = 1
>error_dp_create = 2
>OTHERS = 3.
>
>CALL METHOD editor->set_toolbar_mode
>EXPORTING
>toolbar_mode = 0.
>
>CALL METHOD editor->set_readonly_mode
>EXPORTING
>readonly_mode = 1.
>
>CALL METHOD editor->set_statusbar_mode
>EXPORTING
>statusbar_mode = 0.
>
>CALL METHOD cl_gui_cfw=>flush.
>
>ENDMODULE
otherwise u can replace SET_SELECTED_TEXTSTREAM method with SET_SELECTED_TEXT_AS_R3TABLE but you have split the string text into a table.
>CALL METHOD editor->set_selected_text_as_r3table
>EXPORTING
>table = my_tab[]
>EXCEPTIONS
>error_dp = 1
>error_dp_create = 2
>OTHERS = 3.
4 - in the PAI Process in the user command module insert this code when you leave the dynpro.
>IF NOT cont IS INITIAL.
>CALL METHOD editor->free.
>CALL METHOD cont->free.
>CLEAR editor.
>CLEAR cont.
>ENDIF.
bye
Marco