- Open Your Fiori Theme Designer using
- TCODE: /UI5/THEME_DESIGNER
Use slash n or o to open it (/n/UI5/THEME_DESIGNER) - URL: http://<server>:<port>/sap/bc/theming/theme-designer?sap-client=<client>
- Once you in the Theme Designer, click Create a new Theme button and complete the required fields.
- After that, you will be redirected to the theme editor, you can add target page which is an fiori application to be customised by fill in the app URL (This step is optional and can be done later)
- In this tutorial, we do not designing theme for an app, but for the general Fiori Interface, hence we can continue skip previous step and click Home on the left, and then start designing the interface using the properties on the right. You might want to use expert mode and CSS mode too if necessary.
- Once you enjoy designing and satisfied with the interface, you can continue by clicking Theme->Save and Build
- After the theme has been built, you can assign the theme to Fiori in Tcode /UI2/NWBC_CFG_SAP (Optional)
- Try to open your Fiori Launchpad and Hard Reload your browser. You should get new interface of your custom theme.
If you do not assign the theme on step 6, you can try the theme by appending ?sap-theme=<theme-name> to the original Fiori URL
(https://<server>:<port>/sap/bc/ui5_ui5/sap/ui5_srm_sc_apv/index.html?saptheme=<theme-name>)
Thursday, December 7, 2017
Simple use of Fiori Theme Designer
So these days, i am improving my knowledge in Fiori and UI5. It is quite a great innovation to have SAP Front-end in a very stunning and beautiful web. Hence, I would like to share a simple tutorial to apply a theme using Fiori Theme Designer Feature.
Labels:
ABAP,
custom theme,
designing,
develop,
fiori,
fiori launchpad,
flp,
interface,
launchpad,
PROCEDURE,
Publish,
theme,
theme designer,
TUTORIAL,
ux
Wednesday, December 6, 2017
Text to Speech in ABAP
1. Define the text, ole and voice object
3. Define the text to be voiced
DATA : ole TYPE ole2_object,
voice TYPE ole2_object,
text TYPE string.
2. Create the object
CREATE OBJECT voice 'SAPI.SpVoice'.
3. Define the text to be voiced
text = 'Hello World'.
4. Call the method
CALL METHOD OF voice 'Speak' = ole
EXPORTING #1 = text.
Labels:
ABAP,
CLASS,
HOW TO,
METHOD,
OBJECT,
SAP,
TEXT 2 SPEECH,
TEXT TO SPEECH,
TUTORIAL,
VOICE
Spell Digit Numbers in Indonesia
There is a function module SPELL_AMOUNT that allow us to spell digit numbers in words, however cannot use it in other language other than english or denmark unless we maintain it.
To maintain it, we simply add data in tcode OBA9 and add the following data
Next, we can use the FM to our code.
To maintain it, we simply add data in tcode OBA9 and add the following data
ID
|
0
|
0
|
NOL ;
|
ID
|
0
|
1
|
SATU ;
|
ID
|
0
|
2
|
DUA ;
|
ID
|
0
|
3
|
TIGA ;
|
ID
|
0
|
4
|
EMPAT
;
|
ID
|
0
|
5
|
LIMA ;
|
ID
|
0
|
6
|
ENAM ;
|
ID
|
0
|
7
|
TUJUH
;
|
ID
|
0
|
8
|
DELAPAN
;
|
ID
|
0
|
9
|
SEMBILAN
;
|
ID
|
1
|
0
|
SEPULUH
;
|
ID
|
1
|
1
|
SEBELAS
;
|
ID
|
1
|
2
|
DUA
BELAS ;
|
ID
|
1
|
3
|
TIGA
BELAS ;
|
ID
|
1
|
4
|
EMPAT
BELAS ;
|
ID
|
1
|
5
|
LIMA
BELAS ;
|
ID
|
1
|
6
|
ENAM
BELAS ;
|
ID
|
1
|
7
|
TUJUH
BELAS ;
|
ID
|
1
|
8
|
DELAPAN
BELAS ;
|
ID
|
1
|
9
|
SEMBILAN
BELAS ;
|
ID
|
2
|
0
|
DUA
PULUH ;
|
ID
|
2
|
1
|
DUA
PULUH SATU ;
|
ID
|
2
|
2
|
DUA
PULUH DUA ;
|
ID
|
2
|
3
|
DUA
PULUH TIGA ;
|
ID
|
2
|
4
|
DUA
PULUH EMPAT ;
|
ID
|
2
|
5
|
DUA
PULUH LIMA ;
|
ID
|
2
|
6
|
DUA
PULUH ENAM ;
|
ID
|
2
|
7
|
DUA
PULUH TUJUH ;
|
ID
|
2
|
8
|
DUA
PULUH DELAPAN ;
|
ID
|
2
|
9
|
DUA
PULUH SEMBILAN ;
|
ID
|
3
|
0
|
TIGA
PULUH ;
|
ID
|
3
|
1
|
TIGA
PULUH SATU ;
|
ID
|
3
|
2
|
TIGA
PULUH DUA ;
|
ID
|
3
|
3
|
TIGA
PULUH TIGA ;
|
ID
|
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
|
ID
|
9
|
8
|
SEMBILAN
PULUH DELAPAN ;
|
ID
|
9
|
9
|
SEMBILAN
PULUH SEMBILAN ;
|
ID
|
H
|
1
|
SERATUS
;
|
ID
|
H
|
2
|
DUA
RATUS ;
|
ID
|
H
|
3
|
TIGA
RATUS ;
|
ID
|
H
|
4
|
EMPAT
RATUS ;
|
ID
|
H
|
5
|
LIMA
RATUS ;
|
ID
|
H
|
6
|
ENAM
RATUS ;
|
ID
|
H
|
7
|
TUJUH
RATUS ;
|
ID
|
H
|
8
|
DELAPAN
RATUS ;
|
ID
|
H
|
9
|
SEMBILAN
RATUS ;
|
ID
|
K
|
1
|
SATU
TRILIUN ;
|
ID
|
K
|
=
|
TRILIUN
;
|
ID
|
K
|
>
|
TRILIUN
;
|
ID
|
L
|
1
|
SATU
MILYAR ;
|
ID
|
L
|
=
|
MILYAR
;
|
ID
|
L
|
>
|
MILYAR
;
|
ID
|
M
|
1
|
SATU
JUTA ;
|
ID
|
M
|
=
|
JUTA ;
|
ID
|
M
|
>
|
JUTA ;
|
ID
|
T
|
1
|
SERIBU
;
|
ID
|
T
|
>
|
RIBU ;
|
Next, we can use the FM to our code.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
amount = gs_0100-total " Amount/Number to Be Spelled Out
currency = 'IDR' " Currency for Amounts, Blank for Numbers
filler = space " Filler for Padding the Output Field
language = 'i' " Language Indicator
IMPORTING
in_words = v_in_words. " Character String with Amount/Number Spelled Out
Labels:
ABAP,
DIGIT,
function module,
IN WORDS,
MAINTAIN TABLE,
NUMBERS,
SAP,
SPELL,
TRICK,
TUTORIAL
Subscribe to:
Posts (Atom)