‎2009 Sep 03 2:35 PM
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
‎2009 Sep 03 2:38 PM
>
> 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.
‎2009 Sep 03 2:38 PM
>
> 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.
‎2009 Sep 03 2:43 PM
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
‎2009 Sep 03 2:50 PM
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
‎2009 Sep 03 2:58 PM
‎2009 Sep 03 2:41 PM
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.