12-22-2007 11:13 AM
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
12-22-2007 11:34 AM
Your elements defined in the screen within the table control should be refering to the internal table (wi_custa) . (Get From Program)
12-22-2007 11:34 AM
Your elements defined in the screen within the table control should be refering to the internal table (wi_custa) . (Get From Program)
12-22-2007 11:52 AM
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
12-22-2007 12:00 PM
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