‎2010 Aug 27 2:08 PM
Hi abapers,
i am developing the alv interactive report . such that if any user clicks on particular matnr then it has to go for the MM02 Transaction Accounting tab.
i should not do BDC. i am using function module called selection_view_find. how to acheive it? i am keep trying but not able to search in sdn . if possible post the sample code without doing bdc.
my code is
{ IF rs_selfield-fieldname = 'MATNR'.}
{READ TABLE t_vbap INTO w_vbap INDEX rs_selfield-tabindex.}
{SET PARAMETER ID 'MAT' FIELD w_vbap-matnr.}
{ CALL TRANSACTION 'MM02' AND SKIP FIRST SCREEN.}
‎2010 Aug 27 2:33 PM
Use a
IF rs_selfield-fieldname = 'MATNR'.
READ TABLE t_vbap INTO w_vbap INDEX rs_selfield-tabindex.
SET PARAMETER ID 'MAT' FIELD w_vbap-matnr. " material number
SET PARAMETER ID 'WRK' FIELD w_vbap-werks. " Plant
SET PARAMETER ID 'BWT' FIELD w_vbap-bwtar. " Valuation type
SET PARAMETER ID 'MXX' FIELD 'B'. " function(s) to call
CALL TRANSACTION 'MM02' AND SKIP FIRST SCREEN.Check table T132(T) for values of MXX parameter, and provide every required parameters.
Regards,
Raymond
‎2010 Aug 31 7:54 AM
i have used the function module called material_maintain_dialogue .
by passing the plant, material and screen tab number into that function module we can go to any required tab. if any queries contact me. i will suggest you.
Regards,
Srinivas