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

Double Click functionality

Former Member
0 Likes
634

Hi,

I have a report where material is one of the output field.

When user double clicks on material number it should call MM03 from the report and it should directly take to Accounting 2 view.

How can it be done.

Do let me know.

Regards,

SP

4 REPLIES 4
Read only

Former Member
0 Likes
595

Hi Sandeep

You can do this by using BDC. Do the recording by selecting the Accounting 2 view only (and deselecting both the Basic views).

Call the transaction MM03 using the BDC table.

Pushpraj

Read only

Former Member
0 Likes
595

hi bro....

in your report program go for a event...

AT LINE-SELECTION.

CASE SY-LSIND.

WHEN 1.

here you can call MM01 **

WHEN 2.

here you can call MM01 **

ENDCASE.

    • you should call it only at place that is according to your sy-lsind value of your list

regards

Read only

Former Member
0 Likes
595

Hi Sandeep,

when you double click on the list.it triggers AT line-selection. event.

so when you double click you write your code in this event in the following manner to stop at MM03 at accounting 2 view

AT LINE-SELECTION.

case sy-lsind.

when 1.

( First do the recording of MM03 and get the BDC data table populated with program name and screen number and fields required and also the OKCODE to be executed )

( Then call the tansaction using

CALL Transaction MM03 using <bdc_table_name> mode 'E'.

mode E because you want the transaction to be stopped at accounting 2 view. )

encase.

Regards,

Ravi

Read only

Former Member
0 Likes
595

step1. using BDC recording method record the transaction to select the accounting 2 view.

step2. In your report code at line selection event, call the transaction 'MM03' using BDC table.