on 09-17-2008 5:58 AM
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
Resolved by self, by creating a enhancement spot.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Badi is HRPAD00INFTY.
Userexits are in Includes ZXPADU01 (PBO Modules) and ZXPADU02 (PAI Modules).
If includes does not exist create them via CMOD / PBAS0001.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
8 | |
7 | |
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.