Prompts to Try
Paste one of these into an AI assistant that can read web pages. Each yields a complete abap2UI5 app as one ABAP class, with demo data built in. No add-on is needed and nothing has to be set up.
Every prompt has two parts. The first part is the same each time. It sends the assistant to the app-building guide that ships with the framework, so it writes the current API and not the one it remembers. The second part describes the app. Swap it for your own description and keep the first part.
The First Part
Build an abap2UI5 app as ONE ABAP class.
Before writing code, read the current guide - the API changed and older
examples no longer compile:
https://raw.githubusercontent.com/abap2UI5/abap2UI5/main/docs/agents/building-apps.md
Signatures of the client API, if you need one:
https://raw.githubusercontent.com/abap2UI5/abap2UI5/main/docs/agents/client-api.md
Rules:
- one class implementing z2ui5_if_app, no other objects
- no dependency beyond abap2UI5 (no add-ons)
- demo data built in the class, no database access
- only controls available in UI5 1.71
- at the end, tell me how to check the class: npx @abap2ui5/linter, or paste
it into https://abap2ui5.github.io/browser-playground/The rule about demo data is what lets the class run in the browser playground, which has no business tables. Take it out when the app reads your own tables.
Order Cockpit
Four tiles with figures computed from the orders, a table with a search and a status filter, and a dialog with the items of an order.
The app: an order cockpit. Class name zcl_order_cockpit.
- at the top four KPI tiles: open orders, overdue orders, revenue this
month, average order value - computed from the data, not typed in;
keep the tile texts short enough not to be cut off
- an order is open, shipped or overdue - exactly one of the three
- below a table of orders: number, customer, date, amount, status
- a search field filters by customer, a segmented button filters by status
(All, Open, Shipped, Overdue); the tiles follow the filter
- the status is shown in color (ObjectStatus), overdue in red
- clicking a row opens a dialog with the order and its items
- start with about twenty realistic demo ordersTask Board
Three columns of cards that move left and right, with a dialog to add and edit a task.
The app: a task board. Class name zcl_task_board.
- three columns side by side: Open, In Progress, Done - each with a counter
in its header and its tasks as cards (title, assignee, priority in color)
- every card has buttons to move it one column left or right and to delete it;
the button that cannot move any further is disabled
- an "Add task" button opens a dialog with title, assignee and priority;
the title is required; a new task starts in Open
- clicking a card title opens the same dialog to edit the task
- start with eight realistic demo tasksLeave Request Wizard
Three steps with checks on the fields, a summary and a confirmation.
The app: a leave request wizard. Class name zcl_leave_request.
- step 1: type of leave (vacation, sick leave, special leave), from date,
to date - the dates are required and "to" may not be before "from"
- step 2: substitute (required, picked from a dropdown of colleagues) and
an optional note
- step 3: a summary of everything entered, with the number of working days
(Monday to Friday)
- Back and Next buttons, a step indicator, and input errors shown on the
field itself
- Submit asks for confirmation, then shows a success message and resets
the wizardCheck What You Get
An assistant without an SAP system has not run the class it hands you. Two checks need no system either:
- Paste the class into the browser playground. It compiles the class and starts the app.
- Run the linter on the file. It reads the view the class builds and reports controls and properties UI5 does not have.
An assistant with no web access cannot read the guide and will write an older API. Developing with AI has the setup for the assistant you work with every day.
