08-31-2008 1:26 PM
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.
08-31-2008 1:56 PM
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.
08-31-2008 1:36 PM
Hi,
CONCATENATE it_ekko-ebeln it_ekpo-ebelp INTO nmebeln.
REFRESH tline.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = 'F04'
language = sy-langu
name = nmebeln
object = 'EKPO'
TABLES
lines = tline
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.
LOOP AT tline.
IF tline-tdline IS NOT INITIAL.
del_text = tline-tdline.
ENDIF.
CONDENSE del_text.
ENDLOOP.
Regards,
Harish
08-31-2008 1:56 PM
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.