Skip to Content
author's profile photo Former Member
Former Member

Testing UGR in Dynamic Actions

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 02:55 PM

    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 ....

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 03:02 PM

    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?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 03:21 PM

    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!

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 04:00 PM

    It works, thank you Efi!

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.