Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Help to get "text" from infotype

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.

Tags:
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question