Quantcast
Channel: SCN : Popular Discussions - SAP Business Client
Viewing all articles
Browse latest Browse all 1327

PFCG URL using SSM_VAR with two question marks truncating

$
0
0

HI All

 

I have a URL within the PFCG menu built suing variables in SSM_VAR. The goal of this is URL is to SSO into Ariba via way of getting SAML ticket from IdP. Within the URL there are some parameters and question marks "?"

 

 

1 PFCG Parameter.PNG

 

2 SSM_VAR values.PNG

The ARIBA_SSO_URL and the IDM_AR_RD parameter both have a questionmark each

 

 

If I launch the URL parameter directly from PFCG (right click the node and choose execute) it opens up in the browser and is calculated properly. However, if launching via way of NWBC GUI or NWBC HTML the URL is truncated with the middle part between the two questions marks removed.

 

3 Incorrect URL.PNG

above is the truncated URL (hostname and Ariba environment/realm have been blanked out). The middle sections between the two questions marks have been excluded. As mentioned, if launched from PFCG it calculates it properly

4 correct URL.PNG

 

 

Disclaimer: I'm at best a citizen programmer who just spent a while pressing F5 in debug mode. This is what i discovered:

 

Program: SAPLPRGN_URL_GENERATION

 

5 generated URL.PNG

The full URL is calculated after looping though the SSM_VAR parameter values

 

The code then continues through checking for "?"

 

    SPLIT url AT `?` INTO url query.

* merge url and query?string paramaters
IF query IS INITIAL.
query
= query_string.
ELSEIF query_string IS NOT INITIAL.
CONCATENATE query `&` query_string INTO query.
ENDIF.

 

6 code split 1.PNG

 

But it then splits a second time

 

7 code split 2.PNG

 

Finally it concatenates the left side of the FIRST split with the right side of the SECOND split... and there goes a large chunk of the URL

 

8 rejoin.PNG

 

My end result is the incomplete URL as

 

CONCATENATE - URL "?" QUERY

 

If I don't use SSM_VAR or only have one "?" in the parameters the code will work fine.

 

My questions

1. Is there a limit to use of SSM_VAR for for NWBC URLs in PFCG menu?

2. Is there a different way I should define the URL

3. Am I missing something obvious or time to raise incident with SAP (I attempted to search Marketplace and Google/SCN)

 

Appreciate any thoughts

 

Regards

Colleen


Viewing all articles
Browse latest Browse all 1327

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>