‎2006 Dec 18 6:17 AM
Hey Experts.............
How Can we write coding to retrieve data from 2 table say vbak and vbap
<b>using OOPS in ABAP</b>
‎2006 Dec 18 6:19 AM
Hi ,
There will be no diff in the select statement used to select data from the table.
Now if you want to use oops in this case , the you need to create a class with a method containing the slect statement to retrieve the data and the call this method.
Regards
Aun
‎2006 Dec 18 6:19 AM
Hi ,
There will be no diff in the select statement used to select data from the table.
Now if you want to use oops in this case , the you need to create a class with a method containing the slect statement to retrieve the data and the call this method.
Regards
Aun
‎2006 Dec 18 6:20 AM
Hi Ravi,
Create a class using se24, create a method having parameters according to the selection criteria and export parameters of method as the internal tables of type vbak and vbap.
in the method code write the appropriate statements to retrieve data from the tables
call this method in your program and retrieve data from the tables.
Hope this helps.
Regards,
Kinshuk
‎2006 Dec 18 6:21 AM
I don't think there is any difference in the select statement.
Write an inner join between the two tables.
‎2006 Dec 18 6:22 AM
Hi Ravi,
Data is retrieved from the database tables using Select statements.
You can embed the same inside a method of a local class which you define in your program & call the same(method) in START-OF-SELECTION event in your report.
Regards,
Chetan.
PS:Reward points if this helps.
‎2006 Dec 18 6:39 AM
hi,
u can create a local class or global Z class it's upto u, to create a global class create it in se24.
local class you can do it in the report program itself.
write a select stmt insed the method and call the mothd by creating object to the class if the method is instance method.