Hello everybody,
I need a little help to create a dynamic action based on gender in it 0002.
My problem is, every time that a person creates a new register in it 0002 the gender is set to female by default. Indepent of the form of address the system only shows an alert message. This makes so that in, sometimes the register of an employee stays with the wrong gender.
What I want is to create a dynamic action that validates the form of adress with the gender, and changes the gender depending on the form of address.
Ex.
Employee 1
Form of address = Mr.
Gender = Female (wrong)
In this case the dynamic action has to change the gender to male.
Ex.
Employee 2
Form of adress = Mrs.
Gender = Male (wrong)
In this case the dynamic action has to change the gender to female.
I have started with this:
0002 GESCH 04 2 P T001P-MOLGA='37' (Only my country group)
0002 GESCH 04 5 P P000-MASSN='Z1' (Only hiring)
0002 GESCH 04 8 W P0002-ANREX = '1' (Checking if is Sr.)
0002 GESCH 04 11 W P0002-GESCH='1' (Fill the gender with the male option).
So, my question is, is my logic is correct? Because if it is, I only have to continue doing this logic to every option in the form of adress, correct?
Thanks.
Best regards,
Ricardo Costardi.