Skip to Content
0
Former Member
Oct 25, 2011 at 08:19 AM

change fieldcatalog setting in FAGLL03

848 Views

Hi experts,

I want to add 2 columns (KOSTL / AUFNR) in the FAGL_ACCOUNT_ITEMS_GL program.

After checking the program, I found the final table and function which is displayed on the output screen.

at first, I create new zprogram and new FUNCTION 'ZFAGL_ITEMS_DISPLAY' and then call this program.

and in the 'ZFAGL_ITEMS_DISPLAY' function, CALL FUNCTION 'ZREUSE_ALV_LIST_DISPLAY'

CALL FUNCTION 'ZREUSE_ALV_LIST_DISPLAY'

EXPORTING

I_BUFFER_ACTIVE = SPACE

  • i_bypassing_buffer = c_x

I_CALLBACK_PROGRAM = G_REPID

I_CALLBACK_PF_STATUS_SET = C_FORMNAME_PF_STATUS_SET

I_CALLBACK_USER_COMMAND = C_FORMNAME_CALLBACK_USER

I_STRUCTURE_NAME = 'FAGLPOSX'

IS_LAYOUT = IS_U_LAYOUT

IT_FIELDCAT = IT_U_FIELDCAT

IT_SORT = IT_U_SORT

I_DEFAULT = GD_ALVDEFAULT

I_SAVE = LD_SAVE

IS_VARIANT = IS_U_VARIANT

IS_PRINT = IS_PRINT

IT_EVENTS = GT_EVENTS

IT_EVENT_EXIT = GT_EVENT_EXIT

when executing this function with F5, call the function 'alv_check_buffer' from the SKBB Function Group.

and then call the function 'lt_variant_load' from the SKBS function group.

After calling function 'LT_FC_LOAD', the final field catalog is created.

Thus, I create new zfunction group for SKBB and SKBS. But i can't find where to change to call this new z function modules.

Please guide me how to solve this problem or any other alternative ways which can show extra 2 fields (cost center and order number) without changing the coding..

<removed by moderator>..Please help me.

Thks all

With regards,

TRA.

Edited by: Thomas Zloch on Oct 25, 2011 10:24 AM