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.
client = sy-mandt
language = sy-langu
what are object and id from where i get these parameters.
thank's in advance.
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.
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.