Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Reading Infotype using HR_READ_INFOTYPE

Former Member
0 Likes
619

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 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
582

Hi,

When you read the infotype using HR_READ_INFOTYPE set BYPASS_BUFFER = 'X'.

Regards,

Darren

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 AM

3 REPLIES 3
Read only

Former Member
0 Likes
583

Hi,

When you read the infotype using HR_READ_INFOTYPE set BYPASS_BUFFER = 'X'.

Regards,

Darren

Read only

0 Likes
582

hi Darren

thanks for kind reply. now its working fine.

Thanks,

Hemachandran.R

Read only

Former Member
0 Likes
582

Hi 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