Enhancement Procedure
1. Create a table to store thefield
T-code: SE11
Configure the screen enhancement program
2. Create Program for CustomizedSubscreens
SPRO->Logistics – General->Material Master-> Create Programfor Customized Subscreens
Display the screen and add PBO PAI event.
Note that the theory of pass value is thesame name.
3. Use enhancement to deal withdata
Use CMOD to check exit.
Notes: if the enhancement has beenused by others, we should first deactivate the project then delete theenhancement
4. Configure and assign screen.
l Define Structure of Data Screens for Each Screen Sequence
SPRO->Logistics – General->Material Master->Define Structureof Data Screens for Each Screen Sequence
T-code: OMT3B
Assign Screen Sequences to User/MaterialType/Transaction/Industry Sector
SPRO->Logistics – General->Material Master->Assign ScreenSequences to User/Material Type/Transaction/Industry Sector
T-code: OMT3E.
Because it has the relation betweenmaterial type and industry sector.
CMOD和SMOD的区别:
SMOD是针对一个具体的,标准的,CMOD是针对一个项目,可以包括很多增强点
BADI过滤的作用:设置一个DataElement,则会在接口中增加一个参数,可以进行判断,注意该Data Element必须满足几个条件:
You entered a filter type for a BAdIdefinition that is not a data element or that:
- is a data element with no search help and
- has a domain with no fixed values and
- has a domain with no value table
BADI中抛出消息时特别注意隐式Commit:消息类型为I,E,W三种存在隐式Commit