Beyond ABAPdesigned by@Tejoram97
Beyond ABAP / Mobile Development (MDK) / Interview Questions

Interview Questions

Mobile Development (MDK) · SAP Fiori UI5 and Mobile ·

Open the interactive lesson →

All Mobile Development (MDK) interview questions in one place, grouped by page. Read the page when an answer needs more depth.

How to practise: cover the answer, say yours out loud in 30–60 seconds, then compare.

01 · Mobile Options & SAP Mobile Services

Q1. What options does SAP offer to bring business apps to mobile devices?

From least to most effort: the Fiori launchpad in the mobile browser; the Joule Work mobile app (formerly SAP Mobile Start) as SAP's native entry point to launchpad apps, tasks and notifications; SAP Build Apps with native builds for low-code; the mobile development kit (MDK) for metadata-based native apps with offline; and the SAP BTP SDK for iOS / for Android for fully native apps. MDK and the SDKs use SAP Mobile Services.

Q2. What is SAP Mobile Services and which features does it provide?

A BTP service that is the server side of MDK and native SDK apps: onboarding and authentication (OAuth 2.0, SAML, Basic, X.509), Connectivity to back ends through mobile destinations with SSO, Offline Access (offline OData sync), Push Notification (APNs, FCM), App Update, Client Resources, log upload and network trace, usage analytics and user feedback, App Catalog and Cloud Build for branded clients.

Q3. Which features are mandatory for a mobile app definition, and which depend on each other?

Client Settings and Connectivity are mandatory. Offline Access needs Connectivity, because the offline store is built from the back end behind a mobile destination. Cloud Build needs App Catalog.

Q4. Walk through onboarding of a mobile app.

The app learns server URL and app ID (QR code, link, MDM or branded defaults), the user logs in at the IdP through XSUAA or IAS and the app receives tokens, the user accepts consent screens and sets a passcode or biometrics, and the device is registered in Mobile Services. Later starts only need the passcode; tokens are refreshed silently.

Q5. How does a mobile app reach an on-premise S/4HANA with the user's identity?

The app authenticates with OAuth against XSUAA / IAS and calls Mobile Services. The app's mobile destination uses a BTP destination through the Cloud Connector with SAP Cloud Connector SSO (principal propagation), so S/4HANA receives the real user and applies its own authorisations. No back-end credentials live on the device.

Q6. What happened to SAP Fiori Client and SAP Mobile Start?

SAP Fiori Client, a Cordova-based wrapper, was removed from the app stores in 2022; users go to the mobile browser or the native entry app. SAP Mobile Start was rebranded in 2026 (release 3.0) as the Joule Work mobile app – same core functions, deeper Joule integration, configured through SAP Build Work Zone.

Q7. When would you pick the native SDK over MDK?

When the UX must be fully custom or platform-specific (complex visualisations, widgets, Vision Pro, deep OS integration) or the team are iOS / Android specialists. MDK wins for standard business screens, offline CRUD and fast cross-platform delivery. Both use the same Mobile Services features.

Q8. How do push notifications work with SAP Mobile Services?

The admin configures APNs and FCM credentials on the app; the app registers its device token with Mobile Services; the back end calls the Mobile Services push API for users or devices of the app; Mobile Services forwards to APNs / FCM. The payload is only a hint – the app syncs to get the data.

Q9. Why should an approval app not use a technical user in the destination?

All postings would carry the same user, the back end could not check the manager's authorisations, and the audit trail would not show who approved. Principal propagation or a SAML bearer / token exchange keeps the real user end to end.

Q10. Scenario: managers must approve sales orders while travelling. Which option and what setup?

MDK, because offline and standard screens are needed on iOS and Android. In Mobile Services: an app with OAuth via IAS and role settings, a mobile destination to the CAP approval service with user propagation, Offline Access, Push Notification for "new order waits", App Update for metadata versions and Client Log Upload for support.

Q11. Scenario: after a Cloud Connector change all users get errors on sync. Where do you look?

Run the destination tests (Ping / OData Application Destination Test) for the app's mobile destination in the cockpit, check the BTP destination and Cloud Connector mapping and principal-propagation trust, then read the Mobile Services server logs and uploaded client logs for the HTTP status of the failing calls.

02 · MDK Fundamentals – Metadata, Pages & Controls

Q1. What does "metadata-driven" mean in MDK?

Pages, actions and services are JSON metadata plus JavaScript rules. The native MDK client downloads the metadata from Mobile Services and interprets it at runtime, rendering native Fiori controls. Changes are deployed as a new metadata version, so no app store release is needed for them.

Q2. Name the main folders and files of an MDK project.

Application.app (main page, events, styles, localisation), Pages (.page), Actions (.action), Rules (.js), Services (.service), Globals, i18n, Styles (.less) and Images. Files refer to each other with absolute paths starting with the app name.

Q3. What is the difference between a section page and a form cell page?

A section page uses a sectioned table with display sections such as object table, object header and key values. A form cell page is for data entry with form cells (simple property, note, list picker, segmented control, date picker ...). Newer projects put form cell sections into a sectioned table, so both can be combined on one page.

Q4. How does a list page pass the selected order to the detail page?

The object table section is bound to an entity set through its Target; each object cell is bound to one entity. On tap, the navigation action opens the detail page with that entity as its binding, so the detail page uses {property} and {@odata.readLink} directly.

Q5. What is a target path? Give an example.

An expression that navigates the runtime context to a value, e.g. #Page:Decision_Create/#Control:CommentField/#Value for the comment entered on another page, #Control:DecisionSegment/#SelectedValue on the current page, or #ActionResults:CreateDecision/error.

Q6. How do you format and translate values in MDK metadata?

With $(L,key) for i18n texts and formatters such as $(C,amount,currency), $(N,…), $(D,…), $(DT,…); in rules with localizeText and formatCurrency / formatDate. They use the device locale.

Q7. SAP Mobile Services Client versus branded client versus MDK web?

The Mobile Services Client from the app stores runs any MDK app for tests. A branded client is built with the MDK SDK or Cloud Build for production: own name, icon, signing, extensions, MDM. MDK web runs the same metadata in the browser as an HTML5 app on BTP, online only.

Q8. How do you style an MDK app?

With a LESS file referenced in Application.app; styles by type, by control name or by class, optional light / dark files. Controls reference classes in metadata, rules can call setStyle at runtime. Keep to the Fiori theme and use colour for meaning.

Q9. Where is MDK not the right choice?

Highly custom or platform-specific UI (complex visualisations, widgets, wearables), heavy native device integration, or a team of iOS / Android specialists who want full control – then the SAP BTP SDKs fit better. Extension controls help for a few custom screens, not for a whole custom UX.

Q10. Scenario: the approval app must show orders above the credit limit in red and their AI summary.

Add aiSummary and creditLimit to the CAP projection and the defining request, show the summary in the object header Description, and set the style with a rule (compare netAmount with creditLimit from context.binding and return or apply a .LargeAmount class). Deploy a new metadata version – no app store release.

Q11. Scenario: after a project rename, pages open empty and actions fail. What happened?

MDK paths start with the app name (/ApprovalApp/...). Renaming the folder or _Name without updating every reference breaks pages, actions, rules and services. Rename consistently, run the metadata validation and redeploy.

03 · MDK Rules, Actions & Navigation

Q1. What is the difference between an action and a rule in MDK?

An action is a declarative JSON definition of one operation (navigate, message, OData create, sync ...) executed by the client. A rule is a JavaScript function that receives the ClientAPI context for logic that metadata cannot express; it can read data, evaluate target paths and run actions.

Q2. How do you chain actions?

With OnSuccess and OnFailure, which point to the next action or rule, optionally as { Name, Properties } to override properties of a generic action. Failures of earlier actions (named by ActionResult) are available via #ActionResults:<name>/error.

Q3. Which OData actions does MDK provide?

CreateEntity, UpdateEntity, DeleteEntity, CreateRelatedEntity, Read, CallFunction, ChangeSet, media and stream actions, Initialize for opening the service, draft actions for draft-enabled services, and the OfflineOData actions for upload, download and store management.

Q4. What does a ChangeSet do and how do later actions refer to a new entity?

It executes several OData actions serially as one unit; if one fails, the whole change set fails. Entities created inside it get temporary read links pending_1, pending_2 ... which later actions use in CreateLinks.

Q5. Name important ClientAPI methods.

binding, getPageProxy, evaluateTargetPath, read, count, create, executeAction, localizeText, formatCurrency / formatDate, getAppClientData, sendRequest, getLogger; on page and form cell proxies getControl, getValue, setValidationProperty, applyValidation.

Q6. How do you open a form as a modal page and close it correctly?

Navigation action with ModalPage: true. Save runs the create / update chain and ends with ClosePage and DismissModal: Action.Type.ClosePage.Completed; Cancel uses ClosePage.Canceled with CancelPendingActions: true.

Q7. How do you validate input in MDK?

CheckRequiredFields for mandatory fields; rules for business checks that show the message on the form cell with setValidationProperty and applyValidation; and always the same checks again in the back end, because offline data is validated by the server only at upload.

Q8. Why must a rule return the Promise of executeAction?

So that MDK waits for the action. Otherwise the rule ends immediately, the action binding and pressed item can be reset, and later steps run in the wrong order.

Q9. Which events exist at application, page and control level?

Application: OnLaunch, OnWillUpdate, OnDidUpdate, OnLinkDataReceived and lifecycle / push events. Page: OnLoaded, OnReturning, OnResume, OnUnloaded, pull-down (PullDown › OnPulledDown); action bar: OnBackButtonPressed. Control: OnPress, OnValueChange. Action: OnSuccess, OnFailure.

Q10. Scenario: managers want approve / reject offline. How do you model the write?

As a CreateEntity on a Decisions entity set (order ID, decision, comment) triggered from a modal form after validation, not as a bound action call. It queues offline; on upload the CAP / RAP service re-checks status and authorisation and approves in S/4HANA. Conflicts surface as upload errors (→ 04 · Offline OData & Synchronisation).

Q11. Scenario: after Save the form closes but the list still shows the decided order.

The list is not refreshed on return. Redraw the section in the list page's OnReturning (or filter out orders with a local decision), and remember that the status changes on the server only after the next sync; showing a "decision pending upload" state avoids confusion.

04 · Offline OData & Synchronisation

Q1. What is a defining request and who runs it?

An OData read (entity set or single entity, usually filtered) that defines which data goes into the offline store. Mobile Services runs it against the back end as the logged-in user, so back-end authorisations still apply. In MDK it is listed in the DefiningRequests of the Initialize action.

Q2. Describe the synchronisation cycle.

Initialize opens the store; on first use Mobile Services runs the defining requests, builds the database on the server and ships it. Sync = upload (replay the request queue to the back end) then download (delta changes via delta tokens, then re-apply remaining local requests).

Q3. Why upload before download?

So the user gets the back end's reaction to their own changes – new numbers, statuses, rejections – in the same sync, and does not download data that is already outdated by the pending queue.

Q4. The Upload action returned success. Were all changes posted?

Not necessarily. Upload fails only on communication errors; requests the back end rejects go into the ErrorArchive and the upload still counts as successful. The app must read the ErrorArchive and show the entries.

Q5. How do you resolve an ErrorArchive entry?

Fix: navigate to the affected entity, correct it with a normal update and sync again. Discard: delete the ErrorArchive entry with a DeleteEntity action by its read link, which removes the failed request and returns the entity to server state. By default one deletion clears all entries; EnableIndividualErrorArchiveDeletion allows per-entry deletion.

Q6. How are conflicts detected?

With ETags. Local updates carry the original ETag; at upload the back end compares it and rejects the request if the record changed. The rejection lands in the ErrorArchive and the app decides – download the latest version, then re-apply or discard. There is no automatic merge.

Q7. What is the application configuration file used for?

Server-side offline settings per app in Mobile Services: an [endpoint] section (batching of defining queries, repeatable requests, client indexes, local change expiry, defining-query removal) and [defining_query] sections (shared data cache, delta tracking mode). Names must match the connection and defining request names.

Q8. Back-end delta tokens or Mobile Services delta tracking?

Back-end delta links are preferred – only changed rows leave the back end. If the service lacks delta support, Mobile Services keeps the previous result and computes the difference (AUTO), which still saves mobile data. ALWAYS fills gaps of partial support.

Q9. What are repeatable requests?

Protection against duplicates when a response is lost: the resent POST is recognised and the stored response is returned instead of processing it twice. Either the back end supports it or Mobile Services provides it (check_repeatable_requests).

Q10. Scenario: the first sync of a new technician app takes 12 minutes. What do you do?

Measure the rows per defining request; add filters (own region, open orders, last 90 days); share common master data with is_shared_data; batch defining queries; stop automatic stream retrieval; check the back end's performance for each query; and move rarely used data to on-demand online reads or later defining requests.

Q11. Scenario: a manager approved an order offline, but a colleague approved it online first. What happens and how should the app react?

The manager's request is accepted locally and queued. At upload the back end sees the order is no longer status N (or the ETag no longer matches) and rejects it; the request goes into the ErrorArchive. The app shows "already processed", offers Discard (DeleteEntity on the ErrorArchive entry) and then downloads the current status. Using an insert-only Decisions entity keeps this case simple.

05 · Build, Deploy & App Lifecycle

Q1. Why can MDK apps be updated without an app store release?

The app logic is metadata interpreted by the native client. A deploy stores a new metadata version in the Mobile Services App Update feature; clients download and apply it. Only native changes (client version, extensions, icon, signing) need a new binary.

Q2. What do OnWillUpdate and OnDidUpdate do?

OnWillUpdate runs with the old definitions before the update – ask the user, defer, or upload pending changes. OnDidUpdate runs with the new definitions afterwards – e.g. re-initialise the offline store; if it fails, MDK restores the previous definitions.

Q3. SAP Mobile Services client or branded client?

The store client runs any MDK app and is fine for development and demos. Production uses a branded client: own name, icon and signing, custom extensions, controlled client upgrades, distribution through MDM or stores. Build it with the Cloud Build feature or locally with the MDK SDK.

Q4. What does Cloud Build need from you?

Signing data (iOS .p12 + provisioning profile, Android signing profile), bundle ID / package name, URL scheme, optional google-services.json for Android push, and for a customized client the zipped .mdkproject. It produces APK / AAB and IPA files.

Q5. How do you deploy an MDK app to the web?

MDK: Deploy with target Cloud Foundry (or mdk deploy --target cf). It lands in the HTML5 Application Repository and can be added to SAP Build Work Zone. Destinations need the dynamic-destination properties; the web runtime is online only.

Q6. What would a CI/CD pipeline for MDK look like?

Git with pull requests; mdk validate and rule lint/tests as gates; mdk build --target zip; mdk deploy --target mobile to the dev and test apps; manual approval; same bundle to the production app; client builds separately and rarely.

Q7. Why must the client be upgraded before the metadata?

New metadata may use features only newer MDK clients understand. If the metadata arrives first, older clients fail to load it. Read the release notes, roll out the client via MDM / stores, then deploy the metadata.

Q8. Which tools help support a single user's problem?

User registrations (device, versions), Client Log Upload with a temporarily raised log level, Network Trace, the ErrorArchive in the app, offline store upload, and back-end logs.

Q9. Scenario: you add a field to the approval page that comes from a new CAP property. What is the release order?

Deploy the CAP service with the new property (backward compatible) first; then deploy the metadata. If the field must be available offline, the store must pick up the new metadata – handle it in OnDidUpdate (e.g. re-download) and test with pending changes in the queue.

Q10. Scenario: after a metadata update some users' app shows an error at start. What do you check?

Client versions of those users against the metadata's required version; whether OnDidUpdate failed (MDK restores the previous definitions); offline schema changes without re-initialisation; client logs for the failing rule; and roll back by redeploying the previous version if many users are affected.

06 · Native SDKs – SAP BTP SDK for iOS & Android

Q1. What is the SAP BTP SDK for iOS / Android?

Native SDKs (Swift; Kotlin or Java) with SAP Fiori controls, onboarding flows, OData and offline OData libraries and Foundation services (authentication, secure store, logging, push, usage) that work with SAP Mobile Services. Formerly SAP Cloud Platform SDK for iOS / Android.

Q2. What are SAP Fiori for iOS and SAP Fiori for Android?

SAP's native design languages – Fiori principles expressed with Apple and Material conventions – implemented by the SDK controls (object cells, object headers, KPI views, timelines, onboarding screens). They keep native apps consistent with web Fiori apps.

Q3. What does the SDK Assistant / Wizard generate?

A runnable Xcode or Android Studio project connected to a Mobile Services app: onboarding flow, OData proxy classes for the destination's service and optional generated list/detail screens. It can also create the Mobile Services app.

Q4. What are proxy classes and why do they help offline?

Typed classes generated from the service $metadata. You query with DataQuery and get typed objects. The service class takes a data provider, so the same code works with the online provider or the offline provider.

Q5. What happens during onboarding in a native SDK app?

Activation (server URL and app ID via QR code, link or MDM), authentication via OAuth / SAML / X.509, client policy download, passcode or biometrics that protect the secure store, consent screens and device registration including the push token. Restore later just unlocks and refreshes.

Q6. Explain optionals / nullable types to an ABAP developer.

A type marked with ? may hold no value (nil / null), and the compiler forces you to handle that case (if let, guard let, ?., ?:). It is like checking IS INITIAL or IS BOUND, but enforced at compile time.

Q7. When do you choose the native SDK over MDK?

When the UX must be fully custom or platform-specific, deep OS features are needed (widgets, wearables, Vision Pro, background processing), or a native team will maintain it. Otherwise MDK is faster, cross-platform and updatable without store releases.

Q8. Do MDK and native apps need different back ends?

No. Both use SAP Mobile Services and the same OData service (RAP or CAP), the same destinations, security and offline technology. Only the client side differs.

Q9. Scenario: the business wants a home-screen widget showing "orders waiting for approval" plus the normal approval app. What do you propose?

Keep the approval app in MDK if it already exists and works. A widget is native OS functionality: either build a small native companion with the SDK (sharing the Mobile Services app and service) or evaluate whether the Joule Work mobile app already covers the need before building anything.

Q10. Scenario: you inherit a generated Android app that freezes when the list loads. Where do you look?

At OData or offline-store calls on the main thread – move them into coroutines (withContext(Dispatchers.IO)) or the async API; then at query size (add $filter / top), image loading and the logs uploaded through Mobile Services.

07 · Security, Device Management & the Order Approval Mobile App

Q1. How is data on a mobile device protected?

The app's secure store and offline database are encrypted; the key is protected by the app passcode or biometrics according to the passcode policy. Clipboard, print and URL restrictions keep data in the app; lock and wipe remove access; defining requests limit what reaches the device at all.

Q2. App passcode versus device PIN?

The device PIN unlocks the phone; the app passcode unlocks the app's encrypted store and is governed by the Mobile Services passcode policy (length, retries, timeout, biometrics). Skipping it is only acceptable on managed single-user devices.

Q3. What does MDM add to Mobile Services?

Device-level control: distribute the branded client, push managed configuration (server URL, app ID), certificates and per-app VPN, enforce device compliance, remove the app and its data. Mobile Services controls the app registration and client policies.

Q4. What is attestation?

A check that requests come from the genuine app on a device that has not been tampered with, using the platform integrity services; Mobile Services can require it before accepting requests.

Q5. How do you handle shared devices?

MDK multi-user mode: each user has separate encrypted data; on user switch the previous user's pending offline changes are synchronised first (OnUserSwitch); conflict handling offers discard or snapshot upload if that fails.

Q6. Why an insert-only Decisions entity instead of calling the approve action?

Offline writes are queued as plain OData requests; action calls are not a good fit offline. A Decisions create is queued, uploaded later and re-checked by the back end, which then calls the real approve logic. Rejections become clear ErrorArchive entries.

Q7. How does a push notification reach the manager?

S/4HANA raises a business event → Event Mesh → CAP checks whether approval is needed → CAP calls the Mobile Services push API for the manager's user → APNs / FCM → device. The payload is only a hint; the app syncs to get the data.

Q8. How does S/4HANA know which manager approved?

The user authenticates with OAuth via IAS / XSUAA; Mobile Services forwards the identity and the destination uses principal propagation (Cloud Connector) or a token exchange, so the back end sees the real user and applies its authorisations. A technical user would break the audit trail.

Q9. Scenario: a manager's phone is stolen. What do you do?

Block the user's sessions in the IdP if needed, lock or wipe the app registration in Mobile Services, and wipe the managed app (or device) through MDM. The encrypted store is protected by the passcode policy meanwhile; after a new device is issued, the manager re-onboards. Pending offline decisions on the stolen phone are lost – the orders remain status N for re-approval.

Q10. Scenario: managers complain they get push notifications but see no new order in the app. What is wrong?

The push arrives faster than the data: the app does not sync on notification, or the defining request filters the new order out (status, sales organisation, date window), or Mobile Services' delta tracking has not picked it up yet. Check the notification handler rule, the defining request and the back end's authorisation for that manager.

Q11. Which security checks belong in the back end even though the app already does them?

All of them: role and sales organisation of the approver, order status, mandatory comment on rejection, amount limits. The app's checks are for usability; uploads can be replayed or forged, so CAP @restrict / RAP authorisations and validations decide.