01-24-2007 1:10 PM
Hi all, how are you?
I've got a technical question.
What's the meaning of the <b>read_only_international</b> parameter of the <b>PYXX_READ_PAYROLL_RESULT</b> function?
Does the function read just the employees residents at foreign countries when that parameter is marked? If yes, what information is used for defining foreign countries?
I didn't find out a conclusion by running SE37.
Thanks in advance.
Tiago.
01-24-2007 1:15 PM
HI,
Suggest you to Search in <b>SDN with key - PYXX_READ_PAYROLL_RESULT</b>
Will get few more useful related Posts.
Reward points if this Helps.
Manish
01-24-2007 1:15 PM
HI,
Suggest you to Search in <b>SDN with key - PYXX_READ_PAYROLL_RESULT</b>
Will get few more useful related Posts.
Reward points if this Helps.
Manish
01-24-2007 1:16 PM
Read the FMs documentation:
If you don't see it in your system, here is the same:
"FU PYXX_READ_PAYROLL_RESULT
____________________________________________________
Short Text
Generic Import of Payroll Results
Functionality
You can use this module to generically read a complete payroll result, that is for all country versions, from file PCL2 or from the puffer. In doing so, the payroll result is transferred to the PAYROLL_RESULT parameter. In the calling system, this must be classified as a complex structure according to the 'PAYxx_RESULT' dictionary structure. xx is the ISO code for the country in question (Exception: for the international part only, use PAY99_RESULT).
The structure contains the components 'EVP' (directory information is not filled out here) , 'INTER' (international part) and 'NAT' (country-specific part). The 'INTER' and 'NAT' components contain the tables and field strings of the payroll result as substructures. Accessing these objects is outlined in the examples listed below.
Import: The module imports to or from it's own puffer that is held in the global memory of the function group HRPAY99_BUFFER!
You can use the parameter 'READ ONLY INTERNATIONAL' to set only the international part to be imported. The parameter 'READ_ONLY_BUFFER' prevents the database being accessed. You can use the 'VERSION_NUMBER_PAYVN' and 'VERSION_NUMBER_PCL2' parameters to check whether the version indicator on PCL2 agrees with an indicator stored in the type group PAYVN.
Example
Generally, we distinguish between two types of call:
1. Read international part only:
In this case, READ_ONLY_INTERNATIONAL = 'X' must be set and PAYROLL_RESULT is classified using the PAY99_RESULT structure, as in the following case:
data: result type pay99_result.
data: my_rt like pc207 occurs 0.
call function 'PYXX_READ_PAYROLL_RESULT'
exporting
clusterid = 'RD'
employeenumber = '00000001'
sequencenumber = '00001'
READ_ONLY_BUFFER = ' '
READ_ONLY_INTERNATIONAL = 'X'
IMPORTING
VERSION_NUMBER_PAYVN =
VERSION_NUMBER_PCL2 =
changing
payroll_result = result
exceptions
...
my_rt[] = result-inter-rt[].
2. Read total result:
data: my_adr like pc204.
data: result type payde_result.
call function 'PYXX_READ_PAYROLL_RESULT'
exporting
clusterid = 'RD'
employeenumber = '00000001'
sequencenumber = '00001'
READ_ONLY_BUFFER = ' '
READ_ONLY_INTERNATIONAL = ' '
IMPORTING
VERSION_NUMBER_PAYVN =
VERSION_NUMBER_PCL2 =
changing
payroll_result = result
exceptions
...
my_adr = result-nat-adr.
Parameters
CLUSTERID
EMPLOYEENUMBER
SEQUENCENUMBER
READ_ONLY_BUFFER
READ_ONLY_INTERNATIONAL
ARC_GROUP
CHECK_READ_AUTHORITY
FILTER_CUMULATIONS
CLIENT
VERSION_NUMBER_PAYVN
VERSION_NUMBER_PCL2
PAYROLL_RESULT
Exceptions
ILLEGAL_ISOCODE_OR_CLUSTERID
ERROR_GENERATING_IMPORT
IMPORT_MISMATCH_ERROR
SUBPOOL_DIR_FULL
NO_READ_AUTHORITY
NO_RECORD_FOUND
VERSIONS_DO_NOT_MATCH
ERROR_READING_ARCHIVE
ERROR_READING_RELID
Function Group
HRPAY99_IMPEXP
"
Regards,
Ravi
01-24-2007 2:14 PM
Hi,
Thanks for your replies.
I didn't get the idea yet. So are there two payrolls? One local and another to foreign countries?
Thanks in advance.
Tiago.
01-24-2007 2:39 PM
hi
check the func documentation..
if u go into SPRO...and in the PM->PA-> Payroll section u'll find payroll package applicable to diff countries like india belgium and etc..in the same u'll have payroll international which can come handy in most of countries' case....
so if u set that flag it'll read payroll internation for u..
hope this makes sense..
Regards
Gunjan
01-24-2007 2:49 PM
Hi,
Thanks for your reply.
I don't know the documentation that you mentioned. Do you refer to the help.sap.com documentation?
Thanks in advance.
Tiago.
01-24-2007 3:32 PM
No,
He is talking about the same documentation which i have pasted for you.
If will be available in the se37 transaction.
REgards,
Ravi