cancel
Showing results for 
Search instead for 
Did you mean: 

how to show QM03 action box long text via a BDC? alternative BAPI ?

Former Member
0 Kudos

I have an ALV grid called using a FM and I am using the user command routine to do somthing when a particular cell is clicked. I want to call up the root cause text from the action box of the QN via QM03 . I am building a BDC table to call with a CALL transaction but when I write my BDC up to that point, the program is running the BDC but not going to the point where the long text is displayed is i am in mode 'N'.

FORM user_command USING r_ucomm LIKE sy-ucomm
                         rs_selfield TYPE slis_selfield.
 
  READ TABLE itab INDEX rs_selfield-tabindex.
  CASE r_ucomm.
    WHEN '&IC1'.
      CASE rs_selfield-fieldname.
* When double click on root cause, display root cause long text
        WHEN 'ZZ_URCOD'.
          PERFORM display_root_cause_text.
          CALL TRANSACTION 'QM03' USING gt_bdc MODE 'N'.
 
  ENDCASE.
ENDFORM.                    "user_command
 
 
FORM display_root_cause_text .
 
 
  FREE gt_bdc.
  PERFORM fill_bdc USING 'SAPLIQS0'     '0200'      'X'.
  PERFORM fill_bdc USING 'RIWO00-QMNUM'  itab-qmnum  space.
 
  PERFORM fill_bdc USING 'SAPLIQS0'     '7200'      'X'.
  PERFORM fill_bdc USING 'BDC_OKCODE'  '=10\TAB03'  space.
 
  PERFORM fill_bdc USING 'SAPLIQS0'     '7200'      'X'.
  PERFORM fill_bdc USING 'BDC_CURSOR'
                         'QMICON-LTURSACHE(01)'     space.
  PERFORM fill_bdc USING 'BDC_OKCODE'  '=UX01'  space.
 
ENDFORM.                    " DISPLAY_ROOT_CAUSE_TEXT

Any one have any suggestions of know of a BAPI that I can achieve the same thing?

Thanks

Larissa Maryniuk

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Larissa

I will sugggest to use FM BAL_DSP_MSG_LONGTEXT to get desired results in ALV grid

Regards

Atul

Former Member
0 Kudos

I got around it by using READ_TEXT then EDIT_TEXT in display mode but thank you for your suggestion.

Regards

Larissa Maryniuk