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

A LONG TEXT ON SCREEN

Former Member
0 Likes
878

hi experts,

if user has to enter a long text on selection-screen..then what i have to do for that..is there any special code required for that..that paragraph may contain 50 to 100 characters or more..

regards,

raman

hi experts,

if user has to enter a long text on selection-screen..then what i have to do for that..is there any special code required for that..that paragraph may contain 50 to 100 characters or more..

regards,

raman

5 REPLIES 5
Read only

Former Member
0 Likes
837

Hi,

You can use long text using

SELECTION-SCREEN COMMENT 0(40) text-001

This will bring the full text. Also u can specify the postion this should start.

Hope this helps.

Reagrds,

Judith.

Read only

Former Member
0 Likes
837

Hi

Hope it will help you.

<REMOVED BY MODERATOR>

Long Texts are stored in tables

STXH - header

STXL - details.

if you want to read the texts you can use Fun Module READ_TEXT

Any Application document Header and Item Long texts are stored in STXH table with the 4 parameters OBJECT,ID,NAME and LANG

These texts are fetched from database using READ_TEXT fun module by passing the above 4 parameters.

Double click on the text, from the text editor menu GOTO-> HEDAER

you will find the all above 4 parameters

so accordingly you have to pass to the fun module READ_TEXT to fetch the texts.

Edited by: Alvaro Tejada Galindo on Feb 18, 2008 12:31 PM

Read only

0 Likes
837

I WANT THE TEXT TO BE ENTERED BY THE USER ON SELECTION-SCREEN...

Read only

0 Likes
837

Hi,

then have one text field of character type 100.

Regards,

JMB

Read only

Former Member
0 Likes
837

Hi,

Create a text object of ur own and u the following code...

TABLES: sscrfields.

CONSTANTS : c_id TYPE thead-tdid VALUE 'Z001',

c_language TYPE thead-tdspras VALUE 'E',

c_name TYPE thead-tdname VALUE 'TEXT',

c_obj TYPE thead-tdobject VALUE 'ZLONG'.

DATA : lt_tline TYPE TABLE OF tline,

text TYPE ttxit-tdtext VALUE 'Enter Text',

header TYPE thead.

PARAMETER: p_string TYPE c LENGTH 1000.

SELECTION-SCREEN FUNCTION KEY 1.

INITIALIZATION.

sscrfields-functxt_01 = 'Enter Text'.

header-tdobject = c_obj.

header-tdname = c_name.

header-tdid = c_id.

header-tdspras = c_language.

header-tdlinesize = 130.

AT SELECTION-SCREEN.

CASE sy-ucomm.

WHEN 'FC01'.

CALL FUNCTION 'INIT_TEXT'

EXPORTING

id = c_id

language = c_language

name = c_name

object = c_obj

TABLES

lines = lt_tline.

CALL FUNCTION 'EDIT_TEXT'

EXPORTING

display = ' '

editor_title = text

header = header

line_editor = 'X'

TABLES

lines = lt_tline.

ENDCASE.