on 12-19-2009 4:12 AM
Hi,
insert into ZLNGTEXT_TABL values LS_LONGTEXT.
DATA LO_ND_LONGTEXT TYPE REF TO IF_WD_CONTEXT_NODE.
DATA LO_EL_LONGTEXT TYPE REF TO IF_WD_CONTEXT_ELEMENT.
DATA LS_LONGTEXT TYPE WD_THIS->ELEMENT_LONGTEXT.
DATA LT_LONGTEXT TYPE WD_THIS->ELEMENTS_LONGTEXT.
LOOP AT LT_ZRES_DIS_NEW INTO LS_ZRES_DIS_NEW .
IF SY-TABIX = LV_SELIND.
LS_LONGTEXT-ltext = LV_TXTEDIT.
insert into ZLNGTEXT_TABL values LS_LONGTEXT.
endif.
ENDLOOP.
here I am getting the error LS_LONGTEXT is not type compatible.BUt i want to inser the data in LS_LONGTEXT this workare only.
Thanks
Ramkumar
Hi,
to avoid the error declare LS_LONG TEXT in this way.
DATA: LT_LONG TEXT TYPE TABLE OF ZLNGTEXT_TABL,
LS_LONGTEXT LIKE LIN EOF LT_LONGTEXT.
If you have a struture for the table ZLNGTEXT you can declare in this way.
DATA LS_LONGTEXT TYPE ZLNGTEXT_STRUCURE.
Priya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
insert into ZLNGTEXT_TABL values LS_LONGTEXT.
what is teh data type of ls_longtext...and the structure of ZLNGTEXT_TABL..ie what is the tabletype for this..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.