on 06-26-2009 2:18 PM
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
Hi Larissa
I will sugggest to use FM BAL_DSP_MSG_LONGTEXT to get desired results in ALV grid
Regards
Atul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
102 | |
12 | |
11 | |
6 | |
5 | |
4 | |
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.