Application Development 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: 

Table Control

Former Member
0 Kudos

Hello All,

Let me introduce myself. I am Hema, working for a German based Company in Bangalore, India.

I am into ABAP programming from past 10 days. I am very much new to the language. I have been given the responsibility of developing a software module to fulfill the functional requirement of the client.

I need to use Table Control in one of the screens in the module. I placed the Table Control in the screen 300, and the control is attached with the internal table in PBO module of the screen. I am calling this screen from another screen 200. As soon as I call the screen 300, excepion occurs saying syntax error in screen 300. Also when I try to activate screen 300, I get an error "Table has no columns". How do I proceed now? My code look like:

TABLES: zcust.

DATA: FCODE(4) TYPE C,

CONTROLS ZTBLCTL TYPE TABLEVIEW using screen '0300'.

DATA ITAB LIKE STANDARD TABLE OF zcust.

DATA INIT.

DATA MARK.

DATA COL TYPE CXTAB_COLUMN.

MODULE init_table OUTPUT.

  • PBO of screen 300.

IF INIT IS INITIAL.

select * from zcust into corresponding fields of

table itab.

DESCRIBE TABLE ITAB LINES ztblctl-LINES.

INIT = 'X'.

endif.

ENDMODULE.

MODULE action_screen INPUT.

*PAI of screen 200.

case fscode.

when 'VIEW'.

set screen 300.

leave screen.

endcase.

ENDMODULE.

2 REPLIES 2

gopi_narendra
Active Contributor
0 Kudos

Hi Hema,

make sure u have the loop endloop statements in both the PAI and PBO flowlogic of the screen 300.

for reference see the examples:

demo_dynpro_tabcont_loop.

demo_dynpro_tabcont_loop_at.

Regards

- Gopi

0 Kudos

Thanks Mr.Gopi.

Answer was quite helpful for me.