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

Read_text function for material master PO text

Former Member
10,067

Hi,

I found this tutorial to use read_text function to display texts:

http://abaplovers.blogspot.it/2008/02/function-modules-create-text-and-read.html

Now my problem is to display the text of the material master view "Purchase order text"

When I execute the function by SE37 I can see the following:

CLIENT

ID

LANGUAGE

NAME

OBJECT

ARCHIVE_HANDLE

LOCAL_CAT

LINES

Don't know what values should I have to enter for the field in "bold" format.

Thanks

Regards

1 ACCEPTED SOLUTION
Read only

former_member15255
Active Participant
5,399

Hello,

The table to look for standard text in SAP is STXH, STXL. By looking at the tables you will get a fair idea of the  data needs to be provided to the function module READ_TEXT.

ID : BEST

NAME : <MATERIAL NUMBER>

OBJECT : MATERIAL

ARCHIVE_HANDLE:     N/A

LOCAL_CAT : N/A

LINES :N/A

Regards

Suresh Nair

5 REPLIES 5
Read only

fmunozb
Active Participant
0 Likes
5,399

Hello Guest,

One way is going to make them function module through SE37 transaction and put a break point in session, then you log in to view this material where the text and should enter debuguer, from here you can view the data that is should call the function module READ_TEXT.

Regards.

Read only

former_member15255
Active Participant
5,400

Hello,

The table to look for standard text in SAP is STXH, STXL. By looking at the tables you will get a fair idea of the  data needs to be provided to the function module READ_TEXT.

ID : BEST

NAME : <MATERIAL NUMBER>

OBJECT : MATERIAL

ARCHIVE_HANDLE:     N/A

LOCAL_CAT : N/A

LINES :N/A

Regards

Suresh Nair

Read only

former_member213851
Active Contributor
0 Likes
5,399

Hi ,

With regards to getting text id's etc.

eg: PO texts.

--> Go into the material master PO text

--> Double click into the required text.

--> Click the "GO TO" menu option.

--> click Header.

and all the info you need is there.

Regards,

Sachin


Read only

Former Member
0 Likes
5,399

Hi,

ID = 'BEST'

LANGUAGE = 'E'

NAME = Enter the material numer with complete length (eg. if material is A101 then 00000000000000A101)

OBJECT = 'MATERIAL'

Test the same in se37

You can find ID, NAME  and Object details in PO text by opening the same in script mode and choosing the menu options "Header".

Check the below link as well :-

http://scn.sap.com/thread/400320

Regards,

Rahul Singh

Read only

Former Member
0 Likes
5,399

Hi,

Use the Import Parameters with the following details

ID : BEST

LANGUAGE : Desired Language (EN)

NAME : Material Number ( Entire value Without Removing the Prefix zeros )

OBJECT : MATERIAL

You can get the text in the Tables LINES-TDLINE.

Use STXH and STXL for the inputs to the READ_TEXT Function Module.

Regards,

AyyamPerumal