Enterprise Resource Planning Blogs by SAP
Get insights and updates about cloud ERP and RISE with SAP, SAP S/4HANA and SAP S/4HANA Cloud, and more enterprise management capabilities with SAP blog posts.
cancel
Showing results for 
Search instead for 
Did you mean: 
Wesley
Employee
Employee
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

  1. Log on to the SAP Fiori launchpad as Administrator.

  2. Under Extensibility, choose the Custom Fields and Logic tile.

  3. On the Custom Fields and Logic screen, click Create

  4. 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.
10 Comments
0 Kudos
Dear Expert,

I have added a custom field. But can not add it to  the creation UI. How to do?
zipeic
Explorer
0 Kudos
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

 
Wesley
Employee
Employee
0 Kudos
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
zipeic
Explorer
0 Kudos
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.
Wesley
Employee
Employee
0 Kudos
Hi Zipei,

Sorry that I have less knowledge with classic GUI coding block. I cannot help here.
zipeic
Explorer
0 Kudos
Hi Wesley

Got it. Thank you anyway.
vijaytemgire
Explorer
0 Kudos
Hello Wesley,

How to transport these changes to the next environment?
Wesley
Employee
Employee
0 Kudos
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,
Balu483
Participant
0 Kudos
hi wesley.yin2,

can we able to add Custom field in the Message header level as well using custom fields and logic?