10-12-2007 4:26 AM
i created a table control in screen 100 using a internal table from the program.
In my screen 200 i am entering and updating some fields in d/b.
again when i come to screen 100 i should see entries in the table control.
for this i've written select logic in the pbo of screen 100
however i am not able to see any entries....what could be the problem.
10-12-2007 4:28 AM
Check your data with respect to data in table and final internal table
MODULE POOL PROGRAM
http://www.allsaplinks.com/dialog_programming.html
dialog programming
http://fuller.mit.edu/tech/dialog_programming.html
http://www.sappoint.com/abap/dptc1.pdf
http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
http://www.sappoint.com/faq/faqdiapr.pdf
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://www.sapdevelopment.co.uk/tips/tipshome.htm
check sample code.
http://www.sapgenie.com/abap/example_code.htm
http://www.sap-img.com/abap.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCDWBTOO/BCDWBTOO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRFORM/BCSRVSCRFORM.pdf
http://help.sap.com/saphelp_nw2004s/helpdata/en/e4/2adbef449911d1949c0000e8353423/frameset.htm
SAP Library:
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/frameset.htm.
Usage of Table Control in ABAP (PDF):
Rewards if useful.........
Minal
Message was edited by:
Minal Nampalliwar
10-12-2007 4:33 AM
Hi,
Try to give Commit statement in screen 200.
Please post your code of PBO for screen 100 and PAI of screen 200.
Regards,
Niyaz
10-12-2007 4:45 AM
select * from ysroles_request
into corresponding fields
of table itab_requests.
is the select query i wrote in the pbo
10-12-2007 4:51 AM
is the data being fetched from database correctly?
keep a break point and check. try to refresh the internal table itab_requests before select query.
make sure u are using the same internal table (itab_requests) for displaying in table control
Regards,
Niyaz
10-12-2007 4:54 AM
I am using the same itab for table control on the screen..........what's happening is
if the database has 10 entries..........the first ten row are shown as white and the remaining rows are grayed out........
10-12-2007 4:45 AM
Once you hit "Update Button" on screen 200 then before going to screen 100, just check in database that whether the data has been updated or not.
You may need to use Commit Work/Commit Work and wait for 1 sec if the data takes time to get updted in DB table.
Then you need to refresh the contents of internal table used on screen 100 and refill it by selecting data again.
Followed by Moving the contents of internal table to table control using LOOP...ENDLOOP.
10-12-2007 4:52 AM
do i need to write in the select query in the loop...endloop after
before the loop....
I am working for the first time on the dialog program.....
10-12-2007 4:52 AM
do i need to write in the select query in the loop...endloop after
before the loop....
I am working for the first time on the dialog program.....
10-12-2007 4:57 AM
No need to put the select query in loop.
check this code.
PROCESS BEFORE OUTPUT.
MODULE POPULATE_IT.
LOOP AT IT_POPULATE WITH CONTROL so_tbl_ctrl.
ENDLOOP.
PROCESS AFTER INPUT.
LOOP AT IT_POPULATE.
ENDLOOP.
********************************************************************
MODULE populate_it OUTPUT.
refresh it_populate[].
SELECT * FROM ztest_so INTO TABLE it_populate.
ENDMODULE. " POPULATE_IT OUTPUT
PS: Make sure you have declared the same name of intenal table in table control.
Regards,
Niyaz