Validation Rule for Accounting Document type
I have an requirement to block certain accounting doc type to get vendor line item post in that. For that I tried to block direct through OBA7 but not be able to also can't delete number range as it is shared by another doc type. My last option is Validation rule but i never work on this ,so any suggest how to create validation rule " To Block Accounting Doc type SO THAT THERE WILL NOT BE ANY line item posting occur in that doc type.
ok sure. OB28 callpoint 1. Create a step under this callpoint.
1) Prerequisite is as follows: note XXXX is your company code and ZZ is your doc type.
BKPF-BUKRS = 'XXXX' AND
BKPF-BLART = 'ZZ'
2) Then you need to enter the check. Here you can just put FALSE.
3) The last part is to create your message. Message type E so they get an error and then create a message number in the class that you choose and give it a description:
Document Type 'ZZ' is not allowed
Save it and wah lah!
Let me know how it goes.