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

Urgent please

Former Member
0 Likes
778

Hi i am doing dialog programming, i need a button in one of the cells of the table control and when the user clicks on it it should lead me to a text editor similar to the one in transaction <b>IW32 - > Operations Tab - > LT</b> (long text)

similar to this..

Please respond.

Many thanks

Pratyusha.

Hi i am doing dialog programming, i need a button in one of the cells of the table control and when the user clicks on it it should lead me to a text editor similar to the one in transaction <b>IW32 - > Operations Tab - > LT</b> (long text)

similar to this..

Please respond.

Many thanks

Pratyusha.

5 REPLIES 5
Read only

Former Member
0 Likes
724

Hi,

use the function module EDIT_TEXT..

Thanks,

Naren

Read only

0 Likes
724

Hi narendran,

thanks for the reply, just to clear one more doubt,

the contents of the table control come from a ztable, and it has a field longtext whihc is of length 50 for now, so when ever user clicks on the button which i place for text editor, what i feel is should i take the texts enterd into a new table, because user can enter multiple text lines in there. so how do i achieve it?

and can u tell me what are these in teh import parameters?

HEADER LIKE THEAD Text header of the text to be edited

CONTROL LIKE ITCED SPACE Control parameter for the editor

Please clarify

Many Thanks

Pratyusha

Read only

0 Likes
724

Hi Pratyu,

I'm not sure what you need, but usually to update text I'm using FM 'CREATE_TEXT'.

For the parameter you can see from the configuration (spro) or look at table TTXER.

Sample Code:

CALL FUNCTION 'CREATE_TEXT'

EXPORTING

FID = FID (see in table TTXER)

FLANGUAGE = SY-LANGU

FNAME = SERVICE_ORDER_NUMBER

fOBJECT = FOBJECT (see in table TTXER)

TABLES

FLINES = FLINES.

if you want to use 'EDIT_TEXT', before call that FM, you can try call FM 'INIT_TEXT' to get THEAD parameter,

the parameter for 'INIT_TEXT' is almost the same with 'CREATE_TEXT'.

Sample Code:

DATA: BEGIN OF TLINETAB OCCURS 10.

INCLUDE STRUCTURE TLINE.

DATA: END OF TLINETAB.

CALL FUNCTION 'INIT_TEXT'

EXPORTING

ID = FID

LANGUAGE = FLANGUAGE

NAME = FNAME

OBJECT = FOBJECT

IMPORTING

HEADER = FHEADER

TABLES

LINES = TLINETAB

EXCEPTIONS

ID = 01

LANGUAGE = 02

NAME = 03

OBJECT = 04.

Hope this help

Regards

David

Read only

0 Likes
724

Hi Pratyu,

Are you familiar with Standard text? SO10? Basically you can store your coustomize text by using the way same as other standard transaction. But in your ztable, you need to have a new field to store the text name. Bear in mind that your text name convention should start with customer namespace like "Z" or "Y".

You can use FM SAVE_TEXT to save the text after editing.

Hope it helps.

Read only

0 Likes
724

Hi David, thanks for the reply,

my requirement is that the user is going to enter long texts for the Quotations, the longtext should be entered as it is done in the transaction IW32 - > Operations Tab - > LT Column. the LT Column is a button which opens an editor. So this is the same sort of requirement i need.

Please help

thanks

Pratyusha