Post

Fiori: Construct FLP URLs Programmatically with CL_LSAPI_MANAGER

Learn how to programmatically construct Fiori Launchpad URLs with parameters from ABAP using CL_LSAPI_MANAGER.

Fiori: Construct FLP URLs Programmatically with CL_LSAPI_MANAGER

Need to launch a Fiori app from ABAP — or generate a dynamic FLP URL with parameters? Use CL_LSAPI_MANAGER.

Get an Instance

1
DATA(lo_lsapi) = cl_lsapi_manager=>get_instance( ).

Create an FLP App URL

1
2
3
4
5
6
7
8
DATA(lv_url) = cl_lsapi_manager=>create_flp_url(
    object       = 'MaintenanceObject'
    action       = 'listFunctionalLocStructure'
    system_alias = 'LOCAL'
    parameters   = VALUE #(
        ( name = 'DY_TPLNR' value = '1000-001' )
    )
).

Create URL with Multiple Parameters

1
2
3
4
5
6
7
8
DATA(lv_url) = cl_lsapi_manager=>create_flp_url(
    object     = 'SalesOrder'
    action     = 'display'
    parameters = VALUE #(
        ( name = 'VBELN'    value = '0000000042' )
        ( name = 'BUKRS'    value = '1000' )
    )
).
1
2
3
4
5
" In-place navigation
lo_lsapi->navigate( iv_url = lv_url ).

" Open in new window/tab
lo_lsapi->open_url( iv_url = lv_url ).

Common Use Cases

Use CaseApproach
Email with deep link to a Fiori appcreate_flp_url + append to email body
Launch Fiori from SAPGUI transactioncreate_flp_url + open_url
Workflow task linkscreate_flp_url with entity key parameters
QR code with Fiori linkcreate_flp_url → encode as QR

Finding Semantic Object and Action

In SAP Fiori Launchpad Designer → open any tile → the Semantic Object and Action are shown in the tile configuration.

This post is licensed under CC BY 4.0 by the author.