2006 Sep 26 9:14 AM
Hi SDN, i need a longtext in one of the table contol of my customised screen. the purpose of the screen is to create RFQ's where in user can enter LT ( <b>just like the transaction IW32 - > Operations Tab - > LT Column. actually the LT in that table control is a button, pressing on which will take the user to an editor like SAP Script editor</b> )
This same LT created in RFQ Creation screen should be displayed to the users in another customised screens of RFQ Display / Change where the same functionality is needed.
Please help me in achieving this, i have been struggling from past few days, and this is very urgent.
Please HELP
Pratyusha, rewards for sure
Hi SDN, i need a longtext in one of the table contol of my customised screen. the purpose of the screen is to create RFQ's where in user can enter LT ( <b>just like the transaction IW32 - > Operations Tab - > LT Column. actually the LT in that table control is a button, pressing on which will take the user to an editor like SAP Script editor</b> )
This same LT created in RFQ Creation screen should be displayed to the users in another customised screens of RFQ Display / Change where the same functionality is needed.
Please help me in achieving this, i have been struggling from past few days, and this is very urgent.
Please HELP
Pratyusha, rewards for sure
2006 Sep 26 9:18 AM
2006 Sep 26 9:48 AM
hi Amole,
i was already using the fm's edit_text, but how do i save it in my ztable, what shud be the property of the field into which i need to save it. and also please confirm how to use the READ_TEXT to display the LT in the other screen where i will be displaying r changing the RFQ's. I observe that there is TDID which is necessary for the READ_TEXT since the appl is use is of Z tables, how do i use read_text
in case as suggested by you if i use create_text i still need the FID FOBJECT.
Please help me in creating LT and save it to Ztable and also display it in a diff screen.
Thanks in advance
Pratyusha
2006 Sep 26 10:18 AM
hi,
*...data needed for text display
DATA: BEGIN OF HTEXT,
TDOBJECT LIKE THEAD-TDOBJECT VALUE 'CCSS',
TDID LIKE THEAD-TDID,
TDNAME LIKE THEAD-TDNAME,
TDSPRAS LIKE THEAD-TDSPRAS,
END OF HTEXT.
DATA: BEGIN OF TLINETAB OCCURS 0.
INCLUDE STRUCTURE TLINE.
DATA: END OF TLINETAB.
DATA: L_THEAD LIKE THEAD,
L_FUNCTION.
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = HTEXT-TDID
LANGUAGE = HTEXT-TDSPRAS
OBJECT = HTEXT-TDOBJECT
NAME = HTEXT-TDNAME
IMPORTING
HEADER = L_THEAD
TABLES
LINES = TLINETAB
EXCEPTIONS
OTHERS = 1.
IF SY-SUBRC = 0.
CALL FUNCTION 'EDIT_TEXT'
EXPORTING
HEADER = L_THEAD
DISPLAY = 'X'
IMPORTING
NEWHEADER = L_THEAD
FUNCTION = L_FUNCTION
TABLES
LINES = TLINETAB
EXCEPTIONS
OTHERS = 1.
ENDIF.Also check out these links.
http://help.sap.com/saphelp_40b/helpdata/en/d6/0dc169494511d182b70000e829fbfe/applet.htm
Regards,
Richa.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |