Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

change fieldcatalog setting in FAGLL03

Former Member
0 Kudos

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

7 REPLIES 7

raymond_giuseppi
Active Contributor
0 Kudos

Don't duplicate this transaction, there is some customizing/development to add fields displayed on accounting lines. -> read first [Note 984305 - Line item: Definition of special fields (T021S)|https://service.sap.com/sap/support/notes/984305]

Regards,

Raymond

0 Kudos

Dear Raymond,

I can't go to your link. It Requests user name & password. I can't access this page by my current account.

How should i do?

Thks.

With Regards,

TRA.

0 Kudos

Ask you Basis team (the guy(s) with SuperAdmin id) to give you this authority

Basically, the process is

- First go to Customizing : Financial Accounting (New), General Ledger Accounting (New), Master Data, G/L Accounts, Line Items, Define Special Fields for Line Item Display (standard SAP fields that you can append to line display structure)

- For fields you could not add, use add ZZfields in include CI_FAGLPOSX

- Then look via SE11 at structure FAGLPOSYEXT (don't modify/append it) if you don't find your special fields then call SE37 function module ITEM_STRUC_EXTENSION with BASIC_STRUCNAME = 'FAGLPOSY', EXT_STRUCNAME = 'FAGLPOSYEXT', EXT_FIELDS_TABNAME = 'T021S', I_LSTCL = 'D' and X_TRANSPORT = ' '.

- Then call SE19 and create and activate an implementation for the 'FAGL_ITEMS_CH_DATA' BAdI, method CHANGE_ITEMS (receive an update an internal table of structure type FAGLPOSX) (for filling ZZfields in CI_FAGLPOSX, optimize this code for performance...)

Regards,

Raymond

0 Kudos

Dear Raymond,

I'm very new to SAP. I'm very sorry. I can't understand your explanations due to my less experience.

pls guide me step by step basically.

Thks for your reply and waiting upcoming reply.

With Regards,

TRA.

0 Kudos

Dear Raymond,

I saved new layout with custom fields in FAGLL03 at run time. After saving, some records are saved into the LTDXT, LTDX, V_LTDX Table. And new layout can be seen by changing layout.

But I want to set new layout as default.

How can i do for this!!

Thanks very much!!

With Regards,

TRA.

0 Kudos

When saving the latout

- did you check the "default" box

- did you create a "/xxx" layout common to all users

Or in the menu : Settings, layout, Administration -> Layout Management, check the default box in the list of layout

Regards,

Raymond

koolspy_ultimate
Active Contributor
0 Kudos

Hi,

check [SAP OSS Notes|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=984305] 984305 For your requirement. (You need to have market place login contact basis admin)


The 'basic structure' for displaying the items is FAGLPOSE.
From the relevant entries in the T021S table, the system generates the FAGLPOSYEXT structure. The special fields have the first characters 'U_'.
Both structures are included in the FAGLPOSX structure, which is used for the display.

Regards,

koolspy.