Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BDC Execution User

Former Member
0 Likes
951

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

1 ACCEPTED SOLUTION
Read only

andreas_mann3
Active Contributor
0 Likes
875

^hi,

try to change user of bgr00-usnam

A.

5 REPLIES 5
Read only

andreas_mann3
Active Contributor
0 Likes
876

^hi,

try to change user of bgr00-usnam

A.

Read only

0 Likes
875

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

Read only

0 Likes
875

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.

Read only

Former Member
0 Likes
875

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.

Read only

0 Likes
875

Thank you Siarhei, I will look into trying it this way.