Infotype 0008 - Wrong Salary Calculation
Hello,
We are having a problem with Infotype 8 annual salary calculation in 4.7. We have 173.33 working hours per month and Capacity utilization level 100%. The way It is calculating annual salary below..
Monthly Salary = 5000
It's multiplying working hours 173.33 with 12, so it comes to 2079.96.
Then monthly salary is getting multiplied by 2079.96 x 5000 = 10399800 but what we want to see is 12x5000 = 60000 in annual salary amount instead of 10399800.
Please help if you have come across this kind of problem.
Thank you very much.
Hi Mohammad,
The system is treating your pay amount as an "Hourly" amount rather than a "Monthly" amount. Please check your assignments to the Personal Calculation Rule in table V_503_B. This tells the system whether the Employee Subgroup is treated as hourly or salaried. If your position is assigned to the proper Employee Subgroup, the proper amount will default in IT0008-Baisc Pay.
Paul
Similar Messages
-
Infotype 0008 - Annual salary is being recalculated (screen 2010)
The previously saved annual salary in IT 0008 was entered manually in IT0008 (field ANSAL), the system
calculates the period salary according to rules configured (in T511, T539 etc ) and stores in the wage type of the infotype record IT0008. When there is a change to the monthly working hours (in P0007-MOSTD), the system displays message (RP371) - 'Annual salary has changed, please check your entry' in IT 0008 Basic Pay and the current saved record is overwritten with a recalculated annual salary based on the period salary.
Example, Employee on full time work schedule, current IT 0008 (saved) - Annual salary is EUR 50000.00 and therefore WT Basic salary is EUR 4666.67.
In a scenario where the employee moves from full time to part-time and where there is change to the monthly working hours, the annual salary is being recalculated based on the period salary (which is 4666.67) and displays EUR 50000.04 rather than EUR 50000.00.
Any ideas why this is happening and any help is much appreciated.
Regards, TerenceHow much is the change in monthly working hours? Even if it is a small change, Annual salary difference should be more than $0.04
-
Infotype 0008 master data with no salary and no wage types.
I am an abapper so I apologise whole heartedly in advance for what may be a silly question.
I want to use infotype 0008 only to hold master data values. The only fields I want filled are:
Pay Scale Type,
Pay Scale Area,
Pay Scale Group,
Pay Scale Level,
Capacity utilization level.
Is it possible to configure infotype 0008 just to enter these values and nothing else. I don't any values in Annual Salary, Wage types, etc.Dear Gemini,
You can hide some of the fields if you donu2019t want to display or you can make them Output fields (table name T588M, and select the module pool, MP000800).
Thanks
Haji -
Infotype 0008 and Wage Type Amount
Hi ,
I can see the Wage type in infotype 0008 , but when I input an amount in "Annual salary" , the Wage type Amount is not calulated ( stay blank ) .
The Wage type Amount should be = Annual salary / PFREQ .
What did I miss ? Feature PFREQ and LGMST are setup . Can see the Wage Type , but no calculation is done ?
Help will be rewarded
Thank you.Hello there!
There are 3 important things to note in ANSAL.
1. Period Parameters - Table T549R
2. Annual Salary Wage Type - When you are defining the characteristics you will have to use ANSAL as Indirect evaluation module
3. Monthly/Period Wage types - the wages which will make the sum for Annual Salary.
Try to complete all the steps present in PA-> Payroll Data -> Basic Pay -> Define annual salary.
Thanks
Yash -
Create, but no changes in Infotype 0008
Hi all,
We have the following issue in HR authorization
There's one role with some transactions of HR, some of them is PA30 and PA40.
One of the rules at the company is, in transaction PA40, the person who made the admission of an employee, can register the salary data (IT 0008);
And later, the same person can consult this register of employee by transaction PA30, but cannot change the salary in Infotype 0008, only the manager could do this.
But, both transactions uses the same object (P_ORGIN).
The question is, this type of restriction (register salary in PA40, and only consult in PA30) can be made only in authorization profile (PFCG)?
How can we do this?
Thank you all!Hi,
When you add both PA40 and PA30 tcodes into the same role. You can actually restrict the Infotype 0008 and its Subtype in the same role.
You can give restrict authorizations to only register salary and only consult via the field values in P_ORIGIN.
Regards,
Kiran Kandepalli. -
Infotype 0008 reecord creation in a BAdI - Issue
I am implementing the method 'CALC_SAL_ADJUSTMENT' of the BAdI definition 'HRECM00_ACTIVATION'. As per the requirement, I have to copy the record in the importing parameter IT0008_OLD, make some modifications to the record and then pass it on to the exporting parameter IT0008. Simultaneously, a new infotype 0008 record has also to be created based on the data in the new record IT0008. I tried using the FM 'BAPI_BASICPAY_CREATESUCCESSOR', since this will also delimit the previous record.
**Create a new Infotype 0008 record, delimiting the previous record
CALL FUNCTION 'BAPI_BASICPAY_CREATESUCCESSOR'
EXPORTING
employeenumber = pernr
subtype = it0008_old-subty
validitybegin = effdt
validityend = c_endda
payscaletype = it0008_old-trfar
payscalearea = it0008_old-trfgb
payscalegroup = it0008_old-trfgr
payscalelevel = it0008_old-trfst
nextincrease = it0008_old-stvor
localallowlevel = it0008_old-orzst
partnership = it0008_old-partn
currency = it0008_old-waers
comparisonpayscltype = it0008_old-vglta
comparisonpaysclarea = it0008_old-vglgb
comparisonpaysclgrp = it0008_old-vglgr
comparisonpayscllvl = it0008_old-vglst
compnextincrease = it0008_old-vglsv
capacityutillevel = it0008_old-bsgrd
hoursworkedperperiod = it0008_old-divgv
annualsalary = v_annsal
casegroupcatalog = it0008_old-falgk
casegroup = it0008_old-falgr
currencyannualsalary = it0008_old-ancur
reason = it0008_old-preas
nocommit = space
IMPORTING
return = wa_return
employeenumber = v_empno
subtype = v_subty
objectid = v_objectid
lockindicator = v_lockind
validitybegin = v_valbegin
validityend = v_valend
recordnumber = v_recordno
TABLES
wagetypes = it_bwagetype.
However, it is raising an exception 'cx_hrpa_violated_precondition', which is not caught and hence a run-time error.
I tried using the above function module in a report program and it worked fine.
Can anybody please let me know, whether it is possible to create an infotype 0008 record inside the above BAdI implementation? and if yes, where am I going wrong?
Thanks in advance.
Sujit.put the BAPI call as a BACKGROUND TASK & try it..
~Suresh -
Hi Gurus,
We have created a dynamic action running in background in order to
update infotype 0008 with the new Grades and Levels of the
employee,when an Organizational Reassignment is executed. However, the
user who executes the action doesn't have sufficient authorization to
display infotype 0008 and this prevents the dynamic action to be
executed,although in background. The customer, cannot give
authorization to the user and the action cannot be executed from users
with appropriate authorization due to business processes. We need to
overcome this, as infotype 0008 contains wrong data.
Steps for Reconstruction
The user executes the action Organizational Reassignment (transaction
pa40)but he has no authorization for infotype 0008. After he saves
infotype 0001, a dynamic action is triggered and checks whether the
employee's job has changed. If yes, the system should execute the
dynamic action in background, in order to update infotype 0008 (both
subtypes 0,9000) with the grades and levels of the new job.
Thanks in advance for helpA mail is sent through dynamic action to the responsible of payroll and he enters the data manually.
-
Infotype 0008 wage types are not considered while payroll
Hi Experts,
When i am running the payroll, all the wage types of infotype 0008 is not considered. Neither it is being stored in RT. But all the wage types of infotype 0014 and 0015 are correctly being considered in the payroll. Plz help
Regards
TarunHi,
Plz see the XVAL log that i am getting while running payroll. Do let me know if you need any other information. I can call you now if you say.
PIT XVAL P10 Valuate pay elements
Input
IT
Table IT
PCRlGr Wage salary type WC C1 C2 C3 Assign: AltPa CA BT Abs.
Var s. Unit Rate Number Amount
3 /806 Partial period factor 6 01
100,000.00
3 2000 BASIC SALARY-NEW 01
8,000.00
3 3000 BUS DEDUCTION-HPL 01
1,000.00-
Processing
/806 Partial period factor 6
/806 Partial period factor 6
Rule ESGPCR VaKey Operation
XVAL 3 VWTCL 10
XVAL 3 0 ADDWT *
2000 BASIC SALARY-NEW
2000 BASIC SALARY-NEW
Rule ESGPCR VaKey Operation
XVAL 3 VWTCL 10
XVAL 3 1 ELIMI *
XVAL 3 1 RESET RA
XVAL 3 1 RTE= /801
XVAL 3 1 RESET *
XVAL 3 1 MULTI RAA
XVAL 3 1 AMT/KGENAU
XVAL 3 1 ZERO= R
XVAL 3 1 ADDWT *
3000 BUS DEDUCTION-HPL
3000 BUS DEDUCTION-HPL
Rule ESGPCR VaKey Operation
XVAL 3 VWTCL 10
XVAL 3 0 ADDWT *
Output
IT
Table IT
PCRlGr Wage salary type WC C1 C2 C3 Assign: AltPa CA BT Abs.
Var s. Unit Rate Number Amount
3 /806 Partial period factor 6 01
100,000.00
3 3000 BUS DEDUCTION-HPL 01
1,000.00- -
Hi
Whenever my client wants to delete a wage type in infotype 0008 ( Basic pay ), they are not getting the end date 31/12/9999 , they are getting the current month as the end date ( For example if we delete a wage type on 01/06/2009 , the end date should be 31/12/9999 ,but here we are getting 30/06/2009 )
Thanks in Advance .IT008 is haveing TC 1
say
if the salary of an employee is 10,000
he joined in the month of jan 2009
It0008
Begda 01.01.2009 endda 31.12.9999 because his salary will not changed on monthly basis right unles and untill if he has any increment or promotion for this we have to run the Actions
so kidnly check if thee is any master data problem or TC problem for IT008 in V_T582A
if it gets changed in the march
the record shd be delimited for the month of FEB
01.03.2009 31.12.9999
0101.2009 28.02.2009 -
Hi,
i have a scenerio where i need to delete the infotype 0008
we have 2 system one for payroll process another for maintaining data
salary exempt we have infotype 8 in payroll system but not in maintainence system
so a person is moved from hourly to salary exempt , we need to delete infotype 8 in maintenance system
can you please suggest
thanks in advance
shettyhi
deleting infotype is not good, either you can delimit the infotype or else if you dont want the data in the infotype 0008...
you can delete the data in pa30 by giving personnel number for whom you want to delete... Go to Utilities in the Menu Bar and click the Delete Personnel Number then you will get the list of Infotypes which are there for that employee in that select the Infotype 0008 and click Delete Icon in the Tool Bar and the data will be deleted in the PA30.
Hope this is help full for you
Regards
K.Manoj -
Error in Infotype 0008 Basic Pay
Hi,
I got an error in Infotype 0008 Basic Pay : as below
"Basic salary is not part of the pay components
Message no. HRPADIN01135"
I've copied the below 4 wage types and configured in IMG Activity, but when I tried to enter in Infotype 0008 Basic Pay, got the above message as Basic Salary is not part of the pay Components.
1000-Basic Pay
1001-HRA
1002-Convance allowance
1003-Fixed DA
Kindly inform me where might be the problem, in which configuration.
Awaiting your suggestions.
Regards,
Sree.Hi Prashanth,
Firstly thank you for your reply.
After entering i get another error message with regard to Retroactive Accounting period, as below:
"Enter data for payroll past (retroactive accounting)
Message no. PG131
Diagnosis
The current entry begins on 15.03.2009. Either this date is before the 'accounted to' date, or payroll has not been run for the employee.
System Response
The recalculation date in infotype 0003, Payroll Status, is set to the begin date of the current entry.
A recalculation will be triggered for this employee in the next payroll run."
And if I still go for saving the same, ABAP Runtime Error will come and it shows as below:
Runtime Errors : WRITE_TO_OFFSET_TOOLARGE
Date and Time : 20.03.2011 17:53:56
Program error: Offset in WRITE TO in program "SAPFP500" is too large.
Kindly suggest me, awaiting your reply,
Regards,
Sree. -
Create Wage Type in Infotype 0008 for Myanmar
Dear Experts,
I am trying to create wage types in Infotype 0008 for Myanmar, which is not one of the countries where SAP payroll is being delivered. I am not trying to run payroll, but only to create the wage type so that I can maintain the salary information in Infotype 0008. I have done much searches prior to doing this post and found that there are several other posts which are similar to mine. However, as I could not get the answer that I needed, I am posting again here.
I have gathered that for ECC 6.0, it is not possible to copy wage types between country groupings. The advice that I had seen from other posts are:
1. There are many countries where the wage types are not delivered.
2. For country groupings where there are no SAP-defined wage type models, you have to create wage types from scratch in T512W using MOLGA 99 wage types as reference.
3. The wage type groups should then be created for the country grouping in T52D5.
4. Wage types are then assigned to these wage type groups in V_T52D7 of T52D7.
5. You may also need to update the wage types in tables T511B, T512Z, T512J.
My questions are:
a. How should I perform Step 2 as mentioned above? Specifically, how to I maintain table T512W?
What I had done was to go to t-code OH11, select "Copy", select country grouping as "99" and selected wage type M020. Then I typed the customer wage type number as 1000 and also entered the wage type long text (as shown below). M020 was successfully copied to wage type 1000 in country grouping 99. However, how should I continue from here to copy this wage type 1000 to country grouping Myanmar?
b. How can I maintain T52D5 as mentioned in Step 3?
c. I have not been able to try for Steps 4 and 5 since I was not able to start with Steps 2 & 3. I will ask again when I have managed to do Steps 2 & 3.
Very much appreciate all advice and suggestions to the above.....you can try through fast entry screen and update the amount in infotype.
-
Problems in updating infotype 0008
Hello,
I' am trying to insert a record into infotype 8. But not all wage type amounts should get reflected in the total salary. How is it possible? Is it through OPKXX field, if so how?
Thanks,
AravindI think that you need to check the section in the IMG under
Personnel Management - Personnel Administration - Payroll Data - Basic Pay - Define annual salary
Under this you can check the "Relevant wage types for annual salary valuation" to check that all of the wage types you created on infotype 0008 are included in the annual salary. -
How to retrive data from infotype 0008 &0021 and dispaly as alv output
hi all,
i have to read data from infotype 0008 and infotype 0021 and display as alv grid..
can any one help me..
<removed by moderator>
regards,
viswanath
Moderator message: please search for information and try yourself before posting here.
Edited by: Thomas Zloch on Jan 12, 2012Hello Sourabh,
If I am not wrong, there are two parts two your query...
a) Data or Content Retrieval
b) Displaying Retrieved content
Here is my feedback
a) The Content can be Retrieved using the FM ARCHIV_GET_TABLE.
Pass the Archive Object, SAP Object and the SAP Object ID and based on the Connection table entries (TOA*), the underlying Content Repository (T-code OAC0) is determined and a request for synchronous retrieval is made to the Content Server.
b) Display of Retrieved content is normally done through dedicated viewers (Ex: Livelink Viewer) or front-end applications (Excel, Word) based on the Protocol (OAA3/OAA4) specified in the Content Reository Configuration. Hence, to my knowledge, you cannot display the content directly in the Smartform.
With Regards
Vijay Gajavalli -
Not able to modify the data for infotype 0008 using FM
Hi All ,
I have got a requirement for updating the infotype 0008 data using FM : HR_MAINTAIN_MASTER_DATA.
While trying to modify the wagetypes data which is of blank ..unable to upload the amount for that partcular field ..
For this am herewith the link of o/p :
http://i55.tinypic.com/28jfw2c.jpg for this am also posting the code...
Please suggest me furthur in what way i can upload..
SELECT * FROM pa0008 INTO TABLE itab_pa0008
FOR ALL ENTRIES IN itab
WHERE pernr = wa_data-pernr
AND begda = wa_data-begda_out
AND endda = wa_data-endda_out.
DESCRIBE TABLE itab_pa0008 LINES lin.
IF lin EQ 0.
c_action = 'INS'.
ELSE.
c_action = 'MOD'.
ENDIF.
LOOP AT itab INTO wa_itab WHERE pernr = wa_data-pernr.
CLEAR: wa_bapireturn, wa_bapireturn1, wa_hr_return.
REFRESH: it_pprop[],it_modified_keys[].
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-TRFAR'. "1
it_pprop-fval = wa_itab-trfar.
APPEND it_pprop.
CLEAR it_pprop.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-TRFGB'. "2
it_pprop-fval = wa_itab-trfgb.
APPEND it_pprop.
CLEAR it_pprop.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-TRFGR'. "3
it_pprop-fval = wa_itab-trfgr.
APPEND it_pprop.
CLEAR it_pprop.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-TRFST'. "4
it_pprop-fval = wa_itab-trfst.
APPEND it_pprop.
CLEAR it_pprop.
flag = flag + 1.
*****************************************************************************************************5
BREAK-POINT.
IF NOT wa_itab-lga1 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA01'.
it_pprop-fval = wa_itab-lga1.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet1.
ENDIF.
IF NOT wa_itab-bet1 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET01'.
it_pprop-fval = wa_itab-bet1.
APPEND it_pprop.
CLEAR it_pprop.
ENDIF.
*******************************************************************************************************6
IF NOT wa_itab-lga2 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA02'.
it_pprop-fval = wa_itab-lga2.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
ENDIF.
IF NOT wa_itab-bet2 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET02'.
it_pprop-fval = wa_itab-bet2.
APPEND it_pprop.
CLEAR it_pprop.
ENDIF.
*******************************************************************************************************7
IF NOT wa_itab-lga3 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA03'.
it_pprop-fval = wa_itab-lga3.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
ENDIF.
IF NOT wa_itab-bet3 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET03'.
it_pprop-fval = wa_itab-bet3.
APPEND it_pprop.
CLEAR it_pprop.
ENDIF.
*******************************************************************************************************8
IF NOT wa_itab-lga4 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA04'.
it_pprop-fval = wa_itab-lga4.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
ENDIF.
IF NOT wa_itab-bet4 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET04'.
it_pprop-fval = wa_itab-bet4.
APPEND it_pprop.
CLEAR it_pprop.
ENDIF.
*******************************************************************************************************9
IF NOT wa_itab-lga5 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA05'.
it_pprop-fval = wa_itab-lga5.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
ENDIF.
IF NOT wa_itab-bet5 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET05'.
it_pprop-fval = wa_itab-bet5.
APPEND it_pprop.
CLEAR it_pprop.
ENDIF.
*******************************************************************************************************10
IF NOT wa_itab-lga6 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA06'.
it_pprop-fval = wa_itab-lga6.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
ENDIF.
IF NOT wa_itab-bet6 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET06'.
it_pprop-fval = wa_itab-bet6.
APPEND it_pprop.
CLEAR it_pprop.
ENDIF.
*******************************************************************************************************11
IF NOT wa_itab-lga7 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA07'.
it_pprop-fval = wa_itab-lga7.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
ENDIF.
IF NOT wa_itab-bet7 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET07'.
it_pprop-fval = wa_itab-bet7.
APPEND it_pprop.
CLEAR it_pprop.
ENDIF.
*******************************************************************************************************12
IF NOT wa_itab-lga8 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA08'.
it_pprop-fval = wa_itab-lga8.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
ENDIF.
IF NOT wa_itab-bet8 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET08'.
it_pprop-fval = wa_itab-bet8.
APPEND it_pprop.
CLEAR it_pprop.
ENDIF.
*******************************************************************************************************13
IF NOT wa_itab-lga9 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA09'.
it_pprop-fval = wa_itab-lga9.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
ENDIF.
IF NOT wa_itab-bet9 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET09'.
it_pprop-fval = wa_itab-bet9.
APPEND it_pprop.
CLEAR it_pprop.
ENDIF.
*******************************************************************************************************14
IF NOT wa_itab-lga10 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA010'.
it_pprop-fval = wa_itab-lga10.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
ENDIF.
IF NOT wa_itab-bet10 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET010'.
it_pprop-fval = wa_itab-bet10.
APPEND it_pprop.
CLEAR it_pprop.
ENDIF.
*******************************************************************************************************15
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA11'.
it_pprop-fval = wa_itab-lga11.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET11'.
it_pprop-fval = wa_itab-bet11.
APPEND it_pprop.
CLEAR it_pprop.
********************************************************************************************************16
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA12'.
it_pprop-fval = wa_itab-lga12.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET12'.
it_pprop-fval = wa_itab-bet12.
APPEND it_pprop.
CLEAR it_pprop.
********************************************************************************************************17
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA13'.
it_pprop-fval = wa_itab-lga13.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET13'.
it_pprop-fval = wa_itab-bet13.
APPEND it_pprop.
CLEAR it_pprop.
********************************************************************************************************18
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA14'.
it_pprop-fval = wa_itab-lga14.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET14'.
it_pprop-fval = wa_itab-bet14.
APPEND it_pprop.
CLEAR it_pprop.
BREAK-POINT.
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
number = wa_itab-pernr
IMPORTING
return = wa_bapireturn1.
BREAK-POINT.
IF c_action = 'INS'.
CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
EXPORTING
pernr = wa_itab-pernr
actio = 'INS'
tclas = 'A'
begda = wa_data-begda_out "'20110401'
endda = wa_data-endda_out "'99991231'
dialog_mode = '2'
luw_mode = '1'
IMPORTING
return = wa_bapireturn
return1 = wa_bapireturn1
hr_return = wa_hr_return
TABLES
proposed_values = it_pprop
modified_keys = it_modified_keys.
IF NOT wa_bapireturn IS INITIAL.
WRITE : / wa_bapireturn.
CLEAR : wa_itab , wa_bapireturn.
ENDIF.
ELSEIF c_action = 'MOD'.
CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
EXPORTING
infty = '0008'
pernr = wa_itab-pernr
actio = 'MOD'
begda = wa_data-begda_out "'20110401'
endda = wa_data-endda_out "'99991231'
record = p_record
recordnumber = wa_itab-SEQNR
operation = change
nocommit = nocommit
dialog_mode = '0'
IMPORTING
return = wa_bapireturn
return1 = wa_bapireturn1
hr_return = wa_hr_return
TABLES
proposed_values = it_pprop
modified_keys = it_modified_keys.
IF NOT wa_bapireturn IS INITIAL.
WRITE : / wa_bapireturn.
CLEAR : wa_itab , wa_bapireturn.
ENDIF.
ENDIF.
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
number = wa_itab-pernr
IMPORTING
return = wa_bapireturn1.
ENDLOOP.
ENDLOOP.Here is a sampe, and the logic you are using for wages goes in the internal table for wages (you already have the enqueue & dequeue so you don't have to worry about that, so you only have to add the BAPI_TRANSACTION_COMMIT):
CALL FUNCTION 'BAPI_BASICPAY_CHANGE'
EXPORTING
employeenumber = pa0008-pernr
subtype = pa0008-subty
objectid = pa0008-objps
lockindicator = pa0008-sprps
validitybegin = pa0008-begda
validityend = pa0008-endda
recordnumber = pa0008-seqnr
payscaletype = pa0008-trfar
payscalearea = pa0008-trfgb
payscalegroup = pa0008-trfgr
payscalelevel = pa0008-trfst
* NEXTINCREASE =
* LOCALALLOWLEVEL =
* PARTNERSHIP =
* CURRENCY =
* COMPARISONPAYSCLTYPE =
* COMPARISONPAYSCLAREA =
* COMPARISONPAYSCLGRP =
* COMPARISONPAYSCLLVL =
* COMPNEXTINCREASE =
* CAPACITYUTILLEVEL =
* HOURSWORKEDPERPERIOD =
* ANNUALSALARY =
* CASEGROUPCATALOG =
* CASEGROUP =
* CURRENCYANNUALSALARY =
* REASON =
* NOCOMMIT =
* importing
* return =
TABLES
wagetypes = wages.
Regards,
Ryan Crosby
Maybe you are looking for
-
Set adapter specific message attribute in graphical mapping
Hi, I'm trying to set the mail reply to field in email messages sent by mail receiver adapter. To do this, I use the ASMA and developped my own UDF public String setMailFrom(String mailFrom, Container container) throws StreamTransformationException{
-
Placing a map in Indesign; do I use .eps or .ai?
As a cartographer I used to work with FreeHand. Now that I have started drawing my maps in Illustrator (CS4), I still have some beginner-questions. I make a map as .ai file, and this map I want to place in Indesign (CS4). With FreeHand, I used to pla
-
On an opening page of a book I'm building, I simply want to enter text. I created a frame and began typing text in it, but InDesign insists on numbering my paragraphs. I don't want the numbers. How do I turn them off?
-
HT1535 Syncing question about the iPad mini?
I have removed some videos from my library on iTunes that have been added into my iPad in the past. I did that so I can save some memory on my computer and don't want to take up so much space. Is there a possible way to sync more videos into my iPad
-
Publish Abap Web Service in ICF virtual host
Hello We have configured our abap aplication server with two virtual host in SICF one the default_host that listen in http 8080 port and other virtual host that listen in http 8090 port. We need define some ABAP web services that listen in default_ho