Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

text for va03

hi friends ,

i am using FM READ_TEXT for reading text stored in T.CODE VA03

but i don't know which parameters should i pass to FM.

EXPORTING

client = sy-mandt

id =

language = sy-langu

name =

object =

what are object and id from where i get these parameters.

thank's in advance.

Tags:
Former Member
Former Member replied

Hi,

First decide on which texts u want to retrieve. There are many texts in VA03.

To find the attributes follow below steps.

VA02=>Sales order=>Menu=>Goto=>Header=>Texts. Now select the text u want to retrieve and click on detail icon below(Scrool down).

Now u will be entering script editor.

Menu=>Goto=>Header.

Here u can find the ID, Object name etc.

Object name should be with leading zeros.

Like this u have to retrieve the texts.

Sample code for your reference.

DATA: i_lines TYPE TABLE OF tline.
CALL FUNCTION 'READ_TEXT'
  EXPORTING
*   CLIENT                        = SY-MANDT
    id                            = 'Z003'
    language                      = sy-langu
    name                          = '0000919470'
    object                        = 'VBBK'
*   ARCHIVE_HANDLE                = 0
*   LOCAL_CAT                     = ' '
* IMPORTING
*   HEADER                        =
  tables
    lines                         = i_lines
 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.

Thanks,

Vinod.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question