cancel
Showing results for 
Search instead for 
Did you mean: 

Text entered in textarea truncated.

Former Member
0 Kudos

Hi,

I developed a web transaction with BusinessHTML on ITS6.20. Occasionally, the text entered on the text area defined (for PURPOSE1) is truncated, and I puzzled as it does not happen all the time. My codes are as follows :

<u><b>PBO :</b></u>

MODULE push_purpose1 OUTPUT.

DATA : READ_INDEX1 TYPE I.

IF WI_ID IS INITIAL.

CLEAR: PURPOSE1.

LOOP AT PURPOSE1.

READ_INDEX1 = SY-TABIX.

FIELD-SET 'PURPOSE1' READ_INDEX1 PURPOSE1.

ENDLOOP.

FIELD-TRANSPORT.

ELSE.

IF PURPOSE1 IS INITIAL.

SWC_GET_TABLE WI_CONTAINER 'PURPOSE1' PURPOSE1.

ENDIF.

LOOP AT PURPOSE1.

READ_INDEX1 = SY-TABIX.

FIELD-SET 'PURPOSE1' READ_INDEX1 PURPOSE1.

ENDLOOP.

FIELD-TRANSPORT.

ENDIF.

ENDMODULE.

<u><b>PAI :</b></u>

MODULE GET_PURPOSE1 INPUT.

DATA : PURPOSE1_TAB LIKE PURPOSE1 OCCURS 0 WITH HEADER

LINE.

IF SY-UCOMM NE 'CONT'.

CLEAR : CONTEXTTAB, CONTEXTTAB[].

CALL FUNCTION 'ITS_IMPORT_CONTEXT'

TABLES

CONTEXT = CONTEXTTAB

EXCEPTIONS

ITS_NOT_AVAILABLE = 1

OTHERS = 2

.

IF SY-SUBRC = 0.

CLEAR : PURPOSE1_TAB, PURPOSE1_TAB[].

SORT CONTEXTTAB BY FIELDNAME FIELDINDEX.

LOOP AT CONTEXTTAB WHERE FIELDNAME = 'PURPOSE1'.

PURPOSE1_TAB = CONTEXTTAB-FIELDCONT.

APPEND PURPOSE1_TAB.

ENDLOOP.

PURPOSE1[] = PURPOSE1_TAB[].

ENDIF.

ENDIF.

ENDMODULE. " GET_PURPOSE1 INPUT

<u><b>Internet Service Template :</b></u>

<textarea class="text" name="PURPOSE1:72[]" wrap="physical" cols="72" rows="3" onkeydown="cancBub(event)">`repeat with r from 1 to PURPOSE1.dim; write (PURPOSE1[r], "\r\n"); end`</textarea>

Any advise is appreciated. Thank you.

Regards

Kir Chern

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I would like to add that the truncation occurs upon returning from search help within the web transaction. The web transaction consists of a text area and input fields with search help capability. Upon entering a long text on the text area, and returning from a search help, the text is then truncated. Any clues is appreciated. Thanks.

Regards

Kir Chern