cancel
Showing results for 
Search instead for 
Did you mean: 

How to manage Input Checks in WDAbap

Former Member
0 Kudos

Hi, I have a webdynpro view which contains in the upper half some inputfields, which values are used in the bottom half to do various operations. They are very pretty like "selection parameters" in classical dynpros.

In time, various requests have made their intended behaviour to implement, from the simple to the unmanageable.

  • The inputfields should become enabled one at a time, top to bottom.

  • Each inputfield has its own help values, which are dependent of previous inputfields

  • Each inputfield has its own authorization object, which limits selection to only those allowed

  • The last two inputfields must consult a custom table to see if there are possible values given the previous inputfields

  • Lastly, a recent request was that when changing the value of a single inputfield, all inputfields below it have their value set to initial, and all but the next be set to "disabled"

Is there a simple way to do this kind of checks, without coding every single possible situation in the WDDOMODIFYVIEW method? It is inefficient to run, and long to code: every round-trip I have to rebuild the help values, check the auth, look if the user changed some values from before, etc...

Is there an equivalent in WebDynpro of the ABAP statement CHAIN.FIELD.ENDCHAIN. to help with dependencies ?

Thank you in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

First of all, WDDOMODIFYVIEW method is not the right choice for this.. You are not creating any screen element at runtime.

1: program OnEnter event of each input field and inside that, display input field just below it.

2: use OVS help which will do data selection based on previous field

3: In OVS you can check the authorization for each field.

Lastly, a recent request was that when changing the value of a single inputfield, all inputfields below it have their value set to initial, and all but the next be set to "disabled

This can be handled easity. Set the current state of fields as described above and open fields one by one.

Thanks

Vishal Kapoor

Former Member
0 Kudos

hi,

if i am not wrong your requirement is kind of cascading..

there is no predefined functions or mechanism as such in wda according to my knowldge ..for this u need to code methods in on selction action.

code to get all possible input vlaues if you are giving dropdown option for input fields into internal tables, place them in global level reuse the same set of values based on lead selection of input fields by altering .

Regards,

Kranthi.