简体   繁体   English

在 SAP 系统中“安装”SAP 自定义程序

[英]"Install" SAP custom program in SAP System

I've created a SAP program and I want to deploy it in another SAP system.我已经创建了一个 SAP 程序,我想将它部署到另一个 SAP 系统中。 I know I can import the Transport Request files with the created program to the new system but I'm looking for other options.我知道我可以将带有创建程序的传输请求文件导入新系统,但我正在寻找其他选项。

Is it possible to "install"/import my program to another SAP system?是否可以将我的程序“安装”/导入到另一个 SAP 系统?

Regards问候

I can only think you don't want to use the transport system because the systems are not part of the same landscape?我只能认为您不想使用运输系统,因为这些系统不是同一景观的一部分? If so, you can still use the transport system, you just need to manually move the required files around.如果是这样,您仍然可以使用传输系统,您只需要手动移动所需的文件。

But, there is another approach you can follow - using SAPlink .但是,您可以遵循另一种方法 - 使用SAPlink It's an open source program that allows you download ABAP source, dictionary objects, etc. from one system into files and then upload them into another system.它是一个开源程序,允许您从一个系统下载 ABAP 源代码、字典对象等到文件中,然后将它们上传到另一个系统。 Of course, both systems will need to have SAPlink installed for this to work.当然,这两个系统都需要安装 SAPlink 才能工作。

This is somewhat by design, SAP is the largest OTS system available and there has to be some controls to ensure that people can not install software if they are not specifically given the authorization to do so.这在某种程度上是设计使然,SAP 是可用的最大 OTS 系统,并且必须有一些控制措施以确保人们在没有获得特别授权的情况下无法安装软件。

Even to use SAPlink ( that mjturner suggests ) requires you to have the ability to install that software first and I doubt you will find it in very many productive landscapes so likely that wont be an option.即使使用 SAPlink(mjturner 建议的)也要求您有能力首先安装该软件,我怀疑您是否会在很多生产环境中找到它,这很可能不会成为一种选择。

Assuming you have a developer authorization you can always download the source code from your development SAP system and then upload from within the ABAP editor (SE38) using utilities -> More utilities->Upload/Download.假设您拥有开发人员授权,您始终可以从开发 SAP 系统下载源代码,然后使用实用程序 -> 更多实用程序 -> 上传/下载从 ABAP 编辑器 (SE38) 中上传。 Note that this doesn't work in the class editor so cut and paste is another option.请注意,这在类编辑器中不起作用,因此剪切和粘贴是另一种选择。

Later.......之后.......

There are three ways to move transports from one system to another.有三种方法可以将传输从一个系统移动到另一个系统。

1. Moving the transport files form the directories “data” and “cofiles” manually. 1. 从目录“data”和“cofiles”手动移动传输文件。
When the transport is released in the source system SAP automatically puts the transport files into the transport directory on file system.在源系统中释放传输时,SAP 自动将传输文件放入文件系统上的传输目录中。 This files easily can be copied to the second system an be imported via transaction “STMS”.该文件可以轻松复制到第二个系统,并通过事务“STMS”导入。

2. Using CAR files 2.使用CAR文件
CAR files are packed files like a zip file. CAR 文件是压缩文件,如 zip 文件。 The contain the data and cofiles.包含数据和文件。
car.exe -cvf packedFile.car data\\R900000.XXX cofiles\\K900000.XXX
(car.exe is a SAP standard tool, XXX is the system ID) (car.exe为SAP标准工具,XXX为系统ID)
This CAR files can be imported via transaction SAINT.该 CAR 文件可以通过事务 SAINT 导入。 This allows import files from frontend into the data and cofiles directory without direct access to the file system.这允许将文件从前端导入到 data 和 cofiles 目录中,而无需直接访问文件系统。 After importing the file via SAINT the transport can be imported using STMS.通过 SAINT 导入文件后,可以使用 STMS 导入传输。 This is be the common way to transport software to other systems outside the current landscape.这是将软件传输到当前环境之外的其他系统的常用方法。

3. Using SAR and PAT files 3. 使用 SAR 和 PAT 文件
These files are more special.这些文件比较特殊。 They allow to install software as Add-On in SAP.它们允许在 SAP 中将软件安装为附加组件。 This is required if the program should be certified by SAP.如果程序应由 SAP 认证,则这是必需的。 They have to be created using the AAK (SAP Add-On Assembly Kit).它们必须使用 AAK(SAP 附加组件套件)创建。 Unfortunately, I have not created this files myself yet.不幸的是,我还没有自己创建这些文件。 But it seems to be very complex to get this running, because there are some checks which have to be passed.但是让它运行似乎非常复杂,因为有一些检查必须通过。 The files can be imported via transaction SPAM (upload) and SAINT (import).文件可以通过事务垃圾邮件(上传)和 SAINT(导入)导入。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM