Application Development 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: 

'Z' table maintanence generator

Former Member
0 Kudos
281

Hi,

I am having a 'Z' table with 7 fields. In this 'Z' table I also have a field whose data type is STRING, for which I've created a 'Z' data type and a 'Z' domain.

I am not able to create:

1) Maintainence view using Tale maintanence generator for this table.

Error is get is 'Data type STRING not supported in field SMS'.

2) Neither am I able to maintain/modify entries in table using SE16N and check maintain entries, even after changing attributes as 'Display/Maintenance Allowed'.

Even if I change some entries and click SAVE I get a dump saying

Runtime errors         ASSIGN_CASTING_ILLEGAL_CAST
Exception              CX_SY_ASSIGN_CAST_ILLEGAL_CAST
       Occurred on     10.09.2009 at   11:34:41

Error in an ASSIGN ... CASTING statement in program "SAPLSE16N".

Is it because of my data elemene string or something else?

Please help.

Regards,

Amit

1 ACCEPTED SOLUTION

Former Member
0 Kudos
164

Hi,

Try changing that String to char of required length and regenerate the Maintenance Generator.

Regards

Karthik D

7 REPLIES 7

Former Member
0 Kudos
165

Hi,

Try changing that String to char of required length and regenerate the Maintenance Generator.

Regards

Karthik D

0 Kudos
164

Hi,

I am trying to store an URL.

If I declare it as CHAR, it allows me to define on 255 chars.

But my URL length is more than that.

Please suggest.

Regards,

Amit

0 Kudos
164

Hi,

In the data element try using built in type as String and give length as 500.

I hope this will solve your problem.

KR Jaideep,

0 Kudos
164

Hi,

Other way is to use SAVE_TEXT and save the text separately as long text.

Regards

Karthik D

Former Member
0 Kudos
164

Hi Amit,

Yes. You are right. Table maintenance generator does not support fields of type with string, raw, rawstring, internal table, object reference etc...

One solution I think is to create a maintenance transaction on your own.

Regards,

Deepika.

Former Member
0 Kudos
164

Hi Amit,

I ve faced a similar situation where my url could be upto 450 characters.. for that i created two fields in the table and then concatenated it.

If you have any idea of how long can ur url be , u can use the same solution.

Regards

Palak

0 Kudos
164

Hi,

I was thinking of the same solution, because there seems to be no other option.

Thanks all.

Regards,

Amit