‎2008 Feb 26 9:24 AM
hi,
thanks
i am not able to use
table control in module pool
please tell me the document or link .
thanks
‎2008 Feb 26 9:31 AM
Check the below link:
http://wiki.ittoolbox.com/index.php/FAQ:What_is_module_pool_program_in_abap%3F
http://help.sap.com/saphelp_46c/helpdata/en/35/26b1aaafab52b9e10000009b38f974/content.htm
http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm
http://sap.mis.cmich.edu/sap-abap/abap09/index.htm
http://www.geocities.com/ZSAPcHAT
http://www.allsaplinks.com/files/using_table_in_screen.pdf
http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
http://www.sapgenie.com/links/abap.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
You can also check the transaction ABAPDOCU which gives you lot of sample programs.
Also you can see the below examples...
Go to se38 and give demodynpro and press F4.
YOu will get a list of demo module pool programs.
One more T-Code is ABAPDOCU.
YOu can find more examples there.
See the prgrams:
DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement
DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB
‎2008 Feb 26 9:29 AM
Check these standard programs..
RSDEMO_TABLE_CONTROL
DEMO_DYNPRO_TABLE_CONTROL_1
DEMO_DYNPRO_TABLE_CONTROL_2
RSDEMO_TABLE_CONTROL
RSDEMO02
http://help.sap.com/saphelp_45b/helpdata/en/d1/801bdf454211d189710000e8322d00/content.htm
http://sap.niraj.tripod.com/id29.html
Reward if useful
‎2008 Feb 26 9:31 AM
Check the below link:
http://wiki.ittoolbox.com/index.php/FAQ:What_is_module_pool_program_in_abap%3F
http://help.sap.com/saphelp_46c/helpdata/en/35/26b1aaafab52b9e10000009b38f974/content.htm
http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm
http://sap.mis.cmich.edu/sap-abap/abap09/index.htm
http://www.geocities.com/ZSAPcHAT
http://www.allsaplinks.com/files/using_table_in_screen.pdf
http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
http://www.sapgenie.com/links/abap.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
You can also check the transaction ABAPDOCU which gives you lot of sample programs.
Also you can see the below examples...
Go to se38 and give demodynpro and press F4.
YOu will get a list of demo module pool programs.
One more T-Code is ABAPDOCU.
YOu can find more examples there.
See the prgrams:
DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement
DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB
‎2008 Feb 26 9:34 AM
HI,
TABLE CONTROLS:
-
Table Control component is used to view the internal table contents in the screen.
Navigations to create Table control component:
-
1. Create an MPP program.
2. In Top include File, declare variables as follows:
DATA ITAB LIKE KNA1 OCCURS 0 WITH HEADER LINE.
DATA ITAB1 LIKE KNA1 OCCURS 0 WITH HEADER LINE.
CONTROLS TBCL TYPE TABLEVIEW USING SCREEN 100.
DATA CUR TYPE I VALUE 5.
-> Save -> Activate.
3. Create a Screen (100) -> Select Table control component from toolbar -> Double Click and specify name (TBCL) -> Press F6 and specify internal table name (ITAB) -> Select required fields -> Paste on the Table control -> To separate the fields, use Separators option in Table control Attributes -> Specify labels if necessary -> Create pushbuttons (FETCH, MODIFY, PRINT, EXIT) -> Save -> Flowlogic.
4. In PAI module, specify following code:
CASE SY-UCOMM.
WHEN 'FETCH'.
SELECT * FROM KNA1 INTO TABLE ITAB.
TBCL-LINES = SY-DBCNT. * To create Vertical Scrollbar
WHEN 'EXIT'.
LEAVE PROGRAM.
WHEN 'PRINT'.
GET CURSOR LINE CUR.
READ TABLE ITAB INDEX CUR.
LEAVE TO LIST-PROCESSING.
WRITE 😕 ITAB-KUNNR, ITAB-NAME1, ITAB-ORT01, ITAB-LAND1.
WHEN 'MODIFY'.
LOOP AT ITAB1.
MODIFY KNA1 FROM ITAB1.
IF SY-SUBRC = 0.
MESSAGE S002(ZMSG).
ELSE.
MESSAGE E003(ZMSG).
ENDIF.
ENDLOOP.
SELECT * FROM KNA1 INTO TABLE ITAB.
TBCL-LINES = SY-DBCNT.
ENDCASE.
5. In FlowLogic editor, specify following step loops:
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
LOOP AT ITAB CURSOR CUR WITH CONTROL TBCL.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
LOOP AT ITAB.
MODULE NEW. * New module to move records from ITAB to ITAB1. Double click on Module Name (New) to create a new one.
ENDLOOP.
6. Specify following code in the NEW module:
MODULE NEW INPUT.
APPEND ITAB TO ITAB1.
ENDMODULE.
7. Create a Tcode -> Activate all -> Execute.
USING TABLE CONTROL WIZARD:
-
This is a predefined SAP-specific component to create table control using predefined navigations.
1. Create an executable program (Z_TABLEWIZARD) in SE38 editor. Write the following code:
CALL SCREEN 200.
-> Save -> Activate.
2. Goto SE51 -> Specify program name created earlier (Z_TABLEWIZARD) -> Specify Screen number (200) -> Layout -> Select Table Control (Wizard) component from toolbar -> Opens Table control Wizard -> Follow the navigations -> Save and Activate the table control.
3. Execute the program (Z_TABLEWIZARD).
Regards,
Priya.