Application Development and Automation 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: 
Read only

Regarding interactive Alv

Former Member
0 Likes
364

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.}

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
330

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

Read only

Former Member
0 Likes
330

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