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 controls

Former Member
0 Kudos

Hi,

Values are not gettting populated into my table control from my database table in a screen.

The data declarations are as under:

DATA : wi_custa TYPE zcust_master3 OCCURS 0 WITH HEADER LINE.

DATA : cursor1 TYPE i.

CONTROLS table1 TYPE TABLEVIEW USING SCREEN 0103.

I have written the code as:

PROCESS BEFORE OUTPUT.

MODULE STATUS_0103.

LOOP AT WI_CUSTA CURSOR CURSOR1 WITH CONTROL TABLE1.

ENDLOOP.

PROCESS AFTER INPUT.

MODULE USER_COMMAND_0103.

LOOP AT WI_CUSTA.

MODULE TABCONTROL1.

ENDLOOP.

in my flow logic..

And in my screen ABAP program, i have the following code:

In PBO,

SELECT * FROM zcust_master3 INTO TABLE wi_custa.

table1-lines = sy-dbcnt.

zcust_master3 - database table with 2 entries

wi_custa - internal table

table1 - tablecontrol name

0103 - screen number in which the table control is present.

Please help me..

Thanx in advance,

Saipriya.S

1 ACCEPTED SOLUTION

former_member195698
Active Contributor
0 Kudos

Your elements defined in the screen within the table control should be refering to the internal table (wi_custa) . (Get From Program)

3 REPLIES 3

former_member195698
Active Contributor
0 Kudos

Your elements defined in the screen within the table control should be refering to the internal table (wi_custa) . (Get From Program)

Former Member
0 Kudos

Yes, it works now..

Besides, i am unable to modify or delete a record selected from the table control..

Can u suggest me help on that....

Thanx in advance,

saipriya.S

0 Kudos

Hi Saipriya,

You can check the example given in SAP help

http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5e35c111d1829f0000e829fbfe/content.htm

Regards,

Abhishek