‎2012 Sep 03 3:47 AM
Hi Experts,
Would like to seek for your help and guidance. I've a requirement whereby to display the records in a table
on the screen '0200' via dialog programming. Please guide me. Thanks.
Scenario:
After the program has retrieve from the database and there are total of 9 records. In the screen '0200', the table are
only allow to view 6 records maximum at a time. The program should display 3 records and user need to use the
scroll bar to scroll up to view the remaining 6 records.
Regards,
Shawn
Moderator message: "spec dumping", please work yourself first on your requirement.
Message was edited by: Thomas Zloch
‎2012 Sep 03 5:06 AM
hi,
Use table control in menu painter. design the layout
declare table control using below
CONTROLS tc1 TYPE TABLEVIEW USING SCREEN 200
declare internal table for records u want display
design the table control using the dictionary/program fields. select the fields u want drag in table control.
fill the internal table in the program.
loop at internal table in PBO as well as PAI as below.
PROCESS BEFORE OUTPUT.
* MODULE INITIALIZATION_0101.
MODULE STATUS_0101.
LOOP AT IT_DATA_ITEM INTO T_DATA_ITEM
WITH CONTROL TC1 CURSOR TC1-CURRENT_LINE.
ENDLOOP.
for scrolling
use tc-lines = tc-lines + sy-tabix.
‎2012 Sep 03 5:20 AM
This is very basic Module Pool Programming.
Please search the forum before posting a question.
‎2012 Sep 03 6:38 AM
dear,
Just do 1 thing create table control with wizard and adjust table control size to allow 6 records.