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

Passing Person login to SAP B1 as Parameter to Query

Hi

Can i pass the name of person loggin in to SAP B1 as paramter so he can see his records records

something like slpname='person login to SAP B1'

or any other way to achieve this ?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 10:15 PM

    The logged person's name is only available when you execute you query from within a SAP Form. You will not get the User Name if you run the query from Query Manager.

    SELECT U_NAME FROM OUSR WHERE Internal_K = $[USER\]

    FOR TESTING: Try to Save this query and link it to the Remarks column of a Sales Order and manually execute it by pressing shift+F2 and you can see the results

    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.