cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

user Exit for FB02

Mahil
Participant
0 Likes
467

Hello Everyone,

Kindly provide the user exit or BAdI for transaction FB02.
Our requirement is to restrict editing of the Payment Block key (ZLSPR) field. Only authorized or specific users should be allowed to make changes to this field.

Advance Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

RaymondGiuseppi
Active Contributor
0 Likes

Two suggestions

  • Use  BTE 00001136 to prevent change of the field when not allowed
  • Use an exit in validation rule to perform authority checl when the field is changed (delta between BSEG-ZLSPR in memory and database) 
    You should also check transaction code FB09 as well as FB02 in the rule prerequisite

 

Sijin_Chandran
Active Contributor
0 Likes

Kindly check the Validations option of SAP FI for this.

Mahil
Participant
0 Likes
Hi sir, my validation not working. kindly guide me sir
Sijin_Chandran
Active Contributor
0 Likes
Without much Information how can someone help you on this? Please put up the details what you did and what error you are getting.
Mahil
Participant
0 Likes
Hello Sir, As per the requirement, users should not be allowed to change the payment block key to ‘V’ in FB02, except for the authorized user USER01. I have configured this restriction in GGB0 under: Financial Accounting → Line Item → Validation. The prerequisite is set as: BSEG-ZLSPR = 'V' . The check is defined as: SYST-TCODE = 'FB02' AND SYST-UNAME = 'USER01'. However, the validation is not working as expected. Currently, all users are still able to change the payment block key to ‘V’, which should not happen. Kindly check and advise on the correct approach to ensure that only USER01 is permitted to change the payment block key value to ‘V’. Thank you.
Sijin_Chandran
Active Contributor
0 Likes

Kindly debug or get it debugged and check why the Validations are not working. I guess your Pre-requisites and respective conditions are not aligned. You can keep Break-points inside FMs 'AC_DOCUMENT_CREATE' and 'FI_DOCUMENT_CHECK' for analyzing further.

Sijin_Chandran
Active Contributor
0 Likes
Try changing the condition SYST-UNAME = 'USER01' to SYST-UNAME NOT Equals to 'USER01'.