Often ABAPer are asked to provide link in report which opens documents/data in their respective transaction code. In this blog I will explain how you can call MM03 and open a specific tab.
Normally, to open a document in its transaction you would first set document parameter id and then do CALL TRANSACTION .. AND SKIP FIRST SCREEN.
Opening a specific tab in MM03 is also specified by a parameter id. You can call transaction MM03 and open a specific tab by setting parameter id MXX.
For example to call MM03 with material code and open Basic Data 1 table you can do
SET PARAMETER ID 'MAT' FIELD material_code . SET PARAMETER ID 'MXX' FIELD 'K' . CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN .
Below is list of values you can specific for parameter id MXX and tab it will open. Note that to open tab you will have to set org data if needed by that tab. For example to open Purchasing tab you not only have to specify material code but also plant code.
MM03 (Display Matetrial) Tabs | MXX Parameter id code |
Sample code |
---|---|---|
Basic Data 1 | K |
SET PARAMETER ID 'MAT' FIELD material_code . SET PARAMETER ID 'MXX' FIELD 'K' . CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN . |
Classification | C |
SET PARAMETER ID 'MAT' FIELD material_code . SET PARAMETER ID 'MXX' FIELD 'C' . CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN . |
Sales: Sales Org. Data 1 | V |
SET PARAMETER ID 'MAT' FIELD material_code . SET PARAMETER ID 'VKO' FIELD sales_org . SET PARAMETER ID 'VTW' FIELD dist_chanl . SET PARAMETER ID 'MXX' FIELD 'V' . CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN . |
Purchasing | E |
SET PARAMETER ID 'MAT' FIELD material_code . SET PARAMETER ID 'WRK' FIELD plant . SET PARAMETER ID 'MXX' FIELD 'E' . CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN . |
MRP 1 | D |
SET PARAMETER ID 'MAT' FIELD material_code . SET PARAMETER ID 'LAG' FIELD storg_loc . SET PARAMETER ID 'MXX' FIELD 'D' . CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN . |
Forecasting | P | |
Work Scheduling | A | |
Production Resources/Tools | F | |
General Plant Data / Storage 1 | L |
SET PARAMETER ID 'MAT' FIELD material_code . SET PARAMETER ID 'WRK' FIELD plant . SET PARAMETER ID 'LAG' FIELD storg_loc . SET PARAMETER ID 'MXX' FIELD 'L' . CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN . |
Warehouse Management 1 | S |
SET PARAMETER ID 'MAT' FIELD material_code . SET PARAMETER ID 'WRK' FIELD plant . SET PARAMETER ID 'LGN' FIELD warehouse . SET PARAMETER ID 'MXX' FIELD 'S' . CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN . |
Quality Management | Q | |
Accounting 1 | B |
SET PARAMETER ID 'MAT' FIELD material_code . SET PARAMETER ID 'WRK' FIELD plant . SET PARAMETER ID 'MXX' FIELD 'B' . CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN . |
Costing 1 | G |
SET PARAMETER ID 'MAT' FIELD material_code . SET PARAMETER ID 'WRK' FIELD plant . SET PARAMETER ID 'MXX' FIELD 'G' . CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN . |
Plant Stock | X | |
Storage Location Stock | Z |
very useful post
Hi,
do you have the same for Header tab on transaction ‘VA02’ ?
I´m looking for navigating directly to “Texts” Tab from Header on VA02.
Thanks a lot.
Regards.
Willy B
So useful.
In case anyone needs this: Data type for Parameter ID is MEMORYID
as in DFIES-MEMORYID
This helped.
Cheers!
Shyam 🙂