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

Facing Problem with Inforecord texts and read_text function

kesavadas_thekkillath
Active Contributor
0 Likes
1,293

Hi All,

I have a program which changes the Info record texts.

The logic goes this way, if there is any texts existing for an inforecord then it would append the new texts else it will create new ones.

When i see the standard info record display transaction it displays texts which already exists.

When i pass all the parameters exactly to the function module READ_TEXT its does not return the text which was displayed in the transaction.

Also there is no entry existing in STXH and STXL tables.

Due to this what happens is when the program is executed it just does not appends texts to existing one and the old text gets deleted.

Why is it that it that the texts gets displayed in the transaction and is not returned by the fm READ_TEXT. Any ideas ?

7 REPLIES 7
Read only

Former Member
0 Likes
990

Which Text Object & Text ID is used to extract long text OR can you share the parameters values used in READ_TEXT?

Read only

0 Likes
990

Hi Vinod,

Text id - BT

Text Object - EINE

Read only

0 Likes
990

Hope you are passing the value to parameter NAME as concatenated data in table fields EINE-INFNR, EINE-EKORG & EINE-ESOKZ.

Read only

0 Likes
990

Vinod,

Its like this

name - 5400090144US0104110

5400090144 - Inforecord No

US01 - Purch.Org

0 - Category

4110 - Plant

Read only

0 Likes
990

Is there any chance that that the texts get archived or some thing like removing it from STXH , STXL ?

I see a archive parameter in Read_text fm.

Read only

0 Likes
990

It works well for me for the combination of data given by you. Not sure about archived Long texts, check by passing ACTIVE_HANDLE = 1. Hope info record is maintained for combination of Purchase Organization/Info Record Type/Plant.

Read only

0 Likes
990

Hello

Try with 5400090144US010 (without plant)...