on 07-13-2012 9:32 AM
hi,
we have an GAF with a lot of steps. On the steps are only generic UIBBS(Feeder). All UIBB will be controlled by APPC and the data sharing is implement by singleton classes.
From step to step we want to validate the currently displayed data. for example from step 1 to step 2 only the mandatory fields of step 1.
Now we are not sure, where we can check the input fields.
Which possibilities are there ?
thanks
Hi Fritz,
When you move from step1 to step2,
1) flush() & Process_event() methods of all feeder classes in Step1 will get triggered.
2) Capture the modified data of UIBB in flush() method and maintain in global variable of feeder class or in Singleton class. In process_event, you can write the logic to validate the inputs.
CASE io_event->mv_event_id.
WHEN cl_fpm_event=>gc_event_next_step.
To validate the mandatory fields of UIBB, predefined functionality provided by FPM itself. To enable this functionality,
1) In get_definition() method, while filling field catalog, set mandatory property of the attribute to abap_true('X').
2) In UIBB Configuration, Global settings ->check the option Check Mandatory check box.
Regards, Venkat.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sudhakar,
thanks for your answer.
The checks in the Feeder are fine and nice for mandatory fields.
But sometimes i want to check some fields in the APPC, maybe in the Methods before_process_event or After_process_event and stop the navigation to the next step.
I know how to stop the navigation in the navigation and to throw a message.
however the question in the APPC is:
how does i know which step (the event is always the same) i have to proof. In the PARAMETER: IT_UIBBS the solution ?
thanks
Fritz
Hi Venkat,
Am new to FPM having good experience in WD JAVA & WD ABAP... now am developing a new application with FPM ..here I need to know the way of doing the Field validations on each step...is there any FPM given approach for the field validation because I have seen the blog in SDN
Hi Fritz,
When you move from step1 to step2,
1) flush() & Process_event() methods of all feeder classes in Step1 will get triggered.
2) Capture the modified data of UIBB in flush() method and maintain in global variable of feeder class or in Singleton class. In process_event, you can write the logic to validate the inputs.
CASE io_event->mv_event_id.
WHEN cl_fpm_event=>gc_event_next_step.
To validate the mandatory fields of UIBB, predefined functionality provided by FPM itself. To enable this functionality,
1) In get_definition() method, while filling field catalog, set mandatory property of the attribute to abap_true('X').
2) In UIBB Configuration, Global settings ->check the option Check Mandatory check box.
Regards, Venkat.
Here my component is GAF based and i have multiple steps on each next button, on each step navigation I need to do the validation check.
Also I would like to address an another requirement which is how can I dynamically make the fields Manadtroy/visible/in-vis/optional...like in my scenario when user clicks on Next button in step 1.....from the values filled in step1 I have make visible/in-vis and Mandatory/optional in the next screens(same thing has to work on Previous also)....the validation matrix I will receive from a table.
Thanks in advance#
Regards
Rajesh
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.