cancel
Showing results for 
Search instead for 
Did you mean: 

Custom field not available as a debtor/creditor item at API - Journal Entries Changes

Paulo_Piassenti
Discoverer
0 Kudos

Hello everyone,

I created a new custom field as a Accounting coding block for journal entries lines. I will have to populate this field for a lot of journal entries already posted via API. 

To do so, I followed procedures as below:

https://blogs.sap.com/2019/09/10/guidelines-for-api-journal-entry-change-asynchronous/ 

As a result, G/L Items could be successfully changed, as my custom field becomes automatically available in my .wsdl. However, for Debtor/Creditor items the custom field is not displayed.

I tried to include it manually according to the line automatically generated for G/L Item, but it was unsuccessfully too.

Is there any procedure necessary to be done that may not be included at SAP Guidelines above for my custom field to become available at the Journal Entry Change API?

Kind regards,

Paulo Piassenti.

Accepted Solutions (1)

Accepted Solutions (1)

Wesley
Employee
Employee
0 Kudos

Hi Paulo,

Coding Block belongs to accounting assignment part, which is only filled in G/L item.

That is why you only see your custom field under G/L item node.

Best regards,

Wesley

Answers (3)

Answers (3)

OwenLiu
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Paulo,

I'm not so sure about:

"As a result, G/L Items could be successfully changed, as my custom field becomes automatically available in my .wsdl. However, for Debtor/Creditor items the custom field is not displayed."

What's the difference between G/L Items and Debtor/Creditor items? As you said one was successful and the other was not.

Best Regards,

Owen

Paulo_Piassenti
Discoverer
0 Kudos

Hi Owen,

'Debtor/Creditor items' are Accounts payable and accounts receivable item lines, generated from invoices and linked to a customer/supplier.

.wsdl file has a structure as below:

JournalEntryHeader

JournalEntryGLItem

JournalEntryDebtorCreditorItem.

My new custom field became available only in 'JournalEntryGLItem'. I need it to become available to 'JournalEntryDebtorCreditorItem' too, so we can populate AP/AR item lines.

Best regards,

Paulo Piassenti.

former_member132363
Active Contributor
0 Kudos

Here are some SAP resources you may review based on your topic "populate | of | journal entries changes | journal entries lines | journal entries | field | custom field"

[General Journal Entry workflow] How to set up approver based on ...

Aug 30, 2020 ... Specially for the general journal entries workflow, user could set up ... Lines of Business ... Select configure step Map Custom Responsibility Definitions to CDS ... you could just change corresponding fields in Configuration step 5 and 6. ... even populated automatically from other data like salary of a person.

https://blogs.sap.com/?p=51

SAP S/4HANA Cloud Validation and Substitution rules

May 18, 2020 ... The Matches operator can be used to match a string-type field value against a regular expression. ... to choose a source field from a custom business object and uses its value to fill in the target field. ... ? Post General Journal Entries ... Click on OK and go to Line Item 1. Change the Cost Center to CC_CON.

https://blogs.sap.com/?p=72

Maintain Hierarchies from Standard CDS views in S4HANA Cloud

Dec 7, 2018 ... Select the appropriate fields as needed to build your query(from your custom CDS view that was developed under the Field selection tab. 3. Go to?...

https://blogs.sap.com/?p=539

former_member132363
Active Contributor
0 Kudos

You need to create a custom logic for new field first and enable this for "Post General Journal Entries". Once the coding block is published, you can see the field in template

The available fields to use in the template are described in the Help Portal here [link] https://help.sap.com/viewer/0fa84c9d9c634132b7c4abb9ffdd8f06/1908.500/en-US/41f88d19c3b64b1db1c2aa80...

[View Article](https://answers.sap.com/questions/13238720/view.html)

I hope this answered your question! If it did, please mark it as the 'Best Answer' so I can continue learning and answering questions in the community.