You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration/btp.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,6 @@ outline: [2, 4]
6
6
Embed your abap2UI5 apps into BTP services like SAP Build Work Zone. Full details:<br>
7
7
[**Installation & Configuration of BTP**](https://www.linkedin.com/pulse/abap2ui5-integration-sap-business-technology-platform-13-installation-lf1re/?trackingId=YQ0y%2Fq0y6Kw5PK8chNCbrw%3D%3D&lipi=urn%3Ali%3Apage%3Ad_flagship3_pulse_read%3BFGBWUSIZRzeRjUNKBFD0uA%3D%3D)<br>
8
8
[**Setup SAP Build Work Zone**](https://www.linkedin.com/pulse/abap2ui5-integration-sap-business-technology-platform-23-setup-ujdqe/?trackingId=vFwHvpI9oBk2igiz5P5CWA%3D%3D&lipi=urn%3Ali%3Apage%3Ad_flagship3_pulse_read%3BFGBWUSIZRzeRjUNKBFD0uA%3D%3D)<br>
9
-
[**Setup SAP Mobile Start**](https://www.linkedin.com/pulse/abap2ui5-integration-sap-business-technology-platform-33-setup-uzure/?trackingId=He2W8FnZZ5UxpbGKHOeLEg%3D%3D&lipi=urn%3Ali%3Apage%3Ad_flagship3_pulse_read%3BFGBWUSIZRzeRjUNKBFD0uA%3D%3D)<br>
Embed your abap2UI5 apps into SAP Mobile Start. See [**Setup SAP Mobile Start**](https://www.linkedin.com/pulse/abap2ui5-integration-sap-business-technology-platform-33-setup-uzure/) for details.
All examples in these docs work without CDS or EML. But on a recent ABAP release, you can also use these features in abap2UI5 apps.
6
+
All examples in these docs work without CDS. But on a recent ABAP release, you can also use this feature in abap2UI5 apps.
7
7
8
8
### ABAP CDS
9
9
ABAP Core Data Services (CDS) let you define structured views and read data straight from the database. The example below fetches sales orders from the `I_SalesOrder` view of the Virtual Data Model (VDM) and shows them in a UI5 table:
@@ -45,85 +45,3 @@ CLASS z2ui5_cl_sample_cds IMPLEMENTATION.
45
45
ENDMETHOD.
46
46
ENDCLASS.
47
47
```
48
-
49
-
### EML
50
-
The Entity Manipulation Language simplifies work with RAP business objects by giving a consistent way to read, create, update, and delete entities.
51
-
52
-
#### Read
53
-
Use `READ ENTITIES` to fetch sales orders and show them in a UI5 table:
54
-
```abap
55
-
CLASS z2ui5_cl_sample_eml_read DEFINITION PUBLIC.
56
-
57
-
PUBLIC SECTION.
58
-
INTERFACES z2ui5_if_app.
59
-
DATA mt_salesorder TYPE TABLE FOR READ RESULT i_salesordertp\\salesorder.
The example below creates a sales order with `MODIFY` inside an abap2UI5 app:
96
-
97
-
```abap
98
-
METHOD z2ui5_if_app~main.
99
-
100
-
MODIFY ENTITIES OF i_salesordertp
101
-
ENTITY salesorder
102
-
CREATE
103
-
FIELDS ( salesordertype
104
-
salesorganization
105
-
distributionchannel
106
-
organizationdivision
107
-
soldtoparty )
108
-
WITH VALUE #( ( %cid = `0001`
109
-
%data = VALUE #(
110
-
SalesOrderType = `TA`
111
-
SalesOrganization = `1010`
112
-
DistributionChannel = `10`
113
-
OrganizationDivision = `00`
114
-
SoldToParty = `0033500056` ) ) )
115
-
MAPPED DATA(ls_mapped)
116
-
FAILED DATA(ls_failed)
117
-
REPORTED DATA(ls_reported_modify).
118
-
119
-
COMMIT ENTITIES BEGIN
120
-
RESPONSE OF i_salesordertp
121
-
FAILED DATA(ls_save_failed)
122
-
REPORTED DATA(ls_save_reported).
123
-
COMMIT ENTITIES END.
124
-
125
-
ENDMETHOD.
126
-
```
127
-
Key Points:
128
-
- EML calls in abap2UI5 apps run outside the RAP framework, so explicit transaction commits (COMMIT ENTITIES) are needed.
129
-
- Restrictions inside the RAP framework, like disallowing direct calls to posting function modules or explicit commits, don't apply to abap2UI5 EML operations. You get more flexibility when handling commits and other actions.
Copy file name to clipboardExpand all lines: docs/development/specific/draft.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ outline: [2, 4]
3
3
---
4
4
# Draft Handling
5
5
6
-
Draft handling lets users save unfinished work — for example a half-filled form — without writing through to the active database state. In abap2UI5 apps you drive RAP draft-enabled business objects directly through EML, just like any other entity (see also [CDS, EML](./cds.md)).
6
+
Draft handling lets users save unfinished work — for example a half-filled form — without writing through to the active database state. In abap2UI5 apps you drive RAP draft-enabled business objects directly through EML, just like any other entity (see also [EML](./eml.md)).
7
7
8
8
#### Create a Draft
9
9
Use `MODIFY ENTITIES` with `%is_draft = if_abap_behv=>mk-on` to create a new draft instance:
The example below creates a sales order with `MODIFY` inside an abap2UI5 app:
55
+
56
+
```abap
57
+
METHOD z2ui5_if_app~main.
58
+
59
+
MODIFY ENTITIES OF i_salesordertp
60
+
ENTITY salesorder
61
+
CREATE
62
+
FIELDS ( salesordertype
63
+
salesorganization
64
+
distributionchannel
65
+
organizationdivision
66
+
soldtoparty )
67
+
WITH VALUE #( ( %cid = `0001`
68
+
%data = VALUE #(
69
+
SalesOrderType = `TA`
70
+
SalesOrganization = `1010`
71
+
DistributionChannel = `10`
72
+
OrganizationDivision = `00`
73
+
SoldToParty = `0033500056` ) ) )
74
+
MAPPED DATA(ls_mapped)
75
+
FAILED DATA(ls_failed)
76
+
REPORTED DATA(ls_reported_modify).
77
+
78
+
COMMIT ENTITIES BEGIN
79
+
RESPONSE OF i_salesordertp
80
+
FAILED DATA(ls_save_failed)
81
+
REPORTED DATA(ls_save_reported).
82
+
COMMIT ENTITIES END.
83
+
84
+
ENDMETHOD.
85
+
```
86
+
Key Points:
87
+
- EML calls in abap2UI5 apps run outside the RAP framework, so explicit transaction commits (COMMIT ENTITIES) are needed.
88
+
- Restrictions inside the RAP framework, like disallowing direct calls to posting function modules or explicit commits, don't apply to abap2UI5 EML operations. You get more flexibility when handling commits and other actions.
0 commit comments