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

function modules

Former Member
0 Likes
850

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
823

YOu have to find the correct authorization object for Payment terms and use it in the fm: AUTHORITY_CHECK

Regards,

Ravi

7 REPLIES 7
Read only

Former Member
0 Likes
824

YOu have to find the correct authorization object for Payment terms and use it in the fm: AUTHORITY_CHECK

Regards,

Ravi

Read only

Former Member
0 Likes
823

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

Read only

Former Member
0 Likes
823

FM AUTHORITY_CHECK_TCODE or

SUSR_AUTHORITY_CHECK_S_TCODE

Read only

Former Member
0 Likes
823

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

Read only

Former Member
0 Likes
823

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.

Read only

Former Member
0 Likes
823

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.

Read only

Former Member
0 Likes
823

thanks to all