CurrentCEUserName parameter in main report

currently we have been 'hardcoding' the values we will use for CurrentCEUserName. The problem the outside report (main report) has the hiearchy we are using for the subreport data ( no hierarchy but uses the hardcode id and scope type) The problem is there is no way to pass CurrentCEUserName to the stored procedure in the main report or is there?

Disclaimer: I haven't used Crystal Enterprise, so I've never been able to use that user name field.

If you need to pass a value from a subreport to the main report, that can be done using a shared variable. However, if you need to pass that to a SP that's used by the main report, I don't think you can do that. CR will probably execute the SP in the main report before any subreports.

Maybe someone else will be able to offer a solution. And if I'm wrong, hopefully someone else will correct me.

James I think you are correct. Honestly we are just trying to explore our options after I spent many hours already coding this to perfection but did not take this into consideration.

We basically have come to a crossroad we can have it in the main report but you can not pass it to a stored procedure in the main report. You can use it as a filter in the main report against the data returned in the record selection criteria for a stored procedure or using either a table or view and it will create dynamic sql which will be executed at the server.

the problem is we will probably have to push our select statements to the sub reports( gets our user base) or create views but a lot of how we get the user base is rooted in the use of functions which sql will not let us do I assume.

Crystal Reports: 5 Tests for Top Performance
It is complete, your masterpiece report. Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways.
…

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples).
Crystal Reports uses a two-pass reporting process to provide greater …

When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…