Application Development 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: 

POP UP LONG TEXT EDITOR

Former Member
0 Kudos
10,397

Moderator message: please do not use ALL CAPITALS in your subject

Hi all,

I have a requirement to pop up a long text editor screen on clicking a PO in ALV column.

Please guide for the same.

Thanks.

Edited by: Matt on Dec 16, 2008 11:25 AM

1 ACCEPTED SOLUTION

Former Member
0 Kudos
1,028

Hi,

Have a look:



DATA:       objtxt like SOLISTI1 occurs 0 with header line.
*
start-of-selection.
editor-call for objtxt.

****If user cancelled issue message to screen otherwise
****Send the email

if sy-subrc = 0.
   perform send_message.
else.
*message i023.
endif

Regards

Raju chitale

6 REPLIES 6

Former Member
0 Kudos
1,028

hi .. check this ..

REPORT ZEX_MINITEXTEDITOR .

Parameters: P_title(10).

Data: Begin of int_text occurs 0,

Text(100),

End of int_text.

CALL FUNCTION 'TERM_CONTROL_EDIT'

EXPORTING

TITEL = P_title

LANGU = 'E'

TABLES

TEXTLINES = int_text

EXCEPTIONS

USER_CANCELLED = 1

OTHERS = 2

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

regards

chinnaiya

Former Member
0 Kudos
1,029

Hi,

Have a look:



DATA:       objtxt like SOLISTI1 occurs 0 with header line.
*
start-of-selection.
editor-call for objtxt.

****If user cancelled issue message to screen otherwise
****Send the email

if sy-subrc = 0.
   perform send_message.
else.
*message i023.
endif

Regards

Raju chitale

matt
Active Contributor
0 Kudos
1,028

Please do not use ALL CAPITALS in your subject

Former Member
0 Kudos
1,028

check this FM TXW_TEXTNOTE_EDIT

SuhaSaha
Advisor
Advisor
0 Kudos
1,028

Hello Sanjiv,

Try this bit of coding:


DATA: it_note TYPE STANDARD TABLE OF txw_note.

START-OF-SELECTION.

  CALL FUNCTION 'TXW_TEXTNOTE_EDIT'
    TABLES
      t_txwnote = it_note.

IT_NOTE has the values that you input in the Text Editor. Use this table for further processing.

Hope this is clear.

BR,

Suhas

Former Member
0 Kudos
1,028

Please guide how to use our own Object id and text id while using TERM_CONTROL_EDIT function module.

Thanks.