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

Table update when a type STRING is present

Former Member
0 Likes
1,944

Hey ABAPers...

Ok...rudimentary question, but I'm not finding any answers in my reference books, or in a search or the like.

Simple...

I have a z custom table with the following parameters...matnr type matnr and comments type sign_comm. The sign_comm type is a comment on a digital signature. I am using this table to log comments relating to a quality hold process we have. I need to be able to put in >15000 characters in the comment field, so of course this makes it a STRING type.

My code uses the textedit control and determines if a person has updated this text. If so, when they save it the changes should be posted back to this table. I do the regular UPDATE ZTABLE FROM TABLE INTTAB.

You may see the problem with this already. I get a dump when executing the program. When I do an SE11 for the Ztable and try to do the maintenance dialog it tells me that you cannot do a maintenance dialog for a table with STRING types. Ok...but I need the string type for the long data sets that will be going in there. There must be a way to update a Ztable when a STRING type is present. After all table SIGNS has a string on it and it is getting updated.

Thanks for any guidance.

Greg

3 REPLIES 3
Read only

former_member199581
Active Participant
0 Likes
1,220

Hi Greg,

something strange is happening i think...

I've just tried to create a ZTABLE in my SAP System, just like this:

Field - Type

PERNR - PERNR_D

SIGN - SIGN_COMM

SIGN_COMM, as you say, is a string type.

I've even tried to put in a custom data element, ZSTRING, created as a STRING with unlimited length.

I saved, activated the table and all is ok...technical params are:

APPL0 -> 01

Table class is A.

However, the maintenance dialog is not generated, because STRING type is not supported.

Please, can you post here some tech info about your ZTABLE?

Read only

0 Likes
1,220

Hey Roberto...thanks for the post...

Creating the table is no problem...try to do the table maintenance generator on the table and you will get this...

(Leading to a difficulty in doing an UPDATE to the table)

Data type STRING is not supported in field QA_COMMENTS

Message no. SV178

Diagnosis

The table for which a maintenance dialog is to be generated, contains

fields with the data type STRING.

The data type STRING is not supported by the view maintenance (SE54).

System response

No maintenance dialog can be generated. The program is cancelled.

Procedure

Correct the definition of this field in this table, in the ABAP

Dictionary(SE11).

Read only

Former Member
0 Likes
1,220

I found the answer in another post...relating to the textedit cl.