Help to get "text" from infotype
I need to read data from "maintain text" (PA20/PA30, Access path: Edit-Maintain text (function button - F9).) for some infotype.
So, Iu2019m using the piece of code below.
data: key like pskey.
data: begin of ptext occurs 200.
data: end of ptext.
rp-read-infotype pernr-pernr 0657 '18000101' '99991231'.
sort p0657 descending.
read table p0657 index 1.
move-corresponding p0657 to key.
import ptext from database pcl1(tx) id key.
My problem is that I have sy-subrc = 4. u201CThe specified data cluster was not found.u201D
I also used the HR_READ_INFTY_NOTE and got the same problem, sy-subrc = 4 but I know that the pernr I use has text in his data, the field itxex = 'X'.(flag checked)
Please help me to find out what it can be???
Thanks a lot!
In the function module HR_READ_INFTY_NOTE
You have to give the key as the following,
enddate (check date format)
begin date (check date format)
and Tclass as 'A'
I executed and got the text.
Please let me know if you are not able to.
Edited by: krishna reddygari on Sep 17, 2008 5:13 PM