Application Development 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: 

Get "Item category Text " using Function Module "READ_TEXT"

Former Member
0 Kudos

Hi,

I have an internal table "t_lips" for LIPS with fields POSNR, MATNR, PSTYV. I need to display the "ITEM CATEGORY TEXT" at the end of group of same items.

please let me know the Syntax of "READ_TEXT" and what all parameters we should input into the TEXT for getting ITEM CATEGORY TEXT of materails inside delivery.

Regards

Avi...

10 REPLIES 10

Former Member
0 Kudos

Hi,

TVAPT table gives the texts of Item category

Why you need fun Module Read_Text. fetch straight from the table.

Loop at t_lips.

select single vText from tvapt into v_text where pstyv

= t_lips-pstyv and spras = sy-langu.

endloop.

You have to pass OBJECT, ID , OBJECT NAME and Language for READ_TEXT fun Module.

Regards,

Anji

Message was edited by:

Anji Reddy Vangala

0 Kudos

Hi Anji,

Thanks for the REPLY

But the tech desighner have asked to use read_text , and the only input specified is ID = z008.

Please let me know the syntax for READ_TEXT for this

Regards

Avi....

0 Kudos

Hi Anji,

Thanks for the REPLY

But the tech desighner have asked to use read_text , and the only input specified is ID = z008.

Please let me know the syntax for READ_TEXT for this

Regards

Avi....

Former Member
0 Kudos

ok for which tcode you want the text just go there dbl click in the text it will go to the sccript editor there in menu goto--->header you will get all the related information like object id obj name language...

regards

shiba dutta

0 Kudos

Hi Shiba,

I want the ITEM CATEGORY Text for the materials in DELIVERY .( LIPS-PSTYV ). For that how should I go for?

regards

Avi.....

Message was edited by:

Avi

0 Kudos

if you know the name of the table field then why are you going for read_text? you can fetch that by table itself...

regards

shiba dutta

0 Kudos

Hi Shiba,

Is this the correct approach.

DATA: l_pstyv TYPE thead-tdname.

Loop at t_lips into w_lips.

l_pstyv = w_lips-pstyv.

CALL FUNCTION 'READ_TEXT'

EXPORTING

id = c_z008

language = sy-langu

name = l_pstyv

object = 'TEXT'

TABLES

lines = t_line

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

OTHERS = 8

.

IF sy-subrc <> 0.

endif.

Endloop.

Regards

Avi

Former Member
0 Kudos

for read text

this things have to pass i am giving you the thing for a sample po text..as per your need just check with your fnal where they are entering the value dbl click on that then goto--> header all the info you will get.. sorry i am not sure what in sd module i am not aware of tcode in that area..

Text Name 4500210276

Language EN

Text ID F01

Text object EKKO

CALL FUNCTION 'READ_TEXT'

EXPORTING

CLIENT = SY-MANDT

ID = 'F01'

LANGUAGE = 'EN'

NAME = '4500210276'

OBJECT = 'EKKO'

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

  • IMPORTING

  • HEADER =

TABLES

LINES = iline

  • EXCEPTIONS

  • ID = 1

  • LANGUAGE = 2

  • NAME = 3

  • NOT_FOUND = 4

  • OBJECT = 5

  • REFERENCE_CHECK = 6

  • WRONG_ACCESS_TO_ARCHIVE = 7

  • OTHERS = 8

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

regards

shiba dutta

Former Member
0 Kudos

Quetion Answered

Former Member
0 Kudos

if you solve your qery your own then let us know how do you solve that and if any help ful answer solved your problem then assign points to the helpful answers..

regards

shiba dutta