Home » Developer & Programmer » Reports & Discoverer » Wrong client_info passes
Wrong client_info passes [message #173346] Mon, 22 May 2006 00:12 Go to next message
patelhemantg
Messages: 25
Registered: May 2006
Junior Member
Hi friends,

Information
----------------------------------------------------
=>Discoverer desktop edition version: 4.1.37.00.0
=>Oracle Apps version 11.5.5
=>Oracle DB version 8.1.7.4.0
----------------------------------------------------

1) Created a view in DB based on a single SELECT query which uses ........

NVL(ORG.OPERATING_UNIT,NVL(TO_NUMBER(DECODE(SUBSTRB(USERENV('CLIENT_INFO'),1,1),' ',NULL,SUBSTRB(USERENV('CLIENT_INFO'),1,10))),-99)) = NVL(TO_NUMBER(DECODE(SUBSTRB(USERENV('CLIENT_INFO'),1,1),' ',NULL,SUBSTRB(USERENV('CLIENT_INFO'),1,10))),-99)

......

2) Created a folder in business a area (e.g. BA1) which is having MO: Operating Unit profile option value 42.

3) Created a report based on this folder.

4) Assigned responsibility R1 to BA1 in discoevrer admin edition.

Now,

When USERA logs in discoverer => chooses R1 => result is correct (Here client_info shows 42 when querying v$session).

When USERB logs in discoverer => chooses R1 => result is INCORRECT (Here client_info shows 45 instead of 42 when querying v$session).

Hemant.
Re: Wrong client_info passes [message #173446 is a reply to message #173346] Mon, 22 May 2006 08:48 Go to previous messageGo to next message
skooman
Messages: 913
Registered: March 2005
Location: Netherlands
Senior Member
Hi Hermant,

What apps table are you querying?

Regards,
Sabine

PS upgrade to 4.1.48 if you can, recommended version of Discoverer for apps...

[Updated on: Mon, 22 May 2006 08:48]

Report message to a moderator

Re: Wrong client_info passes [message #173524 is a reply to message #173346] Mon, 22 May 2006 22:05 Go to previous messageGo to next message
patelhemantg
Messages: 25
Registered: May 2006
Junior Member
Here is it:

Seect ....

....

FROM fnd_user a,FND_USER_RESP_GROUPS b,FND_RESPONSIBILITY c,FND_RESPONSIBILITY_TL d, FND_PROFILE_OPTION_VALUES PRO, ORG_ORGANIZATION_DEFINITIONS ORG
WHERE a.user_id = b.user_id
AND b.RESPONSIBILITY_ID = c.RESPONSIBILITY_ID
AND b.RESPONSIBILITY_APPLICATION_ID = c.APPLICATION_ID
AND c.RESPONSIBILITY_ID = d.RESPONSIBILITY_ID
AND c.APPLICATION_ID = d.APPLICATION_ID
AND b.end_date IS NULL
AND a.end_date IS NULL
AND PRO.LEVEL_ID =10003
AND PRO.PROFILE_OPTION_ID=1991
AND PRO.LEVEL_VALUE=C.RESPONSIBILITY_ID
AND PRO.PROFILE_OPTION_VALUE=ORG.operating_unit
AND ORG.OPERATING_UNIT=ORG.ORGANIZATION_ID
AND NVL(ORG.operating_unit,NVL(TO_NUMBER(DECODE(SUBSTRB(USERENV('CLIENT_INFO'),1,1),' ',NULL,SUBSTRB(USERENV('CLIENT_INFO'),1,10))),-99)) = NVL(TO_NUMBER(DECODE(SUBSTRB(USERENV('CLIENT_INFO'),1,1),' ',NULL,SUBSTRB(USERENV('CLIENT_INFO'),1,10))),-99)

....

....

Hemant.

Re: Wrong client_info passes [message #173783 is a reply to message #173524] Wed, 24 May 2006 07:21 Go to previous messageGo to next message
patelhemantg
Messages: 25
Registered: May 2006
Junior Member
Where R U Skooman ?

Hemant.
Re: Wrong client_info passes [message #173963 is a reply to message #173783] Thu, 25 May 2006 07:09 Go to previous messageGo to next message
skooman
Messages: 913
Registered: March 2005
Location: Netherlands
Senior Member
Hi Hermant,

I won't be able to try the query before monday. It's a bank holiday where I live, so no access to any apps instance till monday...

But just from the look at it, I would expect something wrong in the configuration of apps. Because Discoverer isn't actually doing anything besides showing the results of the query.

Could you please check the configuration (like users, organizations, etc.)? If you can't find it, I'll have a look on monday!

Regards,
Sabine
Re: Wrong client_info passes [message #173964 is a reply to message #173963] Thu, 25 May 2006 07:12 Go to previous messageGo to next message
patelhemantg
Messages: 25
Registered: May 2006
Junior Member
Hi,

No problem.

We have checked almost all thing on applications level. Give it your hands.

You can contact me online at yahoo at hemant80p@yahoo.com

Have happy weekend.

Regards,
Hemant.
Re: Wrong client_info passes [message #174493 is a reply to message #173964] Mon, 29 May 2006 07:12 Go to previous messageGo to next message
skooman
Messages: 913
Registered: March 2005
Location: Netherlands
Senior Member
Hi Hermant,
See my reply at OTN forums.
Regards,
Sabine
Re: Wrong client_info passes [message #174496 is a reply to message #174493] Mon, 29 May 2006 07:15 Go to previous messageGo to next message
patelhemantg
Messages: 25
Registered: May 2006
Junior Member
Where exactly @ ?

Regards,
Hemant.
Re: Wrong client_info passes [message #174498 is a reply to message #174493] Mon, 29 May 2006 07:17 Go to previous messageGo to next message
patelhemantg
Messages: 25
Registered: May 2006
Junior Member
Ok...thanks.

Got it.

Regards,
Hemant.
Re: Wrong client_info passes [message #174509 is a reply to message #174496] Mon, 29 May 2006 07:35 Go to previous message
skooman
Messages: 913
Registered: March 2005
Location: Netherlands
Senior Member
http://forums.oracle.com/forums/thread.jspa?threadID=389858&tstart=0
Previous Topic: REP-1401: 'cf_sku_barcodeformula': Fatal PL/SQL error occurred.
Next Topic: Why is repeating frame pushing upwards?
Goto Forum:
  


Current Time: Sun Jun 30 12:01:14 CDT 2024