Skip to content

Commit dec823d

Browse files
Merge branch 'sap-tutorials:master' into master
2 parents 5b6f950 + ef7e9f9 commit dec823d

310 files changed

Lines changed: 1415 additions & 711 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tutorials/abap-environment-create-http-service/abap-environment-create-http-service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,6 @@ Your Communication Scenario appears.
304304

305305
- [SAP Help Portal: Components of SAP Communication Technology - HTTP Service](https://help.sap.com/doc/saphelp_nwpi71/7.1/en-US/1f/93163f9959a808e10000000a114084/frameset.htm)
306306

307-
- [SAP ABAP Keyword Documentation: Calling an HTTP Service](https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-US/abenicf_service_abexa.htm)
307+
- [SAP ABAP Keyword Documentation: Calling an HTTP Service](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm): Search for **ICF, Subject**
308308

309309
---

tutorials/abap-environment-custom-entity-debug/abap-environment-custom-entity-debug.md

Lines changed: 100 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ author_profile: https://github.com/julieplummer20
1111

1212
##Prerequisites
1313
- You have done one of the following:
14-
- **Tutorial**: [Test the Connection to the Remote System](abap-environment-test-rfc), step 10 - for steps 1-10 of this tutorial
15-
- **Tutorial**: [Get Data from a Remote System Using a Custom Entity](abap-environment-rfc-custom-entity)
14+
- **Mission**: [Get Data from a Remote System Using a Custom Entity](mission.abap-env-connect-onpremise)
15+
- Created a new ABAP class in SAP BTP, ABAP Environment
1616

1717
## Details
1818
### You will learn
@@ -29,13 +29,110 @@ For more information, see:
2929

3030
---
3131

32-
[ACCORDION-BEGIN [Step 1: ](Duplicate your class)]
32+
[ACCORDION-BEGIN [Step 1: ](Duplicate existing class or add code to new class)]
33+
If you have completed the mission:
3334
1. Select your class, `ZCL_OUTPUT_TEST_XXX` and choose **Duplicate** from the context menu.
3435

3536
This is clearly not standard practice. However, you are working with the ABAP Debugger for the first time, and also adding some dummy code to your class.
3637

3738
2. Enter a name, e.g. `ZCL_OUTPUT_TEST_DEBUG_XXX` and choose **Finish**.
3839

40+
If you have not completed the mission:
41+
1. Open your new ABAP class and copy the following code into it:
42+
43+
```ABAP
44+
CLASS zjp_out_test DEFINITION
45+
PUBLIC
46+
FINAL
47+
CREATE PUBLIC .
48+
49+
PUBLIC SECTION.
50+
INTERFACES if_oo_adt_classrun.
51+
PROTECTED SECTION.
52+
PRIVATE SECTION.
53+
ENDCLASS.
54+
55+
56+
57+
CLASS zjp_out_test IMPLEMENTATION.
58+
59+
METHOD if_oo_adt_classrun~main.
60+
61+
62+
" ABAP source code for type definition for BAPI_EPM_PRODUCT_HEADER
63+
" generated on: ...
64+
65+
TYPES : BEGIN OF ty_bapi_epm_product_header,
66+
productid TYPE c LENGTH 10,
67+
typecode TYPE c LENGTH 2,
68+
category TYPE c LENGTH 40,
69+
name TYPE c LENGTH 255,
70+
description TYPE c LENGTH 255,
71+
supplierid TYPE c LENGTH 10,
72+
suppliername TYPE c LENGTH 80,
73+
taxtarifcode TYPE int1,
74+
measureunit TYPE c LENGTH 3,
75+
weightmeasure TYPE p LENGTH 7 DECIMALS 3,
76+
weightunit TYPE c LENGTH 3,
77+
price TYPE p LENGTH 12 DECIMALS 4,
78+
currencycode TYPE c LENGTH 5,
79+
width TYPE p LENGTH 7 DECIMALS 3,
80+
depth TYPE p LENGTH 7 DECIMALS 3,
81+
height TYPE p LENGTH 7 DECIMALS 3,
82+
dimunit TYPE c LENGTH 3,
83+
productpicurl TYPE c LENGTH 255,
84+
END OF ty_bapi_epm_product_header.
85+
86+
TRY.
87+
88+
DATA(lo_rfc_dest) = cl_rfc_destination_provider=>create_by_cloud_destination(
89+
i_name = |ES5_RFC_XXX|
90+
).
91+
DATA(lv_rfc_dest_name) = lo_rfc_dest->get_destination_name( ).
92+
93+
94+
"variables needed to call BAPI
95+
96+
DATA lt_product TYPE STANDARD TABLE OF ty_bapi_epm_product_header.
97+
DATA ls_product TYPE ty_bapi_epm_product_header.
98+
DATA msg TYPE c LENGTH 255.
99+
100+
"Exception handling is mandatory to avoid dumps
101+
CALL FUNCTION 'BAPI_EPM_PRODUCT_GET_LIST'
102+
DESTINATION lv_rfc_dest_name
103+
EXPORTING
104+
max_rows = 25
105+
TABLES
106+
headerdata = lt_product
107+
EXCEPTIONS
108+
system_failure = 1 MESSAGE msg
109+
communication_failure = 2 MESSAGE msg
110+
OTHERS = 3.
111+
112+
CASE sy-subrc.
113+
WHEN 0.
114+
LOOP AT lt_product INTO ls_product.
115+
out->write( ls_product-name && ls_product-price && ls_product-currencycode ).
116+
ENDLOOP.
117+
WHEN 1.
118+
out->write( |EXCEPTION SYSTEM_FAILURE | && msg ).
119+
WHEN 2.
120+
out->write( |EXCEPTION COMMUNICATION_FAILURE | && msg ).
121+
WHEN 3.
122+
out->write( |EXCEPTION OTHERS| ).
123+
ENDCASE.
124+
125+
CATCH cx_root INTO DATA(lx_root).
126+
out->write( lx_root->get_longtext( ) ).
127+
128+
ENDTRY.
129+
ENDMETHOD.
130+
ENDCLASS.
131+
132+
```
133+
134+
2. Format, save, and activate your class ( **`Ctrl+F1, Ctrl+S, Ctrl+F3`** ).
135+
39136
[DONE]
40137
[ACCORDION-END]
41138
Lines changed: 219 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,219 @@
1+
---
2+
auto_validation: true
3+
title: Integrate List Report into Fiori Launchpad
4+
description: Integrate your list report application into Fiori launchpad.
5+
primary_tag: software-product-function>s-4hana-cloud-abap-environment
6+
tags: [ tutorial>beginner, software-product>sap-btp--abap-environment, software-product-function>s-4hana-cloud-abap-environment, programming-tool>abap-development, programming-tool>abap-extensibility]
7+
time: 25
8+
author_name: Merve Temel
9+
author_profile: https://github.com/mervey45
10+
---
11+
12+
## Prerequisites
13+
- You have a license for SAP S/4HANA Cloud and have a developer user in it
14+
- You have installed the latest [Eclipse with ADT](abap-install-adt).
15+
16+
>**HINT**: The administrator receives an welcome e-mail after provisioning. This e-mail includes the system URL. By removing `/ui` you can log into the SAP S/4HANA Cloud ABAP Environment system. Further information can be found [here](https://help.sap.com/docs/SAP_S4HANA_CLOUD/6aa39f1ac05441e5a23f484f31e477e7/4b962c243a3342189f8af460cc444883.html?locale=en-US&state=DRAFT).
17+
18+
19+
## Details
20+
### You will learn
21+
- How to make use of IAM apps and business catalogs
22+
- How to create business roles
23+
- How to manage launchpad spaces and assign business role
24+
- How to assign and manage launchpad spaces
25+
26+
---
27+
28+
[ACCORDION-BEGIN [Step 1: ](Make use of existing IAM App and business catalog)]
29+
30+
1. Open ADT, select your package `Z_PURCHASE_REQ_XXX` and open your IAM App `ZSHOP_IAM_XXX`. Add the UI5 application ID to your IAM app and activate it.
31+
32+
![iamapp](iamapp.png)
33+
34+
If you don't have any IAM App created yet. Please create an IAM App and add the UI5 application to it.
35+
36+
2. **Publish** your IAM App.
37+
38+
![iamapp](iamapp2.png)
39+
40+
3. Make use of your business catalog `ZSHOP_BC_XXX`.
41+
42+
![businesscatalog](businesscatalog.png)
43+
44+
If you don't have created a business catalog yet, please create one and publish it locally.
45+
46+
47+
[DONE]
48+
[ACCORDION-END]
49+
50+
[ACCORDION-BEGIN [Step 2: ](Create business role)]
51+
52+
1. Right-click on your **S/4HANA Cloud ABAP environment system** in the project explorer of ADT and select **Properties**. Click **ABAP Development** and copy the **system URL** without the **`-api`**.
53+
54+
![url](url.png)
55+
56+
2. Log in to your S/4HANA Cloud ABAP environment system as an administrator.
57+
58+
![login](login.png)
59+
60+
3. Select **Maintain Business Roles**.
61+
62+
![role](role.png)
63+
64+
4. Click **New**.
65+
66+
![role2](role2.png)
67+
68+
5. Create new business role:
69+
- Business Role ID: `BR_Z_SHOP_XXX`
70+
- Business Role Description: Business role for online shop
71+
72+
![role3](role3.png)
73+
74+
Click **Create**.
75+
76+
77+
6. Go to **Assigned Business Catalogs** and click **Add**.
78+
79+
![role4](role4.png)
80+
81+
7. Search for business catalog `ZSHOP_BC_XXX`, select it and click **Apply** and **OK**.
82+
83+
![role5](role5.png)
84+
85+
8. Click **Assign Business Users** and click **Add**.
86+
87+
![role6](role6.png)
88+
89+
9. Search your business user, select it and click **Apply** and **OK**.
90+
91+
![role7](role7.png)
92+
93+
10. Select **Maintain Restrictions**.
94+
95+
![role7](role8.png)
96+
97+
11. Adjust Maintain Restrictions for **Write, Read, Value Help** to **Unrestricted**. Go back.
98+
99+
![role7](role9.png)
100+
101+
12. Click **Save**. Now your business catalog and business user is assigned to your business role.
102+
103+
![role8](role10.png)
104+
105+
[DONE]
106+
[ACCORDION-END]
107+
108+
109+
[ACCORDION-BEGIN [Step 3: ](Alternative 1: Manage launchpad spaces and assign business role)]
110+
111+
Option 1:
112+
113+
1. Select the **Manage Launchpad Spaces** tile.
114+
115+
![transport](space.png)
116+
117+
2. Click **Create**.
118+
119+
![transport](space2.png)
120+
121+
3. Create new space and page:
122+
- Space ID: `Z_Online_Shop_XXX`
123+
- Space description: Space for online shop
124+
- Space title: Online Shop XXX
125+
- Page ID: `Z_Online_Shop_XXX`
126+
- Page description: Page for online shop
127+
- Page title: Online Shop XXX
128+
129+
![transport](space3.png)
130+
131+
Click **Create**.
132+
133+
4. Check your result and click **Save**.
134+
135+
![transport](space4.png)
136+
137+
6. Go back to the homepage.
138+
139+
![transport](space5.png)
140+
141+
7. Select the **Maintain Business Roles** tile.
142+
143+
![transport](space6.png)
144+
145+
8. Search for your business role **`BR_Z_SHOP_XXX`** and select it.
146+
147+
![transport](space7.png)
148+
149+
9. Click **Edit** and select **Assigned Launchpad Spaces**.
150+
151+
![transport](space8.png)
152+
153+
10. Click **Add**.
154+
155+
![transport](space9.png)
156+
157+
11. Select **Use Existing Space**, select your space `Z_Online_Shop_XXX` and click **Assign Space**.
158+
159+
![transport](space10.png)
160+
161+
162+
12. Check your result and click **Save**.
163+
164+
![transport](space11.png)
165+
166+
[DONE]
167+
[ACCORDION-END]
168+
169+
[ACCORDION-BEGIN [Step 4: ](Alternative 2: Assign and manage launchpad spaces)]
170+
171+
Option 2:
172+
173+
1. Select the **Maintain Business Roles** tile.
174+
175+
![transport](brole.png)
176+
177+
2. Search and select your business role.
178+
179+
![transport](brolenew.png)
180+
181+
3. Click **Edit** and select **Assigned Launchpad Spaces**.
182+
183+
![transport](brole2.png)
184+
185+
4. Click **Add**.
186+
187+
![transport](brole3.png)
188+
189+
5. Select **Create New Space**.
190+
191+
Add Launchpad Space:
192+
- Assign Space to Business Role: Create New Space
193+
- Space ID: `Z_TRAVEL_APP_XXX`
194+
- Space description: Space for travel app
195+
- Space title: Travel App XXX
196+
197+
Check **Create Page from Business Catalogs and Groups**.
198+
199+
![transport](brole4.png)
200+
201+
Click **Create and Assign Space**.
202+
203+
7. Click **Save**.
204+
205+
![transport](brole5.png)
206+
207+
208+
209+
[DONE]
210+
[ACCORDION-END]
211+
212+
213+
214+
[ACCORDION-BEGIN [Step 5: ](Test yourself)]
215+
216+
[VALIDATE_1]
217+
[ACCORDION-END]
218+
219+
---
504 KB
Loading
290 KB
Loading
291 KB
Loading
92.8 KB
Loading
229 KB
Loading
303 KB
Loading
291 KB
Loading

0 commit comments

Comments
 (0)