‎2007 Jan 02 2:49 PM
Greetings all and Happy New Year-
I am aware that when calling a BDC Session you can specify a particular user so that authorizations will be performed as that particular user. Is it possible to specify a user to execute the BDC?
My example is that we are calling a function module from a system external to SAP that will update distribution line items for an accounting document using transaction FBV2. It does this wonderfully, but in CDHDR it records the user as our RFC user, not the user that we are passing in for the Authorization checks.
I'd like CDHDR to record the user we are passing in. Is this possible? Can anyone give me a general direction on how to do this?
Thank you,
Andy
‎2007 Jan 02 2:59 PM
‎2007 Jan 02 2:59 PM
‎2007 Jan 02 4:06 PM
Andreas-
Thank you for the reply. I'm not sure when to change this field? Is it a field I'd have access to during the bdc session, or is this something I'd have to change prior to the call transaction?
Any specifics you can provide would be appreciated.
Thank you,
Andy
‎2007 Jan 02 4:30 PM
I am using BDC_OPEN_GROUP and I believe that is where BGR00-USNAM gets set and I am passing in the appropriate user.
That only appears to be using the username that I'm passing in to perform auth checks though, and still isn't saving the work as if that were the user running the program. Could I be doing something wrong, or does implementing it this way not have the same end effect you describe?
Thanks.
‎2007 Jan 02 8:27 PM
I believe you can create BDC session and do not process it immediately but start a job to process it in batch, the job can be started with required username.
In this case your changes will be logged with required ID.
‎2007 Jan 02 9:45 PM