Description: Table Control generally used to display Multiple records in a single screen.
Step 1. Create a Module Pool Program , declare some variables and activate the program.
Step 2. Create a screen '0001'.
Step 3. Provide a short text and select Normal Screen Radio Button and then click on the Layout Button as shown.
Step 4. Select the Table Control Element from the left column of the screen painter, Drag and Drop it on the screen. Adjust the Height and Width as per required. Now Double click on it and provide the name of the
table control as 'TBL_CTRL' as declared in the main program. Check the Vertical and Horizontal resizing button. Select the Horizontal and vertical separators. Select the w/SelColumn check box and Provide the name as LS-SEL. [LS- is declared as a work area in the main program]. This LS_SEL works as a select button for each row in the table control.
Step 5. Click on the top button marked as red and in the pop up window provide the work area name as 'LS' and click on the Get from Program button. Select some fields that you want to show in the table control columns. At last click on the Continue button.
Step 6. All the selected columns appear in the table control .
Step 7. Now lets provide the column text to every column on the table control. Select the text box element from the element list, drag and drop it on the header of the table control. Double click on the text element and Provided the required column text as shown below.
Step 8. Double click on the first column [LS-BUKRS]. As it is the primary key field of the table, lets make it as read only field. Set the property as 'Output only'.
Step 9. Provide the flow logic of the screen '0001' containing the table control. Add the Loop and Endloop statement in the PBO and PAI of the screen which contains the table control. The Loop and Endloop statement in the PBO is used to read the value from the internal table and fill the table control through the work area. The Loop and Endloop statement in the PAI is used to process the record that are in the table control if the user performs some action like updating or modifying the existing records.
Step 10. Define the modules in the flow logic of the screen and provide some code in it as shown below.
Step 11. Lets create a T-Code for the Module pool program.
Step 12. Run the program and the table control is displayed on the screen.
Step 13. The table control and tab strip controls structures are defined in the type group 'CXTAB'.
Go to - SE11 and provide the type group name and click on display button.
Step 14. The table control follows the type 'SCXTAB_CONTROL' and the tab strip control follows type 'SCXTAB_TABSTRIP'.
______________________________________________________________________________
Step 1. Create a Module Pool Program , declare some variables and activate the program.
Step 3. Provide a short text and select Normal Screen Radio Button and then click on the Layout Button as shown.
Step 4. Select the Table Control Element from the left column of the screen painter, Drag and Drop it on the screen. Adjust the Height and Width as per required. Now Double click on it and provide the name of the
table control as 'TBL_CTRL' as declared in the main program. Check the Vertical and Horizontal resizing button. Select the Horizontal and vertical separators. Select the w/SelColumn check box and Provide the name as LS-SEL. [LS- is declared as a work area in the main program]. This LS_SEL works as a select button for each row in the table control.
Step 5. Click on the top button marked as red and in the pop up window provide the work area name as 'LS' and click on the Get from Program button. Select some fields that you want to show in the table control columns. At last click on the Continue button.
Step 6. All the selected columns appear in the table control .
Step 7. Now lets provide the column text to every column on the table control. Select the text box element from the element list, drag and drop it on the header of the table control. Double click on the text element and Provided the required column text as shown below.
Step 8. Double click on the first column [LS-BUKRS]. As it is the primary key field of the table, lets make it as read only field. Set the property as 'Output only'.
Step 9. Provide the flow logic of the screen '0001' containing the table control. Add the Loop and Endloop statement in the PBO and PAI of the screen which contains the table control. The Loop and Endloop statement in the PBO is used to read the value from the internal table and fill the table control through the work area. The Loop and Endloop statement in the PAI is used to process the record that are in the table control if the user performs some action like updating or modifying the existing records.
Step 10. Define the modules in the flow logic of the screen and provide some code in it as shown below.
Step 11. Lets create a T-Code for the Module pool program.
Step 12. Run the program and the table control is displayed on the screen.
Step 13. The table control and tab strip controls structures are defined in the type group 'CXTAB'.
Go to - SE11 and provide the type group name and click on display button.
Step 14. The table control follows the type 'SCXTAB_CONTROL' and the tab strip control follows type 'SCXTAB_TABSTRIP'.
______________________________________________________________________________
2 comments:
Good news
This is to inform the general public that The Bill and Melinda Gates Foundation's "COVID-19 Relief Fund", in collaboration with The Asia Foundation; which was setup to help business owners and individuals during and after the corona virus pandemic.
If you want to be a part to receive this donation from Bill and Melinda Gates Foundation's "COVID-19 Relief Fund"You are to receive the sum of $1,000,000 USD,If you are interested to receive this donation,Email: (afgcare99@gmail.com) or (asiafoundationgroup@inbox.lv)
!! believe it's 100% real. and it starts now !!
Please Share !!
This post is extremely radiant. I extremely like this post. It is outstanding amongst other posts that I’ve read in quite a while. Much obliged for this better than average post. I truly value it! best institute for sap in hyderabad with placements
Post a Comment