Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is a local class in sap ?

Answer Posted / Praveen Kumar Pandey

"A local class in SAP ABAP (Object Oriented) refers to a class that is defined within the definition of another class or a method, and can only be accessed from its enclosing scope. It does not have an explicit instantiation and cannot be inherited by other classes. Here's an example:nn```abapnCLASS lcl_example DEFINITION.n PUBLIC SECTION.n METHODS: method1 IMPORTING iv_param TYPE i.nENDCLASSnCLASS zcl_parent DEFINITION.n PUBLIC SECTION.n METHODS: method2.n PRIVATE SECTION.n CLASSES lcl_example DEFINITION PROTECTED.nENDCLASSnCLASS zcl_parent IMPLEMENTATION.n METHOD method2.n DATA: lv_result TYPE i.n CALL METHOD lcl_example->method1 EXPORTING iv_param = 5 RECEIVING lv_result.n WRITE: /lv_result.nENDMETHODn``` In the above example, lcl_example is a local class of zcl_parent."

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category