‎2013 Jun 26 8:01 AM
hi all
i hav an issue here that is in fb60 transaction we have one field housebank(bseg-hbkid) .we have to restrict this field to enter relavent house banks by using user exit . when we click save button. for this the authorization object provided by functional .but i am not able to find the correct user exit . i found some user exits but when i click on save the document has been posting to datbase table.
‎2013 Jun 26 9:33 AM
‎2013 Jun 26 10:20 AM
‎2013 Jun 26 12:02 PM
Hi Vaman,
The include is part of Function EXIT_SAPLF051_002 and it won't work for authorizations I suppose.
‎2013 Jun 26 11:47 AM
‎2013 Jun 26 12:06 PM
Hi Santh,
Create a FI validation (Transaction OB28) there create the authority-check.
http://help.sap.com/saphelp_47x200/helpdata/en/5b/d231a843c611d182b30000e829fbfe/content.htm
For more details
- Read [Note 48121 - User Exits in Validations/Substitutions]
‎2013 Jun 28 10:43 AM
‎2013 Jun 27 6:52 AM
‎2013 Jun 28 10:35 AM
I have used user exit "SAPLF051" Function EXIT_SAPLF051_002 ; ZXF09U05. and I am able to validate document ;
Please check below mention code .
IF sy-tcode = 'FB60'.
DATA : gwa_vbseg TYPE bseg
loop t_vbseg[] into gwa_vbseg.
"validate gwa_vbseg-hbkid for required value, and raise error or warning.
endloop.
endif.
‎2013 Jun 28 11:56 AM
In this case the error message will lock the entire screen and since the exit does not has a block for processing it is not guaranteed that it will not post.
A substitution rule is the best solution but if it works for you very well.