on 05-07-2008 7:04 AM
Hi All,
In outbound delivery header - Texts tab i notice that we can maintain some texts. May i know which table i should refer to read the text entered.
I can read the text type key from the table TTXTD, but i need to read the actual text entered by the user.
Hope my question is clear, await your inputs.
Regards,
Vivek
HI,
SAP has already provided a various functions for read the text element. So you no need to get the value from table directly!
There is some example
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = T_TEXT_ID
LANGUAGE = 'E'
NAME = T_UNIQUE_ID
OBJECT = T_TXTOBJ
IMPORTING
HEADER = HTEXT
TABLES
LINES = T_READ_LINE
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
Let me explains as below parameters.
T_TEXT_ID - Text id: example - '08000123', also is the document no.
T_UNIQUE_ID - Text unique ID: example - 'ZD01'
T_TXTOBJ - Text Object: example - VBBK
That information can find it on relevant of document. In your case, you can fount it on the below path:
VF01n/VF02n > GoTo -> Header -> Text -> detail (is the push small button, then it will go to the next screen) -> Goto -> Header.
Return Value tales - THEXT and Table Line - T_Read_line
You must declare this variable before,
DATA: BEGIN OF HTEXT OCCURS 50.
INCLUDE STRUCTURE THEAD.
DATA END OF HTEXT.
DATA: BEGIN OF T_READ_LINE OCCURS 50.
INCLUDE STRUCTURE TLINE.
DATA: END OF T_READ_LINE.
READ TABLE T_READ_LINE INDEX 1. "read the line value
I hope this can help, so remembers reward the points
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You have to Use function module "READ_TEXT" to read the long texts.
You have to pass delivery no to TDNAME field if you are reading Header text and you have to pass the delivery item combination to TDNAME if you are reading item texts. Other things you have to pass is Text Object (LIKP) and Text ID (as per your customization).
-Alpesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alpesh,
Thanks for the quick inputs, i have entered the following as the input & tested the FM, but it does not give the output, can you let me know what is wrong?
CLIENT: 100
ID: ZL03 (The ID which i am trying to read)
LANGUAGE: EN
NAME: 243134215 (The Outbound delivery nos).
OBJECT: VBBK (I checked the TTXID table & in that mentions VBBK & hence am using the same).
ARCHIVE_HANDLE: 0
LOCAL_CAT: (blank)
Await your inputs.
Vivek
User | Count |
---|---|
89 | |
7 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.