cancel
Showing results for 
Search instead for 
Did you mean: 

Custom field into Fiori App

NilPeksen
Active Participant
0 Kudos

Hey everyone,

We have a requirement to add a custom field into Fiori App 'Display Line Items in General Ledger'.
We created a custom field in CFL with the relevant business context (FINS_JOURNAL_ENTRY_ITEM).
I enabled and published it for 'UIs and Reports' (for CDS views) and I can see that CDS view 'I_JournalEntryItemCube' is extended correctly. That means, I can see the custom field in ACDOCA and in the CDS view. But of course it is not filled.

We want to write the value in BSEG-LZBKZ field (also in transaction FBL3N) into this new custom field. My question would be, where and how to write this logic..

1. I cannot see this new field in CFL under 'Data Source Extensions'.. Should we see it here in the field list and then map?

2. Where to include the logic of new field (again in CFL? Or in the CDS view?)

Thanks,
Nil

0 Kudos

Hi Nil, could you please describe me how did you implement the new field value in the database? and how did you define when to launch this custom logic?

thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

geert-janklaps
Active Contributor
0 Kudos

Hi,

I guess you just need to fill the field with a BADI. Typically a custom field added to a business context can be manipulated using a BADI which is available in the custom logic section of the "Custom Fields and Logic" app. (using the limited scope ABAP syntax)

My best guess is you'll need following BADI to manipulate the field you added:

I can't add more screenshots as I'm doing this in a starter system (S/4HANA Cloud) which doesn't allow me to create extensions. But the same principles apply in an on-premise environment.

Best regards,

Geert-Jan Klaps