Wednesday, December 22, 2010
Use LOOP AT TABC-COOLS(TABC table control name) to hide columns on table control. It is similar to LOOP AT SCREEN.
- Define Columns table based on table control.
- Write the below code in the PBO of the screen to hide certain fields.
CONTROLS TABC TYPE TABLEVIEW USING SCREEN 100. DATA: COLS LIKE LINE OF TABC-COLS.
"At runtime as TABC is deep structure which has COLS table "inside we have to do the following. LOOP AT tabc-cols INTO cols. IF cols-screen-name = 'ITAB-MATNR'. "Which is to be hidden cols-screen-active = '0'. MODIFY tabc-cols FROM cols INDEX sy-tabix. ENDIF. ENDLOOP.
Followers
Popular Posts
- ABAP - ALV Report example with steps
- ABAP - Step by step tutorial on Smart Forms - Template Node
- ABAP - Sending email with pdf attachment
- SAP Adobe Form - Steps to create simple ADOBE Form and calling it from ABAP Program
- SAP ABAP - CL_ABAP_CHAR_UTILITIES class usage
- ABAP - Multiple value selection from F4 help for SELECT-OPTIONS
- Execute ABAP Report using SUBMIT statement
- ABAP - Select all or Deselect all in ALV or Check box handling in ALV
- Web Dynpro ABAP ALV - ON_CLICK event
- ABAP - Dynamic WHERE clause
0 comments:
Post a Comment
Your useful comments, suggestions are appreciated.Your comments are moderated.