Skip to Content
0
Former Member
Apr 06, 2011 at 05:54 AM

changes in maintenance screen.

13 Views

Hi Experts,

Hi have created a maintenance screen where I am showing sales division, child account and parent account. I am showing this maintenance screen in tcode zorder and tcode zhorder.

Now my requirement is to hide sales division in both tcodes. I have used the following fieldcatalog:

FORM BUILD_FIELDCATALOG .

REFRESH:LT_FIELDCAT.

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

I_PROGRAM_NAME = C_TABNAME1

I_STRUCTURE_NAME = C_TABNAME

CHANGING

CT_FIELDCAT = LT_FIELDCAT

EXCEPTIONS

INCONSISTENT_INTERFACE = 1

PROGRAM_ERROR = 2

OTHERS = 3.

IF SY-SUBRC <> 0.

ENDIF.

CLEAR:WA_LAYOUT,WA_COMMON_GRID_SETTINGS.

LOOP AT LT_FIELDCAT ASSIGNING <FS_FIELDCAT>.

<FS_FIELDCAT>-EDIT = C_FLAG.

<FS_FIELDCAT>-EMPHASIZE = C_FLAG.

ENDLOOP.

  • Preparing Layout

WA_LAYOUT-ZEBRA = WA_LAYOUT-COLWIDTH_OPTIMIZE = C_FLAG.

  • Displaying Output table in ALV Grid format

WA_COMMON_GRID_SETTINGS-EDT_CLL_CB = C_FLAG.

ENDFORM. " BUILD_FIELDCATALOG

Pleased help me in sorting out this problem,.

thanku in advance...