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: 

Error message in exit of fb60 Validations

Former Member
0 Kudos

Hi friends,

I have implemented one exit (F180A001-EXIT_SAPLF048_001) for fb60 vendor validation. My problem is,

I have to display error message when there is duplicate invoicing.

It is popping up error message, now when user clicks exit button in the popup it is coming out completely out of the transaction. so user as to reenter all values.

My requirement is, after displaying error message it should stay in transaction so that we can correct the entry instead of reentering all the information.

Friends please suggest me solution or clue.

Thanks & regards,

Sathish Kumar swamy

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi bro ....

may be you have that exit in the START-OF-SELECTION thats why it is behaving like that..

so better you use type 'I' or 'S' type.....

adding mor to it if you are doing any validation do it in AT SELECTION-SCREEN... dont do it in

START-OF-SELECTION

thanks

Edited by: Mohit Kumar on Feb 5, 2009 5:23 AM

Edited by: Mohit Kumar on Feb 5, 2009 5:23 AM

8 REPLIES 8

Former Member
0 Kudos

Hi Satish,

when the Error message triggers cursor automatically comes out of the program.

so instead you can use the Information message (I) or Status message (S)

ie Message SXXX(00) with "Your Message" .

so that cursor will be at the same position

hope it helps you.

Regards!

Edited by: Prasanth M on Feb 5, 2009 9:55 AM

0 Kudos

HI Prasanth,

Thanks for your answer, If I put S or I message type then if I press save document will be posted.

As per my requirement document should not be posted unless it is corrected.

Thanks & Regards

Sathish

Former Member
0 Kudos

hi bro ....

may be you have that exit in the START-OF-SELECTION thats why it is behaving like that..

so better you use type 'I' or 'S' type.....

adding mor to it if you are doing any validation do it in AT SELECTION-SCREEN... dont do it in

START-OF-SELECTION

thanks

Edited by: Mohit Kumar on Feb 5, 2009 5:23 AM

Edited by: Mohit Kumar on Feb 5, 2009 5:23 AM

Former Member
0 Kudos

Hi sathish kumar swamy ,

If you still want to enter the data after giving an error msg, just write the syntax like this

message 'some text' type 'E' display like 'S'.

Regards

Kiran

0 Kudos

HI,

I have tried this, But it is not working. still it terminating.

Thanks & regards,

Sathish

GauthamV
Active Contributor
0 Kudos

Hi,

try like this.



If sy-subrc < > 0.
MESSAGE SXXX(Zmsg) DISPLAY LIKE 'E'.
EXIT.
endif.

Former Member
0 Kudos

Hi Gautham,

Thanks for your answer.

I have tried what u have specified , but it also not working. Any other clue please.

Thanks,

Sathish

Former Member
0 Kudos

tahnks