{"id":171,"date":"2023-12-27T14:49:38","date_gmt":"2023-12-27T14:49:38","guid":{"rendered":"https:\/\/sapabap.dwimansolution.com\/?p=171"},"modified":"2023-12-27T14:49:38","modified_gmt":"2023-12-27T14:49:38","slug":"sap-abap-local-class-definition-deferred","status":"publish","type":"post","link":"https:\/\/sapabap.dwimansolution.com\/index.php\/2023\/12\/27\/sap-abap-local-class-definition-deferred\/","title":{"rendered":"SAP ABAP &#8211; Local Class DEFINITION DEFERRED"},"content":{"rendered":"\n<p>Local class is define inside program. It can be standalone, or inheriting non final class attributes.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>When you already declare class and the variable, but the error is still occurred (Type &#8220;lcl_main&#8221; is unknown) while you activated the program like the picture below, please add DEFINITION DEFFERED before the variable declaration. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"627\" height=\"898\" src=\"https:\/\/sapabap.dwimansolution.com\/wp-content\/uploads\/2023\/12\/image-9.png\" alt=\"\" class=\"wp-image-172\" srcset=\"https:\/\/sapabap.dwimansolution.com\/wp-content\/uploads\/2023\/12\/image-9.png 627w, https:\/\/sapabap.dwimansolution.com\/wp-content\/uploads\/2023\/12\/image-9-209x300.png 209w, https:\/\/sapabap.dwimansolution.com\/wp-content\/uploads\/2023\/12\/image-9-300x430.png 300w\" sizes=\"(max-width: 627px) 100vw, 627px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"724\" height=\"603\" src=\"https:\/\/sapabap.dwimansolution.com\/wp-content\/uploads\/2023\/12\/image-10.png\" alt=\"\" class=\"wp-image-173\" srcset=\"https:\/\/sapabap.dwimansolution.com\/wp-content\/uploads\/2023\/12\/image-10.png 724w, https:\/\/sapabap.dwimansolution.com\/wp-content\/uploads\/2023\/12\/image-10-300x250.png 300w\" sizes=\"(max-width: 724px) 100vw, 724px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Local class is define inside program. It can be standalone, or inheriting non final class attributes. When you already declare class and the variable, but the error is still occurred (Type &#8220;lcl_main&#8221; is unknown) while you activated the program like the picture below, please add DEFINITION DEFFERED before the variable declaration.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/sapabap.dwimansolution.com\/index.php\/wp-json\/wp\/v2\/posts\/171"}],"collection":[{"href":"https:\/\/sapabap.dwimansolution.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sapabap.dwimansolution.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sapabap.dwimansolution.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sapabap.dwimansolution.com\/index.php\/wp-json\/wp\/v2\/comments?post=171"}],"version-history":[{"count":1,"href":"https:\/\/sapabap.dwimansolution.com\/index.php\/wp-json\/wp\/v2\/posts\/171\/revisions"}],"predecessor-version":[{"id":174,"href":"https:\/\/sapabap.dwimansolution.com\/index.php\/wp-json\/wp\/v2\/posts\/171\/revisions\/174"}],"wp:attachment":[{"href":"https:\/\/sapabap.dwimansolution.com\/index.php\/wp-json\/wp\/v2\/media?parent=171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sapabap.dwimansolution.com\/index.php\/wp-json\/wp\/v2\/categories?post=171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sapabap.dwimansolution.com\/index.php\/wp-json\/wp\/v2\/tags?post=171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}