‎2011 Feb 22 11:49 AM
Hi experts,
When we create a database table using SE11, under technical settings there are three types of buffering types with check box for each of them. Upon selection of multiple types and saving we get an error message stating "Multiple selection not possible for buffering type ".
My doubt is, when only one selection is allowed, why check boxes are provided instead of radio buttons that would give the same functionality and not giving a scope for multiple selections. Is there any concept behind the check boxes for single selection? Please tell / guide / educate me .
Thanks and Regards,
N.M.S.M.krishna
‎2011 Feb 22 12:02 PM
‎2011 Feb 23 4:45 PM
Hi Krishna,
Your question is valid. However, there may be some reason why SAP used checkboxes instead of radio buttons. I believe this could be the reason:
1) Radio button is provided for Buffering-not allowed, allowed with switch on/off. By default, buffering not allowed is selected. This is a required field (at least one of the three must be selected).
On the other hand, buffering type is only required if we are allowing buffering. If it would have been a radiobutton then
(Case 1) If buffering allowed was selected and we select buffering type. Now we change our mind and want to go with not allowed option. Still we will not be able to deselect buffering type option (single-record/generic area/full). At least one of the three would be selected but in disable mode. This may create a problem when you are validating buffering independently.
There could be some other reason too but the bottom line is that we can select only one option and if some one selects more than one then it will show error message as it's displayed to you. SAP has provided strong data validation in this case .i.e. it allows only one option to be selected (acts like a radio button).
Sometimes you may have to use checkbox instead of radio button for single selection (if client wants it that way). In this case, we can print label as 'select only one' and create data validation in the 'At selection screen field/output' event (depending on your requirement) checking if 'chkbx1 = 'X' AND chkbx2 = 'X'' then display error message ' select any one'.
I think we should not go much deep in it as SAP has done its part of designing/development/testing and then delivered the code. As long as the functionality is working, it shouldn't be a concern for us. If it behaves strangely then we will have to check SAP OSS notes and if no notes are available then get in touch with SAP contact team to find a resolution for it.
Hope that helps!
Regards,
Saba