当前位置: 首页 > article >正文

Visual Studio Code 连接 SAP ERP 系统

首先确保服务打开

虚 拟 主 机 / 服 务 
文 档 
参 考 服 务 
旧 default_host 
虚 拟 默 认 主 机 
SAP 命 名 空 间 ; 强 制 SAP 不 能 发 送 该 亍 树 之 外 的 卜 
sap 
保 留 的 服 务 全 球 可 用 
卜 。 option 
卜 @public 
公 共 服 务 
•Gap 
Application P 忏 0 「 m 
基 本 树 ( 基 本 功 能 ) 
NW 基 A3AP 
aba 
ABAP Develo ment Tools 
ABAP 诵 框 掣

在vscode,在extension安装ABAP remote filesystem,然后打开设置SAP 系统的地址配置

Settings 
Extension: ABAP remote fllesystem X 
ABAP remote filesystem 
Marcello Urbani CD 31,760 (2) 
Work on your ABAP code straight from the server 
Autoupdate @ 
DETAILS 
v' Auto Update All (From Publisher) 
FEATURES 
Copy 
Copy Extension ID 
Installation 
ABAP remc 
Copy Link 
visual studi 
Turns Visual studio co 
V Apply Extension to all Profiles 
operating directly on ) 
v' Sync This Extension 
Is less capable and mc 
Add to Workspace Recommendations 
PROBLEMS OUTPUT 
No problems have been detected in the workspace. 
Identifier 
Version 
updated 
Size 
•urbani . vscode- 
1.7.17 
20250-11, 
1062MB

Extension: ABAP remote filesystem 
Setti ngs X 
@ext:murbani.vscode-abap-remote-fs 
User Workspace CH 1 (ABAP) Folder 
v Extensions (1) 
G} Abapfs: Remote 
(Also modified in User) 
ABAP-FS configura... (1) 
ABAP systems 
Edit in settinqs.json 
Last synced: O secs ago

Ctrl+shift+P 执行代码:AbapFS connect to an ABAP system,可以根据要求一步一步配置。

AbapFs Connect to an ASAP system 
AbapFs Create connection 
Run and Debug: Focus on Run View 
Developer: Apply Update„- 
Abap FS: Focus on abapGit View 
ABAP FS: Focus on ATC documentation View 
Abap FS: Focus on ATC finds View 
Abap FS: Focus on Dumps View 
Abap FS: Focus on Traces View 
Abap FS: Focus on Transports View 
AbapFs Create object 
AbapFs Create test class include 
AbapFs forget connection password 
AbapFs forget git password 
other commands 
m 
server 
nstallation 
ng for today's... 
•t right in you... 
You can also look up ABAP objects by name with command 
AbapFs Search for object 
Links 
Identifier 
Version 
Updated 
_ vscode- 
abap-remote- 
1.7_17 
20250-11, 
10.62MB 
PROBLEMS OUTPUT 
Filter (e.g. text, 
No problems have been detected in the workspace.

根据配置。加载系统

Eile Edit Selection 
EXPLORER 
v OPEN EDITORS 
Mew 
P Untitled (Workspace) 
v UNTITLED (WORKSPACE) 
CHI(ABAP)

Eile 
> ZTEST MWJ 002 
> ZTEST MWJ 004 
> ZTEST MWJ 005 
Edit Selection 
v OPEN EDITORS 
View 
Bun 
P Untitled (Workspace) 
CHI(ABAP) > STMP > Source code Library > > 
showing quickdiff compare versions I compare with remotc 
Report 
x 
x 
C 
> Used 1 reference 
J*+ABAPEJ7. 
a URL 
v UNTITLED (WORKSPACE) 
v CHI(ABAP) 
v STMP 
> Core Data Services 
> Dictionary 
> Enhancements 
) Form Objects 
> Others 
v Source Code Library 
v Z DEEPSEEK API CALL 
> ZOI 
> ZAUTH_RPOOI 
> ZCODE_GENERATOR_DTEL_AND_DOMA 
> ZFlRP005 
> ZSAPLINK 
> ZSAPLINK_INSTALLER 
> ZTEST BOC 
4 
6 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
23 
26 
27 
28 
29 
31 
32 
REPORT 
DATA: 10 html control 
fcode 
10 container 
Io_http_client 
START-OF-SELECTION. 
DATA: 
lo_html_control TYPE REF TO 
TYPE 
LIKE 
TYPE 
TYPE 
REF TO 
sy - ucomm , 
REF TO cl_gui_custom_container, 
REF TO if_http_client, 
fcode 
10 container 
lo_http_client 
LIKE sy-ucomm, 
TYPE REF TO 
TYPE REF TO if_http_clil 
SET SCREEN lee. 
module STATUS 
eleø 
OUTPUT 
MODULE status_uee.01JTPUT. 
IF lo_container IS INITIAL. 
Io_container = NEW 
container name 
ENDIF. 
" HTML 
IF 10 html control 
= 'COI' 
IS INITIAL. 
10 html control NEW cl_gui_html_viewer( 
o : HTML 
o Io_container : 
Io_http_client : HTTP 
0 Iv_url : h}+F-fiåLlRLfl9QN. 
START-OF-SELECTION. 
SET SCREEN lee. 
0 100. 
3. STATUS_ø1øø WTPUT : 
MODULE status eleø OUTPUT. 
IF 10 container IS INITIAL. 
10 container NEW 
container name = 'COI ' 
ENDIF .

也可以直接在extension中,点击添加按钮添加,如果要开发UI5应用,先安装firoi extension pack,可以参考我之前的文章。

File Edit Selection View 
SAP 
> APPLICATION MODELER 
v SAP SYSTEMS 
No SAP systems found 
3] 
Go 
Run 
Add SAP System 
SAP Systems X 
System Type * 
ABAP On Premise 
System Name • 
demo-fiori 
URL • 
Client 
100 
Username 
Password 
Test Connection 
p Untitled (Workspace) 
SICF 
G) V2 catalog call returned 2494 services 
G) V4 catalog call retumed 1392 services 
PROBLEMS OUTPUT 
Filter 
Y SAP Fiori tools - Applici v 
2B25-e2-14 [info] This SAP System [demo-fiori] returned 2494 V2 and 1392 V4 services.

Test Connection 
Ex ort S stem 
Create SAP Fiori application

确保node.j已安装,在命令行输入node -v ,这里也重复了,以前的SAPUI5系列已经写过了。

Test Connection 
Export System 
reate SAP Fiori application 
PROBLEMS OUTPUT 
DEBUG 
PS C: node - 
v23.8.ø 
SOLE 
TERMINAL 
ABAP FS 
power5heIl- 1 v 
G) The Fiori generator is needed to generate your Fiori application and

第一次进入,会进入Application Wizard中下载模板生成器

SAP Systems 
¯ Explore and Install Generators x 
Explore and Install Generators 
This view enables the exploration and installation of external open source Yeoman generators. 
Search for Generators 
@sap/generator-fiori 
Showing 25 out of 10611 results. C) To get better results, refine your search 
@sap/generator-fiori 
1.16.3 
Create an SAPIJ15 application using SAP 
Fiori elements or a freestyle approach 
@sap/generator-cap-proj... 
Creates a new SAP Cloud Application 
@sap/generator-adaptati... 
1.1.65 
Adaptation project allows you to 
create an app variant for an existing 
SAP Fiori elements-based or SAPU15 
More information 
Install 
@sap/generator-hdb-proj... 
Creates a new SAP HANA database 
project 
ABAP 
Search Shortcuts 
@sap/generator-add-hdb-... 
1.150 
A database module contains design- 
time database artifacts. On 
deployment, a database module is 
Install 
@sap/generator-base-mta... 
2.00 
Generator for collecting user inputs on 
multitarget application module 
Programming Model project. 
PROBLEMS OUTPUT 
DEBUG CONSOLE 
• PS C: node 
v23.8.ø 
ops c: 
TERMINAL 
Q) The Fiori generator is needed to generate your Fiori application and wi...

如果有如下错误信息的,需要先创建一个文件夹,用于保存项目文件。

G) generator failed - 
runGenerator() EPERM: operation not permitted, mkdir 
runGenerator() EPERM: operation not 
permitted, mkdir 
Source: Application Wizard

点击文件,打卡文件夹,添加进来

File Edit Selection Vlew Go Run New Text File New File„. New Window Ctrl+N Ctrl+Alt+Windows+N New Window with profile O File... Open Ctrl+O ctrl+K ctrl+O Open Workspace from Filem Open Recent Add Folder to Workspace_ Save Workspace Asm Duplicate Workspace Save Save As... Save All Share Ctrl*Shift+S Ctrl* KS

点击选择文件夹

重新点击创建按钮

图片

进入下面界面,选择样式开始创建(因为第一次打开已经默认安装了SAP Firoi generator,如果要安装其他模板生成器,按ctrl+shift+P执行:Open Template Wizard )

SAP Systems 
SAP Fiori generator X 
SAP Fiori generator O 
C) Template Selection 
Template: List Report Page 
Data Source and Service 
Selection 
) Entity Selection 
) Project Attributes 
Template Selection 
Choose your application template. 
Which template do you want to use? • 
Basic 
Create a freestyle 
application, starting with 
an empty page. 
Overview Page 
Create an SAP Fiori 
elements application 
an overwew 
Next > Custom Page 
Create an SAP Fiori 
elements application 
containing a custom page 
based on the flexible 
programming model. 
Analytical List Pa... 
Create an SAP Fiori 
elements application 
containing an analytical list 
List Report Page 
Create an SAP Fiori 
elements application 
containing a list report and 
an object page. 
Form Entry Obje... 
Create an SAP Fiori 
elements application 
containing an object page

模板常用两类:SAP Fiori elements和SAP Fiori freestyle

Generator Wizard Steps 
1. Template selection 
Select the required template type to use when generating your application. The generator 
currently supports the following templates: 
SAP Fiori elements 
• List Report Object Page 
. Worklist 
• Analytical List Page 
• Overview Page 
SAP Fiori freestyle 
SAP Fiori Worklist Application 
SAP Fiori Master-Detail Application 
• SAPU15 Application

SAP Fiori Elements 的核心价值是 标准化 和 高效,适合企业快速构建符合 SAP 最佳实践、维护成本低的应用,尤其在数字化转型中需要大规模部署标准功能时优势显著。

如果安装其他的生成器在Wizard界面可以选择生成器(这里不做其他赘述)

SAP Systems 
— Template Wizard X 
Template Wizard 
O Select Generator 
SAPU15 Adaptation Project 
Explore al 
Select Generator 
When you create a project using a template, you become the code owner and, as such, 
for any required updates or fixes. We recommend following the industry best practice tc 
vulnerability scanning in the CI/CD pipeline to avoid supply-chain attack and other cybe 
The project will contain the relevant files and configurations required to create your apF 
Generators O 
SAPU15 Adaptati... 
Adaptation project allows 
you to create an app variant 
for an existing SAP Fiori 
elements-based or SAPU15 
freestyle application, 
without changing the 
original application. 
More Information 
Start > SAP Fiori generator 
Create an SAPU15 
application using SAP Fiori 
elements or a freestyle 
approach 
More Information

后续再更新如何开发


http://www.kler.cn/a/595572.html

相关文章:

  • SpringBoot实现异步调用的方法
  • 北斗导航 | 北斗三号区域短报文相关知识总结
  • 一份针对零基础学习AI Agent详细学习计划
  • 【Ratis】Ratis Streaming概览
  • numpy学习笔记13:np.random.choice和np.cumsum的解释
  • Docker 速通(总结)
  • 【Unity基础】Unity中角色动画的三种实现方式
  • DAY13 线程池、死锁、线程状态、计时器
  • 如何在ubuntu上安装zookeeper
  • 在 Elasticsearch 中探索基于 NVIDIA 的 GPU 加速向量搜索
  • w265基于Spring Boot库存管理系统
  • 【C++】static、内部类
  • Vue.js 过滤器(Filters):简化文本格式化的利器
  • 测试Claude3.7 sonnet画蛋白质
  • 「AI+办公」共学(四):办公综合应用
  • 实现拖拽图片验证的基本步骤
  • AI 时代的通信新范式:MCP(模块化通信协议)的优势与应用
  • 关于神经网络中的激活函数
  • 第2.1节:AWK脚本结构
  • Resume全栈项目(.NET)