Use below code:
SET PARAMETER ID 'MAT' FIELD p_mat-matnr.
SET PARAMETER ID 'WRK' FIELD p_mat-werks.
SET PARAMETER ID 'MXX' FIELD 'D'.
CALL TRANSACTION c_mm02 AND SKIP FIRST SCREEN.
this is basically down based on the following information:
Status (MARA-VPSTA) contains the combination of the View indicator. You can find the relation of the status indicator and view name in the documentation of the data element PSTAT_D or follow this table:
User department Maintenance status
Work scheduling A
Accounting B
Classification C
MRP D
Purchasing E
Production resources/tools F
Costing G
Basic data K
Storage L
Forecasting P
Quality management Q
Warehouse management S
Sales V
Plant stocks X
Storage location stocks Z
No comments:
Post a Comment