Thursday, 27 December 2012

How to use FND_GLOBAL for SSWA jsp function

When you use FND_GLOBAL.USER_ID or FND_GLOBAL.RESP_ID for SSWA jsp function, it always returns -1.

To get the correct value of these functions you can use ICX_SEC.

procedure testing
IS
l_session boolean;
BEGIN
l_session := icx_sec.validateSession(c_update => FALSE);
htp.p('USER: ' || icx_sec.g_user_id );
htp.br;
htp.p('RESP: ' || icx_sec.g_responsibility_id );
END;

Results of launching the function I created referring to procedure testing is :

USER: 5008
RESP: 40398

No comments:

Post a Comment