7.7 |
ALV显示物料号的时候去掉前导0,但是在过滤器过滤的时候还需要输入18位长度.需要设置以下的属性: |
|
when ‘MATNR’. |
|
wa_field-no_zero = ‘X’. |
|
wa_field-key = ‘X’. |
|
wa_field-ref_tabname = ‘MARA’. |
|
wa_field-ref_fieldname = ‘MATNR’. |
|
|
7.8 |
隐藏掉ALV的标准全选列: |
|
FORM PF_STATUS_SET USING RT_EXTAB TYPE SLIS_T_EXTAB. |
|
DATA: LW_LVC_S_LAYO TYPE LVC_S_LAYO. “ALV |
|
SET PF-STATUS ‘Z0001’. “设置STATUS |
|
* 初始设定 |
|
IF W_ALV_GRID IS INITIAL. |
|
* |
|
CALL FUNCTION ‘GET_GLOBALS_FROM_SLVC_FULLSCR’ |
|
IMPORTING |
|
E_GRID = W_ALV_GRID. |
|
CALL METHOD W_ALV_GRID->GET_FRONTEND_LAYOUT |
|
IMPORTING |
|
ES_LAYOUT = LW_LVC_S_LAYO. |
|
LW_LVC_S_LAYO-NO_ROWMARK = ‘X’. “无效 |
|
LW_LVC_S_LAYO-SEL_MODE = ‘D’. “选择 |
|
CALL METHOD W_ALV_GRID->SET_FRONTEND_LAYOUT |
|
EXPORTING |
|
IS_LAYOUT = LW_LVC_S_LAYO. |
|
ENDIF. |
|
ENDFORM. “PF_STATUS_SET |
|
|
7.9 |
开关记账期间:OV52/MMPV |
|
可以先用MMRV查看当前公司代码的记账期间,然后再使用MMPV开 |