cancel
Showing results for 
Search instead for 
Did you mean: 

What are the possible ways to do validations in Web dynpro ABAP?

Former Member
0 Kudos

Hi All,

I want to know what are the possible ways to do validations in WD ABAP?

Which is the best practice? I would like to know about pop-ups? Can we show messages? Also If I want to get different colors in messages then how should I go about it? Kindly help me! Ponts will be rewarded

Cheers,

Darshna.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

for validation there are the methods of IF_WD_VALIDATION, and for messages, see <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/d8/2a934259a5cb6ae10000000a155106/frameset.htm">this</a>

Regards, Heidi

former_member515618
Active Participant
0 Kudos

Hi

The following are the hook up method provided by sap to do validations before an action is triggered.

1. WDDOBEFOREACTION : you can perform your own validations using this method. Raising an application message doesnt stop the process of the process and the action handler that is called is still executed. All we have to do is, capture a flag to identify an error has occured and use the same in subsequent processings.

2. WDDOBEFORENAVIGATION: This method is used to perform validation of those controller contexts that are required in the application but are not validated in the request cycle yet.

Answers (0)