cancel
Showing results for 
Search instead for 
Did you mean: 

PA30 - Infotype 16 Contract Elements Auto Population of Dates

Former Member
0 Kudos

Hi Experts,

My requirment is if user go to transaction PA30 and go for the Infotype 16, and click on create then if the users selects particular contract type PA0016-CTTYP,

I need to populate PA0016-CTBEG with Employee Hiring Date and PA0016-CTEDT with some calculation I need to add some month based on criteria specified to CTBEG and derive a date and fill the CTEDT.

Is their any Exit or Badi available.

Please suggest me how to proceed.

Thanks in Advance.

Regards,

IFF

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Resolved by self, by creating a enhancement spot.

Former Member
0 Kudos

Hi Experts,

I have checked the User Exits and BADI by putting a explicit break point inside it.

When I select particular contract type PA0016-CTTYP in the screen then I should fill up the values of PA0016-CTBEG, PA0016-CTEDT. This is after the PAI event.

Where to validate it.

Thanks in Advance.

Regards,

IFF

former_member226519
Active Contributor
0 Kudos

This is only a simple example!

in ZXPADU02 add code:

data: p0016 type p0016.

if innnn-infty = '0016'.

call method cl_hr_pnnnn_type_cast=>prelp_to_pnnnn

exporting

prelp = innnn

importing

pnnnn = p0016.

if p0016-cttyp = your CTTYP.

p0016-ctbeg = your CTBEG.

...

endif.

call method cl_hr_pnnnn_type_cast=>pnnnn_to_prelp

exporting

prelp = innnn

importing

pnnnn = p0016.

endif.

former_member226519
Active Contributor
0 Kudos

Badi is HRPAD00INFTY.

Userexits are in Includes ZXPADU01 (PBO Modules) and ZXPADU02 (PAI Modules).

If includes does not exist create them via CMOD / PBAS0001.

Former Member
0 Kudos

Hi,

If I were you, I would use dynamic actions. Pls check table T588Z.

The following is an example of dynamic action:

0000 04 10 *** CREATE INFOTYPE 41 WHEN HIRING****

0000 04 61 P P0000-MASSN='06'

0000 04 62 I COP,0041,,,,

0000 04 63 W P0041-DAR12='08'

0000 04 64 W P0041-DAT12=P0000-BEGDA

0000 04 65 W P0041-VTRAN='58' number

0000 04 66 W P0041-VTRZH='013' time unif from table T538T

0000 04 67 W P0041-VTROP='-' operation '+' or '-'

In terms of user exit, try ZXPADU01.

Regards,

Dilek