‎2015 Feb 23 6:37 PM
Hi everyone,
I have an requirement that in modulepool I have. Created one screen, in that 6fields are there. I gave 3fields as required field. Remaining 3 fields are thr. But I need to populate depending on 1 field remaing two field would come. But while populating the depending fields it is not populating,after fill in required entries only it is populating and validatng other.can any one tel how to resolve this.
Regards
Ravi.
‎2015 Feb 23 7:25 PM
raviram jk wrote:
But while populating the depending fields it is not populating,after fill in required entries only it is populating and validatng other.can any one tel how to resolve this.
Can you please explain what is the problem you are facing using screenshots
Regards
Rajkumar Narasimman
‎2015 Feb 23 7:56 PM
Hi Ravi,
I understood the question now. Here the 3 Field kept as mandatory and 3 fields are non mandatory.
Based on Field1 we are filling the remaining dependent fields.
In that case, Field4 and Field5 is not allowing to fill the value since it kept as mandatory one. After Field4 and Field5 is filled, the value showing in dependent fields.
For this problem, instead of giving obligatory condition for the fields, the same you can check in validation part too. Remove the obligatory conditons. Check the conditions as shown below.
MODULE USER_COMMAND INPUT.
IF FIELD1 IS INITIAL.
MESSAGE 'Field 1 is Mandatory' TYPE 'E'.
ENDIF.
IF FIELD4 IS INITIAL.
MESSAGE 'Field 4 is Mandatory' TYPE 'E'.
ENDIF.
IF FIELD5 IS INITIAL.
MESSAGE 'Field 5 is Mandatory' TYPE 'E'.
ENDIF.
ENDMODULE.
Regards
Rajkumar Narasimman
‎2015 Feb 23 8:22 PM
Can't the mandatory check be removed for the dependent fields and ensure it's filled by appropriate value using CHAIN..ENDCHAIN or FIELD MODULE check validations ? Just keep the first field alone mandatory and make others mandatory by the aforesaid validations.
Thanks
Naveen