Application Development 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: 

BDC : CALL Transaction with specific user ID

sanjana_lingras
Active Participant
0 Kudos

Hi Experts,

I am facing one issue with BDC call transaction. Can we use CALL TRANSACTION method with specific user ID ?

e.g. CALL TRANSACTION "VA01" with user "ABC".

Is it possible?

Regards,

Sanjana

10 REPLIES 10

KumAnkit
Participant
0 Kudos

You can default the code to get executed by if condition.

Eg:

if sy-uname = 'ABC'.

your BDC code.

Endif.

this will be specific to that particular user id.

Regards,

Ankit

0 Kudos

Hi

I want to execute the transaction using particular user id, even if different user tries to execute it should be executed with default user only.

Regards,

Sanjana

Former Member
0 Kudos

Hi,

Maybe you can trick this by using RFC.

I don't think you can call a call transaction with RFC, but you sure can do it from a function module.

You might be then doing the following:

* Create enable remoted function module with your whole call transaction in it

* Create an RFC(ABAP connection in sm59) on the wanted environement (same as the program for you)

* Fill your RFC with the specific user you want to use (with or without its password as you prefer regarding the security policy of your system)

KumAnkit
Participant
0 Kudos

Hi Sanjana,

Can you please elaborate your requirement.

Regards,

Ankit

0 Kudos

Hi All,

I want to call transaction using few default user IDs only. List of valid users will be maintained in config table and BDC should be called with those users only.

This is custom transaction.

Regards,

Sanjana

0 Kudos

Hi Sanjana,

Have you tried looking to AUTHORITY_CHECK function module.

Regards,

Ankit

0 Kudos

We want to submit with user ids who are having correct access,

And those ids will be maintained in config table.

Regards,

Sanjana

Former Member
0 Kudos

Hi,
Other possibilities do:
- execute you CALL TRANSACTION in a background job step with other user name.

- SUBMIT <program>
WITH..
USER <another user>
VIA JOB <job name>
AND RETURN.

Regards,

Diego.

KumAnkit
Participant
0 Kudos

Hi Sanjana,

you can write a select statement on the customizing table and check for all the user and if your sy-subrc is returned initial then you can implement your if condition.

Regards,

Ankit

0 Kudos

Hi

I do not want to restrict execution.even user ABC is executing;it should get executed by default user.

Can we call transaction with default user.

Regards

Sanjana