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

Logical Database in Abap Objects

Former Member
0 Likes
1,167

Hi to All

I want do it a program report using a Logical Database.

Is this possible ??? But when I make a GET <node>, occurs the following error:

"" Statement "ENDMETHOD" missing. ""

I'm doing the following:

CLASS MONFIN IMPLEMENTATION.

METHOD TRAER_DATOS.

GET VBRK.

ENDMETHOD.

ENDCLASS.

Please, somebody tell me how I use the logical database in Abap Objects.

Thank you very much

Regards

Dario R.

5 REPLIES 5
Read only

former_member194669
Active Contributor
0 Likes
796

Hi,

Instead of using GET statement in the method why don't you try to use function module LDB_PROCESS.

Please check the example program "demo_logical_database"

aRs

Read only

0 Likes
796

I don't think that logical databases are supported in ABAP OO, you will need to implement using classical procedural ABAP. BTW, logical databases are obselete.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
796

we cant use logical databases in ABAP oop

u go with normal usage

regards

Giridhar

Read only

0 Likes
796

Logical Databases are not completely obsolete. They are for most modules (SD, FICO, MM, etc.) but in HR/Payroll/Time, that is the only way to extract data out of the HR clusters.

Read only

Former Member
0 Likes
796

Hi there

Logical databases whilst of "some use" are not really part of OO.

If you want to use a logical database in an abap OO program I would create a special class which just does the get data from your DB and pass this either at record or table level.

Techniques such as GET XXXX LATE aren't really part of any OO type of application since at Object Instantiation time you should be able to access ALL the attributes of that object.

As far as OO is concerned Logical databases are a throwback to "Dinosaur Technology".

Since however modules such as SD and FI are still heavily reliant on relational structures (i.e linked tables etc) then there is still some limited life in this stuff but for OO try and solve it by another method.

If you really must use this stuff in OO then do it via a FMOD call and save the data in a table which your method will pass back to your application program.

You can't issue a GET command directly in a method.

Cheers

Jimbo