sap hana tutorial - TECHNICAL GYAN GURU https://technicalgyanguru.com All SAP information on 1 place Tue, 01 Oct 2024 06:48:24 +0000 en-US hourly 1 https://wordpress.org/?v=6.6.2 https://technicalgyanguru.com/wp-content/uploads/2024/04/cropped-cropped-technical--32x32.png sap hana tutorial - TECHNICAL GYAN GURU https://technicalgyanguru.com 32 32 Part IV: SAP Fiori Tutorial. How can I modify the Fiori Launch Pad’s default language if it’s not English? https://technicalgyanguru.com/part-iv-sap-fiori-tutorial-how-can-i-modify-the-fiori-launch-pads-default-language-if-its-not-english/?utm_source=rss&utm_medium=rss&utm_campaign=part-iv-sap-fiori-tutorial-how-can-i-modify-the-fiori-launch-pads-default-language-if-its-not-english https://technicalgyanguru.com/part-iv-sap-fiori-tutorial-how-can-i-modify-the-fiori-launch-pads-default-language-if-its-not-english/#respond Thu, 10 Oct 2024 06:22:00 +0000 https://technicalgyanguru.com/?p=4820 Learn how to change the default language in SAP Fiori Tutorial Launchpad with our step-by-step tutorial. Discover how to adjust language settings to suit your needs and ensure a seamless…

The post Part IV: SAP Fiori Tutorial. How can I modify the Fiori Launch Pad’s default language if it’s not English? first appeared on TECHNICAL GYAN GURU.

]]>
Learn how to change the default language in SAP Fiori Tutorial Launchpad with our step-by-step tutorial. Discover how to adjust language settings to suit your needs and ensure a seamless user experience. Ideal for customizing your Fiori environment for different language preferences.

German is the language of the SAP Fiori Launchpad. How can I translate it to English?

Review SAP Fiori Tutorial Part III: Three Flow Charts to get the idea of improving the standard Fiori apps. As an example, let’s say you work as a developer in the UK and are unexpectedly given a project that involves non-English speaking nations like Germany, France, Portugal, etc. You ask yourself, what’s the big deal?You could manage it because ABAP is a common language.

As a developer for Fiori, your first job is to figure out why users in the UK are seeing the Fiori Launchpad in German.

You access the client’s Citrix/VPN and notice the German log-on below.

Fiori Launchpad in German

You make a quick guess: it’s possible that German, DE-Deutsch, is the GUI Logon Pad’s default language. As a result, German appears in the Fiori Launchpad as well.

Let’s examine the SAP Logon Pad. You’re correct. Yes, DE (German) is the default language on the Logon Pad.

Free SAP Fiori Tutorial
How to change the default language of SAP

You continue to do this. By taking the actions listed below, you can set EN (English) as the default language.

It would request the confirmation listed below if you clicked OK. Press OK once again.

Free ABAP Training

Start the Logon Pad again now.

HANA ABAP Tutorial
Free SAPUI5 Training

That you finished the case in under two minutes makes you proud. Let’s take another look at the Fiori Launchpad. Since we have changed the default language in the SAP Logon Pad to EN, we anticipate that the language will also change to EN.

Fiori Launchpad in German

Whoops! It’s still in German on the Fiori Log On Pad.

The fiori launchpad and SAP Log On Pad are unrelated, we have learned. See Also: SAP Fiori Tutorial, Section I: Installation, Configuration, and System Check. you now acknowledge the gravity of the situation. After much searching, you eventually arrive at www.technicalgyanguru.com and discover this post.

The Internet Explorer (or Firefox/Chrome, etc.) default language determines the language that the Fiori Launch Pad displays by default.

The three steps listed below must be followed in order to modify Internet Explorer’s default language:

In Internet Explorer, click Tools.

How to change default Language of Internet Explorer
  1. Select the General Tab, then click Languages under Internet Options.
Fiori Default Language
  1. The German language would be displayed as the first choice. Simply use the arrows or the move up and down buttons to bring English—which isn’t the initial option—to the top.
SAP Fiori Tutorial Part IV

Click OK, OK, to restart the Fiori Launch Pad’s internet browser.

The sorcery was successful. The Fiori Launch Pad is now available in your native tongue. Fiori, which translates to “flower” in Italian, meaning “have fun.”

Ever desired to master SAP ABAP for HANA? but were unsure of where to begin? View these tutorials on ABAP for HANA.

Thus…How Do You Feel?

We would now like to speak with you.

What are your thoughts on this matter?You will undoubtedly run into a language barrier if you ever work on an international project whose execution is taking place across continents.We previously encountered translation problems with Adobe, SAPScripts, SmartForms, and ABAP reports. The Fiori Apps are now in the spotlight.

you may be interested in this blog here:-

Good Practices for Salesforce Maintenance and Optimization

Understanding and Addressing “FOR UPDATE” Lock Issues in MySQL

Navigating SAP’s E070 Table in SAP: The Heartbeat of Transport Management

The post Part IV: SAP Fiori Tutorial. How can I modify the Fiori Launch Pad’s default language if it’s not English? first appeared on TECHNICAL GYAN GURU.

]]>
https://technicalgyanguru.com/part-iv-sap-fiori-tutorial-how-can-i-modify-the-fiori-launch-pads-default-language-if-its-not-english/feed/ 0 4820
Part V of the SAP Fiori Tutorial: Complete Implementation of the My Inbox – Purchase Order Approval System https://technicalgyanguru.com/part-v-of-the-sap-fiori-tutorial-complete-implementation-of-the-my-inbox-purchase-order-approval-system/?utm_source=rss&utm_medium=rss&utm_campaign=part-v-of-the-sap-fiori-tutorial-complete-implementation-of-the-my-inbox-purchase-order-approval-system https://technicalgyanguru.com/part-v-of-the-sap-fiori-tutorial-complete-implementation-of-the-my-inbox-purchase-order-approval-system/#respond Wed, 09 Oct 2024 06:53:00 +0000 https://technicalgyanguru.com/?p=4824 Master the end-to-end implementation of the My Inbox – Purchase Order Approval app in SAP Fiori with our comprehensive tutorial. Follow step-by-step instructions to configure and deploy the app, enhancing…

The post Part V of the SAP Fiori Tutorial: Complete Implementation of the My Inbox – Purchase Order Approval System first appeared on TECHNICAL GYAN GURU.

]]>
Master the end-to-end implementation of the My Inbox – Purchase Order Approval app in SAP Fiori with our comprehensive tutorial. Follow step-by-step instructions to configure and deploy the app, enhancing your purchase order approval process. Perfect for achieving seamless integration and improved workflow efficiency.

My Inbox App
SAP Fiori Library
My Inbox PO Approval App

My Inbox – Completed Purchase Orders

What should you take into account when creating a Fiori app?
Searching the Fiori Library, which is the Fiori Apps equivalent of the Bible or warehouse, is the first task.

I must first verify it in the Fiori library in order to fulfill my requirement, which is to develop the Purchase Order Approval App. If I get it, I’m lucky.

  1. Verify that the Release Strategy functions in the Backend Server as intended.

Look it up on the Fiori Library app store.

Locate the SAPUI5 Application in Configuration and note its technical name: CA_FIORI_INBOX

Verify the system version for which you need to construct the app under Implement Information.

CA_FIORI_INBOX

Have you played Fiori From Space Level?

Let’s examine what has to be done on these backend and front end servers.

Activate the Sicf service by going to the front end server: ca_fiori_inbox->sap->bc->ui5_ui5 and sicf->default_host->sapturn on

activate the sicf service

4. In the setup, observe the OData Service

/IWPGW/TASKPROCESSING

That is all. We possess the names of the frontend and backend services. Proceed to the front end server and utilize the Tcode: /IWFND/MAINT_SERVICE to enable the odata services. When enabling the services, kindly check the System Aliases.

/IWFND/MAINT_SERVICE

Verify your system’s alias. IW_PGW should be the system alias (extremely crucial).

  1. An RFC connection ought to be used to connect the gateway server and the back-end server.
  2. Back-end Server: My Workflow is now required to take center stage.

Like any other approval procedure, PO Approval depends on the workflow being operational. Nothing will function without it, so don’t bother with the app.

Now let’s experiment with workflow!

SAP Netweaver -> Content -> Workflow Settings -> Gateway Service Enablement ->Task Filter Activation->Deactivation

SAP Netweaver -> Gateway Service Enablement -> Content -> Workflow Configuration -> Preserve Task Names and Choices

standard workflow for po release

To define the decisions, i.e., the approve and reject buttons, click Decision Keys.

Gateway Server: Set up your gateway system’s workflow scenario.

Choose Task Gateway Service->Scenario Definition under Gateway Service Enablement -> Content in SAP NetWeaver.

Task Gateway Service

Choose an entry and give the customer a role.

decision keys for my inbox wf

Select a Task to Assign to SAP System Alias under Task Definitions.

Assign a Role to Consumer.

Front end server approvals

Go to the PFCG, make a Zrole, and select the default authorization.

ID for the program: R3TR
Type of object: IWSG Services: as displayed below: and duplicate.All of these Odata Services ought to be available to the user.

Obj. Type : IWSG

9 Attach Catalog to the Role in PFCG

The standard catalogue must to be accessible to the management as well. Check out the Fiori Library’s regular catalogue role.

SAP_FND_BC_MANAGER_T
catalog in fiori
Role Menu

Workflow, services, and roles are all operational, as are the frontend and backend servers.

Please make sure the following are set up for Fiori Launchpad.

Find the standard catalog at the Fiori Library.

11 Find the Catalogue name at the Frontend Server using Tcode /n/UI2/FLPD_CUST.

/n/UI2/FLPD_CUST

Take notice of every parameter that the standard has already included in the Tiles!

To learn more about Groups, Catalogs, and Tiles, please read through the SAP Fiori Implementation Exercise from beginning to end.

Fiori Launchpad: /UI2/FLP – Designer for Fiori Launchpad

/UI2/FLP
Fiori Launchpad Designer

Select Plus Button

Manager approver(Cross) - Content

Group Home will now have your app launcher added to it. Press the Pencil button.

Manager approver(Cross) - Content

Select My Inbox to get started. All of the settings and configurations are finished. The purchase order is ready for approval using the My Inbox App. POs in their queues would be visible to managers who have the appropriate roles.

My Inbox App

The technical procedures for handling workflow, configuring services, and activating them are finished. However, please read the additional instructions below if you wish to enhance the beauty of your flower (fiori) even further.

While not necessary, these are nonetheless nice to haves. After all, you and other people ought to vary in some way.

  1. Theme Designer: To customize your application

Make a call from the frontend server to Tcode /ui5/theme designer.You will see this screen after logging in.

/ui5/theme_designer

Click SAP_Bluecrystal twice. Paste the Fiori Launchpad URL into the URL to Application field. Give the application a name, then select Add.

SAP Fiori Theme Designer

You can add the backdrop color and background photos in the right panel.

Theme Designer

when the embellishment and personalization are completed. Select Theme, Save, and Build.

theme->save and build

Save

The new Theme would be connected to our Fiori App.Navigate to tcode/n/ui5/ theme_tool on the front end server, then select Info.

/ui5/ theme_tool

Look it over!

I believe this post will be useful to you as you set up the Fiori My Inbox app. It should also be possible for you to modify the Fiori Apps’ theme. Feel free to contact me if you run across any problems. I always try to respond to all of the questions that are posed to me.

you may be interested in this blog here:-

How can I see the values ​​of variables in OpenSolver as they change?

How the Digital Services Act is Shaping the Future of the SAP Community

सेल्सफोर्स सैंडबॉक्स और उनके प्रकारों का परिचय

The post Part V of the SAP Fiori Tutorial: Complete Implementation of the My Inbox – Purchase Order Approval System first appeared on TECHNICAL GYAN GURU.

]]>
https://technicalgyanguru.com/part-v-of-the-sap-fiori-tutorial-complete-implementation-of-the-my-inbox-purchase-order-approval-system/feed/ 0 4824
Display & Download PNG JPG PDF Document in SFiori Client Android with 3rd Party App for Zoom/additional options https://technicalgyanguru.com/display-download-png-jpg-pdf-document-in-sfiori-client-android-with-3rd-party-app-for-zoom-additional-options/?utm_source=rss&utm_medium=rss&utm_campaign=display-download-png-jpg-pdf-document-in-sfiori-client-android-with-3rd-party-app-for-zoom-additional-options https://technicalgyanguru.com/display-download-png-jpg-pdf-document-in-sfiori-client-android-with-3rd-party-app-for-zoom-additional-options/#respond Tue, 08 Oct 2024 06:12:00 +0000 https://technicalgyanguru.com/?p=4828 Learn how to display and download PNG, JPG, and PDF documents in the SAP Fiori Client on Android. This guide covers using a third-party app for zooming and accessing additional…

The post Display & Download PNG JPG PDF Document in SFiori Client Android with 3rd Party App for Zoom/additional options first appeared on TECHNICAL GYAN GURU.

]]>
Learn how to display and download PNG, JPG, and PDF documents in the SAP Fiori Client on Android. This guide covers using a third-party app for zooming and accessing additional options for a seamless document handling experience. Ideal for enhancing your mobile document management capabilities.

Fiori Client’s Zoom Options

How can ZOOM options be brought in?
What is the process for opening a document using a third-party application?

The built-in Fiori Client attachment plugin, is the answer.

The code snippet to accomplish the functionality is shown below.

  1. Display the document

Put the code below on the unified uploader’s change event.

var oCore = sap.ui.getCore();
var oFile = oEvent.oSource.oFileUpload.files[0];
if (oFile) {
var vPath = URL.createObjectURL(oFile);
try {
if (oFile.type == "application/pdf") {
// For mime type PDF this below code invokes adobe reader
var reader = new FileReader();
reader.readAsDataURL(oFile);
reader.onload = function() {
window.open(reader.result);
};
reader.onerror = function(error) {
sap.m.MessageToast
.show("Unable to open file");
};
} else {
// For mime type JPG PNG this below code invokes gallery
window.open(vPath);
}
} catch (e) { // Error in case of any failures to be catched }

2. View the document after downloading from Getstream.

try {
window
.open(encodeURI("/sap/opu/odata/Service/AttachSet(Property1='"
+ vValue1
+ "',Property2='"
+ vValue2
+ "')/$value"));
} catch (e) { // Error in case of any failures to be catched }

Shots showing how to operate it.

Launch the Fiori Client App.

Select on browse button

Select an image that requires the user to enlarge before proceeding with any actions.

Zoom options will be accessible as soon as the file uploader’s change function is called.

Select a PDF file to open the PDF app and access the zoom features

See Also: Complete Guide for My Inbox PO Approval Application

Likewise, if you need to use Getstream to open the Adobe Reader or gallery/in-app window. Utilize the download feature. The associated app is automatically invoked based on the backend’s mime type.

I think this post will give you the guidance you need to activate and call the appropriate Zoom feature routines. Please feel free to contact me or post your questions in the comments area below if you need any additional information or if you have any more questions.

you may be interested in this Blog here:-

SAP S/4HANA Cloud Public Edition 2408: A Comprehensive Guide to Product Implementation

5 Methods for Using Your Salesforce Email Sender Reputation: An Story of Redemption

The post Display & Download PNG JPG PDF Document in SFiori Client Android with 3rd Party App for Zoom/additional options first appeared on TECHNICAL GYAN GURU.

]]>
https://technicalgyanguru.com/display-download-png-jpg-pdf-document-in-sfiori-client-android-with-3rd-party-app-for-zoom-additional-options/feed/ 0 4828
OOP Report Applying ALV Tree Combination and Splitter https://technicalgyanguru.com/oop-report-applying-alv-tree-combination-and-splitter/?utm_source=rss&utm_medium=rss&utm_campaign=oop-report-applying-alv-tree-combination-and-splitter https://technicalgyanguru.com/oop-report-applying-alv-tree-combination-and-splitter/#respond Sun, 06 Oct 2024 09:47:00 +0000 https://technicalgyanguru.com/?p=5200 We had to create a report using splitter containers and a ALV tree structure per a client request. Although handling the combination of these two may seem challenging, it is…

The post OOP Report Applying ALV Tree Combination and Splitter first appeared on TECHNICAL GYAN GURU.

]]>
ALV Tree

We had to create a report using splitter containers and a ALV tree structure per a client request. Although handling the combination of these two may seem challenging, it is actually rather simple. We quickly constructed a prototype, and it was flawless.

The basic programming skeleton of the prototype described below can be improved in a number of ways, but it should not change. We discovered certain hotly debated subjects online as we developed, and I’ve tried to hone in on them and address them in this piece.

Goal

This article’s goal is to clarify the usage of the TREE MODEL (TREE_STRUCTURE) and SPLITTER CONTAINER in OOPs ABAP report generation that integrates standard events.

The second, and more significant goal, is to permanently dispel our phobia of using Splitter Containers and Tree Models.

Range

  • This article addresses the following typical issues that developers run into:
  • When divided into many sub-containers, the custom container can be used to fill the entire screen.
  • Registering custom events using the tree model’s standard events
  • Customize splitter container widths.

Overview

The report with two containers in the list screen is displayed using the code that follows. The tree model is intended to be contained in the left panel container, while the contents of the left panel document will be displayed in the right container in response to a double click. This example shows how to design a tree structure using sales orders and sales contracts as the antecedent documents. Certain selection screen criteria can be applied to these sales orders in order to choose them. When the leaf node is clicked, the system will show the sales order data in the appropriate container in an ALV format (fig. 1).

Tree ALV

fig. – 1

Program Structure

Step I: Declare all necessary tables and structures
Step II: Declare the references to the different classes
Step III: Event class definition
Step IV: Putting the Event Class into Practice
Step V: The Choosing Screen
Step-VI: Subroutine to obtain the fundamental data for the tree model
Step VII: Design of the Screen
Step VIII: Module for creating different classes of objects. (In the output screen’s PBO)
Step IX: The event registration module. (In the output screen’s PBO)
Step X: The output processing module. (In the output screen’s PBO)

Step-I: Declare all required structures and tables

Tables: vbak,vbap,vbfa.

*&---------------------------------------------------------------------*
*&            Structures and Table Declarations
*&---------------------------------------------------------------------*
Data: ls_vbak type vbak,
lt_vbak type table of vbak,
ls_vbap type vbap,
lt_vbap type table of vbap.

Types: begin of ty_vbfa,
vbelv type vbfa-vbelv, "Preceding SD Document
posnv type vbfa-posnv, "Preceding SD Document Item Number
vbeln type vbfa-vbeln, "Subsequent SD Document
posnn type vbfa-posnn, "Subsequent SD Document Item Number
vbtyp_n type vbfa-vbtyp_n, "Subsequent Document Category
vbtyp_v type vbfa-vbtyp_v, "Preceding Document Category
end of ty_vbfa.

Data: ls_vbfa type ty_vbfa,
lt_vbfa type table of ty_vbfa.

Data: ls_vbfa_copy type ty_vbfa,
lt_vbfa_copy type table of ty_vbfa.

Types: begin of ty_vbak,
vbeln type vbak-vbeln,  "Contract Number
audat type vbak-audat,  "Document Date
ernam type vbak-ernam,  "Name of Person who Created the Object
auart type vbak-auart,  "Sales Document Type
end of ty_vbak.

Data: ls_vbak_cont type ty_vbak,
lt_vbak_cont type table of ty_vbak.

Step II: Declare the references to the different classes

*&---------------------------------------------------------------------*
*&            Type Reference of Various Classes
*&---------------------------------------------------------------------*
Data: ref_split type ref to cl_gui_splitter_container,
ref_cust  type ref to cl_gui_custom_container,
ref_alv1  type ref to cl_gui_alv_grid,
ref_alv2  type ref to cl_gui_alv_grid,
ref_cont1 type ref to cl_gui_container,
ref_cont2 type ref to cl_gui_container.
Data: ref_tree  type ref to cl_simple_tree_model.

Step – III: Definition of event class

*&---------------------------------------------------------------------*
*&                       Event Class
*&---------------------------------------------------------------------*
class lcl_event_handler definition.
public section.
methods: node_dc for event node_double_click of cl_simple_tree_model
importing node_key sender.
endclass.

Step – IV: Implementation of Event Class

class lcl_event_handler implementation.
method: node_dc.

Data: lt_children type tm_nodekey,
v_so        type vbeln,
v_item      type posnr.

Data: ls_layout type lvc_s_layo.
* 'sender' is an implicit event parameter that is provided by
* ABAP Objects runtime system. It contains a reference to the
* object that fired the event. You may directly use it to
* call methods of this instance.

CALL METHOD SENDER->NODE_GET_LAST_CHILD
EXPORTING
NODE_KEY       = node_key
IMPORTING
CHILD_NODE_KEY = lt_children.

* ‘Level_count’ in expand_node method determines in which level of the tree
* we want the double_click method to be triggered.

if lt_children is not initial.
CALL METHOD SENDER->EXPAND_NODE
EXPORTING
NODE_KEY            = node_key
LEVEL_COUNT         = 2.
endif.

split node_key at space into v_so v_item.

refresh: lt_vbap.

select * from vbap
into table lt_vbap
where vbeln = v_so.

if sy-subrc = 0.

ls_layout-grid_title = text-002.
ls_layout-zebra      = 'X'.
ls_layout-smalltitle = ''.
ls_layout-cwidth_opt = 'X'.

CALL METHOD REF_ALV2->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
I_STRUCTURE_NAME              = 'VBAP'
IS_LAYOUT                     = ls_layout
CHANGING
IT_OUTTAB                     = lt_vbap.

CALL METHOD REF_ALV2->REFRESH_TABLE_DISPLAY.

endif.

endmethod.
endclass.

Step – V:  Selection Screen

*&---------------------------------------------------------------------*
*&                   Selection Screen
*&---------------------------------------------------------------------*
selection-screen: begin of block b1 with frame title text-001.
select-options: s_vbeln for vbak-vbeln, "Document Number
s_audat for vbak-audat, "Document Date
s_ernam for vbak-ernam. "Name who Created the Object
selection-screen: end of block b1.

Step-VI: Subroutine to obtain the fundamental data for the tree model

*&---------------------------------------------------------------------*
*&                   Start Of Selection
*&---------------------------------------------------------------------*
start-of-selection.
perform Get_Data.

*&---------------------------------------------------------------------*
*&      Form  GET_DATA
*&---------------------------------------------------------------------*
*       Get All the display relevant Data for Tree Structure
*----------------------------------------------------------------------*
FORM GET_DATA .

select vbeln audat ernam auart
from vbak
into table lt_vbak_cont
where vbeln in s_vbeln and
audat in s_audat and
ernam in s_ernam.

if sy-subrc <> 0.
message E001(ZMSG) with 'No Record Found' display like 'I'.
elseif sy-subrc = 0.

select vbelv posnv vbeln posnn vbtyp_n vbtyp_v
from vbfa
into table lt_vbfa
for all entries in lt_vbak_cont
where vbelv = lt_vbak_cont-vbeln and
vbtyp_n = 'C' and
vbtyp_v = 'G'.

if lt_vbfa is initial.
message E002(ZMSG) with 'No Subsequent Record Found' display like 'I'.
else.
select * from vbak
into table lt_vbak
for all entries in lt_vbfa
where vbeln = lt_vbfa-vbeln.

select * from vbap
into table lt_vbap
for all entries in lt_vbak
where vbeln = lt_vbak-vbeln.

endif.
endif.
ENDFORM.

Step – VII: Screen Design

call screen 0100.
Splitter Container

* The container should be drawn as large as possible. Also, the Lines/columns in the attributes tab of the screen painter are to be filled with the value 240 to get the full-screen splitter container.

OOPs ALV Report

Step – VIII: Module for object creation of various classes. (In PBO of output screen)

Create one module in the flow logic of the screen.

*&---------------------------------------------------------------------*
*&      Module  OBJECT_CREATION  OUTPUT
*&---------------------------------------------------------------------*
*       Object Creation for Classes
*----------------------------------------------------------------------*
MODULE OBJECT_CREATION OUTPUT.

CREATE OBJECT REF_CUST
EXPORTING
CONTAINER_NAME    = 'SPLIT_CONT'.

CREATE OBJECT REF_SPLIT
EXPORTING
PARENT            = ref_cust
ROWS              = 1
COLUMNS           = 2.

CALL METHOD REF_SPLIT->GET_CONTAINER
EXPORTING
ROW       = 1
COLUMN    = 1
RECEIVING
CONTAINER = ref_cont1.

The SET_COLUMN_WIDTH method can be used to change the splitter container’s width. As needed, pass the breadth.

CALL METHOD REF_SPLIT->SET_COLUMN_WIDTH
EXPORTING
ID                = 1
WIDTH             = 22.

CALL METHOD REF_SPLIT->GET_CONTAINER
EXPORTING
ROW       = 1
COLUMN    = 2
RECEIVING
CONTAINER = ref_cont2.

CREATE OBJECT REF_TREE
EXPORTING
NODE_SELECTION_MODE   = cl_simple_tree_model=>node_sel_mode_single.

CALL METHOD REF_TREE->CREATE_TREE_CONTROL
EXPORTING
PARENT                = ref_cont1.

CREATE OBJECT REF_ALV2
EXPORTING
I_PARENT  = ref_cont2.

ENDMODULE.                 " OBJECT_CREATION  OUTPUT

Step – IX: Module for event registration. (In PBO of output Screen)

ALV Tree
*&---------------------------------------------------------------------*
*&      Module  EVENT_REGISTRATION  OUTPUT
*&---------------------------------------------------------------------*
*       Double Click Event Registration

*§4a. Frontend registration(i):  get already registered tree events.
*................................................................
* The following four tree events registers ALV Tree in the constructor
* method itself.
*    - cl_gui_column_tree=>eventid_expand_no_children
* (needed to load data to frontend when a user expands a node)
*    - cl_gui_column_tree=>eventid_header_context_men_req
* (needed for header context menu)
*    - cl_gui_column_tree=>eventid_header_click
* (allows selection of columns (only when item selection activated))
*   - cl_gui_column_tree=>eventid_item_keypress
* (needed for F1-Help (only when item selection activated))
*
* Nevertheless you have to provide their IDs again if you register
* additional events with SET_REGISTERED_EVENTS (see below).
* To do so, call first method  GET_REGISTERED_EVENTS (this way,
* all already registered events remain registered, even your own):

* (If you do not these events will be deregistered!!!).
* You do not have to register events of the toolbar again.
*----------------------------------------------------------------------*
MODULE EVENT_REGISTRATION OUTPUT.
Data: lt_events type cntl_simple_events,
ls_event type cntl_simple_event.

Data: event_handler type ref to lcl_event_handler.

CALL METHOD REF_TREE->GET_REGISTERED_EVENTS
IMPORTING
EVENTS = lt_events.

ls_event-eventid = cl_simple_tree_model=>eventid_node_double_click.
append ls_event to lt_events.

CALL METHOD REF_TREE->SET_REGISTERED_EVENTS
EXPORTING
EVENTS                    = lt_events.

create object event_handler.
set handler event_handler->node_dc for ref_tree.

ENDMODULE.                 " EVENT_REGISTRATION  OUTPUT

Step – X: Module for output processing. (In PBO of output Screen)

OOPs ALV for Hierarchy Tree
*&---------------------------------------------------------------------*
*&      Module  PROCESSING_OUTPUT  OUTPUT
*&---------------------------------------------------------------------*
*       Processing Output of the Table
*----------------------------------------------------------------------*
MODULE PROCESSING_OUTPUT OUTPUT.

Data: ls_node type treemsnodt.

CALL METHOD REF_TREE->ADD_NODE
EXPORTING
NODE_KEY                = 'ROOT'
ISFOLDER                = 'X'
TEXT                    = 'Orders'
EXPANDER                = 'X'.

loop at lt_vbak into ls_vbak.

ls_node-node_key = ls_vbak-vbeln.

concatenate 'Sales Order#' ':' ls_vbak-vbeln
into ls_node-text
separated by space.

CALL METHOD REF_TREE->ADD_NODE
EXPORTING
NODE_KEY                = ls_node-node_key
RELATIVE_NODE_KEY       = 'ROOT'
RELATIONSHIP            = cl_simple_tree_model=>relat_last_child
ISFOLDER                = 'X'
TEXT                    = ls_node-text
EXPANDER                = 'X'.

endloop.

loop at lt_vbap into ls_vbap.

concatenate ls_vbap-vbeln ls_vbap-posnr
into ls_node-node_key
separated by space.

ls_node-relatkey = ls_vbap-vbeln.

concatenate ls_vbap-posnr ls_vbap-matnr
into ls_node-text
separated by space.

CALL METHOD REF_TREE->ADD_NODE
EXPORTING
NODE_KEY                = ls_node-node_key
RELATIVE_NODE_KEY       = ls_node-relatkey
RELATIONSHIP            = cl_simple_tree_model=>relat_last_child
ISFOLDER                = ''
TEXT                    = ls_node-text
EXPANDER                = ''.

endloop.
ENDMODULE.                 " PROCESSING_OUTPUT  OUTPUT

Change the design, but feel free to copy or refer to the included code. I would prefer to advise using the local class to help construct the complete report, or at the very least, using some modularization techniques. I utilized several PBO modules, which is strongly discouraged for any real-time object.

There are numerous different methods for creating tree topologies. There are a ton of documents available online. I chose the most straightforward method (the class name is, ironically, “cl_simple_tree_model”).Splitter containers have been extensively studied, although they are rarely utilized unless there are very particular needs.But all this claim is “Old wine in a new bottle,” that is all. I hope this eliminates our reluctance to use tree models and splitter containers.

alv reports in sap abap, alv report in sap abap, interactive alv report in sap abap, what is alv report in sap abap, alv full form in computer, alv full form in sap, alv full form
OOPs ABAP Tutorial
Selection Screen
Output Items on Screen
Increased List

Every post we write is the result of extensive planning, testing, and writing.It would be greatly appreciated by our team if you could forward this link to at least five friends or coworkers who you believe would find our content useful.In order to benefit everyone, keep our staff engaged, and ensure that our effort is not lost in the vast internet, we want our articles to be seen by as many people as possible.

Salesforce training modules

A World of History and Culture: Exploring the Past

The post OOP Report Applying ALV Tree Combination and Splitter first appeared on TECHNICAL GYAN GURU.

]]>
https://technicalgyanguru.com/oop-report-applying-alv-tree-combination-and-splitter/feed/ 0 5200
Part 11 of Core Data Services: How Do I Use CDS View in the KPI Fiori Apps for Smart Business Services? https://technicalgyanguru.com/part-11-of-core-data-services-how-do-i-use-cds-view-in-the-kpi-fiori-apps-for-smart-business-services/?utm_source=rss&utm_medium=rss&utm_campaign=part-11-of-core-data-services-how-do-i-use-cds-view-in-the-kpi-fiori-apps-for-smart-business-services https://technicalgyanguru.com/part-11-of-core-data-services-how-do-i-use-cds-view-in-the-kpi-fiori-apps-for-smart-business-services/#respond Fri, 04 Oct 2024 06:05:00 +0000 https://technicalgyanguru.com/?p=4856 In the modern landscape of business intelligence and enterprise resource planning, leveraging Core Data Services (CDS) views within Key Performance Indicator (KPI) Fiori apps offers a transformative approach to data…

The post Part 11 of Core Data Services: How Do I Use CDS View in the KPI Fiori Apps for Smart Business Services? first appeared on TECHNICAL GYAN GURU.

]]>
In the modern landscape of business intelligence and enterprise resource planning, leveraging Core Data Services (CDS) views within Key Performance Indicator (KPI) Fiori apps offers a transformative approach to data management and analysis. This guide delves into how to effectively utilize CDS views in KPI Fiori apps for Smart Business Services, ensuring that your organization maximizes the potential of its data assets.

Understanding Core Data Services (CDS) Views

Core Data Services (CDS) are a framework provided by SAP for defining and consuming semantically rich data models. Unlike traditional database views, CDS views are designed to provide a higher level of abstraction and integrate seamlessly with SAP HANA’s advanced capabilities. They are essential for enabling real-time analytics and creating robust data models.

Key Features of CDS Views:

  1. Semantic Layer: CDS views offer a layer of abstraction that describes the data in a business context, making it easier to interpret and use.
  2. Performance Optimization: Built-in capabilities for performance optimization such as data buffering and aggregation.
  3. Reusability: CDS views can be reused across various applications, reducing redundancy and ensuring consistency.

Integrating CDS Views with KPI Fiori Apps

Key Performance Indicators (KPIs) are critical for monitoring the health and performance of business processes. Fiori apps, with their user-friendly interface and real-time capabilities, provide a powerful platform for visualizing and interacting with KPIs. Integrating CDS views with KPI Fiori apps involves several key steps:

1. Defining CDS Views

To start, you need to define the CDS views that will serve as the data source for your KPIs. These views should encapsulate the relevant metrics and dimensions necessary for performance tracking.

Steps to Define CDS Views:

  • Identify Requirements: Determine the specific KPIs and the data requirements for each. This includes understanding the key metrics, dimensions, and any necessary calculations.
  • Create CDS Views: Use the SAP HANA Studio or Eclipse to define your CDS views. Utilize CDS annotations to enhance functionality, such as defining analytical capabilities or specifying data aggregations.
sqlCopy code@AbapCatalog.sqlViewName: 'ZMYKPI_VIEW'
@EndUserText.label: 'My KPI View'
define view Z_MY_KPI_VIEW as select from some_table {
    key field1,
    field2,
    sum(field3) as total_field3
}
group by field1, field2

2. Exposing CDS Views as OData Services

CDS views need to be exposed as OData services to be consumed by Fiori apps. This step bridges the gap between the backend data models and the frontend user interface.

Steps to Expose CDS Views:

  • Create OData Service: Use SAP Gateway to create an OData service based on your CDS views. This involves defining the service, mapping the CDS view fields to the OData properties, and configuring any necessary metadata.
  • Activate Service: Ensure that the OData service is activated and available for consumption. This is typically done through the SAP Gateway Service Builder (transaction SEGW).
abapCopy code@OData.publish: true
define view Z_MY_KPI_ODATA as select from Z_MY_KPI_VIEW {
    field1,
    field2,
    total_field3
}

3. Configuring KPI Tiles in Fiori Launchpad

With your OData service in place, the next step is to configure KPI tiles within the Fiori Launchpad. This involves defining how the KPIs are displayed and interacted with by end users.

Steps to Configure KPI Tiles:

  • Create KPI Tile: Use the Fiori Launchpad Designer to create and configure KPI tiles. Specify the OData service as the data source and configure properties such as target values, thresholds, and visual representation.
  • Set Up KPI Tile Properties: Define how the KPI values are calculated and displayed. This includes setting up alerts for threshold breaches and ensuring the KPI tiles provide actionable insights.
jsonCopy code{
    "type": "KPI",
    "dataSource": "/sap/opu/odata/sap/Z_MY_KPI_ODATA/",
    "targetValue": {
        "value": "total_field3",
        "format": "Number"
    },
    "thresholds": [
        {
            "value": "1000",
            "color": "Red"
        },
        {
            "value": "500",
            "color": "Yellow"
        }
    ]
}

4. Testing and Validation

Before rolling out your KPI Fiori apps, thorough testing is essential to ensure that the KPIs are accurate and the data is represented correctly.

Testing Checklist:

  • Data Accuracy: Verify that the data in the KPI tiles matches the data from the CDS views.
  • Performance: Test the performance of the OData service and KPI tiles to ensure they meet performance benchmarks.
  • User Experience: Validate the usability of the KPI tiles in the Fiori Launchpad. Ensure they are intuitive and provide clear, actionable insights.

5. Continuous Monitoring and Improvement

Post-deployment, it’s crucial to continuously monitor and refine your KPIs and CDS views. This ensures that the KPIs remain relevant and the data continues to meet business needs.

Continuous Improvement Strategies:

  • Monitor Performance: Regularly review the performance of KPI tiles and OData services. Optimize as necessary to maintain responsiveness and accuracy.
  • Update KPIs: Adjust KPIs based on evolving business objectives and user feedback.
  • Enhance Data Models: Refine CDS views to incorporate new business logic or data requirements as they emerge.

Best Practices for Using CDS Views in KPI Fiori Apps

To maximize the benefits of integrating CDS views with KPI Fiori apps, adhere to the following best practices:

  1. Ensure Data Quality: High-quality data is essential for accurate KPIs. Regularly audit and cleanse data to maintain integrity.
  2. Optimize Performance: Use efficient CDS view definitions and optimize OData services to ensure swift data retrieval and presentation.
  3. User-Centric Design: Focus on user experience by designing KPI tiles that are intuitive and provide clear, actionable insights.
  4. Documentation: Maintain thorough documentation of CDS views, OData services, and KPI configurations to facilitate easier maintenance and troubleshooting.

Conclusion

Integrating CDS views with KPI Fiori apps for Smart Business Services empowers organizations to harness the full potential of their data. By following the outlined steps and best practices, businesses can achieve enhanced visibility into performance metrics, drive better decision-making, and ultimately, foster improved operational efficiency.

Embracing this approach not only aligns with modern data management principles but also sets the stage for continued innovation and success in an increasingly data-driven world.

you may be interested in this blog here:-

Benefits of Using Salesforce Nonprofit Cloud for Event Planing

ABAP for SAP HANA. ALV Report On SAP HANA – Opportunities And Challenges

The post Part 11 of Core Data Services: How Do I Use CDS View in the KPI Fiori Apps for Smart Business Services? first appeared on TECHNICAL GYAN GURU.

]]>
https://technicalgyanguru.com/part-11-of-core-data-services-how-do-i-use-cds-view-in-the-kpi-fiori-apps-for-smart-business-services/feed/ 0 4856
“A Strategic View of SAP Fiori: Insights from a Space Level Perspective” https://technicalgyanguru.com/a-strategic-view-of-sap-fiori-insights-from-a-space-level-perspective/?utm_source=rss&utm_medium=rss&utm_campaign=a-strategic-view-of-sap-fiori-insights-from-a-space-level-perspective https://technicalgyanguru.com/a-strategic-view-of-sap-fiori-insights-from-a-space-level-perspective/#respond Tue, 01 Oct 2024 06:48:22 +0000 https://technicalgyanguru.com/?p=4693 Discover the high-level benefits of SAP Fiori with our in-depth guide. Explore its design principles, the SAP Fiori Apps Library, and how it integrates with existing systems to enhance business…

The post “A Strategic View of SAP Fiori: Insights from a Space Level Perspective” first appeared on TECHNICAL GYAN GURU.

]]>
Discover the high-level benefits of SAP Fiori with our in-depth guide. Explore its design principles, the SAP Fiori Apps Library, and how it integrates with existing systems to enhance business performance and user experience.

In today’s digital era, optimizing user experience is crucial for enhancing business processes and operational efficiency. SAP Fiori represents a significant advancement in this realm, offering a modern, role-based approach to user interfaces within SAP systems. This blog post provides a comprehensive overview of SAP Fiori from a strategic, space-level perspective, exploring its core functionalities, benefits, and integration possibilities. By understanding SAP Fiori at this high level, organizations can better appreciate how it transforms user interaction and boosts overall productivity.

What is SAP Fiori? Unpacking the Concept

At its core, SAP Fiori is a design framework that redefines the user experience for SAP applications. By integrating modern design principles with SAP’s powerful backend systems, SAP Fiori offers a streamlined, intuitive interface that significantly enhances usability. It focuses on delivering a consistent and responsive experience across various devices, whether on desktop, tablet, or mobile.

SAP Fiori is built on the principle of simplicity, aiming to simplify user interactions with complex SAP systems. It achieves this by providing role-based access, which ensures that users see only the information and functionalities relevant to their specific roles. This tailored approach not only improves efficiency but also reduces the learning curve associated with traditional SAP interfaces.

Exploring the SAP Fiori Apps Library: A Treasure Trove of Functionality

The SAP Fiori Apps Library is a central component of the SAP Fiori ecosystem, offering a comprehensive repository of pre-built applications designed to meet diverse business needs. This library categorizes applications into three main types: transactional apps, analytical apps, and fact sheets.

Transactional apps facilitate daily business tasks such as processing orders or managing inventory. They streamline these processes by offering a simplified and user-friendly interface. Analytical apps, on the other hand, provide insights and reports based on real-time data, enabling informed decision-making. Fact sheets offer detailed information on business objects, such as customers or products, giving users a comprehensive view of critical data.

By leveraging the SAP Fiori Apps Library, organizations can quickly identify and deploy applications that align with their business requirements. This library not only accelerates implementation but also ensures that users have access to the tools they need to perform their roles effectively.

Navigating the SAP Fiori Library: An Essential Guide

The SAP Fiori Library, accessible via the SAP Fiori Launchpad, serves as the gateway to exploring and managing SAP Fiori applications. This library provides a user-friendly interface that allows users to search for, explore, and launch various applications based on their roles and needs.

Users can browse through the SAP Fiori Library by categories or use the search functionality to find specific apps. Each application in the library is accompanied by detailed information, including its purpose, functionalities, and prerequisites. Administrators can also use the library to manage application deployment, configure settings, and monitor performance.

Effective navigation of the SAP Fiori Library is crucial for maximizing the benefits of SAP Fiori. By familiarizing themselves with the library’s features and functionalities, users and administrators can ensure a seamless experience and optimize their use of SAP Fiori applications.

The Role-Based Approach: Tailoring SAP Fiori to User Needs

A defining feature of SAP Fiori is its role-based approach, which tailors the user experience to specific roles within an organization. This approach ensures that users see only the information and functionalities relevant to their responsibilities, reducing complexity and improving efficiency.

For instance, a finance manager might have access to applications related to financial reporting and budget management, while a sales representative would see applications focused on sales orders and customer interactions. This targeted presentation of information helps users focus on their tasks without being overwhelmed by irrelevant data or features.

By adopting a role-based approach, SAP Fiori enhances productivity and streamlines workflows. Users can complete tasks more efficiently, and organizations can benefit from a more organized and user-centric interface.

SAP Fiori Login: Accessing Your Applications Securely

Accessing SAP Fiori applications involves a straightforward login process designed to ensure secure and personalized access. The SAP Fiori login page is the entry point to the SAP Fiori Launchpad, where users can access their assigned applications and services.

Users need to enter their credentials, including a username and password, to log in. Depending on the organization’s security protocols, additional authentication methods such as single sign-on (SSO) or two-factor authentication (2FA) may be required. Once logged in, users are directed to the SAP Fiori Launchpad, where they can access their role-specific applications and begin their tasks.

The SAP Fiori login process is designed to provide both security and convenience, ensuring that users can easily access their applications while maintaining the integrity of the system.

Design Principles of SAP Fiori: Enhancing User Experience

SAP Fiori’s design principles are foundational to its success in transforming user experiences. These principles include simplicity, coherence, and responsiveness, each contributing to a more effective and engaging interface.

Simplicity is about reducing complexity by presenting only the necessary information and actions. Coherence ensures a consistent look and feel across all applications, making it easier for users to navigate and use different apps. Responsiveness guarantees that applications work seamlessly across various devices and screen sizes.

By adhering to these design principles, SAP Fiori delivers a user experience that is both visually appealing and highly functional. This focus on user-centric design helps organizations achieve higher levels of user satisfaction and operational efficiency.

Integrating SAP Fiori with Existing Systems: Best Practices

Integrating SAP Fiori with existing SAP systems is a critical step in realizing its full potential. Effective integration ensures that SAP Fiori applications can interact seamlessly with other SAP modules and data sources, providing a unified user experience.

Organizations should work closely with their IT teams or SAP consultants to facilitate integration. This process may involve setting up interfaces, configuring data exchanges, and testing application performance. Successful integration allows organizations to leverage SAP Fiori’s capabilities fully, enhancing their overall SAP ecosystem.

Best practices for integration include thorough planning, comprehensive testing, and ongoing monitoring. By following these practices, organizations can ensure that their SAP Fiori implementation is smooth and effective.

Future Trends in SAP Fiori: What to Expect

As technology continues to evolve, so too does SAP Fiori. Future trends in SAP Fiori may include advancements in artificial intelligence (AI), machine learning, and advanced analytics. These innovations aim to further enhance user experience by providing intelligent recommendations, predictive insights, and automated workflows.

Additionally, SAP Fiori is likely to continue its focus on mobile and cloud-based solutions, enabling users to access applications and data from anywhere and on any device. Staying informed about these trends will help organizations remain competitive and fully leverage the capabilities of SAP Fiori.

Conclusion

SAP Fiori represents a significant leap forward in user experience design for SAP applications. By providing a modern, role-based, and responsive interface, SAP Fiori enhances productivity and user satisfaction. Understanding SAP Fiori from a high-level perspective helps organizations appreciate its transformative impact on business operations.

From exploring the SAP Fiori Apps Library to integrating with existing systems, SAP Fiori offers a range of features and benefits designed to optimize user interactions and streamline processes.


you may be interested in this blog here

Discover Joy Worksheet for Pre Primary English PDF Free Download

Getting the Best Salesforce Partner: A Tutorial for Business Growth

The post “A Strategic View of SAP Fiori: Insights from a Space Level Perspective” first appeared on TECHNICAL GYAN GURU.

]]>
https://technicalgyanguru.com/a-strategic-view-of-sap-fiori-insights-from-a-space-level-perspective/feed/ 0 4693
An Overview of SAP Fiori ABAP Programming Model – 1 https://technicalgyanguru.com/an-overview-of-sap-fiori-abap-programming-model-1/?utm_source=rss&utm_medium=rss&utm_campaign=an-overview-of-sap-fiori-abap-programming-model-1 https://technicalgyanguru.com/an-overview-of-sap-fiori-abap-programming-model-1/#respond Tue, 01 Oct 2024 06:47:04 +0000 https://technicalgyanguru.com/?p=4875 Fiori is at the forefront with S/4HANA.Additionally, in order to create SAP Fiori Applications, ABAP engineers must transform into stunning butterflies in order to sip the delightful nectar of the…

The post An Overview of SAP Fiori ABAP Programming Model – 1 first appeared on TECHNICAL GYAN GURU.

]]>
SAP Fiori ABAP Programming Model - 1

Fiori is at the forefront with S/4HANA.Additionally, in order to create SAP Fiori Applications, ABAP engineers must transform into stunning butterflies in order to sip the delightful nectar of the Fiori blossoms.

Paradoxically, the comparison is ideal. For SAP ABAP Developers, there is a paradigm shift from the dull blue SAP screen to the stunning Fiori Applications. Core Data Services (CDS) is the cornerstone of S/4HANA, and one of its pillars is the ABAP Programming Model for SAP Fiori. The three SAP programming languages of the future are expected to be CDS, BOPF, and OData. Thus, it is imperative that we begin studying these subjects.

It is something you cannot escape, even if you attempt to put it off as long as you can. We are aware that change can be challenging, but we will do our best to make the switch from the outdated ABAP Develper to the newest ABAP Programmer for Fiori as easy and enjoyable as possible. We have attempted to develop a crash course tutorial series in this brief series, which is a summary of several books released by SAP Press and SCN blog entries, so you can understand it quickly. In order to assist you in comprehending, learning, and using these new areas as soon as possible, we have kept all of the articles brief, sharp, and to the point.

The book that was released states that the “ABAP Programming model for Fiori supports the development of OData services optimized for SAP HANA for SAP Fiori applications. It covers analytical, transactional, and search application scenarios and is based on Core Data Services (CDS) Views.” The two main applications of the ABAP Programming Model for SAP Fiori are Read-Only Applications and Transactional Applications.

For read-only applications, all that is required is an underlying CDS data model and application-specific analytics or search annotations. The CDS data model and related annotations are then made available as an OData service via the Service Adaptation Description Language (SADL).

The creation of a Business Object Processing Framework (BOPF) Business Object is necessary for Transactional Applications in addition to Read-Only Applications. This is because BOPF Actions, Validations, and Determinations handle additional business logic in addition to handling Create, Update, and Delete operations.

Okay, so Technicalgyanguru wouldn’t be necessary if we typed every word that was in the book.This brings us to our explanations. Real-world tasks require two different kinds of apps.First, we simply retrieve information from the

Selecting the SAP Fiori App

The journey begins with selecting the right SAP Fiori app for your needs. The SAP Fiori apps reference library is an extensive repository that provides detailed information about available Fiori apps, including functionality, prerequisites, and compatibility. To start:

  1. Access the SAP Fiori Apps Reference Library: Navigate to the SAP Fiori apps reference library on the SAP Support Portal or SAP Fiori launchpad.
  2. Search and Filter: Use search and filter options to locate the specific app you need. This could be based on functionality, industry, or system requirements.
  3. Review App Details: Examine the app’s description, prerequisites, and any related documentation to ensure it meets your requirements.

Planning Installation with Maintenance Planner

Once you’ve selected the app, the next step is to plan the installation using the Maintenance Planner. This tool is instrumental in preparing for system updates and new installations.

Steps for Planning Installation:

  1. Log into Maintenance Planner: Access the Maintenance Planner through the SAP Support Portal. Ensure you have the necessary authorizations to perform planning tasks.
  2. Create a New Maintenance Plan: Start by creating a new maintenance plan for your installation or update project.
  3. Add System Information: Input details about your existing systems and the new components or updates you plan to install. Maintenance Planner will use this information to generate a comprehensive plan.
  4. Analyze System Compatibility: Maintenance Planner checks for compatibility between your current system landscape and the new changes, ensuring that all components will work together seamlessly.
  5. Generate Stack XML: Use Maintenance Planner to generate a consolidated stack XML file that outlines all planned changes. This file will guide the installation process and ensure all components are correctly applied.

Installing and Updating the System

With your plan in place, you can proceed to install or update the system. The installation process generally involves:

  1. Download Required Files: Maintenance Planner allows you to push all necessary files for the installation into a download basket in a single step, streamlining the file acquisition process.
  2. Install Components: Use the Software Update Manager (SUM) to apply the stack XML and install the new components or updates. Follow the guided steps provided by SUM to ensure a smooth installation.
  3. Post-Installation Checks: After installation, perform necessary post-installation steps, such as applying any required configuration changes or running validation checks.

Advantages of Using Maintenance Planner

1. Consolidated Planning: Maintenance Planner enables consolidated planning by generating a stack XML that includes all planned landscape changes. This holistic view simplifies managing updates and ensures that all components are correctly synchronized.

2. Support for New System Installations: The tool supports the installation of new systems, making it easier to integrate new components into your existing landscape. It helps in ensuring that new installations are seamlessly incorporated.

3. Streamlined File Management: Maintenance Planner simplifies file management by allowing you to push all required files for the installation into a single download basket. This reduces the complexity of file handling and minimizes the risk of missing critical files.

Conclusion

The integration of SAP Fiori apps into your system landscape can significantly enhance user experience and operational efficiency. By leveraging the SAP Fiori apps reference library and the Maintenance Planner, you streamline the process of selecting, planning, and installing these apps. Maintenance Planner’s consolidated planning, support for new installations, and efficient file management capabilities offer substantial benefits, making system updates and installations more manageable and effective.

you may be interested in this blog here:-

The Journey of Alex: From Confusion to Clarity in SAP Software Meaning

Salesforce List: Your Essential Guide to Features and Functionalities

The post An Overview of SAP Fiori ABAP Programming Model – 1 first appeared on TECHNICAL GYAN GURU.

]]>
https://technicalgyanguru.com/an-overview-of-sap-fiori-abap-programming-model-1/feed/ 0 4875
SAP Fiori ABAP Programming Model – 2 – CDS – Overview https://technicalgyanguru.com/sap-fiori-abap-programming-model-2-cds-overview/?utm_source=rss&utm_medium=rss&utm_campaign=sap-fiori-abap-programming-model-2-cds-overview https://technicalgyanguru.com/sap-fiori-abap-programming-model-2-cds-overview/#respond Mon, 30 Sep 2024 06:48:00 +0000 https://technicalgyanguru.com/?p=4881 One of the foundational elements of all SAP Fiori , ABAP Programming Model – 2 – CDS – Overview ,SAP S/4HANA application types is Core Data Services (CDS). They facilitate…

The post SAP Fiori ABAP Programming Model – 2 – CDS – Overview first appeared on TECHNICAL GYAN GURU.

]]>
One of the foundational elements of all SAP Fiori , ABAP Programming Model – 2 – CDS – Overview ,SAP S/4HANA application types is Core Data Services (CDS). They facilitate the creation of semantically rich data models that support code push-down to the SAP HANA database and are implemented on top of new S/4HANA or ECC tables. In addition to offering three training batches on ABAP CDS, we have a comprehensive tutorial series on CDS.

Beginners of ABAP CDS who wish to continue with the ABAP Programming Model in SAP Fiori without having to navigate and bounce between pages would find this tutorial to be helpful. However, if you want to go deeper into it, we strongly advise you to take our Core Data Services training series.

What transpires when CDS View is created?

When a CDS view is activated, two artifacts are produced: a CDS View Entity, which is a SAP HANA view on the database, and a corresponding SQL View, which is the Data Dictionary (DDIC) view in the ABAP Dictionary (@AbapCatalog.sqlViewName). With the object repository entry R3TR DDLS, just the CDS View definition is sent. Different sorts of annotations can be used to augment CDS views, which are built using CDS’s Data Definition Language (DDL), to cover various application scenarios.

Navigate to transaction SE11; the above-highlighted view will appear in the ABAP DDIC view options.

CDS Views’ naming convention

The following naming conventions are used to categorize CDS Views:

Private View (P_)

View Interface (I_)

Using Perspective (C_)

Exclusive Perspective

Private Views are made for internal use and will be accessible everywhere. Developers can build associations with this Private view or utilize it to develop CDS views.SAP does, however, advise users not to use Private views as they are not safer.In the future, certain columns might be added or removed in a way that would hinder our development because it depends on these viewpoints.

Please keep in mind that this does not mean we should never embrace their opinions. Steer clear of consumption if possible.

View of the Basic Interface

View of the Composite Interface

From a technical standpoint, Basic and Composite views differ in:

Master data is contained in Basic View, whereas both Master and Transactional data are contained in Composite View.Using I_ conventions, the Basic and Composite Interface views are identified.

View of Consumption

Interface views serve as the foundation for this view. This view serves as the data model’s pre-made solution. It is also much simpler to design and use a Fiori App using these views. It can also be used analytically; BI reports, for example, can be created. It is easy to develop if SAP already provides the Consumption views.

Key Features of CDS:

  1. Semantic Layer: CDS views offer a business-oriented abstraction layer over raw data, making it easier for developers and end-users to interact with complex data structures.
  2. Performance Optimization: Leveraging SAP HANA’s in-memory processing, CDS views are designed to optimize performance, enabling fast and efficient data retrieval and manipulation.
  3. Reusability: CDS views can be reused across different applications, reducing redundancy and ensuring consistency in data representation.

Practical Application of CDS Views

Implementing CDS views involves several steps, each crucial for ensuring that data is modeled and utilized effectively:

1. Defining CDS Views: The first step is to define the CDS views using the ABAP Development Tools (ADT) in SAP HANA Studio or Eclipse. This involves creating a CDS view definition that specifies the data source, fields, and any necessary calculations or aggregations.

sqlCopy code@AbapCatalog.sqlViewName: 'ZMY_CDS_VIEW'
@EndUserText.label: 'My CDS View Example'
define view Z_MY_CDS_VIEW as select from some_table {
    key field1,
    field2,
    sum(field3) as total_field3
}
group by field1, field2

2. Exposing CDS Views as OData Services: To integrate CDS views with SAP Fiori apps, they need to be exposed as OData services. This is done using the SAP Gateway, which allows Fiori apps to consume the data via standard web protocols.

3. Integrating with Fiori Apps: Once the OData service is set up, it can be consumed by Fiori apps. Developers configure Fiori tiles and applications to use the OData services, ensuring that the data presented aligns with the business requirements.

4. Testing and Validation: Thorough testing is essential to ensure that the CDS views deliver accurate data and perform well under different scenarios. This includes validating data accuracy, performance, and the user experience in Fiori apps.

Conclusion

Core Data Services (CDS) views are a fundamental component of the SAP Fiori ABAP Programming Model, offering a powerful framework for data modeling and integration. By providing a semantic layer over raw data, CDS views enable developers to create efficient, real-time, and user-centric applications. Their ability to simplify data modeling, optimize performance, and enhance user experience makes them indispensable for modern SAP Fiori development.

Implementing CDS views effectively requires careful planning and execution, from defining the views to integrating them with Fiori apps. Embracing CDS views not only streamlines data management but also ensures that SAP Fiori applications deliver meaningful and actionable insights to users. As organizations continue to evolve and leverage advanced technologies, understanding and utilizing CDS views will remain a key factor in achieving success and driving innovation in the SAP ecosystem.

you may be interested in this Blog Here

Can I become full stack developer in 3 months?

Salesforce Incident Management: Streamlining Issue Resolution

How the Digital Services Act is Shaping the Future of the SAP Community

The post SAP Fiori ABAP Programming Model – 2 – CDS – Overview first appeared on TECHNICAL GYAN GURU.

]]>
https://technicalgyanguru.com/sap-fiori-abap-programming-model-2-cds-overview/feed/ 0 4881
ABAP Programming Model – 4 – OData Service Generation for SAP Fiori https://technicalgyanguru.com/abap-programming-model-4-odata-service-generation-for-sap-fiori/?utm_source=rss&utm_medium=rss&utm_campaign=abap-programming-model-4-odata-service-generation-for-sap-fiori https://technicalgyanguru.com/abap-programming-model-4-odata-service-generation-for-sap-fiori/#respond Fri, 27 Sep 2024 06:16:00 +0000 https://technicalgyanguru.com/?p=4916 Through the SAP FGateway hub system, business data and metadata may be sent between ABAP backend systems and client applications using OData, a REST-based data standard. Client applications for OData…

The post ABAP Programming Model – 4 – OData Service Generation for SAP Fiori first appeared on TECHNICAL GYAN GURU.

]]>
Through the SAP FGateway hub system, business data and metadata may be sent between ABAP backend systems and client applications using OData, a REST-based data standard. Client applications for OData services in SAP S/4HANA are often SAP Fiori apps that operate in the local browsers of end-user devices, like tablets or desktop PCs. OData uses HTTP as its data transfer protocol to give users clear, unambiguous access to SAP backend business data in conjunction with the SAP Gateway.

Data is arranged using an OData service as entities, which are collections of attributes related by associations. Since these components are similar to those in CDS data models, CDS data models are ideal candidates to be exposed as OData services.

Annotation for OData Service Creation
To build an OData service, use the annotation below.

True @OData.publish

This annotation needs to be written above the define View † statement in the header section of a CDS view.

@AbapCatalog.compiler.compare @AbapCatalog.sqlViewName: ‘Z_C_AIRLINE’True for the filter

AbapCatalog.archiveImportant: accurate

choose from ZAPF_I_AIRLINE to define view ZAPF_C_AIRLINE
{ ………… }
Now let’s add this annotation to the CDS view. Please be aware that just one location throughout the CDS data model requires the implementation of this OData annotation. We have established the primary hierarchical point for the entire data model as the ZAPF_C_AIRLINE consumption view. This annotation will therefore be shown in the main consumption display.

When the CDS view is activated and the OData annotation is applied, an OData service will be built. The OData service for the aforementioned Airline CDS view has now been established and activated. However, the service won’t be accessible for use. The corresponding service must be activated in order for the external system or Fiori application to use it.

The following chapter of this series will go over how to activate the OData service that was created in the previous phase.

In the ever-evolving landscape of SAP, the ABAP Programming Model has become a cornerstone for developing robust and scalable applications. Among the various aspects of this model, OData service generation stands out as a crucial component, especially when it comes to creating seamless SAP Fiori applications. This blog post will delve into the process of generating OData services using the ABAP Programming Model, showcasing how you can leverage these services to enhance your SAP Fiori apps.

1. Introduction to ABAP Programming Model and OData Services

The ABAP Programming Model offers a structured approach to developing applications on the SAP platform, focusing on best practices and design principles. Within this model, OData services play a vital role by facilitating the interaction between the SAP backend and SAP Fiori front-end applications. OData (Open Data Protocol) is a standardized protocol that enables CRUD (Create, Read, Update, Delete) operations on data entities, making it ideal for building interactive and dynamic user interfaces.

2. Setting Up Your Development Environment

Before diving into OData service generation, ensure you have the following prerequisites:

  • SAP NetWeaver Application Server: A robust platform for running your ABAP code.
  • SAP Business Application Studio or SAP Web IDE: For development and testing of your Fiori applications.
  • ABAP Development Tools (ADT): An essential set of tools for ABAP development.

3. Creating an ABAP Core Data Services (CDS) View

The first step in generating an OData service is to create a Core Data Services (CDS) view. CDS views are essential for defining and exposing your data models in a structured manner.

  1. Open ADT in Eclipse and navigate to your ABAP project.
  2. Create a new CDS view: Right-click on your package, select New > Other ABAP Repository Object > Core Data Services > Data Definition.
  3. Define your CDS view: Use the following template to get started:abapCopy code@AbapCatalog.sqlViewName: 'ZMY_CDS_VIEW' @AccessControl.authorizationCheck: #CHECK @EndUserText.label: 'My CDS View' define view Z_MY_CDS_VIEW as select from my_table { key field1, field2, field3 } This CDS view selects data from my_table and exposes fields field1, field2, and field3.

4. Exposing the CDS View as an OData Service

With your CDS view in place, the next step is to expose it as an OData service.

  1. Create a new OData service: Go to the SAP Gateway Service Builder (transaction code SEGW).
  2. Create a new project: Enter a project name and description, then click Create.
  3. Add a Data Model: Right-click on the Data Model node and choose Import > DDIC Structure. Select your CDS view from the list.
  4. Generate the runtime objects: Right-click on your project and select Generate. This step creates the OData service runtime artifacts.

5. Register and Test the OData Service

Once the OData service is generated, it needs to be registered and tested:

  1. Register the service: Use transaction /IWFND/MAINT_SERVICE to add your OData service to the SAP Gateway. Enter your service name, and follow the prompts to register.
  2. Test the service: Use transaction /IWFND/GW_CLIENT or a tool like Postman to test your OData service endpoints. Verify that the CRUD operations work as expected.

6. Integrating OData Service with SAP Fiori

With your OData service up and running, you can integrate it into your SAP Fiori application:

  1. Create a new Fiori application: Use SAP Business Application Studio or SAP Web IDE to create a new Fiori project.
  2. Connect to the OData service: In the Fiori project, configure the OData service as a data source.
  3. Develop your UI: Build your Fiori app’s UI using the data exposed by your OData service. Utilize SAPUI5 controls to create interactive and user-friendly interfaces.

7. Conclusion

Generating OData services for SAP Fiori applications using the ABAP Programming Model simplifies the process of data interaction between the backend and the frontend. By following these steps, you can efficiently expose your data models and create dynamic, responsive Fiori applications that enhance user experience.

Embracing the ABAP Programming Model and mastering OData service generation will not only streamline your development process but also ensure that your SAP Fiori applications are powerful and scalable. Happy coding!

you may be interested in this blog here:-

How to Use Custom Labels in Schedule Apex Class in Salesfoce.

ABAP on SAP HANA. Part XI- Sample Functional Specification of HANA Project

The post ABAP Programming Model – 4 – OData Service Generation for SAP Fiori first appeared on TECHNICAL GYAN GURU.

]]>
https://technicalgyanguru.com/abap-programming-model-4-odata-service-generation-for-sap-fiori/feed/ 0 4916
ABAP Programming Model – 5 – OData Service Generation for SAP Fiori https://technicalgyanguru.com/abap-programming-model-5-odata-service-generation-for-sap-fiori/?utm_source=rss&utm_medium=rss&utm_campaign=abap-programming-model-5-odata-service-generation-for-sap-fiori https://technicalgyanguru.com/abap-programming-model-5-odata-service-generation-for-sap-fiori/#respond Thu, 26 Sep 2024 06:31:00 +0000 https://technicalgyanguru.com/?p=4922 We constructed the OData service in the last tutorial. We will turn on the newly constructed OData service in this part. The steps are (not literally) illustrated in our prior…

The post ABAP Programming Model – 5 – OData Service Generation for SAP Fiori first appeared on TECHNICAL GYAN GURU.

]]>
We constructed the OData service in the last tutorial. We will turn on the newly constructed OData service in this part. The steps are (not literally) illustrated in our prior 101 articles. 🙂. However, you can go here or here in our page on doughnuts and charts. For the same, you may also look at our VDM or OData tutorials.

The instructions for activating the previously built OData service are listed below.

Determine which OData service has been generated.
Turn on the OData service for the SAP Gateway.
Determine which OData service was created.
To create the OData service, the corresponding CDS view must be activated after applying the OData annotation.

Open the SAP Gateway System and activate the OData service.

The discovery of the OData service’s name does not imply that it is available for use. It needs to be turned on.

Follow these instructions to make the OData service active:

  1. Using the SAP GUI, access the SAP Gateway system and navigate to transaction /IWFND/MAINT_SERVICE.
  1. Click the Add Service option to add the service for activation once we are in the transaction.

3. Enter the name of the technical service and the system alias on the next screen. OData is the service name for technical services.

Choose the OData services result that was returned, then click Add Selected Services.

  1. Select the bundle.

6. To verify if the service is enabled, return and filter the OData service by its name. Consequently, this will also activate and make the OData service available.

7. After that, proceed as normal to test the OData service and verify the entity data, as shown below. Please refer to the OData service testing from SAP Gateway system on the SAPYard website if this step is unclear.

In the realm of SAP Fiori development, the ABAP Programming Model offers a structured approach to building efficient, scalable applications. One of the key components of this model is the generation of OData services, which are critical for enabling seamless data interactions between the SAP backend and the Fiori front end. This blog post explores the steps involved in generating OData services using the ABAP Programming Model, focusing on practical insights and best practices to streamline your development process.

ABAP Programming Model and OData Services

The ABAP Programming Model is designed to align with modern development practices, emphasizing simplicity and efficiency. OData (Open Data Protocol) is integral to this model, facilitating a standardized way to create, read, update, and delete data. In the context of SAP Fiori, OData services serve as the bridge between your backend data and the user interface, making them essential for interactive and dynamic applications.

2. Prerequisites for OData Service Generation

Before diving into OData service generation, ensure you have the following prerequisites:

  • SAP NetWeaver Application Server: Ensure you have a running SAP NetWeaver instance where your ABAP code will be executed.
  • ABAP Development Tools (ADT): ADT in Eclipse is necessary for creating and managing ABAP artifacts.
  • SAP Business Application Studio or SAP Web IDE: These tools will be used to develop and test your SAP Fiori applications.

3. Creating Core Data Services (CDS) Views

The foundation for generating an OData service lies in creating Core Data Services (CDS) views. CDS views provide a structured and reusable data model that can be exposed through OData services.

Steps to Create a CDS View:

  1. Open ADT in Eclipse:
    • Start by opening the ABAP Development Tools in Eclipse.
  2. Create a New CDS View:
    • Navigate to your ABAP package, right-click, and select New > Other ABAP Repository Object > Core Data Services > Data Definition.
  3. Define the CDS View:
    • Use the following template to create your CDS view:
    abapCopy code@AbapCatalog.sqlViewName: 'ZMY_CDS_VIEW' @AccessControl.authorizationCheck: #CHECK @EndUserText.label: 'My CDS View' define view Z_MY_CDS_VIEW as select from my_table { key field1, field2, field3 } This CDS view selects field1, field2, and field3 from my_table, with field1 being the key.

4. Exposing CDS Views as OData Services

With your CDS view ready, the next step is to expose it as an OData service. This involves creating an OData service project and mapping the CDS view to it.

Steps to Expose a CDS View:

  1. Create an OData Project:
    • Open transaction SEGW (SAP Gateway Service Builder).
    • Create a new project by entering a project name and description.
  2. Import the CDS View:
    • Right-click on the Data Model node, select Import > DDIC Structure, and choose your CDS view from the list.
  3. Define the Service:
    • After importing, define the service by creating Entity Types and Entity Sets that map to your CDS view.
  4. Generate Runtime Artifacts:
    • Right-click on your project and select Generate to create the runtime objects necessary for the OData service.

5. Registering and Testing the OData Service

After generating the OData service, you need to register and test it to ensure it’s functioning correctly.

Steps for Registration and Testing:

  1. Register the Service:
    • Use transaction /IWFND/MAINT_SERVICE to register your OData service. Enter your service name, and complete the registration process.
  2. Test the Service:
    • Use transaction /IWFND/GW_CLIENT or a tool like Postman to test the OData service endpoints. Ensure that you can perform CRUD operations and that the service responds as expected.

6. Integrating OData Service with SAP Fiori

Once your OData service is up and running, integrate it into your SAP Fiori application.

Integration Steps:

  1. Create or Open a Fiori Application:
    • Use SAP Business Application Studio or SAP Web IDE to create or open your Fiori application project.
  2. Configure the OData Service:
    • In the Fiori project, configure the OData service as a data source. This involves setting up the service in the manifest file of your Fiori app.
  3. Develop the UI:
    • Use SAPUI5 controls to build the user interface, binding your UI elements to the data exposed by the OData service. Ensure the interface is interactive and provides a seamless user experience.

7. Best Practices for OData Service Generation

To optimize your OData service development, consider the following best practices:

  • Use Annotations: Leverage CDS annotations to enhance the metadata of your OData services, improving integration with SAP Fiori.
  • Optimize Data Handling: Implement efficient data retrieval and filtering mechanisms to handle large datasets and improve performance.
  • Ensure Security: Apply proper authorization checks and security measures to protect sensitive data and ensure that only authorized users can access the data.

8. Conclusion

Generating OData services using the ABAP Programming Model is a crucial step in developing effective SAP Fiori applications. By following the outlined steps and best practices, you can create robust and efficient OData services that enhance the functionality and user experience of your Fiori applications.

Embracing these practices will enable you to build powerful and scalable applications that leverage the full potential of SAP’s modern programming model. Dive into OData service generation today and take your SAP Fiori development skills to the next level.

Happy coding!

you may be interested in this blog here:-

The Journey of Alex: From Confusion to Clarity in SAP Software Meaning

Benefits of Using Salesforce Nonprofit Cloud for Event Planing

The post ABAP Programming Model – 5 – OData Service Generation for SAP Fiori first appeared on TECHNICAL GYAN GURU.

]]>
https://technicalgyanguru.com/abap-programming-model-5-odata-service-generation-for-sap-fiori/feed/ 0 4922