PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 12/02/2013 4:03 PM by  Marsha DeMaria
Translate USERNAME To A Login ID
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Garth Gerwing
Solution/Integration Architect
Workers Compensation Board of Manitoba
Basic Member
(43 points)
Basic Member
Posts:27


Send Message:

--
02/05/2013 11:13 AM
    If anyone has some experience with this - would really appreciate some feedback.

    We are on Lawson 9 - Windows Platform - Financials(AR)

    In incidences where a given entry screen does not support inputting an overt Lawson "Operator" (AROPTR) - Lawson will write a windows-based ID to the USERNAME field(s).  EXAMPLE: Payment Batch/Header - ARPYMNTHDR.OPR_CODE  (NT00000023)

    This appears to be a Lawson/Windows identifier - as in looking at tables in GEN (R_USER.USERNAME, QUEUEDJOB.USERNAME, USER_INFO.USERNAME, etc.) all reference this value.

    I cannot, however, find any data (db tables) where I can rationalize this ID to a given user's login name. I want to be able to reference a table via this "USERNAME" to derive the user login ID.  NOTE: I have seen some references to a GEN_DB table of "USER" - but it is either not resident on my platform, or I can't see it for some reason.  Have also seen this USERNAME value reference as an "RMID" (Resource Management ID)

    Appreciate your time in this matter.
    Greg Moeller
    Private
    Private
    Veteran Member
    (3873 points)
    Veteran Member
    Posts:1377


    Send Message:

    --
    02/05/2013 11:29 AM
    John Henley
    Private
    Private
    Senior Member
    (9563 points)
    Senior Member
    Posts:3205


    Send Message:

    --
    Marsha DeMaria
    Senior Applications Developer
    Denver Public Schools
    Basic Member
    (14 points)
    Basic Member
    Posts:6


    Send Message:

    --
    12/02/2013 4:03 PM
    900-GET-USER-DISPLAY-NAME can be used to translate the NT user id to the Lawson user id, such as converting NT00000012 to johndoe.  You  would need to move the NT id to the WS-USER-DBUIDKEY variable and then perform the call. 

         MOVE CRT-JOB-USER           TO WS-USER-DBUIDKEY.
         PERFORM 900-GET-USER-DISPLAY-NAME.

    The result is WS-USER-DISPLAY-NAME.
    You are not authorized to post a reply.