on 10-16-2014 7:05 AM
Hello MDG Gurus,
I am trying to execute the derivation scenario i.e. whenever I enter the value in one field some default values comes in two other fields, and these two other fields are mandatory in the UI as standard.
So, for this I have enhanced the feeder class and the value is coming now in the UI as expected but the issue is, after derivation hits, I am still getting the validation error message for these fields despite of values entered in that field as per the below message as per the below screenshot:-
Country is my input field and Language and Transportation zones are the derived fields:-
Regards
Ashu
Hi Ashu
You can try by making them as warning message under node Configure change request properties
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ashu,
Have you also implemented the changes in method FLUSH of your feeder class?
This method is mainly based on it_change_log
which contains the data which were changed in the browser. I.E. the
changes you applied in get_data are not contained here. So you have to
add your changes here as well.
Regards,
Raghu
Hello Ashu,
I hope you inherited the standard class and created a custom class.
Now redefine method IF_FPM_GUIBB_FORM~FLUSH.
Before calling super class , do the following
ASSIGN is_data->* TO <is_data>.
CREATE DATA lr_data LIKE <is_data>.
ASSIGN lr_data->* TO <ls_data>.
<ls_data> = <is_data>.
The data is now available in <ls_data>. Put data in desired fields.
for e.g.
ASSIGN COMPONENT 'xxx' OF STRUCTURE <ls_data> TO <lv_value>.
<lv_value> = 100.
In addition to this we have to populate change log for the changed field
GET REFERENCE OF <lv_value> INTO ls_change_log-new_value.
ls_change_log-name = xxx.
INSERT ls_change_log INTO TABLE lt_change_log.
CLEAR:ls_change_log.
and then call the super class
CALL METHOD super->if_fpm_guibb_form~flush
EXPORTING
it_change_log = lt_change_log
is_data = lr_data.
Regards,
Raghu
Ashu,
can you paste the derivation screen shot.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.