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

Exit while saving the document in FB01

Former Member
0 Likes
2,626


Hi,

I have requirement where i need to validate the profit center value entered in FB01 tcode before saving. Can you please tell which user exit will be triggered while saving the document.

Thanks,

Spandana

3 REPLIES 3
Read only

Former Member
0 Likes
1,431

Hi Spandana,

You should work with your functional team to develop an FI validation rule in transaction GGB0. 

Jim

Read only

0 Likes
1,431

Thanks for your reply.

Actually while creating the document, I need to check profit center and cost center values. If both the values are mentioned then i have to blank out cost center value and should create the document only with profit center value. This needs to be checked before saving the document.

can you please tell, is this requirement cant be implemented with user exit? if this is not possible then how can i do this with validation rule as you mentioned above.

Read only

0 Likes
1,431

Hi Spandana,

The validation rule via GGB0 is the preferred approach over a user exit.  In most cases the functional team is responsible for developing these rules and ABAP is only needed in certain cases where ABAP coding is required.  In that case you develop an exit routine in a module pool that's assigned to the validations, then the functional team configures the rule to call your exit routine.

Refer to SAP help for more info: User Exits in Validations/Substitutions/Rules - Tools - SAP Library