How to save blob data (variable length string) in a customized table?
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).
data : itab like ZTESTBLOPDATA occurs 1 with header line.
select * from ztestblobdata into table itab.
ztestblobdata-id = sy-dbcnt +1.
ztestblobdata -blob = 'abcdefghijklmnopqrstuvwxyz.'.
When I try to save and activate the program, I get the following
'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