URGENT: Need Help with Customer Exit

Question: Hi - is there any way to intercept the Material Code before it goes against the Material Master based on filters entered at end user prompt?

The problem is that the end users want to be able to enter the Material Code without the leading zeros - the customer exit would then presumably add the leading zeros prior to comparing against the material master data.

Please help.

Answer:
You can create a user exit variable to do this,
e.g. Variable2 is filled in a user exit using variable1's value
but it will not change the way the masterdata will display in the search functions on your original variable1, you can merely intercept your original variable and fill your user exit variable2 in the exit.

for this to work, you will obviously have to restrict your material by variable2. But to enable variable 2 to work you need to have a value for variable1(so variable1 will also have to be in your query) now you have the dilema of having 2 variables on 0material (the logic will use a AND condition between the 2 variables, seeing as the value that the users enter in the variable1 is not a valid material number, the AND condition would therefore exclude all materials even if variable2 is filled correctly)

you will have to be a bit creative here to somehow include variable1 in a structure without letting it restrict the total data of the query, then it may work.

Alternatively why dont your users just enter e.g. *123 instead of 123 if they want material 00000123

Answer:
We'll give it a go and see how it works out! I appreciate your feedback!
Copyright ?2007 - 2008 www.jt77.com