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

Long text in table control

Former Member
0 Likes
597

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

3 REPLIES 3
Read only

Former Member
0 Likes
540

Hi,

check FM create_text,edit_text,save_text.

Regards

amole

Read only

0 Likes
540

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

Read only

0 Likes
540

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.