cancel
Showing results for 
Search instead for 
Did you mean: 

insert into ZLNGTEXT_TABL values LS_LONGTEXT.

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos
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..