Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function EDIT_TEXT as Popup

Clemenss
Active Contributor
0 Likes
2,438

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

6 REPLIES 6
Read only

Former Member
0 Likes
1,518

Hi,

After getting the text from READ_TEXT, You could use Function module POPUP_to_INFORM to display the text .

Hope this helps.

Read only

0 Likes
1,518

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

Read only

0 Likes
1,518

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.

Read only

anversha_s
Active Contributor
0 Likes
1,518

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

Read only

Former Member
0 Likes
1,518

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

Read only

Clemenss
Active Contributor
0 Likes
1,518

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