on 03-22-2006 7:38 PM
Hi everyone,
I need to make an enhancement to my existing custom table to accept long text. The text will be uploaded to this table and has length of 300 characters.
Do you know how I can implement this?
Thanks in advance.
You should create an append structure (On SE11)...so you don't mess with you actual table definition...Just use a domain with 300 characters and you're on -;)
Greetings,
Blag.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
string is not allowed for DD tables. it is only for structures.
Use type 'LCHR'. But there are some restrictions. This long text character field should immediately be preceded by another field of data type INT2. You don't have to fill anything, but it has to be there.
Also this long text field has to be the last field of the table.
Message was edited by: Srinivas Adavi
I have a table defined as below.
MANDT MANDT CLNT 3
ZZTEST ZZTEST1 CHAR 1
NUM INT2 5
LONGTEXT LCHR 300
Here is a program that fills this table.
REPORT zjstest .
DATA: BEGIN OF itab OCCURS 0.
INCLUDE STRUCTURE ztest.
DATA: END OF itab.
DATA: l_num TYPE i.
START-OF-SELECTION.
itab-zztest = '2'.
DO 299 TIMES.
IF l_num = 10.
l_num = 0.
ENDIF.
itab-longtext+sy-index(1) = l_num.
l_num = l_num + 1.
ENDDO.
itab-num = strlen( itab-longtext ).
APPEND itab.
INSERT ztest FROM TABLE itab.
Hi Ricky,
Please use data element<b> TEXT300</b> or domain <b>CHAR300</b>. Hope this will help.
Which SAP version are you using?
Regards,
Ferry Lianto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in se11 goto >append structure >name of the append > and create ur fields there.
the fields will be created in the append structure
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ricky,
You can add new field or append structure with data element <b>TEXT300</b> into your existing custom table.
Path: SE11 -> Database Table = your custom table.
Hope this will help.
Regards,
Ferry Lianto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.