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

Syntax error / Database table problem concerning large data types

Former Member
0 Likes
607

Hello Dev Experts,

I'm currently working on a table control that will be one field that will need to save around 200-300 lines of text. (The purpose of this is to save a certification document in an editable and clean format that can have any amount of variations/macros put in).

In making the database table, instead of saving every line in the table control as its own record (trying to avoid a billion records here) I would like to have one very large field/data-type capable of saving the entire contents of the table control.

I see there are data types capable of 32000 characters which might work for my purposes. However, seemingly you can only have a string be that big in a table (When I add CHAR, I says it has to be smaller than 4030 characters)? Also, with a string the table is no longer a flat structure so I cannot declare it in a program without getting a syntax error: ""ZLAB_CERTS_TEXT" must be a flat structure. You cannot use internal tables, strings, references, or structures as components ."

Please help me!

<< Moderator message - Everyone's problem is important. Please do not ask for help quickly. >>

Thanks!

Brian Waugh

ABAP Developer

Latrobe Specialty Steel Co.

Edited by: bwaugh06 on Dec 14, 2010 8:16 PM

Edited by: Rob Burbank on Dec 14, 2010 2:21 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
560

hello,

May be you can use standard text for your requirement

also please see EDIT_TEXT and SAVE_TEXT function module

Thanks

3 REPLIES 3
Read only

Former Member
0 Likes
561

hello,

May be you can use standard text for your requirement

also please see EDIT_TEXT and SAVE_TEXT function module

Thanks

Read only

0 Likes
560

Thank you, that is helpful. I will begin looking into that.

Read only

0 Likes
560

Hi bwaugh06

You may use a text edit control instead od table control and store the content in a field of type STRING: No space wasted if no data is there but you have unlimited length.

Regards,

Clemens