Tech Docs

Documentazione Tecnologie SAP

Risorse complete e guide pratiche per sviluppatori e consulenti SAP. UX ottimizzata per apprendimento efficiente.

ABAP

Ultimo aggiornamento: 15 Dic 2023

ABAP (Advanced Business Application Programming) è il linguaggio di programmazione proprietario di SAP per lo sviluppo di applicazioni business su piattaforma SAP NetWeaver.

Caratteristiche Principali

  • Linguaggio orientato agli oggetti
  • Integrazione nativa con database SAP
  • Debugger avanzato e performance tools

Use Cases

  • Customizzazioni business logic
  • Report personalizzati
  • Interfacce con sistemi esterni

Esempio: Classe ABAP OO

CLASS zcl_employee DEFINITION PUBLIC CREATE PUBLIC.
  PUBLIC SECTION.
    METHODS:
      constructor IMPORTING iv_name TYPE string,
      get_name RETURNING VALUE(rv_name) TYPE string,
      set_salary IMPORTING iv_salary TYPE i.
  
  PRIVATE SECTION.
    DATA:
      mv_name TYPE string,
      mv_salary TYPE i.
ENDCLASS.

CLASS zcl_employee IMPLEMENTATION.
  METHOD constructor.
    me->mv_name = iv_name.
  ENDMETHOD.

  METHOD get_name.
    rv_name = me->mv_name.
  ENDMETHOD.

  METHOD set_salary.
    me->mv_salary = iv_salary.
  ENDMETHOD.
ENDCLASS.

SAP Fiori

UI Framework

SAP Fiori è il design system di SAP per applicazioni enterprise moderne, caratterizzato da interfacce intuitive, responsive e user-centered.

Principi di Design Fiori

Coerenza

Design uniforme across tutte le app

Efficienza

Task completion in meno click

Adaptive

Responsive su tutti i device

Esempio: XML View Fiori

<mvc:View
    controllerName="sap.ui.demo.wt.controller.App"
    xmlns:mvc="sap.ui.core.mvc"
    xmlns="sap.m"
    xmlns:core="sap.ui.core">
    <App>
        <Page title="Employee Management">
            <content>
                <Panel headerText="Employee Details">
                    <content>
                        <Input
                            value="{/employee/name}"
                            placeholder="Enter employee name"
                            class="sapUiSmallMarginBottom"/>
                        <Button
                            text="Save Employee"
                            press="onSave"
                            type="Emphasized"
                            class="sapUiSmallMarginEnd"/>
                    </content>
                </Panel>
            </content>
        </Page>
    </App>
</mvc:View>