on 10-03-2011 11:52 AM
Hi
I wrote one Dynamic action for whenever IT2001 change or create takes place it changes the Payroll area .
E.g. if i am creating a record IT2001 (10.10.2011-31.12.9999) It should reflect XX payroll area for that period and once i change End date it should chnage My It1 also accordingly. (My requirement is only for the absence period that payroll area should exist)
When i tested the scenario:
I have IT0001 with payroll Area YY (19.08.2011-31.12.9999)
I created Absence (10.10.2011-31.12.9999)
dynamic action created 2 recrods if IT0001 :
1st record : 19.08.2011-09.10.2011 (payroll area YY)
2nd Record : 10.10.2011-31.12.9999(Payroll Area XX) (for the absence period)
Its working fine till this stage.
Now after sometime i changed the end date of the It2001 means i am making it from 10.10.2011-15.03.2011 (changing the end date from 31.12.9999)
This is spiliting the IT 0001 records as below:
1st reord : 19.08.2011-09.10.2011 (Payroll Area -YY)
2nd Record : 10.10.2011-15.03.2011 (payroll Area XX) till here its workign fine.
3rd Record: 16.03.2011-31.12.9999( here payroll area should change to YY but its not chnaging) it is remaining as XX.
Please guide me how can i achieve this.
Thanks
Seema
Hi Seema,
The system responds in the right way.
I don't think there exists a straightforward way of solving it.
One option : If enddate of the absence is not determined in the first place, create IT2001 record with BEGDA 10.10.2011 ENDDA 31.10.2011 and shift ENDDA by one month at each month end.
Regards,
Dilek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Seema,
Can you clearly mention the dynamic action you wrote for this.
That may help us to give you perfect solution.
all the best.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here basicall we have a Z field payslip location . i mentioned payroll area as it makes easy for the person to understand.
But it ia basically one Z (ZZPAYLO) field which we are trying to chnage as per the absence dates.
0600 06 **UPDATE 0001 WHEN 2001-0600 IS CREATED **
0600 06 1 P T001P-MOLGA='08'
0600 06 2 I INS,0001,,,(P2001-BEGDA),(P2001-ENDDA)
0600 06 3 W P0001-BUKRS=P0001-BUKRS
0600 06 4 W P0001-WERKS=P0001-WERKS
0600 06 5 W P0001-BTRTL=P0001-BTRTL
0600 06 6 W P0001-KOSTL=P0001-KOSTL
0600 06 7 W P0001-PERSG=P0001-PERSG
0600 06 8 W P0001-PERSK=P0001-PERSK
0600 06 9 W P0001-ABKRS=P0001-ABKRS
0600 06 10 W P0001-ANSVH=P0001-ANSVH
0600 06 11 W P0001-PROZT=P0001-PROZT
0600 06 12 W P0001-PLANS=P0001-PLANS
0600 06 13 W P0001-STELL=P0001-STELL
0600 06 14 W P0001-ORGEH=P0001-ORGEH
0600 06 15 W P0001-SBMOD=P0001-SBMOD
0600 06 16 W P0001-SACHP=P0001-SACHP
0600 06 17 W P0001-ZZWORKLO=P0001-ZZWORKLO
0600 06 18 W P0001-ZZPAYLO='HOM'
Thanks
Seema
Dear Seema,
Here i have not found that your defaulting the ABKRS from XX to YY while you Creating 2001 IT.
How ever you said that this Dynamic action working for you. Then can you check by removing this Filed in your dynamic action (bolded,,,3rd line) ...
Because system will automatically reads ENDDA of a record... so you need to default it again....
0600 06 **UPDATE 0001 WHEN 2001-0600 IS CREATED **
0600 06 1 P T001P-MOLGA='08'
0600 06 2 I INS,0001,,,(P2001-BEGDA),(P2001-ENDDA)
0600 06 3 W P0001-BUKRS=P0001-BUKRS
0600 06 4 W P0001-WERKS=P0001-WERKS
0600 06 5 W P0001-BTRTL=P0001-BTRTL
0600 06 6 W P0001-KOSTL=P0001-KOSTL
0600 06 7 W P0001-PERSG=P0001-PERSG
0600 06 8 W P0001-PERSK=P0001-PERSK
0600 06 9 W P0001-ABKRS=P0001-ABKRS
0600 06 10 W P0001-ANSVH=P0001-ANSVH
0600 06 11 W P0001-PROZT=P0001-PROZT
0600 06 12 W P0001-PLANS=P0001-PLANS
0600 06 13 W P0001-STELL=P0001-STELL
0600 06 14 W P0001-ORGEH=P0001-ORGEH
0600 06 15 W P0001-SBMOD=P0001-SBMOD
0600 06 16 W P0001-SACHP=P0001-SACHP
0600 06 17 W P0001-ZZWORKLO=P0001-ZZWORKLO
0600 06 18 W P0001-ZZPAYLO='HOM'
and one more doubt how you are mainteing the ENNDA Less than The BEGDA, which is not possible at any way....
Just check once again...
all the best.
User | Count |
---|---|
106 | |
13 | |
10 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.