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

Error with table control wizard

Former Member
0 Likes
1,934

Hi

While creating the table control through table control wizard in set include stage if i give any z include name its giving me a error like Include 'ZTABLECONTROL1' does not belong

program 'ZTABLECONTROL'.

ztable control is my main program name..

Can any one please lemme know how to fix this issue..

Arun Joseph

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,305

hiii,

u have give the table control field in the top include of the prg.

with out the control field in the top include the table contol will not work.

reward if heplful.

thanks....

5 REPLIES 5
Read only

Former Member
0 Likes
1,306

hiii,

u have give the table control field in the top include of the prg.

with out the control field in the top include the table contol will not work.

reward if heplful.

thanks....

Read only

0 Likes
1,305

Hi

I am having some doubts in table contol wizard ,initially i have added certain fields in table control now i want to add some more fields in the table control can you gimme the procedure how to do that???

Can any one suggest me which one is better either table control or table control wizard??

Thanks and Regards

Arun Joseph

Read only

0 Likes
1,305

My preference is to hand-craft the table control logic (or copy from a working example) as I find the generated code from the wizard a bit ugly and confusing but I work with other ABAPers who are happy with the wizard. Either way, the essential part is understanding the relationship between the internal table(s) which holds all the data (including columns not displayed), the screen buffer row, and the control itself... if you get your mind around these, it's easy enough to work out how to add columns.

If you put your cursor on the tableview word where you define your control (e.g. within CONTROLS: gtc_trans TYPE TABLEVIEW USING SCREEN 100.) the online help gives a reasonable explanation - but you probably need to read it a couple of times or more! On the screen you define the table control itself and it has attributes such as its name (e.g. gtc_trans) and settings such as whether it has header, separators etc. You separately define the control elements - these need to match the screen buffer row field which you populate as you "loop at table control" in the flow logic in the PBO.

So to add a new field you normally add a new control element on the screen, a new field in the screen buffer row, and a new column in your internal table.

Jonathan

Read only

0 Likes
1,305

Hi

I declared as u said ,here is my declaration.

PROCESS BEFORE OUTPUT.

LOOP AT ITAB_ITEM WITH CONTROL TC_ITEM CURSOR TC_ITEM-CURRENT_LINE.

MODULE STATUS_0100.

ENDLOOP.

*

PROCESS AFTER INPUT.

LOOP AT ITAB_ITEM WITH CONTROL TC_ITEM.

MODULE USER_COMMAND_0100.

ENDLOOP.

But i am getting a error like "In the event PROCESS AFTER INPUT, no additions are allowed with "LOOP AT".

Thanks and Regards

Arun Joseph

Read only

0 Likes
1,305

Hi Arun

I explain steps to add fields exist table control wizard(TCW).

1.Add fields to internal table which is bind to TCW. and active

2.Go to Layout section and press F6

3.Enter internal table and press (Get From Program) Button

4.Select Field and drag and drop to TCW .

5.Select TextField control and write over the dropped column

6.Add field value at PAI between chain and end chain .

Vivek