05-30-2008 2:30 PM
Hi Experts,
I need the description of the sub type. For example My Infotype is 0006 - address and my sub type is 3 - home address.
Now i need to print the "home address" based on my input. If the sub type is 1 means I need to print "Permanent Address" under the employee name.
So any tell me which table contains the description of the all sub types.
Thanks for your time,
help will be appreciated.
05-30-2008 2:45 PM
Hi,
You can find all the Subtypes in T591A
& the corresponding texts in T591S.
Hope your issue might have solved with this clue.
Regards,
Sujatha
05-30-2008 2:37 PM
Hi,
Check the Table in SE11 : T591A
For Customization in SM30 : V_T591A
Reward points if helpful.
Regards,
N.
05-30-2008 2:45 PM
Hi,
You can find all the Subtypes in T591A
& the corresponding texts in T591S.
Hope your issue might have solved with this clue.
Regards,
Sujatha
05-30-2008 2:51 PM
Hi,
we can find the texts in table T591S.
The other way we can use the FM
CALL FUNCTION 'HR_F4_GET_SUBTYPE'
EXPORTING
infty =
* PERSNR =
* TCLAS = 'A'
* BEGDA = SY-DATUM
* ENDDA = SY-DATUM
* LANGU = SY-LANGU
* MOLGA =
* IMPORTING
* SUBTY =
* STEXT =
* EXCEPTIONS
* INFTY_NOT_FOUND = 1
* NO_ENTRIES_FOUND = 2
* CANCELLED = 3
* INFTY_NOT_SUPPORTED = 4
* INFTY_HAS_NO_SUBTIES = 5
* OTHERS = 6.
regards,
teja.
05-30-2008 6:15 PM
hi check this...
select pernr
subty
begda
endda
STRAS
ORT01
ORT02
PSTLZ
from pa0006
into table itab
where pernr in s_pernr .
loop at itab .
case: itab-subty .
when '0001'.
it_final-STRAS = itab-stras.
it_final-ORT01 = itab-ORT01.
it_final-ORT02 = itab-ORT02 .
it_final-PSTLZ= itab-PSTLZ.
when '0002'.
it_final-STRAS = itab-stras.
it_final-ORT01 = itab-ORT01.
it_final-ORT02 = itab-ORT02 .
it_final-PSTLZ= itab-PSTLZ.
when '0003'.
it_final-STRAS = itab-stras.
it_final-ORT01 = itab-ORT01.
it_final-ORT02 = itab-ORT02 .
it_final-PSTLZ= itab-PSTLZ.
when '0004'.
it_final-STRAS = itab-stras.
it_final-ORT01 = itab-ORT01.
it_final-ORT02 = itab-ORT02 .
it_final-PSTLZ= itab-PSTLZ.
endcase .
endloop.
check this for the subtypes for the table pa0006...
0006 1 Permanent residence
0006 2 Temporary residence
0006 3 Home address
0006 4 Emergency address
0006 5 Mailing address
0006 6 Nursing address
0006 90 Hukou address-CN
0006 E1 Tax jurisdiction non-residents
0006 FPCB Addresse pendant le congé bonifié
0006 HKTX HK:Tax Consultant Address
0006 J1 Official(tax) address
0006 J2 Guarantor
0006 J3 Address during leave of absence
0006 Q1 Authorised agent address
0006 R1 Accomodation provided by employer
0006 R2 Hotel accomodation provided by employer
0006 US01 Paycheck Location
0006 V1 Address
0006 ZPPP Personnel Address
regards,
venkat