Skip to Content
test
0 %
Create an ABAP package
Details
// Explore More Tutorials

Create an ABAP package

06/20/2018

You will learn how to create an ABAP package, which will enable you to structure your development objects.

You will learn

  • How to create ABAP packages and transport requests and why they are important. You will create an ABAP package and add it to your Favorite packages list in ABAP Development Tools (ADT).

You will create a package in the ABAP Development Tools. Later, you will use this package to group all the subsequent development objects you create in this group of tutorials.
Generally you create one project for each backend connection, and then, inside that project, one package for each self-contained development unit – containing all the relevant development objects. A set of packages delivered together form a software component.
Each package is then assigned to a transport layer.
For more information, see SAP Help Portal: ABAP Packages.

Transport layer
A transport layer is a package property that defines the transport behavior of a package – whether and how a package and all its development objects are transported.

To export (or import) ABAP development objects into/from another system, you transport them, by adding them to a transport request. In these tutorials, you simply bundle all your objects in one request. However, in the real world, you cannot change a running system. Therefore, you generally have at least 3 systems: Development, Consolidation, and Production. These 3 systems all form one transport layer.

A transport layer is a package property that defines the transport behavior of a package – whether and how a package and all its development objects are transported.

Image depicting step0-one-transport-layer

One transport layer

In the AS ABAP developer edition, we offer only one layer, SAP, the standard layer for SAP applications. In a real-world system, you will get a whole list of layers. Why? Well, you often want to transport objects to several different production systems. For example, you may want to transport some of the same objects to both a Financials system and an HCM system. To do this, you create several transport layers:

Image depicting step0b-two-transport-layers

Two transport layers

In the AS ABAP developer edition, we offer only one layer, SAP, the standard layer for SAP applications. In a real-world system, you will get a whole list of layers.
For more information, see SAP Library: Transport layer

Software components
A software component defines a delivery and product unit of a SAP software product. It comprises a set of packages that are delivered in a single unit. (You do not need to know the details of software components to complete this tutorial, but if you need more information, see SAP Library: Software component


Step 1: Create a package
  1. Select the project you created previously, then choose > New > ABAP Package:
    Image depicting step1-new-package
Log on to answer question
Step 2: Define the package
  1. Enter the following and choose Next:

    • Name = Zxx_TUTORIALS, where xx = your initials
    • Description = ABAP Tutorials
    • Package type = Development
      Image depicting step2-define-package
  2. Choose a Software Component, by placing the cursor in the field and choosing Autocomplete (Ctrl+Space), then choose HOME (default for customer developments):
    Image depicting step2b-sw-component

  3. Choose the following, then choose Next:

    • Application Component = CA (Cross-Application)
    • Transport layer = SAP (for SAP Standard Objects, default for application programming).
      (Note: In a real SAP System, you would have many options, but in this developer edition, we have reduced the options for size and simplicity’s sake.)
      Image depicting step2c-appl-comp-etc
  4. Accept the default proposal for the transport request and choose Enter:
    Image depicting step2d-transport-request

Log on to answer question
Step 3: Add to favorite packages

(Optional, but recommended): Finally, add this new packages to your Favorite packages:

  1. In your project, select (right-click on) Favorite packages, then choose Add a package…:
    Image depicting step4-add-fave-package

  2. Enter the first three characters of your package (**Zxx**, where xx = your initials), then choose the package, then choose OK:
    Image depicting step4b-choose-package

The package is added to the list.

And that’s it! You can now structure your development objects in packages.

How can you make changes to your development objects without changing a running system?
×

Next Steps

Back to top