Skip to Content
avatar image
Former Member

authorizations

hi,

I need to give authorizations to my bdc program to two users to execute that program. So can i know from u the steps to use authorizations.

Thank you,

regards

raghu

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 02, 2008 at 06:47 AM

    Hi,

    If you are using BDC or BAPI it will take care of authorizations. If the user is not authorized, error will be thrown.

    But still if you want to check for authorization you refer the below example.

    AUTHORITY-CHECK OBJECT 'ZCB_FI_CBS'

    ID 'COMP_CODE' FIELD p_bukrs

    ID 'ACTVT' FIELD '03'.

    IF sy-subrc <> 0.

    MESSAGE e014(zcbs) WITH 'No Authorization for Company Code'(m02)

    p_bukrs.

    ENDIF.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 02, 2008 at 06:45 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 02, 2008 at 06:57 AM

    Hi

    Probably the easier way is create a Z-Transaction to run your BDC program and assign that new transaction to profile of the users (trx PFCG).

    Max

    Add comment
    10|10000 characters needed characters exceeded