Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

TC wizard

Former Member
0 Likes
2,114

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,043

This message was moderated.

19 REPLIES 19
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
2,043

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

Read only

0 Likes
2,043

I did choose "Input control", Rich !!! Still these opttions in the next screen of the wizard are displayed disabled !!

Any more suggestions ??

thks

Read only

0 Likes
2,043

That's really weird, delete the TC, and all generated code, save and activate, and try creating it again with the wizard.

Regards,

Rich Heilman

Read only

0 Likes
2,043

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 ??

Read only

0 Likes
2,043

Sure, I have a few systems I can try this on. I'll get back

Regards,

Rich Heilman

Read only

Former Member
0 Likes
2,044

This message was moderated.

Read only

0 Likes
2,043

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

Read only

0 Likes
2,043

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

Read only

0 Likes
2,043

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

Read only

0 Likes
2,043

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

Read only

0 Likes
2,043

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..

Read only

0 Likes
2,043

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

Read only

0 Likes
2,043

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?

Read only

0 Likes
2,043

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

Read only

0 Likes
2,043

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

Read only

0 Likes
2,043

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

Read only

0 Likes
2,043

Thanks Rich and Kamesh. I better start coding the traditional way !! thank u..

Read only

0 Likes
2,043

Thanks

<removed by moderator>

Edited by: Mike Pokraka on Aug 6, 2008 8:38 AM

Read only

0 Likes
2,043

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