on 07-03-2012 5:27 PM
Greetings,
On an ABAP web dypro ALV, the filter can be displayed and values entered. In my case there are dashes inbeded in the material numbers. When a material number is entered in the filter with dashes, SAP interprets this as a search ranges, and as a result return no values. This can be overcome by enclosing the material number in quotes.
However the user community is asking if I can overide the use of a dash to indicate a search range, since they claim that users are forgetting to use the quotes.
Does anyone know if this can be done?
Thanks,
rv
Hi Richard,
You have told that taking Input as Literal - within quote - solves your problem.
Then, I would suggest that you can use Local Variable of Type STRING to store the Material Number. Now, same Input would be treated as Character while processing and hence Numbers with Hyphen would be treated as single string.
Now, pass this Local Variable to further processing in your code. This way you can let your User-Community free from entering Material Number within quotes.
Ex.-
Suppose, I_MATNR is your field that takes Material Number as Input. Declare one Local Variable as LV_MATNR as type of STRING.
Now, read the value given in Input, Pass it to LV_MATNR as below -
LV_MATNR = I_MATNR.
From this point onward, use LV_MATNR for further processing.
Hope this would help you.
Thanks.
Kumar Saurav.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.