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: 

Problem while using function module TRIP_EDIT_TEXT_IN_POPUP

Former Member
0 Kudos

Hii,

I am using a fm TRIP_EDIT_TEXT_IN_POPUP to display text editor where the user can write some comments.

This is my code

DATA: TEXTTAB TYPE TABLE OF TDLINE.

DATA: MOREI TYPE MOREI,

EDITOR_TYPE TYPE EDITOR_TYPE.

CALL FUNCTION 'TRIP_EDIT_TEXT_IN_POPUP'

EXPORTING

I_MOREI = MOREI

I_EDITOR_TYPE = EDITOR_TYPE

I_TITLE = 'Title'

I_MODUS = 'C'

TABLES

T_TAB_EDITOR = TEXTTAB

EXCEPTIONS

DEFAULT_TEXT_NOT_FOUND = 1

OTHERS = 2.

The problem is when I am passing a already filled table TEXTTAB (To display data when the screen comes up) It is not working. It is showing the blank editor even if the texttab table is filled.

Does anyone know how to display data using this FM ?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

you have to pass

I_EDITOR_TYPE

I_EDITOR_KEY

two values in exporting parameter and same value you have to populate in the table parameter.

T_TAB_EDITOR.

i.e.

T_TAB_EDITOR-EDITOR_TYPE should be equal to I_EDITOR_TYPE in exporting parameter and

T_TAB_EDITOR-EDITOR_KEY should be equal to I_EDITOR__KEY in exporting parameter.

Regards

Shiba Prasad Dutta

3 REPLIES 3

Former Member
0 Kudos

HI,

Check this program.....

SAPSCRIPT_DEMO_NOTE_EDITOR

0 Kudos

Hiii,

Thanx for the help..but I want to display the text editor in a popup screen

Former Member
0 Kudos

you have to pass

I_EDITOR_TYPE

I_EDITOR_KEY

two values in exporting parameter and same value you have to populate in the table parameter.

T_TAB_EDITOR.

i.e.

T_TAB_EDITOR-EDITOR_TYPE should be equal to I_EDITOR_TYPE in exporting parameter and

T_TAB_EDITOR-EDITOR_KEY should be equal to I_EDITOR__KEY in exporting parameter.

Regards

Shiba Prasad Dutta