Read infotype 1010
Hi all,
i created a new subtype for infotype 1010. I added one occurence in this infotype, the HRP1010 table is filled.
Now i want to read this occurence, so i use FM RH_READ_INFTY_NNNN or FM RH_READ_INFTY or FM RH_PM_READ_INFTY.
This FMs gives me not one line but 9 lines, i don't know why.
Of course i can use SELECT command but i prefer to use FM.
Need help.
Message was edited by:
CECG
Hi hemachandran R ,
When all your conditions are satisfied, You can get the updated values from the contexts which you are using to update in the contexts by which you are displaying it on the screen.
You need not to fetch the data from the back end.
Regards,
Rohit
Similar Messages
-
SRM/HR Replication - Infotype 1010:signing authority
Hello-
We are replicating the org plan and user info from our HR system to EBP. We would like to replicate the user data regarding signing authority to the spend/approval limit area in EBP.
However we have found that HR infotype (1010) which contains the approval info is not available in the HRMD_ABA IDOC thus making it more difficult to get the data from HR to EBP. We know we will need a custom process to update the user info on the EBP side, but the IDOC badis will work just fine for this.
We are looking for a way to get this additional infotype data sent to EBP with the existing IDOC. Has anyone else accomplished the transfer of infotype 1010? We are looking at extending the idoc or using custom RFCs to get the data, but we don't really like these options.
SRM4.0/EBP5.0 SP09
HR 4.7
Your advice is greatly appreciated.
Regards-
bBrian,
We are facing a similar requirement with my client. Did you develop a custom program in SRM to map the IT1010 in SAP R/3 to the Spend/Approval Limit attribute int SRM or did you have to create a RFC call from SRM to R/3 during the workflow execution to read the IT1010 attribute?
-regards
Shaz -
Hi ,
i need to delete all the records with subty X1 for infotype p0019 . I should n't use the logical database instead i am using macro RP-READ-INFOTYPE to retrieve the valid data but here in case of P0019 the begda and endda of a record will be same and i need to delete the records even if they are in past . But the macro RP-READ-INFOTYPE is not going to work in this case as it checks against dates and the records are in past so it will not retrieve any data . So any thoughts on how to get the data for P0019 with subty X1 without using the logical database PNP.
Thanks,
Latha.Use HR_READ_INFOTYPE FM to retreive the desired result.........
Pass begda 01/01/1800 endda = '12/31/9999' and subtype you want.......
Not your infotype table will fill with all the data now you manipulate as you desired
Let me know if you need any further help!!!
Sas -
Read infotype using HR_READ_INFOTYPE
Hi all,
I Try to read infotype (pa0021) using HR_READ_INFOTYPE. Its getting fine.
Im using Web Dynpro ABAP Interactive form.
I want to insert some value in infotype pa0021, so i used HR_INFOTYPE_OPERATION.
Data's are Inserting.
The problem is if i press the Save button, Inserting values are not getting, when i use HR_READ_INFOTYPE in the same session. The new values are updated in the Backend but its not getting
in the same session. because if i press the save button means, i want to save the data and again i want to show the saved data back .But if i close the session and open once again means its reflection the new values.
I used BAPI_TRANSACTION_COMMIT also but i no success.
Please Give some solution for this problem, its very urgent.
Thanks & Regards,
Hemachandran.R
Edited by: hemachandran R on Oct 22, 2008 8:54 AM
Edited by: hemachandran R on Oct 22, 2008 8:54 AMHi hemachandran R ,
When all your conditions are satisfied, You can get the updated values from the contexts which you are using to update in the contexts by which you are displaying it on the screen.
You need not to fetch the data from the back end.
Regards,
Rohit -
Reading Infotype using HR_READ_INFOTYPE
Hi all,
I Try to read infotype (pa0021) using HR_READ_INFOTYPE. Its getting fine.
Im using Web Dynpro ABAP Interactive form.
I want to insert some value in infotype pa0021, so i used HR_INFOTYPE_OPERATION.
Data's are Inserting.
The problem is if i press the Save button, Inserting values are not getting, when i use HR_READ_INFOTYPE in the same session. The new values are updated in the Backend but its not getting
in the same session. because if i press the save button means, i want to save the data and again i want to show the saved data back .But if i close the session and open once again means its reflection the new values.
I used BAPI_TRANSACTION_COMMIT also but i no success.
Please Give some solution for this problem, its very urgent.
Thanks & Regards,
Hemachandran.R
Edited by: hemachandran R on Oct 22, 2008 9:02 AMHi Hema,
Make a new context attribute 'ca_temp'
and then
set single attribute
lo_el_context->set_attribute(
EXPORTING
name = `CA_TEMP`
value = <new_value> ).
And use this CA_TEMP where ever you want. for more than one value make node in place of attribute.
Hope it works.
Regards,
Rohit -
Need an alternative to rp-read-infotype to display infotype txts frm a BSP?
Hi All,
I need to display infotypes maintained texts(F9) from a bsp. I created a test program to read these texts using rp-read-infotype and got it working but didn't realise i couldn't use this method in a BSP until i copied it in. total bummer!
Does anyone know of an alternative that i can use in a BSP.
Thanks in advance,
Liz.Can you try using FM READ_TEXT / RFC_READ_TEXT to get the infotype text
and then find the equivalent function on BSP side . -
hi...
is there any RFC function modules for reading infotype details.........
thank
prabhakarBAPI_EMPLCOMM_GETDETAIL - Communication infotype - infotype 0105
BAPI_INTCONTROL_GETDETAIL - Internal cont - infotype 32
BAPI_PDOTYPES_GETDETAILEDLIST - PD infotypes
BAPI_ABSENCE_GETDETAIL - infotype 2001
BAPI_W4W5INFOUS_GETDETAIL - W4/W5 info of an emp - infotype 210
BAPI_DATESPECS_GETDETAILEDLIST - Date specifications -infotype 41
RFC_ABSENCETYPES_READ - RFC which Lists absence types
HR_BEN_READ_CREDIT_PLANS - RFC for reading credit plans
HR_BEN_READ_INSURE_PLANS - RFC for reading insurance plans.
HR_BEN_READ_HEALTH_PLANS_RFC RFC for Reading Health plans -
Friends i'm writing a report. Which give employees qualification and desired and assessed profeciencies. I'm unable to read infotype 0025. Data is there, but pa0025 table is showing empty status.
Hi u wont find any entries in PA0025.
Try using this FM
HRWPC_RFC_QUALIFICATION_STAFF
In this FM U have to pass the Qualification ID
U can also have a look at
CALL FUNCTION 'RHPP_Q_PROFILE_READ'
EXPORTING
BEGDA = sy-datum
ENDDA = sy-datum
WITH_STEXT = 'X'
WITH_QK_INFO = 'X'
CHECK_NOTE = ' '
TABLES
OBJECTS = IT_P_OBJECTS
ERR_OBJECTS =
PROFILE = IT_QUALIFICATION_TAB
EXCEPTIONS
NO_AUTHORITY = 1
WRONG_OTYPE = 2
OBJECT_NOT_FOUND = 3
UNDEFINED = 4
OTHERS = 5
IF SY-SUBRC <> 0.
raise nothing_found.
ENDIF.
~ BiSu
Message was edited by:
Biswajit Das
Message was edited by:
Biswajit Das -
Authorities and Resources ( infotype 1010 )
Hello gurus,
I'm not expert in HR and I need to use a table to HR to my workflow for release strategies. Now, I'm checking that the table HRP1010 is updated in base of Authorities and Resources ( infotype 1010 ), so, my question is: how can I update this table? Do I need to customize this info type 1010 first? Where I update this infotype, in wich transaction?
Thanks for your time and support.
I will wait your answer a.s.a.p.
Regards,
Sandra PalomoHai..
Personnel Management
Global Settings in Personnel Management
Organizational Management
Basic Settings
Transport
Workbench Data Transfer
Integration
Infotype Settings
Activate/Deactivate "Vacancy" Infotype
Working Time
Set up Check Values for Authorities/Resources -
Adding read infotype records to payroll
Dear ,
i 've used the code mentioned in this link to read the infotype records .
Use SAP defined methods instead of Logical Database(LDB)
now i want to add this record to the tree in the payroll . could u plz tell me how to add it to a node in the additional payment tree node.
Edited by: Kathy_Adam on May 22, 2010 3:40 PMHi,
1. Create new payroll function code in payroll driver exist. Starts with FU<custom name>.
2. Create new function via PE04 with custome name.
3. Add custom function to payroll schema.
Custom name should start with special character, e.g. %, &, :, etc.
User exit is special for every country driver, check payroll driver program and figure out its name.
Cheers -
Where condition for reading infotype while using ldb
hi
i want to read info from infotype p0000
using where condition eg: for pernr = ' '.
i am using LDB pnp.
how can i put the where condition while using macro
rp-provide-from-last.
regards
csin fact you don't have to get the values, you only need to tell to the program to take them into account :
GET PRPS.
CHECK SELECT-OPTIONS. -
Reading infotype 2050 ( No database table )
Hi to all experts,
I have a requirement to display the details exactly as in infotype 2050. When you check 2050 how it is displayed the annual calender i need to display exactly as it is .I tried using LDB, Macro, FM but the database table for 2050 doesnt exist.The p2050 is there but there is no pa2050. There is no underlying database table for that infotype 2050 (annual calender display).
I check some related fm
like module HR_PERSONAL_WORK_SCHEDULE
any information regarding this will be greatly appreciated.
THanksActually this information is retrieved based on the data of Planned Working Time, Infotype (0007) and Absences, Attendances and Substitutions (2001, 2002, 2003), there's no specific Infotype DB Table.
You were using the Correct FM to read the Employee's work schedule (Relevant data is retrieved in PERWS parameter)
CALL FUNCTION 'HR_PERSONAL_WORK_SCHEDULE' "XOQK064687
EXPORTING "XOQK064687
PERNR = PSPAR-PERNR "XOQK064687
BEGDA = FIA_BEGDA "XOQK064687
ENDDA = FIA_ENDDA "XOQK064687
SWITCH_ACTIV = 1 "XOQK064687
READ_CLUSTER = READ_CLUSTER "YMMAHRK037395
TABLES "XOQK064687
I0000 = M0000 "XOQK064687
I0001 = M0001 "XOQK064687
I0002 = M0002 "XOQK064687
I0007 = M0007 "XOQK064687
I2001 = M2001 "XOQK064687
I2002 = M2002 "XOQK064687
I2003 = M2003 "XOQK064687
PERWS = PSP2050 "XOQK064687
EXCEPTIONS "XOQK064687
ERROR_OCCURED = 1 "XOQK064687
ABORT_OCCURED = 2 "XOQK064687
OTHERS = 3. "XOQK064687
If you need to do something similar you'll have to check the IT2050 code -
im trying to read data from infotype 0002 by using hr_raed_infotype
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
TCLAS = 'A'
pernr = 10
infty = '0002'
BEGDA = 'sy-datum'
ENDDA = '99991231'
tables
infty_tab = i_0002
EXCEPTIONS
INFTY_NOT_FOUND = 1
OTHERS = 2
i declared internal table using
DATA: i_0002 like P0002 occurs 0 with header line.
but my internal table is not getting populated.
also plz can anyone explain how to use select statements in hr reporting.
thnxjust copy & paste it will work
tables : P0002 .
parameter : s_pernr like P0002-pernr .
DATA : infty_tab TYPE TABLE OF p0002,
wa_infty TYPE p0002.
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
* TCLAS = 'A'
pernr = s_pernr
infty = '0002'
* BEGDA = '18000101'
* ENDDA = '99991231'
BYPASS_BUFFER = 'X'
* LEGACY_MODE = ' '
* IMPORTING
* SUBRC =
TABLES
infty_tab = infty_tab
* 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.
reward points if it is usefull .
Girish -
im trying to read data from infotype 0002 by using hr_read_infotype
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
TCLAS = 'A'
pernr = 10
infty = '0002'
BEGDA = 'sy-datum'
ENDDA = '99991231'
tables
infty_tab = i_0002
EXCEPTIONS
INFTY_NOT_FOUND = 1
OTHERS = 2
i declared internal table using
DATA: i_0002 like P0002 occurs 0 with header line.
but my internal table is not getting populated.
also plz can anyone explain how to use select statements in hr reporting.
thnxjust copy & paste ... i modified you query .. it works now
tables : P0002 .
parameter : s_pernr like P0002-pernr .
DATA : infty_tab TYPE TABLE OF p0002,
wa_infty TYPE p0002.
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
* TCLAS = 'A'
pernr = s_pernr
infty = '0002'
* BEGDA = '18000101'
* ENDDA = '99991231'
BYPASS_BUFFER = 'X'
* LEGACY_MODE = ' '
* IMPORTING
* SUBRC =
TABLES
infty_tab = infty_tab
* 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.
reward points if it is suefull .
Girish -
Hi friends
I have to read recent (last) record from the following HR tables/infotypes. Shall I use RP_PROVIDE_FROM_LAST macro? Is there any other other good way to read data? Please give me some sample code. I will appreciate ur great help.
PA0001
PA0002
PA0006
PA0008
PA0041
HRP1001
HRP1015
Thanks in advance
HariHello Hari
The following coding shows you how to read any infotype (even simultaneously) for an employee.
METHOD get_infotype_0027 .
* define local data
DATA:
lif_employee type if_pt_employee,
lt_infotypes TYPE tim_tmw_itlist_tab,
lo_control TYPE REF TO if_pt_td_control,
lo_data TYPE REF TO if_pt_td_base,
lo_pnnnn TYPE REF TO if_pt_td_itnnnn,
ls_p0027 TYPE p0027.
* Create employee instance
lif_employee = cl_pt_employee=>get_employee( p_pernr ).
* Append all required infotypes to itab
APPEND '0027' TO lt_infotypes.
CALL METHOD lif_employee->get_infotypes
EXPORTING
i_itlist = lt_infotypes
i_fromdate = id_fromdate
i_todate = id_todate
* I_FILTER =
i_noauthcheck = 'X'
IMPORTING
e_result = me->mt_infty_request
e_retcd = me->md_retcd.
* Please see documentation of parameter e_retcd...
LOOP AT me->mt_infty_request INTO lo_control.
lo_data = lo_control->data. " get data object
* Casting
TRY.
lo_pnnnn ?= lo_data.
CATCH cx_sy_move_cast_error.
CONTINUE.
ENDTRY.
* Convert infotype (semi-transparent -> transparent)
CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
EXPORTING
prelp = lo_pnnnn->prelp
IMPORTING
pnnnn = ls_p0027.
APPEND ls_p0027 TO rt_p0027.
ENDLOOP.
* Store infotype 0027 data
me->mt_p0027 = rt_p0027.
ENDMETHOD.
Unfortunately, I do not have a similar solution for the HRP... tables.
Regards
Uwe
Maybe you are looking for
-
Looking for Yahoo Calendar Widget
Hi Folks, I can't find a yahoo calendar widget..I found one that does email notification and news, but not calendar. I use Yahoo Calendar, but find that I don't use my yahoo home page as much since I switched to Mac from windows. I can is not worth a
-
Sound sync errs in Encore (PP4.0.0)
A show that plays fine in PP CS4 when processed thru Encore produces a DVD in which the sound and picture are almost one second off. I've used Premiere for 10 years, Encore occasionally for 3-4 years, but have not encountered this. (This is on a Mac
-
Table of Contents Order Question
I have a table of contents set up in my document with a Section Header and underneath that the page number followed by the page title. Example: ELEPHANT 3 PEANUTS The problem is that on right handed pages it puts the Section Header BELOW the page nu
-
Forms 10.1.2 release date
Hi, Grant can you tell when the relase will be out and what news features are included. ThankS Jean-Yves
-
Incorrect data_length for columns with char semantics in 10g
Hi, I was going through a few databases at my work place and I noticed something unusual. Database Server - Oracle 10g R2 Database Client - Oracle 11g R1 (11.1.0.6.0 EE) Client OS - Win XP SQL> SQL> @ver BANNER Oracle Database 10g Enterprise Edition