Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to save blob data (variable length string) in a customized table?

Dear Friends

I have written a very simple program to update table with 2 fields which

looks as follows.

========================================================

Table name ZTESTBLOBDATA

Field Key Init Data Element Data Type Length

ID Checked ZID NUMC 2

BLOB ZBLOB STRING 0

=========================================================

FOllowing is the sample program that I have written (Transaction SE38).

=========================================================

REPORT ZTESTBLOBPROG

TABLES: ZTESTBLOBDATA

data : itab like ZTESTBLOPDATA occurs 1 with header line.

select * from ztestblobdata into table itab.

ztestblobdata-id = sy-dbcnt +1.

ztestblobdata -blob = 'abcdefghijklmnopqrstuvwxyz.'.

insert ztestblobdata.

=========================================================

When I try to save and activate the program, I get the following

error message

'ztestblopdata' must be a flat structure. You cannot use internal

tables, strings, references, or structures as components.

==========================================================

Using the data type STRING is a must since it is a variable length

data which varies from few characters to few gig.

How can go around this problem.

Any feedback will be highly appreciated.

PS. I have checked old postings on SDN, spoken to my ABAP contacts and also couple of instructors from SAP when I took XI courses but didn't get a satisfactory answers.

Edited by: Ram Prasad on Oct 15, 2008 12:28 PM

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question