‎2006 Dec 26 12:05 PM
Hi ,
is there any function modules to check whether user is authorised to change the payment terms in sales order.If there is no fm then please tell me how to write the code for that.
‎2006 Dec 26 12:09 PM
YOu have to find the correct authorization object for Payment terms and use it in the fm: AUTHORITY_CHECK
Regards,
Ravi
‎2006 Dec 26 12:09 PM
YOu have to find the correct authorization object for Payment terms and use it in the fm: AUTHORITY_CHECK
Regards,
Ravi
‎2006 Dec 26 12:09 PM
u have to check <b>Authorization Objects</b> , check tcode Su22 for VA01.It will give list of objects.
if not , then u have to create a new object.
Regards
Prabhu
‎2006 Dec 26 12:10 PM
‎2006 Dec 26 12:14 PM
Hi
I don't believe because I think there's no authorization object to check the payment terms.
U should create an your own authorization object (trx SU20 and SU21), assign this object to user profile and then to check it in the user-exit:
AUTHORITY-CHECK OBJECT 'Z_ZTERM'
ID 'ZTERM' FIELD <FIELD>
ID 'ACTVT' FIELD '02'.
IF SY-SUBRC <> 0.
---------> Message
ENDIF.Max
‎2006 Dec 26 12:30 PM
in confg for authority check a object can be created and accordingly assign to users. So, the user who has authorization can see the payment blocks.
‎2006 Dec 26 12:31 PM
Hi shweta ..
i think it can be done using this.
AUTHORITY-CHECK OBJECT 'I_IWERK'
ID 'TCD' FIELD sy-tcode
ID 'IWERK' FIELD p_plant.
IF sy-subrc <> 0.
MESSAGE ..........
ENDIF.
‎2006 Dec 26 2:04 PM