Skip to Content

ByD: How to get the current URL in ABSL?

Hi,

Is it possible to get the current URL in ABSL code?

There is function Context.GetSystemURL() giving the URL of the current system only, but I would like to get the full URL. The thing is that I want to send an email with the link that the recipient can just open the work centre at the same point.

Thank you.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Aug 07, 2017 at 03:19 AM

    Hi Alekse,

    Try to manul full the URL, for example:

    var result : DataType::LANGUAGEINDEPENDENT_Text;
    result = Context.GetSystemURL() +
    "/sap/ap/ui/repository/SAP_UI/Runtime/StartPage.html?" +
    "app.component=%2fSAP_BYD_APPLICATION_UI%2fcrm%2fopp%2fopportunityfactsheeteco.QA.uicomponent&"+
    "app.inport=OpportunityRootOpenIn¶m.KeyList.Key=APC_S_BTD_ID%"+
    "24%EF%BB%BF%3C%3fxml%20version%3d%221.0%22%20encoding%3d%22utf-16%22%3f%3E%3Casx%3aabap%20xmlns%3aasx%3d%22"+
    "http%3a%2f%2fwww.sap.com%2fabapxml%22%20version%3d%221.0%22%3E%3Casx%3avalues%3E%3CPARA%3E%3CCONTROLLER%2f%3E%"+
    "3CSCHEME_ID%2f%3E%3CSCHEME_AGENCY_ID%2f%3E%3CCONTENT%3E"+
    OpportunityID.content.RemoveLeadingZeros() +
    "%3C%2fCONTENT%3E%3C%2fPARA%3E";

    Best Regards,

    Benny

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 10, 2017 at 08:55 AM

    Hi Alex,

    Please check out C4C admin guide, particulary section "Predetermining URLs for Direct Navigation" there is documented how URL determinations can be defined.

    Cheers,
    Uldis

    Add comment
    10|10000 characters needed characters exceeded