4-eye principle for Deletion of Infotype records
Hello,
Can anyone let me know if we can implement the 4-eye principle to delete Infotype records ?
Regards
Jai
Hi,
Yes possible through Asymmentric authorization principle.
Good Luck.
Om.
Similar Messages
-
Deletion HR - Infotype records using BAPI
Hi experts,
I sucessfully added infotype crecords in HR-ABAP using function module HR_INFOTYPE_OPERATION. For deleting the same record using the same function module (operation = 'DEL'), i got error message as <b>009No data stored for 0008 in the selected period</b>. What is the problem...?
Can any one pls solve it.
<b><REMOVED BY MODERATOR></b>
Thank u.
Regards,
Murugan Arumugam
Message was edited by:
Alvaro Tejada GalindoHI Murugan,
Following is the sample code for deletion of a record using the FM...'HR_INFOTYPE_OPERATION'
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '4002'
NUMBER = RECORD_4002-PERNR
SUBTYPE = RECORD_4002-SUBTY
OBJECTID = RECORD_4002-OBJPS
LOCKINDICATOR = RECORD_4002-SPRPS
VALIDITYEND = WENDDA
VALIDITYBEGIN = WBEGDA
RECORDNUMBER = RECORD_4002-SEQNR
RECORD = RECORD_4002
OPERATION = 'DEL'
TCLAS = 'B'
DIALOG_MODE = '0'
IMPORTING
RETURN = RETLIST.
Regards,
Ranganathan. -
How to set authorization for only Create infotype record
How can I set the authorization so that the user can only create Infotype 14,15,2010,2001,2006 but cannot change and delete the record for these infotypes.
But user has the authorization to create,change and delete other infotypes.Hi irene,
1. For this we have to use the
authorisation object
P_ORGIN
2. It has got the following fields, on which authorisations can be controlled.
AUTHC Authorization level
INFTY Infotype
PERSA Personnel Area
PERSG Employee Group
PERSK Employee Subgroup
SUBTY Subtype
VDSK1 Organizational Key
regards,
amit m. -
FM for delimit the infotype record
Hi
I'm new to HR-ABAP.I need to develop function modules to delimit the some infotype records (eg: 0167,0168,0014,2006 etc)
Presently i developed the function module that has following source code.
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
number = empno
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
tclas = 'A'
pernr = empno
infty = '0167'
begda = delimitdate
endda = delimitdate
BYPASS_BUFFER = ' '
LEGACY_MODE = ' '
IMPORTING
SUBRC =
TABLES
infty_tab = itab "itab is of the structure p0167
enddate = itab-endda.
MOVE delimitdate TO itab-endda.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '0167'
number = empno
subtype = itab-subty
objectid = itab-objps
lockindicator = itab-sprps
validityend = enddate
validitybegin = itab-begda
recordnumber = itab-seqnr
record = itab
operation = 'LIS9'
tclas = 'A'
dialog_mode = '0'
NOCOMMIT =
VIEW_IDENTIFIER =
SECONDARY_RECORD =
IMPORTING
return = return
KEY =
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
number = empno
when i use 'MOD' operation in FM 'HR_INFOTYPE_OPERATION' that FM runs perfectly.it changes the enddate to delimit date in the table PA0167.
But, when i use 'LIS9' (delimiting) operation FM is throwing following error message
"E PG 428 A complex application error has occurred".
I need help regarding this error statement.can i use 'MOD' operation to delimit the records (time constraint of most of the infotype record to be delimited is 2).In which case we use 'LIS9'??
Also any SAP function modules for delimiting IT2006 infotypes????
Pls suggest.
Thank u,
shrinivas
Message was edited by: ShrinivasFor 167 & 168 have you looked at HR_BEN_TERMINATE_HEALTH_PLAN & HR_BEN_TERMINATE_INSURE_PLAN?
The error message you got is actually mapped to (00)344 ie "No batch input data for screen & &"
For the delimit operation, you probably,need to pass the delimit date separately..
I have a feeling this function call cannot be used for the delimit operation le 'LIS9'.AS the delimit date is usually entered on a pop-up box when you do it via PA30.
~Suresh -
Mass For Deletion of Info Record
Dear Experts
Is there any Code for Deletion of the Purchasing Info record By Mass T-code.
Rgds
Pankaj AgarwalHi Pankaj,
find below the steps,
1. Flag Info-Records for deletion
2. Run the archiving program - RM06IW30 (Menu path -> Logistics - Materials Management u2013Purchasing - Master Data - Info Record - Follow on Functions - Archive)
Create Archive File: Info Record:
a) Select Action: Archive and enter a new Variant, for example: Z_EINA_ARCH_ 01, press 'Maintain'
b) On selection screen enter the data range (Vendor, Material, etc.) you want to archive.
c) Deselect the 'Test' flag if you don't want to test first.
d) Press green back-arrow and enter the description of this new variantt on the screen which follows.
e) Save the variantt which brings you again to the selection screen. Press green back arrow again.
f) To start archiving process (batch-job), press the 'Start Date' button and select the time when you want to start this process. Select 'Immediate' for instant processing and press the 'Save' button on the bottom of the Start Time' window.
g) Select the 'Spool Parameter' button and save entries. Eventually enter a valid printer to have the result outputted.
h) You are ready now to start the process. Press the 'Start' button and monitor the success with the 'Job Overview' button You can also go the 'fast path' by using transaction SE38, program RM06IW30 to archive info records. For large data archiving, use the background jobs and run those during off-peak times. If you run the program online, you will see a confirmation on the status bar telling 'New Archive file created:.... '
Delete Archived Records: Info Record
a) Follow the menu path: Tools - Administration - Administration - Archiving
b) Select the Object Name MM_EINA for info records
c) Select the menu button 'Delete'
d) Select the menu button: 'Archive Selection'
e) Click the archive created in previous step
f) Select Start Date for process and Spool Parameters for output
g) Submit selection.
h) Check status by pressing the Job Overview button
Hope the above answers your query.
If helpful award points
Regards,
Vivek -
Delete 0302 infotype using PU00 T.code
Hi All,
Error occured while deleting an action "action 84 that changed the status was found. Data inconsisteny". This occured because of the unknown action type.
Now, i wanted to delete that action and system is not allowing to do it under PA30. detail error message is pointing t77s0 or delete 0302 infotype.
While i gone to PU00 Tcode for that PERNR i can see the list of all the actions but there is no delete icon for deleting 0302 infotype.
This icon is missing in QAS and PRD but i can see in DEV.
Could somebody suggest me if there is any other way to delete 0302 infotype.
Appreciate your help.
Points will be rewarded.
Regards,
MamathaHai..
Report RPUEVSUP makes the required entries in the Additional Actions infotype (0302).
In table T77S0, it sets the value of the semantic code EVSUP to 1 for the group ADMIN.
This activates the Additional Actions infotype (0302).
In table T529A, it sets the indicator U0302 for all personnel action types.
The system then logs all personnel action types that are executed for an employee and their related reasons in the Additional Actions infotype (0302).
It creates an Additional Actions record (0302) on the specified key date for each record in the Actions infotype (0000). -
Need sugetion for deleting credit card Transaction (i-Expense)
Hi,
I have few credit card transaction records in i-expense .
these records are not required by customer and he want to delete these data.
is there any API available for deletion of these records or any work arround.
Thanks in Advance,
AjitNot aware of any supported methods to delete the Credit Card transactions. Instead you could run the "Credit Card Historical Transactions Management" program with a value for the parameter Process set as "Deactivate Transactions" for a range of posted dates, for a specific card number. This will remove the transactions from the available list of transactions for the user
-
Report for deleting Leave Entitlement in Infotype 5
Hi all
I would like to know if there is a Standard Report to delete leave entitlement in Infotype 5: I made a mistake in generating the leave entitlement for 2007, so I would like to delete all the records inserted.
I'm working in SAP 46C, and I used HR_RPILVA00 to create leave entitlement.
TIA
PaoloHello,
I would advise you to use at customizing level which is achievable on your case.
The best way to proceed on your case would be to use IT0041 and on T559L for the relevant rule, you would use the Accrual Period Rel. to date type in which the period is defined in relation to a date type from the Date Specifications infotype (0041). You determine the accrual period using the length fields (for example, the date the employee joined the company, with the period you require, for example one year).
Then, you can accrue via RPTIME00 or RPTQTA00.
This would be much more scalable than doing customizing at code level.
Regards,
Bentow. -
HR_INFOTYPE_OPERATION - Need help w/Deleting infotype records
Hello all,
We have an issue where infotype records got created where the ENDDA is less than the BEGDA (ENDDA = 06/30/2006 and BEGDA = 07/01/2006). We are trying to delete these using HR_INFOTYPE_OPERATION but we are getting message PG-009 (No data stored for 9001 in the selected period) returned in our tests.
BTW, 9001 is one of our customer infotypes.
I know I can remove these records using a direct SQL statement, but I would prefer to remove them more gracefully if possible. Is there a way around this error? I actually think function module HR_READ_INFOTYPE is raising the error.
Any suggestions would be greatly appreciated.
Thanks,
AlYou can check report RHRHDC00, I think it can help you with custom infotype too.
Otherwise you might need to delete the records forcefully using DELETE statement, which is not suggested since all the standard FM consider BEGDA and ENDDA and in your case they will always return blank.
You can also check FM -
HR_ECM_DELETE_INFOTYPE
Regards,
Amit
Reward all helpful replies. -
Hello experts,
we have and requirement where we have to insert/delete or modify specific clock in/out posts from infotype 2011. Looking trough this forum I was not able to find how to delete or modify specific events from SAP correctly.
We are able to insert new record via FM : HR_INFOTYPE_OPERATION with ease, but can not use the same function module to either delete or modify the same record.
I was able to find FM: HR_TMW_DB_UPDATE_TEVENT and tried it in combination with HR_TMW_DB_READ_TEVENT, with out any succes.
My question is: in what way must the tables be filled for deletion or modification, for FM HR_TMW_DB_UPDATE_TEVENT to work?
With testing deleting a record, function explicitly demands taht all four tables are set
del_teven = t_teven_del
ins_teven = t_teven_ind
del_teven_more = t_teven_more_del
ins_teven_more = t_teven_more_ins
, but still the record is not deleted form table TEVEN.
Thank you in advance for any given anwsers,
MatevžHello Rajesh,
the code goes:
* get original data:
CALL FUNCTION 'HR_TMW_DB_READ_TEVENT'
EXPORTING
pernr = iv_pernr
fromdate = iv_begda
todate = iv_endda
IMPORTING
result = result_tmw.
* get next seq. nr.:
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = lv_ragne
object = lv_object
IMPORTING
NUMBER = lv_number
EXCEPTIONS
INTERVAL_NOT_FOUND = 1
NUMBER_RANGE_NOT_INTERN = 2
OBJECT_NOT_FOUND = 3
QUANTITY_IS_0 = 4
QUANTITY_IS_NOT_1 = 5
INTERVAL_OVERFLOW = 6
BUFFER_OVERFLOW = 7
OTHERS = 8.
LOOP AT result_tmw INTO s_result_tmw.
s_teven = s_result_tmw-teven.
IF s_teven-ldate = iv_ldate AND s_teven-ltime = iv_ltime AND s_teven-satza = iv_satza.
"set TEVEN_DEL tables for reading
APPEND s_teven TO t_teven_del.
APPEND s_teven_more TO t_teven_more_del.
"set status for change to TEVEN_INS tables
s_teven-pdsnr = lv_number.
s_teven-ldate = iv_ldate.
s_teven-ltime = iv_ltime.
s_teven-satza = iv_satza.
APPEND s_teven TO t_teven_ins.
MOVE-CORRESPONDING s_teven TO s_teven_more.
APPEND s_teven_more TO t_teven_more_ins.
EXIT.
ENDIF.
ENDLOOP.
* execute deletion of current record:
CALL FUNCTION 'HR_TMW_DB_UPDATE_TEVENT'
TABLES
del_teven = t_teven_del
ins_teven = t_teven_ins
del_teven_more = t_teven_more_del
ins_teven_more = t_teven_more_ins
EXCEPTIONS
insert_failed = 1
update_failed = 2
OTHERS = 3.
COMMIT WORK.
Now I am using the following code, that is working:
* get original data:
CALL FUNCTION 'HR_TMW_DB_READ_TEVENT'
EXPORTING
pernr = iv_pernr
fromdate = iv_begda
todate = iv_endda
IMPORTING
result = result_tmw.
********************************************************************** modification
* CODE : MODIFY CLOCK IN/OUT
IF iv_operation = 'MOD'.
LOOP AT result_tmw INTO s_result_tmw.
s_teven = s_result_tmw-teven.
IF s_teven-ldate = iv_ldate AND s_teven-ltime = iv_ltime AND s_teven-satza = iv_satza.
"set TEVEN_DEL tables for reading
APPEND s_teven TO t_teven_del.
APPEND s_teven_more TO t_teven_more_del.
"set status for change to TEVEN_INS tables
APPEND s_teven TO t_teven_ins.
MOVE-CORRESPONDING s_teven TO s_teven_more.
APPEND s_teven_more TO t_teven_more_ins.
EXIT.
ENDIF.
ENDLOOP.
* execute deletion of current record:
CALL FUNCTION 'HR_TMW_DB_UPDATE_TEVENT'
TABLES
del_teven = t_teven_del
ins_teven = t_teven_ins
del_teven_more = t_teven_more_del
ins_teven_more = t_teven_more_ins
EXCEPTIONS
insert_failed = 1
update_failed = 2
OTHERS = 3.
COMMIT WORK.
* insert new (updated) record of clock registration:
s_p2011-pernr = iv_pernr.
s_p2011-infty = '2011'.
s_p2011-ldate = iv_ldate_new.
s_p2011-ltime = iv_ltime_new.
s_p2011-erdat = sy-datum.
s_p2011-ertim = sy-uzeit.
s_p2011-satza = iv_satza_new.
s_p2011-origf = 'E'.
s_p2011-begda = iv_ldate.
s_p2011-endda = iv_ldate.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '2011'
number = iv_pernr
* SUBTYPE =
* OBJECTID =
* LOCKINDICATOR =
validityend = iv_begda
validitybegin = iv_endda
recordnumber = f_recordnumber
record = s_p2011
operation = 'INS'
tclas = 'A'
dialog_mode = '0'
* NOCOMMIT =
* VIEW_IDENTIFIER =
* SECONDARY_RECORD =
IMPORTING
return = fm_return
key = personaldatakey.
COMMIT WORK.
ENDIF.
Kind regards,
Matevž -
Delete InfoType records using Idoc HRMD_A05?
Hello,
We have some unwanted 167 and 168 infotype records in our database that we would like to clean up. Can we use HRMD_A05 to delete them? I can't seem to find a delete function in the Idoc fields...I would truthfully like to use the LSMW, anyone know a way other than a simple recording?
Thanks.
--JackHi Eswar
Thanks for the reply. I could not get what PFAL is. Actually, I am using IDocs to migrate data through LSMW. And I want the new HR objects to be numbered internally. However, if I leave the object ID field null and use 'Insert' for operation (OPERA) it gives error and does not post the application document (IDoc). It also gives error for operation 'Update'.
I was expecting it would generate new numbers but it did not. And what I had in the IDoc documentation does not work.
So do you or anybody has experienced such an issue before?
Thanks -
How to delete the records in BI for deleted reocrds in R/3
Hi ,
We have a scenarion described below...
We have a table in R/3 and updates happen to the table every week with a ZPROGRAM which deletes some of the records and recreates with some logic.
Assuming :
Initially, We did the load to BI and we got 200 records for last week (Initial Load)
After R/3 prgram is ran, it deletes some of the reocrds in those table , say we only have 150.
Now, Can BW somehow know , what are those records and delete those 50 records from the request which has already been loaded ?
FYI, we just have an indicator marked with X on the R/3 table if the program in R/3 has run.
I know, one solution is "selective deletion".
As we have to selectively delete every week, we do not want to take that approach.
Second is "full load" but we do not want to do full load also as the data volume is huge.
We would like to delete those 50 reocrds in BI dynamically with some ABAP code/some logic. Does anyone have any suggestions ???
Regards,
KumarHi Kumar,
I will try to explain it, but at the moment I am unable to take a look at the code.
I have set up a generic function module which will do the trick for more than one specific datasource. This function module is placed in the startroutine and only executed for the first datapackage.
Within the startroutine of the transformation, you have the possibility to use the p_r_request class. This class contains all necessary information about the current DTP load.
I use the get_source and get_target methods to determine the correct database tables dynamically. The t_h_sel (or somthing) contains the current DTP selections. This will include the RequestID and all other selections like fiscal year for example.
Because the write optimized DSO only has a technical key, we can use the RequestID to do the selection on the source table. After that you can compare the source selection with the active table of the second DSO and add all records from the second DSO that are not available in the source selection.
Please note that the key of the second DSO should be the same as the semantic key of the first DSO in order to do the compare.
Best regards and good luck!
Steven Groot -
Info records flagged for deletion don't update purchase orders
Hi, I would like to know how I can customize SAP-MM in order to avoid that the info records flagged for deletion update the purchase orders.
When I create a PO from a Purchase requisition (which have data with texts like "Vendor material number"), the Info record flagged for deletion update this data.
Thank youHello
I think inforecords flagged for deletion is not being considered for PO updation. Could you please check again.
It might be posible that 'Vendor material number' is spcified in Purchase requisition and when you create PO from Purchase requisition, it is copied from there to PO.
I hope it will resolve your issue.
Best regards
Avinash -
Dynamic PL/SQL for Deletion of Records
Dear all,
I am using Dynamic PL/SQL for Deletion of Records,In that PL/SQL, i have to get the no.of records deleted and send a report with the no.of rows deleted.
Please help me on this..
Thanks,
MurugesanHi,
Try this:
SQL> SELECT * FROM T;
DT CODE
14-FEB-07 1
14-FEB-07 1
14-FEB-07 1
14-FEB-07 2
14-FEB-07 2
SQL>
SQL> ed
Wrote file afiedt.buf
1 BEGIN
2 EXECUTE IMMEDIATE ' DELETE FROM T WHERE CODE = 1';
3 DBMS_OUTPUT.PUT_LINE(' Total Deleted Rows :'||SQL%ROWCOUNT);
4* END;
SQL> /
Total Deleted Rows :3
PL/SQL procedure successfully completed.
SQL> Regards
Avinash -
Writing a store procedure for deleting records
how can i write a store procedure for deleting records from a table.
i have a table called employees
empid
empname
deptid
and table department
deptid
dept
floor
how can i write a store procedure which would delete records of employees from employees table for particular department when i delete that department from department table.
thanks872959 wrote:
how can i write a store procedure for deleting records from a table.
i have a table called employees
empid
empname
deptid
and table department
deptid
dept
floor
how can i write a store procedure which would delete records of employees from employees table for particular department when i delete that department from department table.
thanksDoes not seem to be a sound design, to me.
Employees do not go missing when organization change is made & department is eliminated.
If you insist such nonsense, write TRIGGER to issue desired DML
Maybe you are looking for
-
If I have 2 disc in ide 1, 2 drives in ide 2, and one disc in ide 3 on a (MSI K7N2 DELTA ILSR). Could I then use both the serial-ata slots on my motherboard without losing some of the otger drives? I want to know that before i buy a new hd=)
-
ITunes Rating Stars Not Solid.
I've noticed from time-to-time that my rating stars seem to be hollow and no longer solid. What does this happen?
-
Unloading in Purchase order.
Hello All We have included unloading point as one of the field catalogs in Condition table for message determination. We need to populate the unloading point in Account assignment tab automatically while creating the purchase orders. Whether it is p
-
The problem line is: Dim Author$ = wd.ActiveDocument.BuiltInDocumentProperties(WdBuiltInProperty.wdPropertyAuthor).value.ToString "wd" is my program's instance of Microsoft Word. I've encountered this error before and could always fix the
-
Bluetooth connection to my Macbook
I'm hoping someone can help me. I would like to link my iPhone to my macbook so that I can use it as a kind of hands free headset. I am using skype on the macbook and would like to be able to talk via skype away from my computer. we don't don't have