Application Development and Automation 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: 
Read only

Clear Error Messages

Former Member
0 Likes
1,236

Hello,

I'm doing checks in Transaction BP and dispalying relevant messages. The user can move across differnt tabs and do checks by clicking on the check button. The problem is that if a save button is clicked before clearing all error messages, the BP application is locked and the user cannot move to the relevant tab related to the Error message.

Below is a sample of my code.

CALL FUNCTION 'BUS_MESSAGE_STORE'

EXPORTING

arbgb = 'Z1'

msgty = 'E'

txtnr = 000

cancel = ''

msgv1 = 'Enter Domicilium Address'

tbfld_strg = 'GT_ADDR_NEW-ADDSC'

flag_coll_end = 'X'

repeat_show = '1'.

Your assistance will be highly appreciated.

Thanks

Chris.

1 REPLY 1
Read only

Former Member
699

Solved it on my own.

FM 'BUS_MESSAGE_STATUS_SET' has to be called before callling FM 'BUS_MESSAGE_STORE'.

CALL FUNCTION 'BUS_MESSAGE_STATUS_SET'

EXPORTING

msg_coll_status = '2'.

Parameter msg_coll_status can be:-

0 = Print Out Immediately

1 = Data Screen - Subscreen Container Processed in BDT Classic

2 = Cross-View Checks (DCHCK) + Popup

4 = Collection of Messages (DI, BDT in Subscreen)

5 = As in 1, but Without SET SCREEN

6 = BDT in Subscreen with Popup