Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Get workorder long text

Former Member
0 Kudos

Hi guys,

I need to get the long text of the workorder. I use FM READ_TEXT for it.

Now, how can I get the name of the text (parameter name of the FM) from the ABAP code ?

I can't just display it and go Goto->header.

I also need to do the same for workorder component.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Use BAPI_ALM_ORDER_GET_DETAIL to get all long texts of a workorder. Check parameters et_texts and et_text_lines

Edited by: Vadim Khlystun on Jun 8, 2011 12:50 AM

2 REPLIES 2

Former Member
0 Kudos

Hi,

Inside the code just after work order creation you do like below. Pass the V_name to READ_TEXT function module.

*-----------------Notification long text description from buffer
     CALL FUNCTION 'READ_NOTIFICATION_BUFFER'
        IMPORTING
         e_viqmel = wa_viqmel.

     v_name = wa_viqmel-qmnum.

If you want to read notification, use FM READ_NOTIFICATION and obtain the qmnum from IVIQMEL structure

Former Member
0 Kudos

Use BAPI_ALM_ORDER_GET_DETAIL to get all long texts of a workorder. Check parameters et_texts and et_text_lines

Edited by: Vadim Khlystun on Jun 8, 2011 12:50 AM