09-17-2008 3:06 PM
Hi Everybody,
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.
tables: pernr.
infotypes: 0657.
data: key like pskey.
data: begin of ptext occurs 200.
data: line(72).
data: end of ptext.
get pernr.
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!
Sasha.
09-17-2008 4:05 PM
Hi Sasha,
In the function module HR_READ_INFTY_NOTE
You have to give the key as the following,
PERNR
000XXXXX
INFT
0105
SUBT
0001
OB
nothing
S
nothing
ENDDA
enddate (check date format)
BEGDA
begin date (check date format)
SEQ
000
and Tclass as 'A'
I executed and got the text.
Please let me know if you are not able to.
thanks,
krishna
Edited by: krishna reddygari on Sep 17, 2008 5:13 PM
09-17-2008 4:05 PM
Hi Sasha,
In the function module HR_READ_INFTY_NOTE
You have to give the key as the following,
PERNR
000XXXXX
INFT
0105
SUBT
0001
OB
nothing
S
nothing
ENDDA
enddate (check date format)
BEGDA
begin date (check date format)
SEQ
000
and Tclass as 'A'
I executed and got the text.
Please let me know if you are not able to.
thanks,
krishna
Edited by: krishna reddygari on Sep 17, 2008 5:13 PM
09-17-2008 8:53 PM
Hi Krishna,
You're right. I have just tried HR_READ_INFTY_NOTE one more time with all data filled and got the text. I just need to find out why import ...from database does not work but anyway I can use HR_READ_INFTY_NOTE instead.
Thanks a lot!!
My problem was that I need to take only the records with itxex = 'x'
Edited by: Sasha on Sep 17, 2008 10:03 PM