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

Re: READ_TEXT

Former Member
0 Likes
624

Hi All,

We hav a scenario that to retrevie the extended basic text of a material posted in the Transaction MM03.

We searched in the tables STXH & STXL using READ_TEXT Function Module but still we are unable to find the Additional text defined for that particular material.

Any idea where will it be stored n how can it be retrevied.

If someone has faced similar scenario pls suggest us the solution to retrevie the additional text of tht particular material

Suggestions and Help will be much appreciated.

Regards.

Ramesh.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
568

Hi ramesh,

please try this, might be heipful to you,

READ_TEXT

Import Parameters Value

CLIENT 800

ID GRUN

LANGUAGE EN

NAME 100-100(ur mat number)

OBJECT MATERIAL

ARCHIVE_HANDLE 0

LOCAL_CAT

Regards,

Vishveshwara.

4 REPLIES 4
Read only

Former Member
0 Likes
568

find out the TextID then check thru FM ,have u maintained the data in the server where u are testing.

check tcode SE75 for text Id list

Regards

Prabhu

Read only

Former Member
0 Likes
568

Hi,

You can retrieve the corresponding text using read text FM.In the READ_TEXT FM pass your correspong name and ID import parameters. to this function module

tables: tline.

data : gt_welcome type table of tline.

data : Xhead type thead.

CALL FUNCTION 'READ_TEXT'

EXPORTING

id = 'ST'

language = sy-langu

name = 'ZSM_EMPLOYEE_WELCOME'

object = 'TEXT'

TABLES

lines = gt_welcome

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

OTHERS = 8.

Please assign points if helpful.

Thanks & Regards

Aashish Garg

Read only

Former Member
0 Likes
568

Hi

For determining the parameters, you can do that by going to the editor of the text. Use menupath Goto->Header. Here we can find the Text-ID, Text Object and how textname is stored. Pass these parameters to FM: READ_TEXT to extract the text.

Note that material number has to be prefixed with '0' incase of numerical values. For doing so, use FM: CONVERSION_EXIT_ALPHA_OUTPUT.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
  EXPORTING
    INPUT         = itab-matnr
 IMPORTING
   OUTPUT        = itab-matnr.

Hope the above info helps you.

Kind Regards

Eswar

Read only

Former Member
0 Likes
569

Hi ramesh,

please try this, might be heipful to you,

READ_TEXT

Import Parameters Value

CLIENT 800

ID GRUN

LANGUAGE EN

NAME 100-100(ur mat number)

OBJECT MATERIAL

ARCHIVE_HANDLE 0

LOCAL_CAT

Regards,

Vishveshwara.