Skip to Content
0
Former Member
Oct 17, 2006 at 03:32 AM

Table Control

32 Views

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.