1.背景
由于业务需求,需要对数据进行分类.
2.实现以下功能
3.实现方法
以下是定义
SELECTION-SCREEN BEGIN OF BLOCK radio1 WITH FRAME .
PARAMETER: p_a RADIOBUTTON GROUP gr1 MODIF ID m1.
PARAMETER: p_b RADIOBUTTON GROUP gr1 MODIF ID m1.
PARAMETER: p_c RADIOBUTTON GROUP gr1 MODIF ID m1.
"PARAMETERS: p_c AS CHECKBOX .
SELECTION-SCREEN END OF BLOCK radio1
以下是逻辑控制
IF p_b = 'X'.
DELETE GT_TOTAL WHERE PBDNR+0(1) <> 'S'.
ELSEIF p_c = 'X'.
DELETE gt_total WHERE pbdnr+0(1) = 'S' .
ENDIF.
IF s_laeda IS NOT INITIAL.
DELETE gt_total WHERE laeda NOT IN s_laeda.
ENDIF.
SORT gt_total BY matnr maktx laeda .