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 AM
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
-
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 -
Which Syntax is best to read an infotype using PNPCE LDB ?
Hi experts,
Which syntax is best to read an infotype when we use PNPCE LDB.
Thanks.
reddyHi Iredy,
if you need to read an infotype records of the particular employee, you can use Macro RP-READ-INFOTYPE (Parameters: PERNR, INFTY, BEGDA, ENDDA)
Macro definition you can find in table TRMAC.
For RP-READ-INFOTYPE is definition as follows:
RP-READ-INFOTYPE 001 ****************************************
RP-READ-INFOTYPE 002 * RP-READ-INFOTYPE *
RP-READ-INFOTYPE 003 ****************************************
RP-READ-INFOTYPE 004 * PARAMETERS: *
RP-READ-INFOTYPE 005 * PERNR REQUESTED PERSONALNUMBER*
RP-READ-INFOTYPE 006 * INFTY REQUESTED INFOTYPNUMBER *
RP-READ-INFOTYPE 007 * INFTY-TABLE OUTPUT-TABLE LIKE PNNNN*
RP-READ-INFOTYPE 008 * BEGDA REQUESTED INTERVAL-BEGIN*
RP-READ-INFOTYPE 009 * ENDDA REQUESTED INTERVAL-END *
RP-READ-INFOTYPE 010 ****************************************
RP-READ-INFOTYPE 011 *SET DEBUGGING INTERRUPT ON *
RP-READ-INFOTYPE 012 PERFORM READ-INFOTYPE(SAPDBPNP) *
RP-READ-INFOTYPE 013 TABLES &3 *
RP-READ-INFOTYPE 014 USING &1 '&2' &4 &5
RP-READ-INFOTYPE 015 *SET DEBUGGING INTERRUPT OFF *
It means that the macro is performing read-infotype which is defined in include DBPNPF03 of the SAPDBPNP. -
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 -
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 -
Update infotype using class method
Hi All,
I need to update an infotype using a Class method. I need to pass a file as input to the Class Structure.
How can we pas a file as input to the Class structure.
Any pointers on this would be really helpful.
Thanks,
SaherHello,
You can update/insert records in Info type thru below code using FM: HR_INFOTYPE_OPERATION, but you need to get the data from the file to internal table for the same.
LOOP AT t_insert INTO w_insert.
w_pernr = w_insert-ownnum.
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
pernr = w_pernr
infty = c_infty "'0105'
TABLES
infty_tab = t_0105
EXCEPTIONS
infty_not_found = 1
OTHERS = 2.
READ TABLE t_0105 INTO w_0105 WITH KEY pernr = w_insert-ownnum"#EC *
subty = c_subu.
IF sy-subrc = 0.
MOVE w_0105 TO w_p0105.
w_p0105-usrid = w_insert-lanid.
CLEAR w_0105.
ELSE.
w_p0105-pernr = w_pernr.
w_p0105-usrid = w_insert-lanid.
w_p0105-begda = sy-datum.
w_fnr = 'X'.
ENDIF.
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
number = w_pernr.
w_p0105-pernr = w_pernr.
IF w_fnr = 'X'.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = c_infty "'0105'
number = w_p0105-pernr
subtype = c_subu "'0001'
validityend = w_p0105-endda
validitybegin = w_p0105-begda
record = w_p0105
operation = c_oprn "'INS'
tclas = 'A'
dialog_mode = '0'
IMPORTING
return = w_return.
ELSE.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = c_infty "'0105'
number = w_p0105-pernr
subtype = c_subu "'0001'
validityend = w_p0105-endda
validitybegin = w_p0105-begda
record = w_p0105
operation = 'MOD' "'MOD'
tclas = 'A'
dialog_mode = '0'
IMPORTING
return = w_return.
ENDIF.
CLEAR w_fnr.
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
number = w_pernr.
endloop.
Hope it helps.
Thanks,
Jayant -
Updating Infotype using function module HR_INFOTYPE_OPERATION
Hi There ,
lets understand my problem related to updation of infotype .
I have a record maintained in my table within date range 01/04/2010 to 31/12/9999.
now i update my new tax rate from 1st June 2010 .
The requirement is i shall two records now :
First record from 01/04/2010 to 31st may 2010 shall be maintained .
hence we need to modify the existing record only changing the end date .
Second record will be a new record starting from 1st june , ending 31/12/9999.
Approach followed by me :
using HR_READ_INFOTYPE to read the data .
Then using HR_INFOTYPE_OPERATION
---> ACTION : "MOD" to update existing record by passing end date as 31st may 2010 .
Then using action : INS to create a new record .
but this approach is failing since i am itself not able to modify the existing record .
Please let me know the correct way of updating the record .
Regards,
Abhishek.It depends on infotype. Every infotype has a time link.
Sometimes you can have a record for a day or more than one. You can have continuous records or not.
I think your infotype has class 1 and it's continuous in time to the end (99991231) -
Custom Infotype - Using Table control in the screen. IN OM
Hi,
I am having a requriement where in I need to create a custom infotype using table control in the screen. I have to create this in OM and I am using PPCI transaction to create the info type. I am able to create the infotype with fields but not table control. Please let me know if any one of you came across and help me with the process I need to follow.
Thanks in advance.
Venkat.Hello,
After you create the info type throug PPCi, you can directly go to the Sceen module program created automatically while creating Info type and edit the screen.
activate it after your changes.
Regards,
Srujan. -
HOW to use HR_READ_INFOTYPE FM
Hi Guy's,
How to use " HR_READ_INFOTYPE" Function module.
Thanks and Regards,
Bhavanihi use this,
*& Report ZVENKAT_03
REPORT ZVENKAT_03.
tables:p0002.
data: it_data type p0002 occurs 0 with header line.
data: it_data1 type p0008 occurs 0 with header line.
data:v_name1 like p0002-cname,
v_date like p0041-dat01.
data:begin of it_p0002 occurs 0,
pernr like p0002-pernr,
begda like p0002-begda,
endda like p0002-endda,
vorna like p0002-vorna,
nachn like p0002-nachn,
end of it_p0002.
data:begin of it_p0008 occurs 0,
pernr like p0008-pernr,
begda like p0008-begda,
endda like p0008-endda,
ansal like p0008-ansal,
bet01 like p0008-bet01,
preas like p0008-preas,
end of it_p0008.
parameters:p_pernr like p0002-pernr.
start-of-selection.
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
pernr = p_pernr
infty = '0002'
TABLES
infty_tab = it_data.
if sy-subrc eq 0.
it_p0002-pernr = it_data-pernr.
it_p0002-begda = it_data-begda.
it_p0002-endda = it_data-endda.
it_p0002-vorna = it_data-vorna.
it_p0002-nachn = it_data-nachn.
append it_p0002.
clear it_p0002.
endif.
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
pernr = it_data-pernr
infty = '0008'
BEGDA = it_data-begda
ENDDA = it_data-endda
TABLES
infty_tab = it_data1.
if sy-subrc eq 0.
it_p0008-pernr = it_data1-pernr.
it_p0008-begda = it_data1-begda.
it_p0008-endda = it_data1-endda.
it_p0008-ansal = it_data1-ansal.
it_p0008-bet01 = it_data1-bet01.
it_p0008-preas = it_data1-preas.
append it_p0008.
clear it_p0008.
endif.
sort it_p0002 by pernr begda.
read table it_p0002 index 1.
write:/ it_p0002-pernr,it_p0002-begda,it_p0002-endda,it_p0002-vorna,it_p0002-nachn.
sort it_p0008 by pernr.
read table it_p0008 with key pernr = it_p0002-pernr.
write:/ it_p0008-pernr,it_p0008-begda,it_p0008-endda,it_p0008-ansal,it_p0008-bet01,it_p0008-preas.
sort it_p0008 by pernr.
read table it_data1 index 2 .
write:/ it_data1-ansal.
regards,
venkat. -
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 . -
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 -
I have huge lag with Safari's Reading List using a rMBP. I have probably 80 articles saved, which is likely the cause of the lag. Is there any way to export that list of articles so as to be able to delete them from Reading List but still have a record of the articles I intend to read?
I'm currently dealing with this issue myself, except that my rMBP has NO articles in the reading list. It's a brand new rMBP too, purchased just this week, with the 2.6 Ghz Processor & 16GB of RAM.
Let's see what we can find. I may just take it back to the Apple Store. -
Open several PDFs in the same Reader window using tabs for each document
How do I open several PDFs in the same Reader window using tabs for each document? I'm using Reader 11.0.03 and Windows 7.
That would be a nice feature! Suggest it at https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform - hopefully it will make it into Reader XII.
-
Can't read email using my primary apple email account
Ok, I'm new to this forum but here is my problem
Usually I can read Email using my primary Apple E-mail account BEFORE I updated my Ipad into IOS 8.
After I updated my Ipad into IOS 8 (non-jailbreak and from IOS 5 jailbreak), My Ipad says that I need to sign up an Icloud email to use the Mail App.
Then I can't use my Primary Apple Account as an E-mail anymore. When people send a mail to my primary apple account, I cant read it because I cant read emails using my Primary Apple Account anymore.
When I signed in with my primary apple Email account and opened my Mail App, It used my Icloud email instead my primary apple email.
I tried everything Include making an email aliases but my primary apple email uses @Yahoo.com and I can only use aliases of @Icloud.com
Can someone please help me so I can read E-mails when people send an Email to my primary apple account? Because I need to see those subcription mails and change my password of my online game account(<- This one is URGENT).
And sorry for my bad English because I'm Indonesian.Welcome to discussions,
go to settings/mail, contacts.../your mail account/outgoing mail server settings/ and see if you put in the needed password to access your mail server.
Also check out this help article about your issue for more tips: http://support.apple.com/kb/TS2770 -
I used a projecteor a while back in a Power Point presentation. Now my menus for Adobe are very small and hard to read. The print command is so compressed that I cannot read or use it. How do I fix this problem?
There is no application called "Adobe" - you are either working with Adobe Acrobat or the free Adobe Reader. Open up the preferences for the application (Edit>Preferences), then go to the "General" category and modify the settings for "Scale for screen resolution". You will have to restart the application after you do that. Does that fix your problems?
Maybe you are looking for
-
Hi List I have a problem similar to others within here, but the fixes that have worked for others are no use with me! Recently had a hd failure, rebuilt with new drive Segate baracuda 160 Resinstalled 10.4.3 since then Spotlight just keeps searching
-
Which is the BEST of the BEST of the BEST???
Hi People, i am an amateur in the field of Java & Oracle. Having decided to base my career in J2EE and Oracle, i am very confused as to what type of application server to learn in order to develop Enterprise class applications. i have just filtered d
-
Load Balancing simple question
Hi, i'm using CSS 11501 to load balance some web servers using src IP. if one src IP is directed to certain web server, How much time has to pass for this same src IP to be directed to other web server? Thank you in advance!
-
Best way of using my zen xtra 60gb with speake
Bearing in mind i'm not very technical , but learning! Can i use my zen xtra with amp and speakers system to act as a stereo system? when i connect it up the volume is really low and have to turn amp up too the max to get a loud enough sound? What do
-
Multiple mp4 files in one Slide
When I place two mp4 files in one slide, neither one plays. Each play fine in a separate slide, but grouped together they do not. Any idea why?