This website has been archived, it is working in read-only mode.

This website has been archived, it is working in read-only mode.

I get the error

Error "READ dbtab" is not supported in the OO context

when activating the code. The message points to a normal internal table read.

asked 23 Jan '13, 17:39

pedrolima's gravatar image

pedrolima ♦♦
1.1k232840
accept rate: 32%


This message shows up when there is something wrong with the parameters of the read table call. Check that the variable that read table is reading from is really a table and not a structure.

permanent link

answered 23 Jan '13, 17:40

pedrolima's gravatar image

pedrolima ♦♦
1.1k232840
accept rate: 32%

Unfortunately some classic ABAP statment aren't supported in OO ABAP. Provide some code so we could find other approach.

permanent link

answered 07 Feb '13, 14:11

Pawel%20Hixohe%20Grze%C5%9Bkowiak's gravatar image

Pawel Hixohe...
2112511
accept rate: 16%

OO Abap does not support tables with status lines, and requires you to specify a record (or a ref to record, or field-symbol) to read your data into.

DATA: lsr_struct TYPE REF TO <line of table>.

LOOP AT mt_table REFERENCE INTO lsr_struct.
   (do stuff with lsr_struct->fieldA etc. )
ENDLOOP.

All in all this is a good thing and breaks some bad habits.

permanent link

answered 08 Feb '13, 16:35

Marius%20Piedallu%20van%20Wyk's gravatar image

Marius Pieda...
1612411
accept rate: 33%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×28

question asked: 23 Jan '13, 17:39

question was seen: 15,064 times

last updated: 08 Feb '13, 16:35