'HR_INFOTYPE_OPERATION' MOD is not updating my infotype
Hi all,
I have a custom field called ZXXXX in both 2010 and 0015, I'm trying to clear it up if it's populated and update certain infotype record for the particular employee.
but I was able to clear ZXXXX in infotype 0015 but not 2010, I'm using the same code but not understand why it works for infotype 0015 but not 2010. any thought?
Below is the code, thanks all!
DATA l_return1 TYPE bapiret1.
DATA l_return2 TYPE bapiret1.
START-OF-SELECTION.
GET PERNR.
RP-PROVIDE-FROM-LAST P0015 SPACE PNPBEGDA PNPENDDA.
RP-PROVIDE-FROM-LAST P2010 SPACE PNPBEGDA PNPENDDA.
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
NUMBER = PERNR-PERNR.
LOOP AT P2010 WHERE ZXXXX IS NOT INITIAL AND pernr = pernr-pernr.
CLEAR P2010-ZXXXX.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '2010'
NUMBER = P2010-PERNR
SUBTYPE = P2010-SUBTY
OBJECTID = P2010-OBJPS
RECORDNUMBER = P2010-SEQNR
LOCKINDICATOR = P2010-SPRPS
VALIDITYEND = P2010-ENDDA
VALIDITYBEGIN = P2010-BEGDA
* RECORDNUMBER =
RECORD = P2010
OPERATION = 'MOD'
* TCLAS = 'A'
* DIALOG_MODE = '0'
* NOCOMMIT =
* VIEW_IDENTIFIER =
* SECONDARY_RECORD =
IMPORTING
RETURN = L_RETURN1
* KEY =
ENDLOOP.
LOOP AT P0015 WHERE ZXXXX IS NOT INITIAL AND pernr = pernr-pernr.
CLEAR P0015-ZXXXX.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '0015'
NUMBER = P0015-PERNR
SUBTYPE = P0015-SUBTY
OBJECTID = P0015-OBJPS
RECORDNUMBER = P0015-SEQNR
LOCKINDICATOR = P0015-SPRPS
VALIDITYEND = P0015-ENDDA
VALIDITYBEGIN = P0015-BEGDA
* RECORDNUMBER =
RECORD = P0015
OPERATION = 'MOD'
* TCLAS = 'A'
* DIALOG_MODE = '0'
* NOCOMMIT =
* VIEW_IDENTIFIER =
* SECONDARY_RECORD =
IMPORTING
RETURN = L_RETURN2
* KEY =
ENDLOOP.
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
NUMBER = PERNR-PERNR.
END-OF-SELECTION.
Hi Ben,
Let's forget about using FM 'HR_INFOTYPE_OPERATION' for the moment for IT2010 and try to implement this another way - please use the code below for the IT2010 change only.
DATA:
lif_msg_handler TYPE REF TO if_hrpa_message_handler,
lo_msg_handler TYPE REF TO cl_hrpa_message_list,
lv_ok TYPE boole_d,
ls_old_2010 TYPE pskey,
ls_new_2010 TYPE P2010.
* instantiate the message handler object
CREATE OBJECT lo_msg_handler.
* assign a reference to a rereference variable using the CAST operation
lif_msg_handler ?= lo_msg_handler.
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
NUMBER = PERNR-PERNR.
LOOP AT P2010 WHERE ZXXXX IS NOT INITIAL.
"AND pernr = pernr-pernr. "<=== you don't need this AND condition as you are using LDB already
ls_old_2010 = p2010-pskey.
ls_new_2010 = P2010.
ls_new_2010-aedtm = sy-datum. "<===== so that record history is correctly maintained
ls_new_2010-uname = sy-uname. "<===== so that record history is correctly maintained
CLEAR ls_new_2010-ZXXXX.
* transfer the infotype record to the infotype buffer first
CALL FUNCTION 'HR_ECM_MODIFY_INFOTYPE'
EXPORTING
PNNNN = ls_new_2010 "<======= New/Modfied record
* text_tab =
* modify_text =
OLD_PSKEY = ls_old_2010 "<======== Old/Existing record
* no_auth_check =
message_handler = lif_msg_handler
IMPORTING
is_ok = lv_ok.
* process forward only if the transfer to buffer was successful
* - if unsuccessful...
IF lv_ok IS INITIAL.
* "<==== Handle your exceptions here.....and CONTINUE processing the next row in the current loop
ELSE.
* - if successful...
* now flush to transfer from infotype buffer to SAP database
CALL FUNCTION 'HR_ECM_FLUSH_INFOTYPE'
EXPORTING
* NOCOMMIT = 'X'
message_handler = lif_msg_handler
IMPORTING
is_ok = lv_ok.
ENDIF.
ENDLOOP.
* unlock the employee - processing now complete
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
NUMBER = PERNR-PERNR.
I'm confident that this will solve your problem - please let me know if it did not.
Cheers,
Sougata.
Similar Messages
-
IDOC_INPUT_HRMD, it posts the document but does not update the Infotypes
Hi,
I am trying to trigger the IDoc Type 'HRMD_A06'. This Idoc was posted successfully, with the status as '53' (inbound IDoc). The Processing Function Module is IDOC_INPUT_HRMD for the IDoc "HRMD_A06". However the infotypes are not updated. The infotypes I am trying to update are 0000,0001,0002,0006, & 0008.
If someone has a solution for this issue. Kindly let me know.
Regards,
NarunHi Srinu,
Again....
Whats happening in Debug ???
Just clone the FM as it is and use the FM HR_INFOTYPE_OPERATION instead of other.
Parameters:
The following code is for infotype 15 inside custom FM which i have done. u can use for ref.
CALL FUNCTION 'ENQUEUE_EPPRELE'
EXPORTING
pernr = l_wa_p0015-pernr
EXCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.
IF sy-subrc = 0.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = c_0015
NUMBER = l_wa_p0015-pernr
SUBTYPE = l_wa_p0015-subty
OBJECTID =
LOCKINDICATOR =
VALIDITYEND = l_wa_p0015-begda
VALIDITYBEGIN = l_wa_p0015-endda
RECORDNUMBER =
RECORD = l_wa_p0015
OPERATION = c_ins1
TCLAS = c_a
DIALOG_MODE = '0'
NOCOMMIT =
VIEW_IDENTIFIER =
SECONDARY_RECORD =
IMPORTING
RETURN = l_i_return .
KEY =
To dequeue the selected employee
CALL FUNCTION 'DEQUEUE_EPPRELE'
EXPORTING
pernr = l_wa_p0015-pernr. -
Changes are not updating in infotype 588
Hi,
In 0001 subtype of infotype 0588 , when i try to copy the record into another or change the record,
i am changing the ESI Number ,but this new number is not updating. It is updating with same old number.
What may be the problem?
This problem is coming when i try to create the new record by copying the existing one.
If i create new record normally then it is working fine.
Thanks,
Mamathahi,
I am not copying the infotype. I am copying the record of 588 infotype to create the new one.
thanks and regards
mamatha -
Phone will not get out of recovery mode/will not update or restore
Iphone will not get out of recovery mode. I have pressed the home and lock screen at the same time, and nothing happens. I connected it to iTunes to try to update my phone or restore it, and it will not do anything. The progress bar shows up on the screen but does not make any progress and iTunes says it cannot connect to my phone. I have tried everything and went to the AT&T store and they told me to contact Apple support. What do I do now?
You will have to restore it from Recovery Mode
-
Hi Expert,
I have one custom FM which is used to update the custom infotype but my requirement is when it get fail it should not update
the infotype but it is updating.Befor this FM we are performing operation i. e MASSN 07,08, .
This requirement is based on contract renewal when contract is not renewed it should not update custom infotype bue it is
updating when contract is not renewed through the above FM.
please give me some idea so that custom infotype should not get updated when contract is not renewed.But it is
updating the infotype what should i put to not update the infotype when contract is not renewal.
Below is my listed code.
IF lv_action = '09' OR lv_action = '07' OR lv_action = '08' AND lv_cr_renewal = ''.
CALL FUNCTION 'ZF_HCM_ALM_ABSENCE_DATA'
EXPORTING
i_pernr = lv_pernr
i_effective_date = lv_date
i_updation = 'X'
TABLES
T_ABSENCE_DATA =
t_return = lt_return_absence
Regards,
Md
Edited by: MdAddu on Jun 26, 2011 9:33 AM
Edited by: MdAddu on Jun 26, 2011 9:52 AMHi,
Write the code as :
IF ( lv_action = '09' OR lv_action = '07' OR lv_action = '08' )
AND lv_cr_renewal = ''. "-- contract renewed ...
CALL FUNCTION 'ZF_HCM_ALM_ABSENCE_DATA'
EXPORTING
i_pernr = lv_pernr
i_effective_date = lv_date
i_updation = 'X'
TABLES
T_ABSENCE_DATA =
t_return = lt_return_absence
Regards,
Srini. -
How fix Organizer not updating w/"Save As" from Editor?
After upgrading frm Windows XP to Windows 7, my Elements Organizer - in "Folder Location" mode is not updating with ANY changes frm Editor. I'm checking "include in the Elements Organizer" on SAVE OPTIONS. Changed file names are updating to the physical file. In effect the Editor is NOT Working.
Hi,
The Catalog is a database used by the Organizer to index you Images. The catalog only contains pointers to your images not physical copies of them.
The physical files stay where you put them and, if you use the Organizer, you should NOT rename the files or move them outside of the organizer otherwise you will get missing file messages.
I would normally import my images into the organizer, select the one I want to edit and the go to the Fix menu. This loads the image into the Editor, After editing the image I would close the image and/or the editor and get asked if I want to save the image. It usually offers an alternative name.
When you use the Save As it should still show up in the organizer.
Do you have Save in Version Set checked? - If so, the new image maybe stacked with the original. You need to expand the stack by clicking on the little arrow - that should show both.
Do you save it in the same folder as the original?
There has been various reports of the Folder View being wrong but it is normally corrected by using F5 or reloading the organizer. The folder view was revamped in Elements 11.
Hope that helps
Brian -
Infotype is not updating through 'HR_INFOTYPE_OPERATION'
Hi Frds,
I am trying to update the infotype 2006 leave quota for casual leave. After execution of all code the screen automatically closing itself. Its not modifying the record . I am writing this code in include of exit PBAS0001. Can anybody help regarding this.
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
TCLAS = 'A'
PERNR = lw_pa0000-PERNR
INFTY = '2006'
BEGDA = '18000101'
ENDDA = '99991231'
BYPASS_BUFFER = ' '
LEGACY_MODE = ' '
IMPORTING
SUBRC =
TABLES
INFTY_TAB = lt_2006
EXCEPTIONS
INFTY_NOT_FOUND = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
read table lt_2006 into lw_2006 with key pernr = innnn-PERNR.
LW_2006-AEDTM = sy-datum.
lw_2006-ANZHL = v_cs_quota.
First Enqueue
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
NUMBER = LW_2006-PERNR
IMPORTING
RETURN = RETURNE.
------------- Update
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '2006'
NUMBER = LW_2006-PERNR
SUBTYPE = LW_2006-SUBTY
OBJECTID = LW_2006-OBJPS
LOCKINDICATOR = LW_2006-SPRPS
VALIDITYEND = LW_2006-ENDDA
VALIDITYBEGIN = LW_2006-BEGDA
RECORDNUMBER = LW_2006-SEQNR
RECORD = LW_2006
OPERATION = 'MOD'
TCLAS = 'A'
DIALOG_MODE = '0'
IMPORTING
RETURN = RETURN
KEY = KEY.
--------- Dequeue
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
NUMBER = LW_P2006-PERNR.
ENDIF.Thank you, Yes Its updating in 2006....but only sy-datum and username are updating .....Leave quota i am changing from 4 to 3 . its not updating, but showing in screen when i used dialog = 2. Also the same screen appearing 3 times and when i am trying to click on save button its ending with an error 'internal maximum number of sessions reached' , then screen automatically closing by itself.
-
Not modfying ithe infotype while using FM HR_INFOTYPE_OPERATION
Hi Experts,
When i am using this FM HR_INFOTYPE_OPERATION its not modifying the infotype 14.Can you please suggest me. Please see my below code. Can please let me know if i am wrong..
form INSERT_DATA_0014 .
loop at pa_0014.
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
number = pa_0014-pernr
IMPORTING
RETURN = it_return.
IF it_return-id EQ 'E'.
WRITE: / v_pernr, 'Enqueue failed'.
else.
write: 'successfully locked'.
ENDIF.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '0014'
number = pa_0014-pernr
SUBTYPE = pa_0014-SUBTY
OBJECTID = pa_0014-OBJPS
LOCKINDICATOR = pa_0014-SPRPS
VALIDITYEND = pa_0014-begda
VALIDITYBEGIN = pa_0014-endda
RECORDNUMBER = pa_0014-SEQNR
record = pa_0014
operation = 'MOD'
TCLAS = 'A'
DIALOG_MODE = '0'
NOCOMMIT = ''
VIEW_IDENTIFIER =
SECONDARY_RECORD =
IMPORTING
RETURN = l_bapireturn
KEY = bapipakey_tab
IF l_bapireturn-id NE space.
WRITE: / v_pernr, 'error'.
ELSE.
WRITE: /'SUCCESSFULLY INSERTED'.
ENDIF.
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
number = v_pernr
IMPORTING
RETURN = l_bapireturn
IF l_bapireturn-id NE space.
WRITE: / v_pernr, 'Enqueue failed'.
else.
write: /'record successfully modified'.
ENDIF.
endloop.
endform.
Thanks,
Munna.Hi,
Check the entire return internal table I_BAPIRETURN of FM HR_INFOTYPE_OPERATION what it has got to say ( a error message will be there which will tell where is the problem ). If it is initial then check the table PA0014 if the record has been modified. If its still not modified then check if at all it can be manually by PA30. If it doesnt get modified even manually then this is some configuration related issue.
Regards. -
SAP HCM P&F - Update an infotype field which is NOT passed from Form
Dear Experts,
I have a requirement to update the Infotype with the entries in the HCM form (input by Employee in ESS) upon Manager's approval in MSS.
We are achieving this functionality using HCM P&F (FPM) with an Workflow associated. In this Workflow Standard Task (TS17900108) is used to Save the form data into the Database.
But there is one field (APPROVED_DATE) in the Infotype whose value is not from the FORM but should be updated in the Infotype.
Please help me with your inputs.
Regards,
ShankarDear Christopher,
I am extremely thankful to you for all the replies. But, unfortunately, we are messed up with this requirement and we couldn't achieve it.
In this regard, could you please give us the step-by-step procedure to achieve this functionality?
Requirement in brief again:
We have designed Overtime HCM form (FPM) using which employee requests for the Overtime. This form is sent for the Manager for approval. We have achieved this functionality. With the Manager Approval, the database is also updated perfectly.
Then we have added one more field in the infotype to track the Approved Date. This field is to be updated along with the other fields (sent from FORM) upon the approval of the manager.
And now though the other fields are updated correctly into the infotype, the approved date is not updated.
Thanks a ton in advance for your guidance as this is very critical and urgent requirement for us.
Regards,
Shankar. -
Can not update ios7 itunes has detected an ipad in recovery mode. why is this happening
can not update ios7, itunes has detected ad ipad in recovery mode. why is this happening, it appears that apples answer to everyhing is to perfrom a factory reset...
Please see: http://support.apple.com/kb/HT1808 for assistance with this issue.
Regards,
Steve -
Iphone 3gs stuck in recovery mode, will not restore or update error 36
As the title states, I have a 3gs stuck in recovery mode. Sort of worked earlier today, been having trouble with the battery draining fast/not holding charge goes into recovery mode on its own at times. Have been able to force it out of recovery in the past but now it is just showing a USB cable going into an iTunes logo. I can't get it to restore/update and before it got stuck it would not update or restore either. Before you ask, I have no idea what iOS I have, this **** thing didn't start messing up until I plugged it into my computer.
Update: I have uninstalled and re-downloaded iTunes, Tried with a different computer, tried with a different iTunes account. None of these did anything for me. I have no idea what to do next, nearest apple store is more than an hour away.
-
Outlook 2010 shared mailbox in cache mode not updating Inbox automatically
I have a user who has XP on his desktop, running Outlook 2010, connecting to a Exchange 2010 w/SP2. I recently added a shared mailbox for him to monitor. I did it the old way by adding additional mailbox to his client (outlook 2010) pc.. I understand
now that in 2010 SP1 or greater that you can simply do this from the exchange server by granting full access permissions. Either way, the user sees the mailbox and gets email in the shared mailbox ONLY when he clicks on the inbox and
clicks on Update Folder. For some reason it is not auto updating new email. His personal account works fine, meaning when a new email is received it comes in and you see new mail. The account is in cache mode and I've looked at other shared
mailboxs that are working fine and the settings look the same? I'm not sure why this shared mailbox is not updating?
William McConnellI can see this is an old thread but I have a relevant question.
This workaround does indeed work but what else is possible to do? The cashed mode is more or less necessary when working with large shared mailboxes.
Niklas -
Hi
I have Signature Manager Exchange Edition 2.0.3.0 installed on the hub servers.
I have enabled Sent Items update.
some clients are not getting signature update in the sent items of outlook while using cached mode.
from OWA, and MS Outlook when connected online, the signature is updated in the sent items.
I have two CAS servers and two mailbox servers. all with Exchange 2013 SP1
I tested each CAS server for the URLs of Autodiscover and EWS, with no errors or warnings.
I also test Autodiscover through
https://testconnectivity.microsoft.com . I go successful result.
Outlook clients are updated to the latest version 15.0.4701.1000
for outlook clients; I deleted outlook profile, deleted outlook folder in the user profile, re-created the outlook profile, with no luck.
from Exclaimer event logs on the Hub servers. the sent items update is successfully updating clients. below is the screenshot of an event for one email message which is successfully updated from exclaimer but it did not update on the client outlook while
using cached mode.
Since the issue is with multiple users, I am searching for a centralized solution
Mashhour FarajDear Mashhour
Here you go
Employees can see their email signatures and disclaimers
With Exchange 2013, a Microsoft Outlook user can’t see any added email signatures or disclaimers as they are added to an email when it passes through the Exchange server.
Signature Manager Exchange Edition lets email users see their email signature and corporate disclaimer within the Sent Items of their inbox, giving them visual confirmation of the processed email
Source -
http://blog.exclaimer.com/exclaimer-signature-manager-vs-microsoft-exchange-2013/
Updating to the latest version of signature manager exchange edition will help you to resolve this problem for sure
Or you need to contact them to find a solution on this .
I'm pretty much sure that this problem is related with some version mismatch on their s/w on exchange 2013 which is causing this issue.
Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you Check out my latest blog posts on http://exchangequery.com Thanks Sathish
(MVP) -
Data collection task in Update mode is not posible with Original list
Hi Friends,
When I try to Execute the Task for data collection in sa38.I am getting the Error with in 9 sec.
UPDATE MODE IS NO POSSIBLE WITH ORIGINAL LIST
Message No. UCS0111
Diagnosis :
If you select the indicator"original list"the current task status is ignored.In this case,the system simulates a task run in with all of the organisational units are not yet blocked.Thus,setting this indicator is meaningful and valid only if the task is executed in test mode at tthe same time.
procedure : select the original list & Test run together.
My problem is I can not select the Test run in production server.
Can any one please help me to solve the Issue.I Thank you all for Responding to me.
Hi Dan,
SA38 provides all the needed parameters- Con.Group,Company,Version,Fis.Year,Period,Group currency.
Iam trying to run the task with SA38 for Data Collection.
Hi Lucio,
When I Check the Fields Both the Log & Original list . The programe gives an error message "UPDATE MODE IS NOT POSSIBLE WITH ORIGINAL LIST"
Even when I tried with Log,Test Run & Original List Iam getting the Same error Message "UPDATE MODE IS NOT POSSIBLE WITH ORIGINAL LIST"
I can run the task Successfully with selecting the Log option only. But my Client need to Use both Log & Original list ( as they used to run in BIW 3.5 ) Now it we are using BI 7.
Hi Christopher,
We are running the programe UCBATCH01,with the T code SA38.
Hi Eugene,
I will look in to the link and i will Discuss with the Basis team.
Once again Thank you all for responding
Suraj. -
Not able to Update the Infotype thro'HCM Process and Forms
Hi,
I have done the form and ran the test run in ECC, after completion of execution its not updating the form scenario infotype. Herewith mentioned the trace data ..
C Function Trace Record
Date : 27.08.2010
Time : 17:26:30 : 539,203
Work Process : 0
PID : 0
Client : XXX
User : XXXXX
Transaction : HRASR_DT
Transaction ID : 4C77C682885A4119E10000000A01DF1A
Action :Start of C Function
Function (Group) : rstscb_call_back
Parameters :
Duration : No Duration at Start of Action
Comment :
C Function Trace Record
Date : 27.08.2010
Time : 17:26:30 : 539,203
Work Process : 0
PID : 0
Client : XXX
User : XXXXX
Transaction : HRASR_DT
Transaction ID : 4C77C682885A4119E10000000A01DF1A
Action :Start of C Function
Function (Group) : rstswsf_was_stor
Parameters :
Duration : No Duration at Start of Action
Comment :
Kindly let me know the root cause of the error....
Thanks and Regards,
Santhosh Kumar RHi,
1. Do you Have Workflow.
If yes check in the apprroval or the last step (Processing step-HRAdmin) whether Send Variant is active .
to Update the Database this has to be active.
2. If there is no workflow then
check in the Tcode HRASR_DT at process level.
in Drop down for send variant is update the Application database .
Regards,
Nachy
Hope this helps
Maybe you are looking for
-
Hi, I'm currently trying to consume in VC a CAF Application Service exposed as a Web Service. I'm able to retrieve what I want but I have a problem with dates format. The web service returns dates in the following format: YYYY-MM-DDTHH:NN:SS When I t
-
Hi, I have created a custom folder in discoverer by using the following query from Oracle 9i SQL: SELECT TO_NUMBER(fv.BUDGET) as Budget ,gab.ACTIVITY_50274 as Project ,gad.ACCOUNT_50297 as Category ,fv.DESCRIPTION as DESCRIPTION ,NVL(( TO_
-
Hi Experts, I have a small query, as I am beginner, I am posteing this here, In F-32 initial screen, under 'Additional Selections' , i need to have one more radio button 'NetDue date'. Can it be done by SPRO? if yes.. pls suggest the path... Thanks i
-
Classical report printout problem
Hi Classical report printout is coming landscap while i want it to come in portrait. Any idea ???
-
HR tables that store hours worked on holidays
Hi All, I am trying to calculate the number of hours an employee worked on holidays in a payroll period. Can anyone give me the name of tables in HR that store the number of hours worked on hoildays? Thanks in Advance.. Sonali.