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

Transaction Call

Former Member
0 Likes
510

Hello,

I'm doing transaction call, but I need to know if the user has permission to the transaction. How can I do this?

thank“

3 REPLIES 3
Read only

Former Member
0 Likes
466

hello.

check this as below:


*...Check if the user has authority to run the t/code
  CALL FUNCTION 'AUTHORITY_CHECK_TCODE'
    EXPORTING
      tcode  = lv_tcode
    EXCEPTIONS
      ok     = 0
      not_ok = 2
      OTHERS = 3.

  IF sy-subrc <> 0.
    MESSAGE e003(zv) WITH text-e01 sy-tcode.
  ENDIF.

lv_tcode is the transaction you want to call.

call transaction will never check authorizations hence use this FM before call transaction.

hope this helps,

ags.

Edited by: Agasti Kale on Jun 3, 2008 10:04 PM

Read only

Former Member
0 Likes
466

hey,

u should try nd use the following

CALL FUNCTION 'AUTHORITY_CHECK_TCODE'

EXPORTING

tcode = t_code

EXCEPTIONS

ok = 0

not_ok = 2

OTHERS = 3.

using this u can check on to the authorizations of the user fr running the transactions....

hope it helps .

take care

Read only

Former Member
0 Likes
466

Ok, Thank you for the information.....

Best Regards

L.Fernando