2006 Mar 10 9:42 AM
Hi,
I hope can anyone can help me..
I need write a text into a field. This field is a char(200) so I need that in the screen in the part of the field I can click it and open the screen where can write a long text. I don't know how to do that I've seen this function in the standar's screen.
Thks
2006 Mar 10 10:04 AM
The function module CREATE_TEXT will call a text editor where the user can type in values. You can assign this FM call to a button on the screen.
The FMs SAVE_TEXT, READ_TEXT and EDIT_TEXT will help you perform other functions on this text object.
Have a look at the STXH table to understand the various parameters to be passed to these FMs.
Sudha
Can anyone give an example about the fm create text?
thks
2006 Mar 10 9:44 AM
2006 Mar 13 6:50 AM
Hi Hyma,
I went thru some of your solutions and hope I can get the solution for my problem too.I want to disply the output as a stacked graph with multiple columns in X-Axis.
I tried with all the possible FMs, but could not find the expected requirements. Actually, I want to show multiple work-centres(12-15)in X-axis and their respective setup time and machine time(both should be stacked one above other) in Y-axis. Could you please help me with any solutions?????
Thanks....
2006 Mar 10 10:04 AM
The function module CREATE_TEXT will call a text editor where the user can type in values. You can assign this FM call to a button on the screen.
The FMs SAVE_TEXT, READ_TEXT and EDIT_TEXT will help you perform other functions on this text object.
Have a look at the STXH table to understand the various parameters to be passed to these FMs.
Sudha
2006 Mar 10 10:21 AM
Ok I am going to try it.
In the screen Can I start write it in the field and then click the button and go to the text editor?
2006 Mar 10 10:29 AM
Hi Laura,
you could use Oo to do that job :
obj_editor type ref to cl_gui_textedit,
create object obj_editor
exporting
parent = obj_container_2_2
wordwrap_mode =
cl_gui_textedit=>wordwrap_at_fixed_position
wordwrap_position = line_length
wordwrap_to_linebreak_mode =
cl_gui_textedit=>true.
* To set data into obj_editor
call method obj_editor->set_text_as_stream
...Rgd
Frédéric
2006 Mar 10 10:37 AM
So this Oo where I put it? And the what is obj_container_2_2 ?
2006 Mar 10 10:41 AM
You never write Oo program ?
Is it your own program ?
You can call a dynpro, set a Custom container inside, and the container is that :
obj_container_2_2 type ref to cl_gui_container
If you really don't know the Oo, maybe that will be to hard. (you can have a look to the DWDM transaction, that will give you example code).
Fred
2006 Mar 10 10:45 AM
2006 Mar 10 10:53 AM
You could have a look to the two example provide by SAP :
SAPTEXTEDIT_DEMO_1
SAPTEXTEDIT_DEMO_3
2006 Mar 10 11:22 AM
2006 Mar 10 12:03 PM
CREATE_TEXT need the key : TDID, TDSPRAS, TDNAME, TDOBJECT.
This key is the same key as the key of the table STXH. Have a look to this table to understand how it works.
Maybe, before use CREATE_TEXT, try to read a text that you have in this tables : STXH, STXL.
You could create for example a text with the transaction SO10. And try to read with READ_TEXT.
Frédéric
2006 Mar 10 3:26 PM
But when I use this FM, automatically open a new window where I can save the text?
2006 Mar 10 3:30 PM
2006 Mar 10 3:34 PM
Laura,
to enter text use the function EDIT_TEXT.
best is to look this program : <b>SDTEXTE</b>.
Fred
2006 Mar 10 5:07 PM
2006 Mar 10 5:11 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |