‎2006 Sep 27 3:13 PM
Hi,
I have to display a text as popup. The text itself is maintained with SO10 as standard text.
I could use Function EDIT_TEXT in DISPLAY mode to just display the text.
But I want a popup for this.
Is there any ready-to-use function for this?
regards,
Clemens
‎2006 Sep 27 3:15 PM
Hi,
After getting the text from READ_TEXT, You could use Function module POPUP_to_INFORM to display the text .
Hope this helps.
‎2006 Sep 27 3:23 PM
Hi Imtiaz Ahmed,
nice try.
Could you please elaborate on how to pass the sapsctript long text; i.e. text ID, OBJECT, Name or the text line table?
Thanks a lot. I have no idea on how to spend my time.
Regards,
Clemens
‎2006 Sep 27 3:28 PM
Hi,
I meant some thing like this
call function 'READ_TEXT'
exporting
id = '0001'
language = nast-spras
name = vbdkr-tdname
object = 'VBBK'
importing
header = header
tables
lines = txt
exceptions
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
others = 8.
You will be having value in the TXT table ,now you can loop through the TXT table and populate line1 , line2 of the function module popup_to_inform.
Hope i'm clear in putting my point.
‎2006 Sep 27 3:26 PM
hi,
chk this sample code.
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = 'message'
txt1 = 'No data exsits to display.
rgds
anver
pls mark hlpful answers
‎2006 Sep 27 3:28 PM
hi Li,
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = 'Create Object Failed'
txt1 = 'to make TextEditor Control'.
Leave Program.
ENDIF.Check out this thread for READ_TEXT FM
http://www.sap-basis-abap.com/sapac002.htm
Regards,
Santosh
Message was edited by: Santosh Kumar P
‎2008 Jul 24 5:20 PM
Best solution: Remove all formatting options and use the GUI textedit control. Igor Barbaric proposed the nice reusable class LCL_ST_TEXT_FACADE in his demo program Z_DEMO_PATTERNS.
Regards,
Clemens