cancel
Showing results for 
Search instead for 
Did you mean: 

Mandatory input field check for a tab of a view

Former Member
0 Kudos

Hi Experts,

I am having a view having 3 tabs. I need to do mandatory input field check for a specific Payment tab of

the view. While i am using cl_wd_dynamic_tool=>check_mandatory_attr_on_view the program checks for all

mandatory input of the view. But i want to restrict the program to do mandatory input field check for th ePayment tab.

Please help.

Thanks in advance.

Nikita

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Nikitha,

Try by checking for that input field as mandatory and check it will go to that tab or not.

You can do like this also, you use REPORT_ATTRIBUTE_ERROR_MESSAGE for that input field

and raise error message it is initial and check. might it helps.

Cheers,

Kris.

Former Member
0 Kudos

Thanks Kris.

But by using that i will be able to display error message for only 1 mandatory input field at a time.

While i am having 2 mandatory input fields.

Regards,

Nikita

Former Member
0 Kudos

Hi,

use the same concept for another input field also,

use multiple if condition, if you want to check in multiple action means create the logic inside of method then reuse the method.

e.g

create a method inside of view / component controller method tab->create a method copy and paste the same logic inside of this

call the method where you want there.

if attribute is not initial.

Report_attribute error.

endform.

n times you want.

Regards,

Srini.

Former Member
0 Kudos

Thanks a lot

Answers (0)