cancel
Showing results for 
Search instead for 
Did you mean: 

Contract elements(16) and Monitoring of tasks (19) related Dynamic Action

Former Member
0 Kudos

Hi Gurus,

Just debug this issue for me. its related to confirmation Action.

When Hiring an employee when i am giving 6 months probation period, the date after 6months is automatically defaulted in monitoring of tasks infotype. but when i am doing the extension of probation action and giving 6 months probation in contract elements infotype the date is not automatically defaulted in monitoring of tasks 19 infotype.

may i kwn the dynamic action required for this or any other configuration related to this.

Thanks in advance.

Regards,

Dolly

Accepted Solutions (1)

Accepted Solutions (1)

waqas_rashid
Contributor
0 Kudos

Hi Dolly,

The possibility is there that dynamic action exists only for infotype 16 record creation. The function character for creation is 04. Please check dynamic action and use function character 06 which is "change and create".

Best Regards,

Waqas Rashid

Former Member
0 Kudos

Hi ..

Thanks for the reply.....

Actually my issue is

In Contracts element infotype IT0016, When i enter period in Probationary Period field, it should automatically default the expiry date in monitoring of task IT0019 Date of Task field.

For example:- if a person confirmation is extended say 3months so when i enter 3 months in probationary period. it should default expiry date in Date of task field of IT0019.

i want to kwn the dynamic action code.

Thanks in advance.

Regards,

Dolly

Former Member
0 Kudos

Hi,

Normally once you press enter only it will pick up the end date as default this is std and no need to change.

Regards,

Vasu

waqas_rashid
Contributor
0 Kudos

Hi,

Check following code which is already there in dynamic actions. You may need to change code of task type which in this case is 01 (line 3 and 4) and may be different in your case. Other than that no need to change anything.


0016	    	PRBZT	06	0	P	PSPAR-TCLAS='A'
0016	    	PRBZT	06	1	F	PROBATION
0016	    	PRBZT	06	2	I	DEL,0019,01/S
0016	    	PRBZT	06	3	I	INS,0019,01
0016	    	PRBZT	06	4	W	P0019-TERMN=RP50D-DATE1

Best Regards,

Waqas Rashid

Former Member
0 Kudos

Hi All,

Thanks for the response.

i will make it even simpler

when i am not changing the number in probation period field. its not defaulting it in IT0019 Date of Task. but when i am changing it from 6 to 3 or 6 to 2 its populating IT0019 infotype

Regards,

Dolly

waqas_rashid
Contributor
0 Kudos

Hi,

This is because the dynamic action triggers on change in field PRBZT, as you can see in the code of my previous post.

Regards,

Waqas Rashid

Former Member
0 Kudos

but why cant the infotype pops up when that field is not changed. i want it to popup when its not changed.

Regards,

Dolly

waqas_rashid
Contributor
0 Kudos

Then I think you will have to remove PRBZT field from the code in dynamic action. So that infotype 0019 will pop-up irrespective of change in that field.

Best Regards,

Waqas Rashid

Former Member
0 Kudos

Hi,

As Rashid pointed out, if you need the infotype IT 0019 to be popped irrespective of change on PRBZT then you will have to write the dynamic action code without it. In the field content remove the PRBZT and check.

cheers

AJ

Former Member
0 Kudos

Hi Waqas,

Thanks for responding continuously.

Actually i tired by not giving PRBZT field but still its not working.

Regards,

Dolly

waqas_rashid
Contributor
0 Kudos

Did you remove the existing code? If not then you will have to do that.

Regards,

Waqas Rashid

Former Member
0 Kudos

Hi Waqas,

Hey now its working fine ........... i have removed the existing code. this is following code and we need to remove the existing code.

0016 00 2 P PSPAR-TCLAS='A'

0016 00 3 F PROBATION

0016 00 4 I DEL,0019,01/D

0016 00 5 I INS,0019,01

0016 00 6 W P0019-TERMN=RP50D-DATE1

Thanks a lot, u definitely deserve full points.

Best Regards,

Dolly

Answers (2)

Answers (2)

Former Member
0 Kudos

If you want to create a Record in background for this case then you can just pass the name of a Call routine in

Variable function part column ,FC value should be 04 and value for S column should be F in Dynamic actions screen.

If Call routine is External then specify the name of the Program in which Subroutine is created.

In that Subroutine we need to write the Logic to create a record for Infotype 16.

Former Member
0 Kudos

Any answers please....

Regards,

Dolly

Former Member
0 Kudos

any views.....

Regards,

Dolly

Former Member
0 Kudos

Hi,

Please eloborate the issue...i think we can get it by using control options..