on 12-05-2008 5:19 PM
Hi,
Is it possible to create a select options without the diamond that comes before the field ?
Thanks
Hi Jorge!
Parameter I_NO_COMPLEX_RESTRICTIONS of method add_selection_field (implementing class CL_WDR_SELECT_OPTIONS) must be used to hide the diamond you are talking about.
I found it indeed interesting when I started looking into it. Simply passing 'X' to the above mentioned parameter doesnt work.
Why? Have a look at class CL_WDR_SELECT_OPTIONS, method add_selection_field.
Internal tables mt_added_fields and mt_fields are populated from the importing parameters, where the paramter I_NO_COMPLEX_RESTRICTIONS is not used!
I tried out two things to make sure it works:
1) Method RENDER_SELECTION_SCREEN_ITEM of the same class is used to render the UI. Put a break-point at "if i_field-m_no_complex_restrictions = abap_true." (line no 289).
Change the value of i_field-m_no_complex_restrictions to 'X' in debug mode. This hides the diamond on screen
2) Since it worked in debug mode, next I tried enhancing the SAP standard method add_selection_field, wheere the value must actually be set.
Implement the End of Class implicit enhancement option and add the following lines of code. It works
added_field-m_no_complex_restrictions = i_no_complex_restrictions.
modify table mt_added_fields from added_field transporting m_no_complex_restrictions.
modify table mt_fields from added_field transporting m_no_complex_restrictions.
I guess we should take this up with SAP. They might have fixed this in the newer SPs.
Thanks.
Chitrali
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jorge!
Refer SAP note 1139972. You need to apply this SAP note to use the importing parameter I_NO_COMPLEX_RESTRICTIONS (I enhaced the SAP object just to be sure it works!).
https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1139972
Thanks.
Chitrali
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Jorge,
Since Diamond represents the OPT column in the select option in the range table .
So i think it is not poosible to remove Diamond sign from select option .
Regards
Vivek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.