cancel
Showing results for 
Search instead for 
Did you mean: 

How to Access Infotype Text

Francis417
Participant
0 Kudos

Hi,

I would like to know if anyone can give me some sample program that allow me to retrieve or access the 'Infotype Texts' (i.e the text entered for the HR infotype using 'Edit Text'). My user always ask me if there is a way to retrieve those text without going through the infotype one by one for each employee.

Thanks,

Francis

Accepted Solutions (1)

Accepted Solutions (1)

FredericGirod
Active Contributor
0 Kudos

Hello,

Maybe if you give us the infotype number or the transaction name, we could help you more.

Your text must be store in a cluster table like the STXH/STXL tables. But with HR there are a lot of macros to read the clustered informations.

Maybe try to make an ST05 on your transaction, and have a look at the PCL1 (or PCL) table. With ST05 you could display the code used by SAP to read the informations of the PCL tables.

Have fun.

Frédéric.

ssimsekler
Active Contributor
0 Kudos

Hi Francis

You can use HR macros <b>RP-IMP-TX</b> or <b>RP-IMP-C1-TX</b>. Their source codes are contained at the table <b>TRMAC</b>. These macros import text from <b>PCL1</b> cluster table.

Include <b>RPCITD00</b> and <b>RPCITX00</b> to your main program.

<u>E.g.</u>

tx-key = ltx_key .
rp-imp-c1-tx.

Here ltx_key is a structure filled as like standard HR structure PSKEY included in infotype structures. You will have the content in the internal table <b>ptext</b>.

Hope this much helps...

Kind Regards

*--Serdar

ssimsekler@yahoo.com

Answers (2)

Answers (2)

Francis417
Participant
0 Kudos

Many thanks to all you guys for offering me your help and suggestions.

Best Regards,

Francis

ssimsekler
Active Contributor
0 Kudos

Hi Francis

Please do close the thread either assigning a 10 point or checking relevant box while replying a message. This will save others' time.

Kind Regards

*--Serdar

ssimsekler@yahoo.com

Former Member
0 Kudos

Hi Francis,

For any text related with any objects you can get from Cluster table STXH.

First retrieve object no. from the respective infotype, and then pass this object number to FM READ_TEXT which gives you the text for that Infotype.

Regards,

Bhavik

FredericGirod
Active Contributor
0 Kudos

Hello,

take care Bhavik Devisha, in HR you have others cluster like PCL1.

Regards

Frédéric