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

user exit issue

Former Member
0 Likes
1,463

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.

9 REPLIES 9
Read only

Former Member
0 Likes
1,271

This message was moderated.

Read only

Former Member
0 Likes
1,271

Please write code in ZXF09U05

Read only

0 Likes
1,271

Hi Vaman,

The include is part of Function EXIT_SAPLF051_002 and it won't work for authorizations I suppose.

Read only

Former Member
0 Likes
1,271

Hi,

  Use Substitutions Exit or BTE .

Read only

Former Member
0 Likes
1,271

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]

Read only

0 Likes
1,271

This message was moderated.

Read only

Former Member
0 Likes
1,271

This message was moderated.

Read only

Former Member
0 Likes
1,271

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.

Read only

0 Likes
1,271

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.