2008 Feb 18 11:03 AM
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
2008 Feb 18 11:25 AM
Hi,
You can use long text using
SELECTION-SCREEN COMMENT 0(40) text-001This will bring the full text. Also u can specify the postion this should start.
Hope this helps.
Reagrds,
Judith.
2008 Feb 18 11:27 AM
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
2008 Feb 18 11:35 AM
I WANT THE TEXT TO BE ENTERED BY THE USER ON SELECTION-SCREEN...
2008 Feb 18 11:57 AM
Hi,
then have one text field of character type 100.
Regards,
JMB
2008 Feb 18 2:20 PM
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.