‎2007 Aug 29 5:03 PM
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.
‎2007 Aug 29 8:57 PM
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
‎2007 Aug 29 9:01 PM
‎2007 Aug 30 7:19 AM
we cant use logical databases in ABAP oop
u go with normal usage
regards
Giridhar
‎2007 Aug 30 2:39 PM
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.
‎2007 Aug 30 5:26 PM
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