cancel
Showing results for 
Search instead for 
Did you mean: 

Change filter value

0 Kudos
288

Hi all

I want to filter data from column in ALV table which are shown in format "DD.MM.YYYY HH.MM.SS". But in table are written in format "YYYYMMDDHHMMSS", so when I write value to the filter by format which is shown in ALV column ("DD.MM.YYYY HH.MM.SS") I get error message because the entered value isn't in correct format.
My question is how I can read values from filter and modified them ?
I tried to catch it and modify by event handler (ON_STD_FUNCTION_AFTE), but before this event are called some standard function which let in filter only these rules which are available by data type of filtered column.
Thank you in advance.

Best regards

View Entire Topic
former_member197132
Participant
0 Kudos

Hello Juraj,

Insted of converting "YYYYMMDDHHMMSS" into "DD.MM.YYYY HH.MM.SS" you should use EDIT_MASK in field catalog. It will automatically convert your field in desired format also in filter it will be in YYYYMMDDHHMMSS format only.

WA_FCAT-edit_mask = '____.__.__.__.__.__'.

0 Kudos

Thank you very mutch Shailendra Karada.
However the issue was resolved by enhancement of alv filter.