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

Table Control Wizard

Former Member
0 Likes
1,938

I'm new to dialog programming and I'm trying to add a table control to my form. I thought using the the table control wizard would be the best thing to do, but I can't get it to work. I get to the part asking for the internal table and work area. I type in the right information but it says that the work are does not exist. Here is what I have in the program:

Data: it_mytab Type Table Of zmytab,

wa_mytab Like it_mytab.

I put this at the top of the report program. Am I missing something. It says wa_mytab doesn't exist, but I've saved and activated it. Is it easier to create a table control manually. Any help would be appreciated.

Thanks,

Curtis

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,756

Hi Curtis,

Give the declarations in the program like this.

data : it_itab like ekko occurs 0,

wa_itab like ekko.

Now you will not get that error.

Now when you go the wizard and go the work area field,press F4.

You will be able to see the work area name given in the program.

Enter that name and go to the next step.

At the final step in the wizard,it will ask for the include names fro PBO,PAI,DATA and so on.

You should give the include names if you have used.

In my opininion I feel creating a table control manually is better for a first timer as you would be able to know all the steps in creating a table control in detail when you create them manually.

Later on when you get used it,you will find it easier to create table controls.

Revert for any querries.

Regards,

Kashyap Ivaturi

Edited by: Kashyap Ivaturi on Jan 11, 2008 6:44 PM

9 REPLIES 9
Read only

Former Member
0 Likes
1,756

Here is how you can use a Table Control Wizard.

first go to layout of any screen.....

take element TABSTRIP with WIZARD.

then follow the steps....

1> continue

2> give name

3> than give tab text ( give different text as per need of tabs)

4> it will create subscreens automatically for that tabs... , continue

5>it will show list of includes..., continue

6> complete

here in subscreen u can create all the elements as normal screen

Read only

0 Likes
1,756

I'm confused. Do I have to put my table control inside a tab strip?

Read only

0 Likes
1,756

Hi Curtis,

No it is not requied to put it in a tab strip.

It depends on the requirements.

Regards,

Kashyap Ivaturi

Edited by: Kashyap Ivaturi on Jan 11, 2008 6:45 PM

Read only

Former Member
0 Likes
1,757

Hi Curtis,

Give the declarations in the program like this.

data : it_itab like ekko occurs 0,

wa_itab like ekko.

Now you will not get that error.

Now when you go the wizard and go the work area field,press F4.

You will be able to see the work area name given in the program.

Enter that name and go to the next step.

At the final step in the wizard,it will ask for the include names fro PBO,PAI,DATA and so on.

You should give the include names if you have used.

In my opininion I feel creating a table control manually is better for a first timer as you would be able to know all the steps in creating a table control in detail when you create them manually.

Later on when you get used it,you will find it easier to create table controls.

Revert for any querries.

Regards,

Kashyap Ivaturi

Edited by: Kashyap Ivaturi on Jan 11, 2008 6:44 PM

Read only

0 Likes
1,756

Kash,

I went ahead and changed the data section like you said. When I run the wizard and get to the part where I enter the Internal Table and the Table Work Area, I get the same thing. When I press F4, nothing happens. Now, I'm running SAP 4.6C if that matters. Any other ideas?

If not, is there a place that shows me how to create one manually?

Thanks,

Curtis

Read only

0 Likes
1,756

hi,

u can use table control alone also.

i give internal table's name in work area and it works fine.

i never declare work area separartely...

try with that

reward if useful....

Read only

0 Likes
1,756

Hi Curtis,

I am not sure why the wizard is not accepting the work area.

I just checked it and it is wroking well in my system.

After you give the declarations in the program.Just save the program and activate it and check again.

Generally speaking,work area is not required.Only the internal table name is required.

But is you want to create a table control manually.These are the steps that you need to follow:

1) In the screen layout you will find an option TABLE CONTROL just above the TABLE CONTROL WIZARD button.

2) Select that option.

3) Now left click the mouse and drag the cursor in the screen.By doing this you create a table control of the size that you want.

4)Now double click on it and a pop up will appear.There you need to give the name of the table control.

5)Now select the input/output field in the screen layout and paste it in the table control.

6)now selct the text field option and paste it in the header of the table control.The text field is used to give the name of the column in the table control.Double click on it and a pop up window will appear.Enter the name and text of the text field.

7)Select the input/output field and paste it jus below the text field that was created just now.Double click on it and a pop up window will appear.Enter the name and text of the input/output field.But here while entering the name of the input/output field,you should give the name in the following format.

<table_name>-field_name>.For e.g., EKKO-EBELN.By giving the name of the input/output field in this format,the field will be directly linked to the field in the standard table.

8)Now in the table control,one column is created.

Follow the same steps for creating other columns in the table control.

now save the screen and activate it.

Hope this will help you.

Revert for any other querries.

Reward points if helpfull.

Regards,

Kashyap

Read only

0 Likes
1,756

Thanks for all the help. I finally got the wizard to work. Even though my program said it was activated, it acted like the work area variable wasn't there. I added a comment, just so I can reactivate it. Then the wizard worked fine. Not quite sure why it would do that.

Thanks again,

Curtis

Read only

Former Member
0 Likes
1,756

Hi,

Table contorl wizard will make your table control designed. But as if you don't know how to code table controls the maintenance becomes difficult. So you may refer to the standard demo program RSDEMO02 to learn the various feature of tbale controls.

Regards,

Renjith Michael.