cancel
Showing results for 
Search instead for 
Did you mean: 

current login user name on Crystal report 2011

former_member917522
Participant
0 Kudos
1,916

hi Expert

want to know about

how to show current SAP B1 login user name on Crystal report 2011

thanks

and Regards

Akshaya Raut

Accepted Solutions (1)

Accepted Solutions (1)

edy_simon
Active Contributor
0 Kudos

Hi Akshaya,

Can you follow this step and tell me what is your result ?

1. Start and login your SBO9 preferrably the 32 bit client.

2. Start your CR2011, create a new blank project. In the DataSource creation screen, just proceed without creating any connection.

3. On your empty CR designer, go to the parameter and create a new parameter as below :

4. Add your newly created parameter in the Page header section of your report.

5. In the Addin Menu, click on preview in SBO

6. In SBO, a blank parameter screen will show up. Just click on Ok.

7. My report give me this result :

Try and let me know what your result is.

Regards
Edy

former_member917522
Participant
0 Kudos

hello Sir

Its Working. thanks so much.

Regards

Akshaya Raut

yakoair1
Explorer
0 Kudos

Hello Dear everyone

Do any of you know howto achieve this same thing in hana and crystal reports?

Best Regards,

Gabriela

Answers (1)

Answers (1)

edy_simon
Active Contributor
0 Kudos

Hi Akshaya,

To get the  user name, add this as a parameter of type string :

printbyusername@

If your CR is a layout, you can also use : UserCode@ to get the user code.

Regards

Edy

former_member917522
Participant
0 Kudos

hello sir

thanks for reply

i already did that.its not working.if i insert this printbyusername@ parameter for that i have to show all user list from OUSR table for parameter selection.

but i want by to print current login user name.

please give me another solution.

Former Member
0 Kudos

Hi Akshaya,

The CurrentCEUserName grabs the current username from the credentials that are used when connecting to the Business Objects Repository Server.

edy_simon
Active Contributor
0 Kudos

Hi Akshaya,

Which SBO Version ?

I have just tried it on SBO882 PL8 + SBO9.0 both is working perfectly.

the parameter must be of type string.

Did you use preview in SAP Business One menu when running the report ?

Regards

Edy

former_member917522
Participant
0 Kudos

hello Sir

I have used SBO9.0 with Crystal report 2011.

i don't understand how to print current login user on Crystal report 2011.

edy_simon
Active Contributor
0 Kudos

Hi Akshaya,

The user name will only show up when you preview the report inside SBO,

You cannot preview it from crystal report designer.

Regards

Edy

former_member917522
Participant
0 Kudos

Hi Sir

ya correct ,

i want to show current log in user name  inside SBOB1 9.0

please give me solution for that how to do this.