Doubt reading Infotypes.
Good Morning Friends.
I'm working with ABAP - HR and it is my firts time with HR.
I'm working with a program and I heve a code:
lm_read_infty <ls_pa9002>-pernr '0002' lt_p0002 <ls_pa9002>-begda <ls_pa9002>-endda.
I,m reading the infotype with dates <ls_pa9002>-begda and <ls_pa9002>-endda.
The functional wants that i change the <ls_pa9002>-endda and insert '99991231'.
then i do:
lm_read_infty <ls_pa9002>-pernr '0002' lt_p0002 <ls_pa9002>-begda '99991231'.
Ok worked .
But now the functional wants that i read the infotype only with '99991231' and remove the <ls_pa9002>-begda.
if i write:
lm_read_infty <ls_pa9002>-pernr '0002' lt_p0002 '99991231'.
occurs errors of quantity of parameters:
How can I do this read only with '99991231'.?
Thanks for help
Just go for
lm_read_infty <ls_pa9002>-pernr '0002' lt_p0002 '00000000' '99991231'.
or
lm_read_infty <ls_pa9002>-pernr '0002' lt_p0002 sy-datum '99991231'.
That should do the trick.
Similar Messages
-
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 -
Hi All,
when we create an infotype we give 2 screen numbers (eg,2000 and 3000). Could you please tell me what is the significance of these two numbers.
I feel that 2 different screens will be generated.Please Correct me if i am wrong ,but if so how can i distinguish those two screens.
where can i see two different screens ?
regards,
SGhi
let me clear ur doubt
Take any infotype , when you want to enter any record , you go to pa30 , then enter the infotype lets sat 0001 , when u press on the create or edit button you get a screen with all editable and non editable flds on there . That is the first screen 2000
If you click on the overview button you get a list screen that is 3000.
In SM30 you will get all the flds first to filter on any of the flds and then you get the data after you click on the execute button.
This is true for all infotypes.
What is the actual problem you are facing. -
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 -
Read infotype records using the classes
Hi All,
In my system i can see many classes with cl_hrpa*
Here i want to read a infotype record using these classes. I want finally the data in PA0008 or a record in P0008 format.
i tried using the various classes like
cl_hrpa_masterdata_factory
if_hrpa_infty_bl
hrpad_infty_container_tab
I tried using the sevaral calsses passing one class type to other. finally i get is the class cl_hrpa_infotype_0008_in.
can any one suggest how i should be reading the data for any infotype.
Pls do not suggest the function module HR_READ_INFOTYPE. I want to use these classes to read the data.
Pls suggest
Regards,
Umesh Chaudhari.Hi,
Did you get any replies to this or have you found an answer on your own?
Regards,
LC
Maybe you are looking for
-
File to IDOC Scenario: where to import the idoc structure?
Dear all, I have a short organizational question for you all. I have created a scenario where the MDM server places a file in a FTP directory and XI will take it from there for processing to IDOC towards the SAP system. During design time I need to i
-
Can i know the differences between distributed control system and plc
also i needto know about the various functional units in a gas based co-gen plant
-
Older quicktime cannot be removed, technical support?
i cannot download the new version of itunes and quicktime. the display says that the older version cannot be removed. it says to contact technical support group?? what should i do plz help me
-
Calling a methos using groovy expression
Hi!! I am using jdeveloper 11.1.1.5., I had created an transient attribute in my VO. I had also coded a method which returns some value in my AMImpl. My Scneario : I need to set the method's return value to my transient attribute.
-
How can I add my Host String in the Registry?
Hi everybody, I know there's a way to add the Host String in the Registry, but I don't remember how to do it? Can anyone please help me. I want to do this because every time I log in I just want to type the username and password and not the Host Stri