eclipsでABAP開発を行う方法

SAP ABAP Development Tools in Eclipseのセットアップ

今回はSAPブログで有名な「すみっこ」さんのブログをからご紹介していきます。

EclipseでABAPプログラム開発 - SAPのすみっこ

ABAP in SAP Cloud Platform(SCP)に備え、SCPのトライアルをいくつかやってみましたが、今回はABAP側を意識してEclipseでのABAP開発をやってみました。 こちらを参考さ…

手順1. Eclipse IDE インストール

以下からダウンロード。
https://tools.hana.ondemand.com/#abap
詳細は割愛

手順2. ABAP Development Tools for SAP Netweaver のインストール

http://tools.hana.ondemand.com/oxygen”
Help → Install New Software
日本語ですとこのようなイメージです。

ABAP Development Tools for SAP Netweaver のインストール|01
ABAP Development Tools for SAP Netweaver のインストール|02

この後はこちらを参考にして作成できます。

span{line-height:17px;display:inline-block;padding:7px 12px 4px;background-color:var(--td_header_color,var(--td_black,#222222));color:var(--td_text_header_color,#ffffff)}.td_block_template_1 .block-title{text-align:left}.td-main-content-wrap{padding-bottom:40px}@media(max-width:767px){.td-main-content-wrap{padding-bottom:26px}}.td-ss-main-sidebar{perspective:unset!important}.td-crumb-container{min-height:35px;margin-bottom:9px;padding-top:21px}@media(min-width:768px) and (max-width:1018px){.td-crumb-container{padding-top:16px}}@media(max-width:767px){.td-crumb-container{padding-top:11px}}@media(max-width:767px){.single-post .td-bred-no-url-last{display:none}}.entry-crumbs{font-family:open sans,open sans regular,sans-serif;font-size:12px;color:#c3c3c3;line-height:18px;padding-top:1px;padding-bottom:2px}.entry-crumbs a{color:#c3c3c3}.entry-crumbs .td-bread-sep{font-size:8px;margin:0 5px}.td-category{list-style:none;font-family:open sans,open sans regular,sans-serif;font-size:10px;margin-top:0;margin-bottom:10px;line-height:1}.td-category li{display:inline-block;margin:0 5px 5px 0;line-height:1}.td-category a{color:#fff;background-color:var(--td_black,#222222);padding:3px 6px 4px;white-space:nowrap;display:inline-block}@media(max-width:767px){.single .td-category{margin-bottom:0}}.post{background-color:var(--td_container_transparent,#ffffff)}.post header .entry-title{margin-top:0;margin-bottom:7px;word-wrap:break-word;font-size:41px;line-height:50px}@media(max-width:1018px){.post header .entry-title{font-size:32px;line-height:36px}}@media(max-width:767px){.post header .entry-title{margin-top:3px;margin-bottom:9px}}header .td-module-meta-info{margin-bottom:16px}header .td-post-date{margin-left:4px;color:#767676;float:left}header .td-post-views{float:right;margin-right:22px}header .td-post-views span{line-height:15px;vertical-align:top}header .td-icon-views{position:relative;line-height:17px;font-size:14px;margin-right:5px}header .td-post-comments{float:right;position:relative;top:2px}header .td-post-comments a{color:#444}header .td-post-comments i{vertical-align:middle}header .td-icon-comments{margin-right:5px;font-size:9px}.td-author-name{font-family:open sans,open sans regular,sans-serif;font-size:15px;line-height:21px;font-weight:700;margin:7px 0 8px}.td-author-name a{color:#222}.td-post-content{margin-top:21px;padding-bottom:16px}@media(max-width:767px){.td-post-content{margin-top:16px}}.td-post-content p{word-wrap:break-word}.td-post-content img{display:block}[class^=td-icon-]:before,[class*=" td-icon-"]:before{font-family:newspaper;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[class*=td-icon-]{line-height:1;text-align:center;display:inline-block}.td-icon-right:before{content:'\e803'}.td-icon-views:before{content:'\e805'}.td-icon-menu-down:before{content:'\e806'}.td-icon-search:before{content:'\e80a'}.td-icon-menu-right:before{content:'\e80d'}.td-icon-comments:before{content:"\e83b"}.td-icon-mobile:before{content:'\e83e'}.td-icon-close-mobile:before{content:'\e900'}.td-icon-modal-back:before{content:'\e901'}.widget{font-family:open sans,open sans regular,sans-serif;margin-bottom:38px}.widget a{color:#111}.widget ul{list-style:none;box-shadow:0 0}.widget li{line-height:30px;list-style:none;margin-left:12px}.widget .block-title{margin-bottom:13px}.widget_categories .td-widget-no{float:right;margin-right:10px}.widget_recent_entries{margin-bottom:32px}.widget_recent_entries ul{margin-top:13px}.widget_recent_entries li{margin-bottom:8px;padding-bottom:7px;border-bottom:1px dashed #f1f1f1;font-family:roboto,sans-serif}@media(min-width:768px) and (max-width:1018px){.widget_recent_entries li{margin-bottom:3px;padding-bottom:2px}}.widget_recent_entries li:last-child{border-bottom:none}.widget_recent_entries li a{display:inline-block;line-height:21px}.widget_text .block-title{margin-bottom:26px}.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:"";line-height:0}.clearfix:after{clear:both}.mfp-hide{display:none!important}.white-popup-block{position:relative;margin:0 auto;max-width:500px;min-height:500px;font-family:open sans,open sans regular,sans-serif;text-align:center;color:#fff;vertical-align:top;-webkit-box-shadow:0 0 20px 0 rgba(0,0,0,.2);box-shadow:0 0 20px rgba(0,0,0,.2);padding:0 0 24px;overflow:hidden}.white-popup-block:after{content:'';width:100%;height:100%;position:absolute;top:0;left:0;display:block;background:var(--td_login_gradient_one,rgba(0,69,130,.8));background:-webkit-gradient(left bottom,right top,color-stop(0%,var(--td_login_gradient_one,rgba(0,69,130,.8))),color-stop(100%,var(--td_login_gradient_two,rgba(38,134,146,.8))));background:linear-gradient(45deg,var(--td_login_gradient_one,rgba(0,69,130,.8)) 0%,var(--td_login_gradient_two,rgba(38,134,146,.8)) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#2a80cb',endColorstr='#42bdcd',GradientType=1);z-index:-2}.white-popup-block:before{content:'';width:100%;height:100%;position:absolute;top:0;left:0;display:block;background-repeat:var(--td_login_background_repeat,no-repeat);background-size:var(--td_login_background_size,cover);background-position:var(--td_login_background_position,top);opacity:var(--td_login_background_opacity,1);z-index:-3}#login_pass{display:none!important}.td-header-rec-wrap{position:relative;min-height:90px}@media(min-width:768px) and (max-width:1018px){.td-header-rec-wrap{min-height:60px}}@media(max-width:767px){.td-header-rec-wrap{margin-left:auto;margin-right:auto;display:table;min-height:0!important}}.td-header-sp-recs{padding:0!important;width:728px;position:relative;min-height:0!important}@media(min-width:768px) and (max-width:1018px){.td-header-sp-recs{width:470px}}@media(max-width:767px){.td-header-sp-recs{width:100%}}.td-g-rec-id-content_top{clear:both}.td-g-rec-id-custom_ad_1{text-align:center;display:table;margin-left:auto;margin-right:auto;position:relative}.td-container-wrap{background-color:var(--td_container_transparent,#ffffff);margin-left:auto;margin-right:auto}.td-boxed-layout .td-container-wrap{width:1164px}@media(max-width:1180px){.td-boxed-layout .td-container-wrap{width:100%}}.wpb_button{display:inline-block;font-family:open sans,open sans regular,sans-serif;font-weight:600;line-height:24px;text-shadow:none;border:0;border-radius:0;margin-bottom:21px}.widget{overflow:hidden}.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:"";line-height:0}.clearfix:after{clear:both}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,header{display:block}a{background-color:initial}strong{font-weight:700}h1{font-size:2em;margin:.67em 0}img{border:0}input{color:inherit;font:inherit;margin:0}html input[type=button],input[type=submit]{-webkit-appearance:button}input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}.td-header-sp-logo img{margin:auto;position:absolute;top:0;bottom:0;left:0;right:0}.td-main-menu-logo{display:none;float:left;margin-right:10px;height:48px}@media(max-width:767px){.td-main-menu-logo{display:block;margin-right:0;height:0}}.td-main-menu-logo a{line-height:48px}.td-main-menu-logo img{padding:3px 0;position:relative;vertical-align:middle;max-height:48px;width:auto}@media(max-width:767px){.td-main-menu-logo img{margin:auto;bottom:0;top:0;left:0;right:0;position:absolute;padding:0}}@media(max-width:1140px){.td-main-menu-logo img{max-width:180px}}.td-visual-hidden{border:0;width:1px;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute}.td-boxed-layout #td-outer-wrap{z-index:1}.td-header-top-menu-full{position:relative;z-index:9999}@media(max-width:767px){.td-header-top-menu-full{display:none}}.td-header-style-2 .td-header-top-menu-full{background-color:#222}.td-header-style-2 .td-header-sp-logo{width:284px;position:relative;height:90px;margin:24px 28px 0}@media(min-width:1019px) and (max-width:1140px){.td-header-style-2 .td-header-sp-logo{width:224px;margin:24px 14px 0}}@media(min-width:768px) and (max-width:1018px){.td-header-style-2 .td-header-sp-logo{width:214px;height:60px;margin-top:14px}}@media(max-width:767px){.td-header-style-2 .td-header-sp-logo{display:none}}.td-header-style-2 .td-header-sp-logo img{max-height:90px}@media(min-width:768px) and (max-width:1018px){.td-header-style-2 .td-header-sp-logo img{max-height:60px}}.td-header-style-2 .td-header-sp-recs{margin:24px 0 0}@media(min-width:768px) and (max-width:1018px){.td-header-style-2 .td-header-sp-recs{margin-top:14px}}@media(max-width:767px){.td-header-style-2 .td-header-sp-recs{margin:0}}.td-header-style-2 .header-search-wrap .td-icon-search{color:#000}@media(max-width:767px){.td-header-style-2 .header-search-wrap .td-icon-search{color:#fff}}.td-header-style-2 .td-header-menu-wrap-full{position:relative}.td-mega-menu{position:static!important}.td-mega-menu ul.sub-menu{position:absolute;width:1114px!important;height:auto;left:50%!important;transform:translateX(-50%);-webkit-transform:translateX(-50%);display:none;border:1px solid #eaeaea;box-shadow:0 2px 6px rgba(0,0,0,.1)}@media(min-width:1019px) and (max-width:1140px){.td-mega-menu ul.sub-menu{width:1024px!important}}@media(min-width:768px) and (max-width:1018px){.td-mega-menu ul.sub-menu{width:786px!important}}.td-mega-menu-page .td-mega-grid{padding:22px}@media(min-width:1019px) and (max-width:1140px){.td-mega-menu-page .td-mega-grid{padding:21px}}@media(min-width:768px) and (max-width:1018px){.td-mega-menu-page .td-mega-grid{padding:22px}}.td-header-top-menu{color:#fff;font-size:11px}.td-header-top-menu a{color:#fff}@media(min-width:1019px) and (max-width:1140px){.td-header-top-menu{overflow:visible}}.td-header-sp-top-menu{line-height:28px;padding:0!important;z-index:1000;float:left}@media(max-width:767px){.td-header-sp-top-menu{display:none!important}}.td-header-sp-top-widget{position:relative;line-height:28px;text-align:right;padding-left:0!important;padding-right:0!important}@media(max-width:767px){.td-header-sp-top-widget{width:100%;text-align:center}}.td_data_time{display:inline-block;margin-right:32px}.top-bar-style-4 .td-header-sp-top-widget,.top-bar-style-4 .td-header-sp-top-menu{float:right}@media(max-width:1018px){.td-post-template-5 .td-post-header header .entry-title{font-size:32px;line-height:36px}}.td-post-template-5 .td-post-title .td-post-comments{margin-left:22px}.td-post-template-5 .td-post-title .td-post-views{margin-right:0}.td-post-template-5 .td-crumb-container{margin-bottom:9px}.td_block_template_1 .block-title{text-align:left}#mc_embed_signup form{text-align:center;padding:10px 0}#mc_embed_signup input.email{font-family:open sans,helvetica neue,Arial,Helvetica,Verdana,sans-serif;font-size:15px;border:1px solid #abb0b2;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;color:#343434;background-color:#fff;box-sizing:border-box;height:32px;padding:0 .4em;display:inline-block;margin:0;width:350px;vertical-align:top}#mc_embed_signup label{display:block;font-size:16px;padding-bottom:10px;font-weight:700}#mc_embed_signup .clear{display:inline-block}#mc_embed_signup .button{font-size:13px;border:0;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;letter-spacing:.03em;color:#fff;background-color:#aaa;box-sizing:border-box;height:32px;line-height:32px;padding:0 18px;display:inline-block;margin:0}@media(max-width:768px){#mc_embed_signup input.email{width:100%;margin-bottom:5px}#mc_embed_signup .clear{display:block;width:100%}#mc_embed_signup .button{width:100%;margin:0}}</style><link rel=preconnect href=//ajax.googleapis.com crossorigin><script data-ezscrex=false data-cfasync=false data-pagespeed-no-defer src=https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js></script><script type=text/ez-screx>(function(){function storageAvailable(type){var storage;try{storage=window[type];var x='__storage_test__';storage.setItem(x,x);storage.removeItem(x);return true;} catch(e){return e instanceof DOMException&&(e.code===22||e.code===1014||e.name==='QuotaExceededError'||e.name==='NS_ERROR_DOM_QUOTA_REACHED')&&(storage&&storage.length!==0);}} function remove_ama_config(){if(storageAvailable('localStorage')){localStorage.removeItem("google_ama_config");}} remove_ama_config()})()</script><script>var ezoicTestActive=true</script><script data-ezscrex=false data-cfasync=false>window._ezaq=Object.assign({},typeof window._ezaq!=="undefined"?window._ezaq:{},{"ab_test_id":"mod239","ad_cache_level":0,"ad_count_adjustment":0,"ad_lazyload_version":0,"ad_load_version":1,"ad_location_ids":"","adx_ad_count":0,"ai_placeholder_cache_level":3,"ai_placeholder_placement_cnt":9,"bidder_method":1,"bidder_version":3,"city":"Tsudanuma","country":"JP","days_since_last_visit":-1,"display_ad_count":0,"domain_id":108353,"domain_test_group":20230810,"ds_adsize_opt_id":-1,"engaged_time_visit":0,"ezcache_level":0,"ezcache_skip_code":0,"form_factor_id":1,"framework_id":1,"has_bad_image":0,"has_bad_words":0,"iab_category":"","is_embed":false,"is_from_recommended_pages":false,"is_return_visitor":false,"is_sitespeed":1,"last_page_load":"","last_pageview_id":"","lt_cache_level":0,"max_ads":0,"metro_code":0,"optimization_version":1,"page_ad_positions":"","page_view_count":0,"page_view_id":"b7ec4a8d-0170-4d37-4e39-a472fcbfd624","position_selection_id":0,"postal_code":"275-0011","pv_event_count":0,"response_size_orig":197674,"response_time_orig":0,"serverid":"i-03a55f1abdea806b4","state":"12","sub_page_ad_positions":"","t_epoch":1715454007,"template_id":134,"time_on_site_visit":0,"url":"https://saplearners.com/install-sap-abap-development-tools-in-eclipse/","visit_uuid":"7ff78f66-dde0-4994-5a50-eb195d5daf83","weather_precipitation":0,"weather_summary":"","weather_temperature":0,"word_count":1607,"worst_bad_word_level":0});__ez.queue.markLoaded('ezaqReady');</script><script data-ezscrex=false data-cfasync=false>var ezWp=true;</script><script data-ezscrex=false data-cfasync=false data-pagespeed-no-defer>__ez.queue.addFile('/parsonsmaize/mulvane.js','//go.ezodn.com/parsonsmaize/mulvane.js?gcb=195-0&cb=6',true,['/parsonsmaize/abilene.js'],true,false,true,false);__ez.queue.addFile('/parsonsmaize/olathe.js','//go.ezodn.com/parsonsmaize/olathe.js?gcb=195-0&cb=24',false,['/parsonsmaize/abilene.js','/parsonsmaize/mulvane.js'],true,false,true,false);__ez.queue.addFile('/porpoiseant/et.js','//go.ezodn.com/porpoiseant/et.js?gcb=195-0&cb=2',false,[],true,false,true,false);!function(){var e=function(e,i,t){var o=[],n=null;return{Add:function(t,d){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(__ez.dot.isDefined(t)&&__ez.dot.isValid(d))if(n==t&&o.length>0&&o[o.length-1].data.length+d.length<=5)o[o.length-1].data=o[o.length-1].data.concat(__ez.dot.dataToStr(d));else{var _={type:e,domain_id:__ez.dot.getDID(),t_epoch:__ez.dot.getEpoch(0),data:__ez.dot.dataToStr(d)};_[i]=t,a&&a.hasOwnProperty("impression_id")&&a.hasOwnProperty("ad_unit")&&(_.impression_id=a.impression_id.toString(),_.unit=a.ad_unit),o.push(_),n=t}},Fire:function(){if(void 0===document.visibilityState||"prerender"!==document.visibilityState){if(__ez.dot.isDefined(o)&&o.length>0)for(;o.length>0;){var e=5;e>o.length&&(e=o.length);var i=o.splice(0,e),n=__ez.dot.getURL(t)+"?orig="+(!0===__ez.template.isOrig?1:0)+"&v="+btoa(JSON.stringify(i));__ez.dot.Fire(n)}o=[]}}}};__ez.vep=e("video","video_impression_id","/detroitchicago/grapefruit.gif"),__ez.vaep=e("video-ad","video_ad_impression_id","/porpoiseant/lemon.gif"),__ez.osvaep=e("outstream-video-ad","video_ad_impression_id","/porpoiseant/tangerine.gif")}();</script><script data-ezscrex=false data-cfasync=false data-pagespeed-no-defer>__ez.queue.addFile('/detroitchicago/wichita.js','//go.ezodn.com/detroitchicago/wichita.js?gcb=195-0&cb=12',false,['/parsonsmaize/abilene.js'],true,false,true,false);__ez.queue.addFile('/detroitchicago/raleigh.js','//go.ezodn.com/detroitchicago/raleigh.js?gcb=195-0&cb=7',false,['/parsonsmaize/abilene.js'],true,false,true,false);__ez.queue.addFile('/detroitchicago/vista.js','//go.ezodn.com/detroitchicago/vista.js?gcb=195-0&cb=6',false,['/parsonsmaize/abilene.js'],true,false,true,false);</script><base href=https://saplearners.com/install-sap-abap-development-tools-in-eclipse/><title>Install SAP ABAP Development Tools in Eclipse

SAP ABAP Development Tools in Eclipse, ABAP in Eclipse

手順3.ABAP Projectの作成

ABAP Projectの作成|01
ABAP Projectの作成|02
ABAP Projectの作成|03
ABAP Projectの作成|04
ABAP Projectの作成|05
ABAP Projectの作成|06
ABAP Projectの作成|02

手順4.ABAPプログラムの登録、実行

ABAPプログラムの登録、実行|01
ABAPプログラムの登録、実行|02
ABAPプログラムの登録、実行|03

適当なソース書いて、有効化して、実行

ABAPプログラムの登録、実行|04
ABAPプログラムの登録、実行|05
ABAPプログラムの登録、実行|06