Application Development 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: 

I need an exit, badi or substitution rule

albertnunes
Discoverer
0 Kudos
650

I need an exit, badi or substitution rule that at the time of creating the invoice (vf01), during the creation of the accounting document (fb01) validates the field bkpf-budat

1 ACCEPTED SOLUTION

Svetlana73
Product and Topic Expert
Product and Topic Expert
0 Kudos
380

Hello,

The best is to go with the SAP standard solution, the FI validation ( code GGB0) to validate the required field bkpf-budat.

Create a new validation via GGB0 and:

-> list the prerequisites for the check: BUKRS ( Company code) , GL accounts set if you need ( GS03) , and the business transaction for the Accounting documents when billing is created and released to Accounting ( check an FI document header to identify the business transaction).

- Check the filed bkpf-budat if .... ( your rule)

- Create a new Message ( E for Error to stop the posting W for Warning) to be generated if the prerequisites are met.

2 REPLIES 2

Svetlana73
Product and Topic Expert
Product and Topic Expert
0 Kudos
381

Hello,

The best is to go with the SAP standard solution, the FI validation ( code GGB0) to validate the required field bkpf-budat.

Create a new validation via GGB0 and:

-> list the prerequisites for the check: BUKRS ( Company code) , GL accounts set if you need ( GS03) , and the business transaction for the Accounting documents when billing is created and released to Accounting ( check an FI document header to identify the business transaction).

- Check the filed bkpf-budat if .... ( your rule)

- Create a new Message ( E for Error to stop the posting W for Warning) to be generated if the prerequisites are met.

380

Hello, Svetlana Yancheva

thank you very much for the solution, I will go this way