2020 Oct 19 11:26 AM
Hi Experts,
Need assistance on filter the order reason while create sale order.
When ever sale order is created user want to see only few order reason only in drop down for order reason. Suggest any exit or badi to enhance existing functionality.images.jpeg
2020 Nov 02 1:59 PM
we can restrict order reason drop down values by implementing the SAP NOTE 2477027
2020 Oct 19 11:42 AM
Hello sri6666,
You just have to remove the unwanted order reasons through SPRO transaction.
Recommend you to refer the LINK for details.
Regards!
2020 Oct 19 11:43 AM
The field VBAK-AUGRU is linked to the default Search help (you could see it in SE11). This search help is directly linked to the value table.
So if you want to filter the possible value, you need to create a search help based on a view; In this view you could filter values expected.
And you need to modify the field dynpro to specify your search help
2020 Oct 19 12:34 PM
They ask me to filter using coding..They are not ready to change any existing functionalities. Need to apply filter via coding
2020 Oct 19 12:53 PM
They ask for Functionality change, so they have to accept the impact of their requierement
Use /h or /hs and try to press F4 on your field, did you see the debugger open ? no ? so coding is not possible
2020 Oct 19 4:21 PM
You may be required to use some implicit enhancement spots in standard SAP code) for search help to add your own BAdI.
Define your own BAdI and interface with a filter based on search-help name and a method to change the selected values internal tables.
Add a call of this BAdI at the end of forms of SDSD function group such as
ENHANCEMENT 1 ZXXXX_HIDE. "active version
* Specific Filter in Search Help
DATA: lo_handle TYPE REF TO zXXXX_hide.
GET BADI lo_handle
FILTERS
shlpname = shlp-shlpname.
CALL BADI lo_handle->change_value_tab
EXPORTING
shlp = shlp
CHANGING
value_tab = value_tab[].
ENDENHANCEMENT.
Then using the filter, implement your filering BAdI for some search-help
NB: You may also handle the number of record to return, so you may be required to save it at entry of form, clear it and at end of form delete excess records. (for search help with many records)
2020 Nov 02 1:59 PM
we can restrict order reason drop down values by implementing the SAP NOTE 2477027