cancel
Showing results for 
Search instead for 
Did you mean: 

Navigation has to be terminated when validation is failed?

Former Member
0 Kudos

Hi Gurus,

I have a requirement where in which drop down field has six values (which is populated from R/3 using adaptive RFC).

Now user wants to block the last three fields (not hide) so that User can see the fields in the drop down but they cannot amend the field as their choice .

Now I have noted the index value of the subjected codes which needs to be in display state.

Indexes are 3,4,5

So I have written the code as

index = wdContext.currentT505NElement().node().getLeadSelection();

if (index =3 || index = 4 || index =5){

wdComponentAPI.getMessageManager().reportException("You cannot amend this code",true);

}

It Raises the error message but still it allows the user to proceed further ? but it shouldn't allow the user to proceed further if they amend the above said codes(3,4,5)

Can you guys please provide the code for the above requirement.

I will surely award higher points for the valuable inputs

Thanks in Advance,

Dharani

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Dharani,

I think you posted in the wrong forum. To get better and quick attention of Experts, think you need to post it in ABAP development.

Shaji