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

Problem with READ_TEXT function

Former Member
0 Likes
547

Hi everyone,

I'm facing a little problem with the function READ_TEXT. In our system there is a smart form for PO printing. This form prints material code, material description and technical specification of the material typed in PO.

Today I realized that when someone creates a PO with no code, only typing material description, the form prints weird things.

I don't know why, but it's printing a technical specification that shouldn't be printed.

I started to debug the form code to see from where this text is coming from and I realized that the form calls the function READ_TEXT passing some parameters and retrieves the text.

During my debug, I noticed that the parameters are:

CLIENT = "520" <- Our client number

OBJECT = "MATERIAL" <- Material Object

NAME = "" <- This field is empty due the material has no code in PO (I think this is the problem)

ID = "BEST" <- I don't know what it means, but it's passing this value.

LANGUAGE = "PT" <- PT means Portuguese

The field Lines return with a wierd text.

My question is: What is the table where the system is looking for to retrieve this text? I think that someone miss-typed it there and I need know where it is to erase it.

Once I have the table, I'll look for a transaction that modifies this table so see why that text is there.

I tried debug the function READ_TEXT but I failed doing that.`

Ps: I didn't mention but I'm a just debugger, I know almost nothing about ABAP

Best Regards,

Rodrigo

Edited by: ramorim on Feb 15, 2012 11:40 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
507

Hi,

Just try these tables.

stxh, stxl, stxb , ttxit , ttxot .

2 REPLIES 2
Read only

Former Member
0 Likes
508

Hi,

Just try these tables.

stxh, stxl, stxb , ttxit , ttxot .

Read only

sjeevan
Active Contributor
0 Likes
507

In the print program please change the parameters you pass to READ_TEXT as follows

CLIENT = SY-MANDT << current client

OBJECT = "EKPO" << PO Item line

NAME = V_NAME << Concatenate EKPO-EBELN and EKPO-EBELP into V_NAME

ID = "BEST" << Purchasing

LANGUAGE = "PT" << PT means Portuguese