{"id":16163368,"url":"https://github.com/gregorwolf/fiorielementsdemo","last_synced_at":"2025-07-20T17:04:16.556Z","repository":{"id":149536930,"uuid":"71486288","full_name":"gregorwolf/FioriElementsDemo","owner":"gregorwolf","description":"Demonstrate SAP Smart Templates with NetWeaver ABAP 7.40","archived":false,"fork":false,"pushed_at":"2018-07-05T13:11:04.000Z","size":26,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-02T19:51:37.932Z","etag":null,"topics":["abap","fiori","odata","openui5","sapui5"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gregorwolf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-20T17:16:11.000Z","updated_at":"2022-01-21T00:02:47.000Z","dependencies_parsed_at":"2024-07-12T14:18:06.234Z","dependency_job_id":null,"html_url":"https://github.com/gregorwolf/FioriElementsDemo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gregorwolf/FioriElementsDemo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregorwolf%2FFioriElementsDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregorwolf%2FFioriElementsDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregorwolf%2FFioriElementsDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregorwolf%2FFioriElementsDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregorwolf","download_url":"https://codeload.github.com/gregorwolf/FioriElementsDemo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregorwolf%2FFioriElementsDemo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266161900,"owners_count":23885927,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["abap","fiori","odata","openui5","sapui5"],"created_at":"2024-10-10T02:35:23.001Z","updated_at":"2025-07-20T17:04:16.540Z","avatar_url":"https://github.com/gregorwolf.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demo for SAP Fiori Elements\nDemonstrate SAP Fiori Elements (formerly known as: Smart Templates) without annotaded CDS View based OData Service on NetWeaver ABAP 7.40.\n\nTo make this example work the SAP delivered standard OData Service /IWBEP/EPM_DEVELOPER_SCENARIO must be redefined as ZEPM_DEVELOPER_SCENARIO and the products_get_entity method must be implemented with the following code:\n\n```\nCLASS zcl_zepm_developer_sce_dpc_ext DEFINITION\n  PUBLIC\n  INHERITING FROM zcl_zepm_developer_sce_dpc\n  CREATE PUBLIC .\n\n  PUBLIC SECTION.\n  PROTECTED SECTION.\n\n    METHODS businesspartners_get_entity\n        REDEFINITION .\n    METHODS businesspartners_get_entityset\n        REDEFINITION .\n    METHODS products_get_entity\n        REDEFINITION .\n  PRIVATE SECTION.\nENDCLASS.\n\nCLASS ZCL_ZEPM_DEVELOPER_SCE_DPC_EXT IMPLEMENTATION.\n\n  METHOD businesspartners_get_entity.\n    DATA bp_id       TYPE bapi_epm_bp_id.\n    DATA headerdata  TYPE bapi_epm_bp_header.\n    DATA contactdata TYPE STANDARD TABLE OF bapi_epm_bp_contact.\n    DATA return      TYPE STANDARD TABLE OF bapiret2.\n\n    DATA(lt_keys) = io_tech_request_context-\u003eget_keys( ).\n    \" BP_ID  0100000000\n    READ TABLE lt_keys ASSIGNING FIELD-SYMBOL(\u003cfs_key\u003e) WITH KEY name = 'BP_ID'.\n    IF \u003cfs_key\u003e IS ASSIGNED.\n      bp_id = \u003cfs_key\u003e-value.\n\n      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'\n        EXPORTING\n          input  = bp_id\n        IMPORTING\n          output = bp_id.\n\n      CALL FUNCTION 'BAPI_EPM_BP_GET_DETAIL'\n        EXPORTING\n          bp_id       = bp_id\n        IMPORTING\n          headerdata  = headerdata\n        TABLES\n          contactdata = contactdata\n          return      = return.\n      READ TABLE contactdata ASSIGNING FIELD-SYMBOL(\u003cfs_contact\u003e) INDEX 1.\n      IF \u003cfs_contact\u003e IS ASSIGNED.\n        MOVE-CORRESPONDING \u003cfs_contact\u003e TO er_entity.\n      ENDIF.\n      MOVE-CORRESPONDING headerdata TO er_entity.\n      er_entity-date_of_birth = sy-datum.\n\n    ENDIF.\n  ENDMETHOD.\n  \n  METHOD businesspartners_get_entityset.\n\n    DATA bpheaderdata        TYPE STANDARD TABLE OF bapi_epm_bp_header.\n    DATA bpcontactdata       TYPE STANDARD TABLE OF bapi_epm_bp_contact.\n\n    CALL FUNCTION 'BAPI_EPM_BP_GET_LIST'\n      TABLES\n        bpheaderdata  = bpheaderdata\n        bpcontactdata = bpcontactdata.\n\n    LOOP AT bpheaderdata ASSIGNING FIELD-SYMBOL(\u003cfs_bp_head\u003e).\n      APPEND INITIAL LINE TO et_entityset ASSIGNING FIELD-SYMBOL(\u003cfs_entity\u003e).\n      MOVE-CORRESPONDING \u003cfs_bp_head\u003e TO \u003cfs_entity\u003e.\n      \u003cfs_entity\u003e-date_of_birth = sy-datum.\n    ENDLOOP.\n\n  ENDMETHOD.\n  \n  METHOD products_get_entity.\n    DATA: lt_products         TYPE sepm_gws_product_header_t,\n          lt_product_id_range TYPE sepm_gws_product_id_range_t.\n\n    READ TABLE it_key_tab ASSIGNING FIELD-SYMBOL(\u003cfs_key\u003e) INDEX 1.\n    IF \u003cfs_key\u003e IS ASSIGNED.\n      APPEND INITIAL LINE TO lt_product_id_range\n        ASSIGNING FIELD-SYMBOL(\u003cfs_product_id_range\u003e).\n\n      \u003cfs_product_id_range\u003e-option = 'EQ'.\n      \u003cfs_product_id_range\u003e-sign = 'I'.\n      \u003cfs_product_id_range\u003e-low = \u003cfs_key\u003e-value.\n\n      CALL FUNCTION 'SEPM_GWS_PRODUCTS_GET'\n        EXPORTING\n          iv_supply_picture   = abap_true\n          it_product_id_range = lt_product_id_range\n        IMPORTING\n          et_product_list     = lt_products.\n      READ TABLE lt_products ASSIGNING FIELD-SYMBOL(\u003cfs_product\u003e) INDEX 1.\n      MOVE-CORRESPONDING \u003cfs_product\u003e TO  er_entity.\n    ENDIF.\n  ENDMETHOD.\n\nENDCLASS.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregorwolf%2Ffiorielementsdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregorwolf%2Ffiorielementsdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregorwolf%2Ffiorielementsdemo/lists"}