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 .
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
I_PROGRAM_NAME = C_TABNAME1
I_STRUCTURE_NAME = C_TABNAME
CT_FIELDCAT = LT_FIELDCAT
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
LOOP AT LT_FIELDCAT ASSIGNING <FS_FIELDCAT>.
<FS_FIELDCAT>-EDIT = C_FLAG.
<FS_FIELDCAT>-EMPHASIZE = C_FLAG.
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...