Hi Abdul,
your approach is different to mine and maybe I have to change the strategy. But before I do that, let me explain my approach in detail:
My customizing table has two fields:
- I_PARAM
- I_VALUE
The meaning of field I_VALUE depends on the value of I_PARAM. It can be a business partner type, a contract account type, a material class or what ever.
For field I_VALUE I create a search help with a search method (database table) consisting of the fields NAME and VALUE. Please keep in mind, that this table is empty and will never contain the values I'm looking for! I need this to define the interface to the search help.
When I go into my table maintenance view, choose "new entries", enter something in field NAME, jump to field I_VALUE and press F4. Now my search help exit comes into the game: Here I get NAME as input. Now I can use NAME to determine the search help (that's not ZXFRM_PAR_VAL!) for VALUE, display it and let the user choose a value. Now I've got the value in my search help exit and want to give it back using VALUE and let the standard fill the field I_VALUE in my customizing table with that value.
The questions are:
- At which CALLCONTROL-STEP do I have to implement my code (I think this should not matter because I do everything from selection to display)
- Where to I have to put my VALUE (I've tried RECORD_TAB and SHLP-INTERFACE).
- Do I have to change CALLCONTROL-STEP (my opinion is YES and change it to 'RETURN').