cancel
Showing results for 
Search instead for 
Did you mean: 

Testing UGR in Dynamic Actions

Former Member
0 Kudos

Hi SAP Gurus!

I need to test the UGR parameter of the user that is performing a dynamic action, f.e. I want to perform the dynamic INS of an IT only if UGR <> '90'.

Can I do this without using features?

Thank you very much, regards.

Stefano

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can try calling a function (line with F indicator) and check the current user UGR in there, then return the result of your check in a field of RP50D.

For example

F CHECK_UGR(Z_PROGRAM)

P RP50D-FLAG1='X'

I INS ....

Answers (3)

Answers (3)

Former Member
0 Kudos

It works, thank you Efi!

Edited by: Stefano Milani on Jan 30, 2008 5:00 PM

Former Member
0 Kudos

Ok, thanks!

Actually I'm trying to have the value of UGR in field RP50D-FIELD1, so I can test it directly.

I'll let you know if this works well!

Former Member
0 Kudos

Thank you, I was just looking before this idea in fact...

The problem is that I used RP50D-FLAG field yet.

Maybe I can use RP50D-DATE2, using some kind of date I'm sure will be not used... It brings some risks, but...

Any other idea?

Former Member
0 Kudos

If you used FLAG1 in another dynamic action you can ask your ABAPer to clear the field in the begining of the form, and then calculate it again.

Alternatively, you can enhance RP50D and add your own fields, you can even have UGR.