Skip to Content
0
Mar 01, 2006 at 09:59 AM

Filter F4 help with Customer exits

30 Views

Hi,

I never worked on Customer exits.I wanted to filter the Query with Material.I have created Customer exit variable on Material.What I need to do is , instead of displaying all the values in F4 help , only one material should be displayed in F4.

This is the code which I have written , but still its displaying all the four values instead of M001.Just its for testing purpose , i want to see how exit works.

DATA VMAT LIKE /BIC/MAMATERIAL-/BIC/AMATERIAL.

IF I_STEP = 1.

SELECT /BIC/AMATERIAL FROM /BIC/MAMATERIAL INTO VMAT where /BIC/AMATERIAL = 'M001'.

L_S_RANGE-LOW = VMAT.

L_S_RANGE-HIGH = VMAT.

L_S_RANGE-SIGN = 'I'.

L_S_RANGE-OPT = 'EQ'.

APPEND L_S_RANGE TO E_T_RANGE.

EXIT.

ENDSELECT.