cancel
Showing results for 
Search instead for 
Did you mean: 

Raising Custom error message during posting

Former Member
0 Kudos

Hi All,

I have a requirement , while vendor/customer posting (Say in FB01 one will be Vendor line item and other will be GL line item). If the user enters the GL line item first then it should throw an error and should not allow the user to post the document.

Please help me how to achieve this.

Regards,

SK

Accepted Solutions (1)

Accepted Solutions (1)

balajiradhika
Active Participant
0 Kudos

Hi,

You can achieve this through Validation. Create a validation in GGB0

Create Validation

prerequisite: Transaction code = (give the transaction code that you want) FB01 and Line Item = 001

Check: Posting Key= Vendor posting key or Customer posting key

Message: Enter Message type as E

Message number: 001 (for eg)

Message text: Entry allowed only for Vendors/ customers or what ever text ou want to give you can enter.

For message number and text goto SE91 and select the message class and then change

Select the next free number and enter the text.

Regards,

B. Radhika.

Answers (0)