Skip to content

Everyday Work ​

The steps of the Tutorial teach the framework one concept at a time. The Cookbook answers one question per chapter: how to bind a table, how to open a popup, how to read a file. Real work is rarely one of those on its own. An import, a mass change or an approval screen needs half a dozen of them, in the right order, against a business object that has its own rules.

The guides here take one such job and walk through it from start to finish: what the user sees, which roundtrip does what, where the business logic stays, and what goes wrong in practice. Each guide links the cookbook chapters it is built from and ends with a sample you can pull with abapGit and run.

Guides ​

Without RAP ​

These three work on any system that has the named library or service. Start here if you come from classic reports.

GuideThe jobNeeds
Report and ExportA selection as range tables, one SELECT, a total, and the rows on the screen as an .xlsx downloadXCO XLSX for the export
Send by MailA mail form next to the data, the attachment written when sending, a clear answer whether the mail leftcl_bcs_mail_message and outbound mail configured
Print Forms as PDFRender an existing Adobe Form into a PDF instead of a printer, one file or a ZIP of severalAdobe Document Services (on-premise)

With a RAP Business Object ​

These six need RAP. Each guide names the release it starts from.

GuideThe jobNeeds
Excel Import into RAPUpload an .xlsx file, check every row, create the rows in a RAP business object and show each refusal on its rowXCO XLSX (ABAP Cloud, or on-premise 2023 and later), a RAP business object
Mass ChangeSelect many rows, describe the change once, preview old and new values, save all with one UPDATEa RAP business object (1909 and later)
Approval WorklistShow what waits for a decision, accept or reject several items at once through the business object's actionsa RAP business object with actions
Concurrent EditingLet two users edit the same instance without a lock while typing, and refuse a save over a change the user has not seena RAP business object with an ETag field
File AttachmentsStore files in a business object, list them without their content, download and delete by keya deep action parameter (ABAP Platform 2025 or ABAP Cloud)
React to ChangesLog, notify or follow up whenever a business object changes, whoever changed itRAP business events (ABAP Platform 2021 or ABAP Cloud)

Getting the Sample ​

Every guide is built on a sample in abap2UI5/samples-stack, and names the package it is in, for example package 03. You do not have to install the whole repository. Each package has a branch of its own, and the branch name starts with the package number (03-rap, 05-business-events, …):

  1. In abapGit, create a New Online repository with the URL https://github.com/abap2UI5/samples-stack.
  2. Choose the branch of the package the guide names, then pull and activate.
  3. Start the sample class with ?app_start=<class>, as on the Hello World page.

The README of the repository lists every branch and the release each one needs.

Suggest a Guide ​

A guide belongs here when the job is common, takes more than one cookbook chapter, and contains a decision that is easy to get wrong the first time. Examples of such decisions: all or nothing versus row by row, a draft versus an active instance, where a check belongs. Suggestions are welcome in the discussions.