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 for Validation

Former Member
0 Likes
5,722

Hi Abapers,

Hi,

in Tcode BBG0 i try to create a validation (an error message) that limit the choice for users regarding a VAT code.

more explanation : when a user post a document (Tcode : FB01) with a treasury account : "511120" he must choose between two vat code : "V0" or "V4".

as result every cost account must be posted with this vat code : V0 or V4 when it is credited by 511120. otherwise the error message is displayed.

so i entered this :

Prerequisite : BSEG-HKONT = '511120'

Check : ( BSEG-MWSKZ = 'V0' ) OR ( BSEG-MWSKZ = 'V4' )

the error message is displayed if the prerequisite is met and if check is not fulfilled.

in the <b>ERP Financials Forum</b> they advise me to make a user exit for this problem.

so how to create a user exit for this transaction : GGB0 (please iam not a developper).

more details about my problem :

i hope your help

regards

Message was edited by:

jehade el aoumari

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,206

Hi jehade,

I have just finished working on adding a user exit in a validation so I would like to share this with you.

In summary:

a. Create a custom copy of the RGGBR000 module pool for validations

b. Declare the newly created ZRGGBR00 in GCX2

c. Modify the ZRGGBR00 to create a user exit procedure i.e. U100.

d. When creating the validation in OB28, you should be able to see the newly created procedure and use it in the Check section.

<a href="http://abapdeveloper.blogspot.com/2007/03/faq-about-validations-and-substitutions.html">http://abapdeveloper.blogspot.com/2007/03/faq-about-validations-and-substitutions.html</a>

<a href="http://abapdeveloper.blogspot.com/2007/03/faq-about-validations-and-substitutions_28.html">http://abapdeveloper.blogspot.com/2007/03/faq-about-validations-and-substitutions_28.html</a>

<a href="http://abapdeveloper.blogspot.com/2007/03/faq-about-validations-and-substitutions_1306.html">http://abapdeveloper.blogspot.com/2007/03/faq-about-validations-and-substitutions_1306.html</a>

Hope this helps.

Regards,

Oscean Tortona

4 REPLIES 4
Read only

JozsefSzikszai
Active Contributor
0 Likes
2,206

hi,

ZGGBR000 is the program where you can add your routine, pls. ask help from developer, he has to have a look, how the other routines look in this program and he has to build something similar. When it is ready, you can call this exit from GGB0.

ec

Read only

0 Likes
2,206

think you Eric, i'll let you know.

regards

Read only

0 Likes
2,206

Hi,

Check this Post.

It has the details which might be helpful for the developer.

Regards,

Abhishek

Read only

Former Member
0 Likes
2,207

Hi jehade,

I have just finished working on adding a user exit in a validation so I would like to share this with you.

In summary:

a. Create a custom copy of the RGGBR000 module pool for validations

b. Declare the newly created ZRGGBR00 in GCX2

c. Modify the ZRGGBR00 to create a user exit procedure i.e. U100.

d. When creating the validation in OB28, you should be able to see the newly created procedure and use it in the Check section.

<a href="http://abapdeveloper.blogspot.com/2007/03/faq-about-validations-and-substitutions.html">http://abapdeveloper.blogspot.com/2007/03/faq-about-validations-and-substitutions.html</a>

<a href="http://abapdeveloper.blogspot.com/2007/03/faq-about-validations-and-substitutions_28.html">http://abapdeveloper.blogspot.com/2007/03/faq-about-validations-and-substitutions_28.html</a>

<a href="http://abapdeveloper.blogspot.com/2007/03/faq-about-validations-and-substitutions_1306.html">http://abapdeveloper.blogspot.com/2007/03/faq-about-validations-and-substitutions_1306.html</a>

Hope this helps.

Regards,

Oscean Tortona