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

Pass uname into RFC FM

Hi,

In my OrgChart (3.0 SP2, SSO with Logon tickets) data retrieves from SAP under system user. Now I need to pass real user name into z-FM (to restrict some data retrieving), but call this FM under system user. Is that possible, to pass user name as input parameter? How?

Best regards,

Sergey Aksenov

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Mar 16, 2012 at 11:11 AM

    Sergey,

    Good question 😊

    I haven't tried this recently but previously you could reference fields in the user object (see data element UserPopulationInfo for the fields available).

    Format to reference the field was:

    [![CURRENTUSER.USERID]!]

    So you should be able to use this in your NakisaRFC config (OTFSchema) for example to pick up the user id of the current user and use it to drive the data extraction.

    If the above format doesn't work, try

    [![CURRENTUSER['USERID']]!]

    Does that help?

    Stephen

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 16, 2012 at 04:54 PM

    Hi Sergey,

    In your function module you need to declare SY-UNAME so that it uses the logged-in users user Id.

    Best regards,

    Luke

    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.