2023 Mar 23 4:31 PM
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
2023 Mar 23 4:57 PM
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.
2023 Mar 23 4:57 PM
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.
2023 Mar 24 2:45 AM
Hello, Svetlana Yancheva
thank you very much for the solution, I will go this way