‎2008 Aug 04 7:11 PM
hi,
In ECC 6.0 when i create a table control thru the wizard in my dialog, I dont get the options for insert/delete, select all/deselect all etc. i get only for page up and page down !!
wheres if my table control is based on internal table defined in the program then i am getting all these options.
also, it was noted that in 4.6, all those options were displayed when tha TC was created based on custom table !! is this a major change in TC wizard in ECC 6.0 ?
any thoughts ?
thks
‎2008 Aug 04 7:34 PM
‎2008 Aug 04 7:20 PM
No, there is no major change here. And has nothing to do with creating for a custom table rather than something else. You will get these options, insert, delete, etc, only when the table control is set for "Input" control, which is one of the radiobuttons that you selected durnig the wizard, if you chose, "Output" control only, then you only get the page up/down. Make sense?
Regards,
Rich Heilman
‎2008 Aug 04 7:24 PM
I did choose "Input control", Rich !!! Still these opttions in the next screen of the wizard are displayed disabled !!
Any more suggestions ??
thks
‎2008 Aug 04 7:26 PM
‎2008 Aug 04 7:31 PM
Yes Rich, this is weird !! Even my friends tried the same. I tried it again and again in fresh screens, still the same issue. If u have access in ECC 6.0, can u please try this and confirm if that works for u ??
‎2008 Aug 04 7:33 PM
‎2008 Aug 04 7:34 PM
‎2008 Aug 04 7:36 PM
Amazing thing Kamesh is that, I am able to choose only Output control or Input control radio button. and the checkbox with header column is enabled. All other options are disabled !!
Very weird !! I suspect is that anything to do with any service pack release ??
thks
‎2008 Aug 04 7:42 PM
Kamesh is right, you also need to do the line selectability. Check the check box for Line Selection Col, and you will need a column in your internal table to hold the flag for whether it is checked or not, put the name of that column in the "Selection col fld" input box, and choose multiple for the radiobutton below, then on the following screen, the rest of the checkboxes will be open for you to select.
Regards,
Rich Heilman
‎2008 Aug 04 7:53 PM
Hmm..I cannot afford to have an additional field in my custom table just to make sure that insert/delete/selectall/deselect all are possible. This is not a good design !!
So this means, if i want to have those options for my custom table, i need to create an internal table with the same structrure, create the TC using the wizard based on that and handle my own insertions and deletion into the table from the internal table !! right ??
thks
‎2008 Aug 04 7:56 PM
Yes, that is exactly what you should do. I would suggest to ALWAYS use internal tables when doing a table control, and not use the dictionary structure directed, this approach is ambiguous, and could cause some confusing, always do your database updates(inserts, deletes) in a more visible manner.
Simply create the internal table, with the same fields as your custom DB table, and add one field as the first field called CHECK, typed a character length 1, then in the wizard, choose this CHECK field as your selection field.
Regards,
Rich Heilman
‎2008 Aug 04 7:59 PM
Thanks Rich and Kamesh. I will do the same.
But for your information, I even tried as Kamesh said. I added one char type field in my custom table, still, in the wizard , other options are disabled !! So i am not able to select the line selection field as well single/multiple..
‎2008 Aug 04 8:01 PM
yes if you can't define the additional field in internal table for selection, then you need to do your own coding for these functions.
<removed by moderator>
Thanks,
Kamesh Bathla
Edited by: Mike Pokraka on Aug 6, 2008 8:38 AM
‎2008 Aug 04 8:05 PM
Hi,
i just tried a little example in my system and for my it is enabled. make sure that you are using internal table without header line and giving the name of work area as well.
TYPES: BEGIN OF ty_matnr,
sel type c,
matnr(50) TYPE c,
bwkey TYPE mbew-bwkey,
bwtar TYPE mbew-bwtar,
zzpromo TYPE mbew-zzpromo,
END OF ty_matnr.
DATA: t_bommatnr TYPE TABLE OF ty_matnr,",
ds_bommatnr LIKE LINE OF t_bommatnr.can you see your selection field you added in the field list which is shown in TC wizard?
‎2008 Aug 04 8:06 PM
yeah but BTW, how is this working in 4.6 ??
Is the intention in ECC 6.0 to force the user to use the explicit work area concept ??
thks
‎2008 Aug 04 8:10 PM
Yes, it is definitly always a good idea to use an explict workarea, this comes back to the ambiguousness of the application, meaning that if you use a internal table with a header line, it is ambiguoius when viewing code, you don't know if that is the header line or the internal table itself, there are many that do not use the ITAB[] syntax to referr to the internal table body. This is of course the reason why internal tables with header lines are not supported in the OO context as well.
Regards,
Rich Heilman
Edited by: Rich Heilman on Aug 4, 2008 3:28 PM
‎2008 Aug 04 8:10 PM
Hi,
if you don't give the work area you won't be able to select "INSERT/DELETE line", but you can select other two options i.e scroll an select/deselect all.
i am not sure about 4.6 .
<removed by moderator>
Thanks,
Kamesh
Edited by: Mike Pokraka on Aug 6, 2008 8:38 AM
‎2008 Aug 04 8:25 PM
Thanks Rich and Kamesh. I better start coding the traditional way !! thank u..
‎2008 Aug 04 8:43 PM
Thanks
<removed by moderator>
Edited by: Mike Pokraka on Aug 6, 2008 8:38 AM
‎2008 Aug 04 9:08 PM
I have already done that !! I always do that as soon as my question is answered and I am satisfied. I highly appreciate the efforts SDN users put in to help each other !! This network is superb.
thks