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

va03

Former Member
0 Likes
489

fetch item text from va03?????

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Jan 30, 2008 5:22 PM

3 REPLIES 3
Read only

Former Member
0 Likes
456

Hi,

You can use the Function Module: READ_TEXT for reading the item level texts and display.

Once you go to VA03, from the menu Goto-> Item Texts. From there double-click on the prescribed text and press display. This will take you to a SAP script editor. From this window you can Goto-> Text Header.

This will give you Text name, Language, Text id, and text object. Take all these fields and pass these into the importing parameters of the Function Module (Mandatory).

Regards,

JLN

Read only

Former Member
0 Likes
456

use FM READ_TEXT.

tdname is a composure of vbeln and posnr

tbobject is VBBP

tdid is the id of your item text. (there are several)

tdspras should be either NAST-SPRAS or VBAK-SPRAS

example:


Data:  lv_tdname type thead-tdname.

concatenate vbak-vbeln vbap-posnr into lv_tdname.

CALL FUNCTION 'READ_TEXT'
    EXPORTING
      id                     = 'YPE1'
      language           = NAST-SPRAS
      name                = lv_tdname
      object               = 'VBBP'
    TABLES
      lines                 = lt_lines
    EXCEPTIONS
      id                      = 1
      language            = 2
      name                 = 3
      not_found           = 4
      object                = 5
      reference_check         = 6
      wrong_access_to_archive = 7
      OTHERS                  = 8.

Edited by: Florian Kemmer on Jan 30, 2008 1:37 PM

Read only

Former Member
0 Likes
456

Hi,

Concatenate vbeln and posnr

select the VBBP value from VA03 tcodemby checking properties and select the relevant for the same

pass the same to READ_TEXT this will display the text from VA0* code

Regards

Shiva