cancel
Showing results for 
Search instead for 
Did you mean: 

FPM - Check Mandatory Fields

vijay_ramarao
Explorer
0 Kudos

Hi,

Could you please let me know, how can I do the required fields check in FPM?

I can do this requirement in a simple webdynpro application as below:

lo_view_controller = wd_this->wd_get_api( ).

cl_wd_dynamic_tool=>check_mandatory_attr_on_view(

EXPORTING view_controller = lo_view_controller

IMPORTING messages = lt_messages ).

CHECK lt_messages[] IS INITIAL.

Please let me know how can I do the same in FPM?

Thanks,

Vijay.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

i have not seen any helper class which does this in FPM. You may have to rely on your own logic.

vijay_ramarao
Explorer
0 Kudos

Hi Baskran,

Thanks for your quick reply.

For those always visible and mandatory, I can write the validation. I have few dynamic fields, How can I validate them? Please suggest.

Thanks,

Vijay.

Former Member
0 Kudos

There is really no guideline about that. You have decided to go for Dynamic UI elements and you have to find a way to validate them that is the price you would pay for doing things in Dynamic programming. You might have to rely on the looping of your UI elements and see if it is state is mandatory and go for validation in a dynamic way. Requires lots of programming and understanding of UI hierarchy.

vijay_ramarao
Explorer
0 Kudos

Thanks for your suggestion Bhaskaran. I will close the thread and assign you the points.

Answers (0)