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

syntax error with table control

Former Member
0 Likes
878

hello all,

I created a table control. this is how i did it,

1.drag the table control

2.named it as gt_con.

my internal table in top include is gt_del_items.

and also declared table control as:

CONTROLS gt_con TYPE TABLEVIEW USING SCREEN 0200.

now how to use this in pbo and pai modules?

Plz advise

1 ACCEPTED SOLUTION
Read only

christine_evans
Active Contributor
0 Likes
765

>

> hello all,

>

> I created a table control. this is how i did it,

> 1.drag the table control

> 2.named it as gt_con.

>

> my internal table in top include is gt_del_items.

> and also declared table control as:

> CONTROLS gt_con TYPE TABLEVIEW USING SCREEN 0200.

> now how to use this in pbo and pai modules?

>

> Plz advise

Searching for and reading the dynpro documentation on http://help.sap.com would be a good start. Personally, I would always use the wizard to create a table control.

5 REPLIES 5
Read only

christine_evans
Active Contributor
0 Likes
766

>

> hello all,

>

> I created a table control. this is how i did it,

> 1.drag the table control

> 2.named it as gt_con.

>

> my internal table in top include is gt_del_items.

> and also declared table control as:

> CONTROLS gt_con TYPE TABLEVIEW USING SCREEN 0200.

> now how to use this in pbo and pai modules?

>

> Plz advise

Searching for and reading the dynpro documentation on http://help.sap.com would be a good start. Personally, I would always use the wizard to create a table control.

Read only

0 Likes
765

well , this is my stmt in pbo module

LOOP at gt_del_items INTO gs_del_items with control gt_con CURSOR int_tc-current_line.

ENDLOOP.

getting syntxt error:

".", "WHERE", "TO field", or "FROM field" expected after "GS_DEL_ITEMS".

thanks

Read only

0 Likes
765

Hi

The code seems to be right, but probably it's wrong the place where you've inserted it: it doesn't have to be placed in a MODULE of PBO, but directly in PBO.

PROCESS PBO.

  LOOP at gt_del_items INTO gs_del_items with control gt_con CURSOR int_tc-current_line.
  ENDLOOP.

If your table control is called GT_CON, what is INT_TO?

Max

Read only

0 Likes
765

sorry thats gt_con aswell.

Read only

Former Member
0 Likes
765

in that table control in the screen layout click F6 or get from dictionary button. choose from z prob and give program name. select your internal table.