2015 Nov 05 4:22 PM
SAP Gurus,
My team is familiarizing themselves with the BAPI function group and is attempting to refine a program that will execute the creation of material master data using an input file. Currently this is being accomplished using the function 'BAPI_MATERIAL_SAVEDATA'. My tester was noticing that the program was generating additional views in the material master beyond what was needed for the program and would like them not to generate for simplicity's sake. However, these views are being generated due to defaults that the tester has in place for screen generation when running MM01 manually. Is there a way within the BAPI function to disable these views from appearing even if a user has them marked as defaults?
Thank you for your assistance.
2015 Nov 05 5:58 PM
Check import parameter HEADDATA
There are flags which views to create:
| BASIC_VIEW | SICHT_K | CHAR | 1 | 0 | Basic Data View |
| SALES_VIEW | SICHT_V | CHAR | 1 | 0 | Sales View |
| PURCHASE_VIEW | SICHT_E | CHAR | 1 | 0 | Purchasing View |
| MRP_VIEW | SICHT_D | CHAR | 1 | 0 | Material Requirements Planning (MRP) View |
| FORECAST_VIEW | SICHT__P | CHAR | 1 | 0 | Forecasting View |
| WORK_SCHED_VIEW | SICHT_A | CHAR | 1 | 0 | Work Scheduling View |
| PRT_VIEW | SICHT_F | CHAR | 1 | 0 | Production Resources/Tools (PRT) View |
| STORAGE_VIEW | SICHT_L | CHAR | 1 | 0 | Storage View |
| WAREHOUSE_VIEW | SICHT_S | CHAR | 1 | 0 | Warehouse Management View |
| QUALITY_VIEW | SICHT_Q | CHAR | 1 | 0 | Quality Management View |
| ACCOUNT_VIEW | SICHT_B | CHAR | 1 | 0 | Accounting View |
| COST_VIEW | SICHT_G | CHAR | 1 | 0 | Costing View |
Check import parameter HEADDATA
There are flags which views to create:
| BASIC_VIEW | SICHT_K | CHAR | 1 | 0 | Basic Data View |
| SALES_VIEW | SICHT_V | CHAR | 1 | 0 | Sales View |
| PURCHASE_VIEW | SICHT_E | CHAR | 1 | 0 | Purchasing View |
| MRP_VIEW | SICHT_D | CHAR | 1 | 0 | Material Requirements Planning (MRP) View |
| FORECAST_VIEW | SICHT__P | CHAR | 1 | 0 | Forecasting View |
| WORK_SCHED_VIEW | SICHT_A | CHAR | 1 | 0 | Work Scheduling View |
| PRT_VIEW | SICHT_F | CHAR | 1 | 0 | Production Resources/Tools (PRT) View |
| STORAGE_VIEW | SICHT_L | CHAR | 1 | 0 | Storage View |
| WAREHOUSE_VIEW | SICHT_S | CHAR | 1 | 0 | Warehouse Management View |
| QUALITY_VIEW | SICHT_Q | CHAR | 1 | 0 | Quality Management View |
| ACCOUNT_VIEW | SICHT_B | CHAR | 1 | 0 | Accounting View |
| COST_VIEW | SICHT_G | CHAR | 1 | 0 | Costing View |
2015 Nov 05 5:58 PM
Check import parameter HEADDATA
There are flags which views to create:
| BASIC_VIEW | SICHT_K | CHAR | 1 | 0 | Basic Data View |
| SALES_VIEW | SICHT_V | CHAR | 1 | 0 | Sales View |
| PURCHASE_VIEW | SICHT_E | CHAR | 1 | 0 | Purchasing View |
| MRP_VIEW | SICHT_D | CHAR | 1 | 0 | Material Requirements Planning (MRP) View |
| FORECAST_VIEW | SICHT__P | CHAR | 1 | 0 | Forecasting View |
| WORK_SCHED_VIEW | SICHT_A | CHAR | 1 | 0 | Work Scheduling View |
| PRT_VIEW | SICHT_F | CHAR | 1 | 0 | Production Resources/Tools (PRT) View |
| STORAGE_VIEW | SICHT_L | CHAR | 1 | 0 | Storage View |
| WAREHOUSE_VIEW | SICHT_S | CHAR | 1 | 0 | Warehouse Management View |
| QUALITY_VIEW | SICHT_Q | CHAR | 1 | 0 | Quality Management View |
| ACCOUNT_VIEW | SICHT_B | CHAR | 1 | 0 | Accounting View |
| COST_VIEW | SICHT_G | CHAR | 1 | 0 | Costing View |
2015 Nov 05 7:18 PM
Thank you, Michael.
Unfortunately I think that what the user was asking for isn't possible. I have the view values in HEADDATA assigned as appropriate. The user just has view defaults set in their SAP system for transaction MM03 that causes them to see windows they do not need. They wanted to know if the program could override their defaults without them having to do anything but I'm thinking this is something that they are just going to have to do themselves. Unless there is something I'm missing.
EDIT:
Michael,
Turns out that I was looking at the wrong program. The material creation program was executing fine but then the user was modifying the material with another program that had different settings and that was causing the additional views.
Thank you for your help.
Message was edited by: Scott Kellner
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |