SAP Gateway Part 3: SEGW Model, Registration, Metadata and Transports
Preview · a free account unlocks the full lesson
Walk through the SEGW service lifecycle: model entity types and sets, generate MPC and DPC classes, implement DPC EXT, register the service in /IWFND/MAINT SERVICE, check metadata, and transport everything consistently.
In this lessonShow sectionsHide sections
Visual overview
Explanation
The SEGW flow runs from modeling, through generating runtime artifacts (MPC, DPC and their _EXT classes), to implementing DPC_EXT, registering the service, and finally testing it. Only the *_EXT classes should ever be changed, since the generated base classes get overwritten on regeneration. The service is registered in /IWFND/MAINT_SERVICE — on the hub in hub scenarios — with the correct system alias, and the SEGW project, its classes, and the service registration all need to be transported together, since missing any one of them breaks QAS or PRD.
Parts 1 and 2 explained the Gateway runtime; this part shows how a classic SEGW service is actually built and moved through the landscape. For new development you'd use RAP instead — this knowledge is specifically for maintaining services that already exist.
Modeling in SEGW starts with creating a project, such as ZPURCHREQ, with its own package and description. In the Data Model view you define entity types — PurchaseRequest, PurchaseRequestItem — along with their properties, keys, and flags like creatable, updatable, filterable and sortable, plus entity sets, associations, navigation properties and function imports. You can model from a DDIC structure, from an RFC or BAPI, or build it manually.
Create a free account to keep reading
You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.
- Full explanation
- Code example
- Real project scenario
- Common mistakes
- Best practices
- Interview angle
One tap with Google works too. Every topic keeps its first lesson open to everyone.
Keep exploring
Interview questions on this topic
Referenced SAP objects
Reviewed reference pages for the objects this page mentions.
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.