‎2009 Feb 06 12:17 PM
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
‎2009 Feb 06 2:37 PM
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
‎2009 Feb 07 9:25 AM
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
‎2009 Feb 07 11:16 AM
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
‎2009 Feb 07 11:17 AM
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.