2008 Mar 04 2:42 PM
Hi All,
Is there any FM which Reads all the Text maintatined in the line Items of the Purchase Order.
I known we can read the Text by using FM READ_TEXT but evertine we have to pass the ID and Object required to get the text.
I wan that all the text will be returned if i pass the PO no. and the Line Item
2008 Mar 04 3:42 PM
Hi,
Please refer example code below:
*Internal table to store standard texts
DATA: IT_TEXTS like T_LINE occurs o with header line.
CALL FUNCTION 'READ_TEXT'
EXPORTING
* CLIENT = SY-MANDT
id = "Text ID
language = "Laguage
name = "Text name
object = "text object
* ARCHIVE_HANDLE = 0
* IMPORTING
* HEADER =
tables
lines = IT_TEXTS "Internal table
* 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,
Sriram Ponna.
Hi All,
Is there any FM which Reads all the Text maintatined in the line Items of the Purchase Order.
I known we can read the Text by using FM READ_TEXT but evertine we have to pass the ID and Object required to get the text.
I wan that all the text will be returned if i pass the PO no. and the Line Item
2008 Mar 04 2:52 PM
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = 'LTXT'
LANGUAGE = V_SPRAS
NAME = V_NAME
OBJECT = 'QMMA'
TABLES
LINES = IT_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.
<REMOVED BY MODERATOR>
venkat.
Edited by: Alvaro Tejada Galindo on Mar 4, 2008 9:52 AM
2008 Mar 04 3:42 PM
Hi,
Please refer example code below:
*Internal table to store standard texts
DATA: IT_TEXTS like T_LINE occurs o with header line.
CALL FUNCTION 'READ_TEXT'
EXPORTING
* CLIENT = SY-MANDT
id = "Text ID
language = "Laguage
name = "Text name
object = "text object
* ARCHIVE_HANDLE = 0
* IMPORTING
* HEADER =
tables
lines = IT_TEXTS "Internal table
* 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,
Sriram Ponna.
2008 Apr 12 6:48 AM
i m searching for lonf text id name can u tell me where can i get id name for read_text for tc ca03.
for order long text tc (ca03) read_text id name
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |