cancel
Showing results for 
Search instead for 
Did you mean: 

DIR Long Text in PLM Web UI

former_member393433
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You could use BAPI_DOCUMENT_GETTEXTS, if my memory serves me correctly BAPI_DOCUMENT_GETDETAIL has the capability too.

former_member393433
Participant
0 Kudos

Hi Samuli,

Thank you very much for your answer. I would also like to know how I can retrieve the Long Text of the attached Documents in the ER.

Please see the below screen shot of long text in the ER screen

Former Member
0 Kudos

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.

former_member188458
Active Participant
0 Kudos

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.

Answers (0)