Skip to Content
0
Former Member
Nov 28, 2012 at 01:40 PM

Problem in raising error message during posting accounting document

633 Views

Hi All,

I had a scenario where when user is posted with line items

whose bussiness area with 3 series along with any other series it had to display an error message during saving the document.i.e through FB01 or some other transaction.

if line items with bussiness area contains only 3 series it had to allow the posting and line items with bussiness area without 3 series also will allow for posting.

for eg line items having bussiness are like this: 4010

1010

3010

5010

here the line item contains bussiness area 3010 so it wont allow for posting the document.

I tried from GGB0 validation but my problem is i need to raise an error message .

As per note 842318 we should not raise an error messages.

and also i tried the user exit EXIT_SAPLF048_001 also.

But the problem is when i write the error message it is coming out of the transaction.

I need to be stay in the same transaction with the error message dislpayed so that user can correct the data.

Any clues help me...

Regards

Ram