on 08-24-2014 4:50 AM
Hello Gurus,
For reporting I need to retrieve the Texts in the long text field of the DIR from the PLM Webui screen.
I would like to know if there is any method that I can use to retrieve the text characters.
Kindly advice.
Thanks & Regards
Jo
You could use BAPI_DOCUMENT_GETTEXTS, if my memory serves me correctly BAPI_DOCUMENT_GETDETAIL has the capability too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Those long texts are linked to the ER, you can enter long texts for other objects as well. The Web UI uses /PLMU/WDC_LTX_DO to handle long texts. Going from the SP to the BO you will find out that the standard READ_TEXT and SAVE_TEXT function modules are used. The relevant parameters are TDID = ECRI, TDOBJECT = /PLMB/ECRI and TDNAME = <ECR GUID> + INDEX for the text 001 ... 999.
Hi Jo ,
Below code might help .
CONCATENATE sy-mandt
change_no
'31' ls_change_data-documenttype
ls_change_data-documentnumber
ls_change_data-documentpart
ls_change_data-documentversion
INTO lv_text_name RESPECTING BLANKS .""Note here 31 is the type pf the object followed by its key
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = 'AEOI'
language = sy-langu
name = lv_text_name
object = 'CHANGE'
TABLES
lines = lt_text_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
User | Count |
---|---|
99 | |
11 | |
10 | |
6 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.