Technical Articles
Guidelines for Creating and Enabling Extension Field for Journal Entry API
In this blog post you will learn how to creating and enabling extension field for Journal Entry API. We enabled the extension fields for the following Journal Entry APIs:
- API Journal Entry – Post (Synchronous) and API Journal Entry – Post (Asynchronous) on the level of item, coding block and profitability segment.
How to Create Extension Field and Enable It for Journal Entry API
Procedure
- Log on to the SAP Fiori launchpad as Administrator.
- Under Extensibility, choose the Custom Fields and Logic tile.
- On the Custom Fields and Logic screen, click Create
- On the New Field screen, make the following entries:
- Business Context: choose the context where the extension field belongs to
Journal Entry – Post (Synchronous) and Journal Entry – Post (Asynchronous) API supports the extension fields in Business Context Accounting: Coding Block, Accounting: Journal Entry Item and Accounting: Market Segment
Journal Entry – Change (Asynchronous) API supports the extension fields in Business Context Accounting: Coding Block
- Label: enter the name for extension field
- Type: choose the data type for extension field
- Length: enter the length for extension field
5. Click Create and Edit
6. Switch to tab SOAP APIs
If it is enabled for Journal Entry – Post (Synchronous) and Journal Entry – Post (Asynchronous) API, click Enable Usage for JournalEntryBulkCreationRequest_In and JournalEntryCreateRequestConfirmation_In
If it is enabled for Journal Entry – Change (Asynchronous) API, click Enable Usage for JournalEntryBulkChangeRequest_In
7. If you want the extension field is available on App Manage Journal Entries, then switch to tab UIs and Reports, and click Enable Usage for Manage Journal Entries
8. Click Save and then click Publish
Result
You have created extension fields and enabled them in the structure of Journal Entry API and Fiori App Manage Journal Entries.
Dear Expert,
I have added a custom field. But can not add it to the creation UI. How to do?
Hello Wesley,
Regarding custom field for accounting documents, it`s understood that only custom field for GL accounting document could be created through " Custom Fields and Logic" app, which could be easily used for SOAP API under SOAP API tab shown as below.
Regarding AP/AR custom field, as it can not by created using " Custom Fields and Logic" app, we need to create them by classic GUI coding block function. In this case is it possible to utilize the AR/AP custom field by SOAP API too (as the SOAP API is utilized by SAP RPA function)?
If the answer is YES, Which function should we use to define/refer the "XML Namespace" and " Field Name" for custom field created using classic GUI coding block function?
Thanks and Best Regards,
JIA
Hi Zipei,
As I know, you can use App Custom Fields and Logic to create custom field for AR/AP item as well. Once you create custom field under business context Accounting: Journal Entry Item, the field is available for G/L, AR and AP items.
BR,
Wesley
Hi Wesley
Thanks for the reply.
We will try Journal Entry Item business context as suggested.
Classic GUI coding block and key user Coding Block business context were preferred because they could be shown on accounting document view, not only on report as journal entry item.
If you know how to make Classic GUI coding block works with SOAP API, please kindly advice. Thank you.
Hi Zipei,
Sorry that I have less knowledge with classic GUI coding block. I cannot help here.
Hi Wesley
Got it. Thank you anyway.
Hello Wesley,
How to transport these changes to the next environment?
Hi Temgire,
Sorry that I do not know either. Maybe you need to manually maintain again on productive system. You can raise this question in SAP community.
Thanks!
Wesley
Hi Wesley,
App Custom Fields and Logic will add custom fields, can you please help how to extend the input structure ( Line item on a G/L account.) of API with standard fields like AUFNR.
Regards,
hi Wesley Yin,
can we able to add Custom field in the Message header level as well using custom fields and logic?