Skip to Content
author's profile photo Former Member
Former Member

Table Control

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Oct 17, 2006 at 03:39 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.