on 04-12-2006 3:46 PM
hi...
Infotype PA0077 has RACKY. Check table for RACKY field is T505R. However here the key is formed using MOLGA and RACKY.
Can anyone suggest for a pernr how this value of MOLGA is determined.
Also for Infotype PA0094 field RESIS, check table is T505U for which again the key fields are MOLGA and RESIS.
The question again here is how do i relate a pernr to this MOLGA.
To summarize I have resis and racky for a pernr. I have to fetch the long text for these fields. However I am not sure on what MOLGA value to associate them with to fetch these texts. Please guide.
As Suresh datti mentioned earlier
u have to pass per area and per sub area (of that pernr) to get molga from table T0001P .....
SELECT SINGLE * FROM T001P WHERE
WERKS = WERKS "Personnel Area
AND BTRTL = BTRTL. "Personnel Subarea
MOLGA = T001P-MOLGA.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
u can pass pernr to beow fn module to fetch molga....and do the rest as required
call function 'RH_PM_GET_MOLGA_FROM_PERNR'
EXPORTING
pernr = pernr
IMPORTING
molga = molga
EXCEPTIONS
nothing_found = 1
no_active_plvar = 2
others = 3.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you look at the source code of this function module, it reads 0001 first & then gets the MOLGA from T001P, just like what I have mentioned earlier. So, if you have already read 0001 in your Program, then you are better off doing a SELECT on T001P instead of using the function module.
Regards,
Suresh Datti
Hi Abhishek,
In both the cases, the MOLGA is obtained from the Table T001P based on the employee's Pers Area(WERKS)/Pers Subarea(BTRTL) in infotype 0001.
Regards,
Suresh Datti
P.S Welcome to SDN & Pl reward helpful answers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
14 | |
10 | |
5 | |
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.