Skip to Content
0
Jan 06, 2012 at 10:53 AM

call transaction crmd_order

81 Views

Hi experts ,

My requirement is to call the two different transactions from interactive list .

I am using 'reuse_alv_grid_display 'as fm.

I am facing a problem related to call transaction 'crmd_order'.

Transaction 'crmd_order' is opeing but not with the order provided.

same is happening with 'BP'.

Kindly suggest the solution.

following is the code :

FORM user_command USING r_ucomm TYPE sy-ucomm

rs_selfield TYPE slis_selfield.

READ TABLE LT_FINAL INDEX rs_selfield-tabindex INTO LS_FINAL.

IF SY-SUBRC EQ 0.

CASE r_ucomm.

WHEN '&IC1'.

SET PARAMETER ID 'CRM_OBJECT_ID' FIELD rs_selfield-VALUE.

CALL TRANSACTION 'CRMD_ORDER' .

SET PARAMETER ID 'BPA' FIELD RS_SELFIELD-VALUE .

CALL TRANSACTION 'BP'.

ENDCASE.

ENDIF.

ENDFORM.