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

BP Validation

TimMuchena
Participant
0 Likes
1,691

Hi all,

i am doing BP validations for BP type. Upon validating and there is and error, all screen fields are greyed out hence restricting the user to enter correct data. The only way now is to cancel the transaction and execute it again which is a bit tedious. Is there any way of preventing the fields from being greyed out.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,406

Hi Willard,

I'm assuming that you're using SAP gui, and doing the validations within a Z module, for transaction BP ?

In this case, if you encounter an error during the validation, donot raise the error using ABAP command MESSAGE. Instead, use the function module BUS_MESSAGE_STORE. This FM puts puts the error message into a container and the BP UI framework will display it on the screen AND then also keep the fields editable. In case the fields are greyed out when the error is thrown, just press 'ENTER' and that should make them editable again.

Directly using command MESSAGE does not return control back to the BP UI framework, and hence its unable to bring the fields into an editable form.

Hope this helps you.

Cheers,

Rishu.

3 REPLIES 3
Read only

Former Member
0 Likes
1,407

Hi Willard,

I'm assuming that you're using SAP gui, and doing the validations within a Z module, for transaction BP ?

In this case, if you encounter an error during the validation, donot raise the error using ABAP command MESSAGE. Instead, use the function module BUS_MESSAGE_STORE. This FM puts puts the error message into a container and the BP UI framework will display it on the screen AND then also keep the fields editable. In case the fields are greyed out when the error is thrown, just press 'ENTER' and that should make them editable again.

Directly using command MESSAGE does not return control back to the BP UI framework, and hence its unable to bring the fields into an editable form.

Hope this helps you.

Cheers,

Rishu.

Read only

TimMuchena
Participant
0 Likes
1,406

I am already using function module BUS_MESSAGE_STORE and even if i press ENTER after the error is displayed it still doesnt open up the fields for input.

Read only

0 Likes
1,406

Hi ,

Even I am facing same issue here, i am using bus_message_store, the BP screen is getting disabled after my message. please guide

ram