You can use this service operation to get details for navigation link targets from launchpad Customizing in a format which is adjusted to a js-epcm-navigation and which can be triggered on the user interface.
This service operation has the return type NavTarget. You can use this operation to navigate to a target using JavaScript. The advantages are as follows:
URL: http://<server>:<port>/sap/opu/odata/UI2/LAUNCHPAD/ResolveLink?linkId='<LAUNCHPAD ID>'&businessParams='<BUSINESS PARAMETERS>'&shellType='<SHELL TYPE>'
Example: http://<server>:<port>/sap/opu/odata/UI2/LAUNCHPAD/ResolveLink?linkId='08HOME_AND09AREA_PAGE2080E0ED0A31991DDDBF8811D66FDE133F'&businessParams=''&shellType='STANDALONE'
To get the response in JSON format, add the URL parameter &$format=json.
Parameter Name | Type | Description |
---|---|---|
linkId | Edm.String |
Launchpad ID Example: '08HOME_AND09AREA_PAGE2080E0ED0A31991DDDBF8811D66FDE133F' Alternatively, the linkID can also be composed of the role, instance and application alias. Example: '09AEPM_DEMO0DEPM_APP_LINKS0010COPY_SALES_ORDER' In this example, the role is AEPM_DEMO, the instance is EPM_APP_LINKS, and the application alias is COPY_SALES_ORDER. |
businessParams | Edm.String | |
shellType | Edm.String |
The following values are supported:
If no shell type is set, the STANDALONE type is used. The STANDALONE shell type returns an absolute URL. |
The following example shows the structure of the data returned for shell type STANDALONE in JSON format:
{ "d": { "__metadata": { "uri": "http://<server>:<port>/sap/opu/odata/UI2/LAUNCHPAD/NavTargets('08HOME_AND09AREA_PAGE2080E0ED0A31991DDDBF8811D66FDE133F')", "type": "LAUNCHPAD.NavTarget" }, "Absolute": { "__metadata": { "type": "LAUNCHPAD.Absolute" }, "shellTitle": "Participation Overview", "windowFeatures": "", "historyMode": 0, "url": "http://www.sap.com?", "systemAlias": "" }, "Obn": { "__metadata": { "type": "LAUNCHPAD.Obn" }, "businessObject": "", "operation": "", "resolvingMode": "", "getParameters": "", "systemAlias": "" }, "linkId": "08HOME_AND09AREA_PAGE2080E0ED0A31991DDDBF8811D66FDE133F", "businessParams": "", "shellType": "STANDALONE", "launchInplace": "false", "shellHosted": "true", "shellVisibility": "MINIMAL", "applicationType": "URL", "applicationData": "", "applicationAlias": "", "postParameters": "" } }
The following example shows the structure of the data returned for shell type NWBC in JSON format:
{ "d": { "__metadata": { "uri": "http://vmw3815.wdf.sap.corp:50009/sap/opu/odata/UI2/LAUNCHPAD/NavTargets('08HOME_AND09AREA_PAGE2080E0ED0A31991DDDBF8811D66FDE133F')", "type": "LAUNCHPAD.NavTarget" }, "Absolute": { "__metadata": { "type": "LAUNCHPAD.Absolute" }, "shellTitle": "Participation Overview", "windowFeatures": "", "historyMode": 1, "url": "ROLES://portal_content/com.sap.pct/every_user/com.sap.pct.erp.common.bp_folder/com.sap.pct.erp.common.roles/com.sap.pct.erp.common.erp_common/com.sap.pct.erp.common.lpd_start_url?RequestMethod=GET&URLTemplate=http%3a%2f%2fwww.sap.com&sap-nwbc-is_suspend_scenario=", "systemAlias": "" }, "Obn": { "__metadata": { "type": "LAUNCHPAD.Obn" }, "businessObject": "", "operation": "", "resolvingMode": "", "getParameters": "", "systemAlias": "" }, "linkId": "08HOME_AND09AREA_PAGE2080E0ED0A31991DDDBF8811D66FDE133F", "businessParams": "", "shellType": "NWBC", "launchInplace": "false", "shellHosted": "true", "shellVisibility": "MINIMAL", "applicationType": "URL", "applicationData": "", "applicationAlias": "", "postParameters": "" } }
The following example shows the structure of the data returned for shell type PORTAL in JSON format:
{ "d": { "__metadata": { "uri": "http://vmw3815.wdf.sap.corp:50009/sap/opu/odata/UI2/LAUNCHPAD/NavTargets('08HOME_AND09AREA_PAGE2080E0ED0A31991DDDBF8811D66FDE133F')", "type": "LAUNCHPAD.NavTarget" }, "Absolute": { "__metadata": { "type": "LAUNCHPAD.Absolute" }, "shellTitle": "Participation Overview", "windowFeatures": "toolbar=no,resizable=yes", "historyMode": 1, "url": "ROLES://portal_content/com.sap.pct/every_user/com.sap.pct.erp.common.bp_folder/com.sap.pct.erp.common.roles/com.sap.pct.erp.common.erp_common/com.sap.pct.erp.common.lpd_start_url?RequestMethod=GET&URLTemplate=http%3a%2f%2fwww.sap.com", "systemAlias": "" }, "Obn": { "__metadata": { "type": "LAUNCHPAD.Obn" }, "businessObject": "", "operation": "", "resolvingMode": "", "getParameters": "", "systemAlias": "" }, "linkId": "08HOME_AND09AREA_PAGE2080E0ED0A31991DDDBF8811D66FDE133F", "businessParams": "", "shellType": "PORTAL", "launchInplace": "false", "shellHosted": "true", "shellVisibility": "MINIMAL", "applicationType": "URL", "applicationData": "", "applicationAlias": "", "postParameters": "" } }