09-09-2014 3:49 PM
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
09-09-2014 3:51 PM
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
09-09-2014 3:58 PM
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
09-09-2014 4:04 PM
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)
09-09-2014 4:04 PM
Hi Sanjana,
Can you please elaborate your requirement.
Regards,
Ankit
09-09-2014 4:11 PM
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
09-09-2014 4:16 PM
Hi Sanjana,
Have you tried looking to AUTHORITY_CHECK function module.
Regards,
Ankit
09-09-2014 4:22 PM
We want to submit with user ids who are having correct access,
And those ids will be maintained in config table.
Regards,
Sanjana
09-09-2014 4:53 PM
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.
09-09-2014 5:07 PM
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
09-09-2014 5:35 PM
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