cancel
Showing results for 
Search instead for 
Did you mean: 

How to update Section Code for Posted Document: SAP Public Cloud

Vishnuvikraman
Discoverer
0 Kudos
81

Hi,

I would like to explain the process we are following.

We are using the Journal Entry API to post Supplier Invoices due to certain limitations in the Supplier Invoice Advanced API. However, since this is a JV API, we are unable to input the section code field during posting via API. Additionally, we have only one section code: 1000.

We need a solution to address this limitation through either of the following approaches:

  1. Updating the posted document to include the section code 1000.

  2. Setting the section code as a default value (1000) for all supplier transactions.

I would appreciate your expert guidance on this. Please assist.

Thanks in Advance!

Accepted Solutions (0)

Answers (2)

Answers (2)

Chuma
Explorer
0 Kudos

​Hello,

Please note: In SAP S/4HANA Cloud, the Journal Entry Post API does not directly support including the Section Code field during posting. However, two primary approaches address this limitation.

First Option: Set a Default Section Code for Supplier Transactions
By customising the vendor master data, you can configure a default Section Code (e.g., "1000") for all supplier transactions. This involves setting the Section Code in the vendor's master record, which the system will then default to related transactions.​

Steps:

  • Navigate to the vendor master data maintenance.
  • Enter the desired Section Code ("1000") in the appropriate field.
  • Save the changes.​

This approach ensures that all transactions involving this vendor automatically inherit the specified Section Code.

Second option: Utilise Custom Fields via In-App Extensibility
If setting a default in the vendor master data is not feasible, you can create a custom field to capture the Section Code during the journal entry posting process. This method leverages SAP's in-app extensibility features.​

Steps:

  • Access the "Custom Fields and Logic" app in the SAP Fiori launchpad.
  • Create a new custom field with the appropriate data type and label (e.g., "Section Code").
  • Enable the field for the relevant business context, such as "Accounting: Journal Entry Item."
  • Enabling the field under the "SOAP APIs" tab will ensure it is available in the Journal Entry Post API.
  • Implement any necessary logic to default the value to "1000" if required.​

This approach allows for greater flexibility and ensures that the Section Code is captured during posting.​

Post-Posting Updates
If none of the above approaches is suitable, and you need to update the Section Code after posting, you can consider the following below,

  • Use the "Manage Journal Entries" app to update the Section Code in posted documents manually.
  • Develop a custom report or use mass maintenance tools to update the Section Code in bulk.​

Note that post-posting updates may impact reporting and compliance, so it's essential to ensure that such changes are audited and documented appropriately.​

Hope it helps!

With regards

Chuma

Chuma
Explorer
0 Kudos

Hello,

Thank you for your question.

 Since the Journal Entry API doesn't allow setting the section code directly, use SSCUIs to set default values for specific fields, including the section code, for supplier transactions.​

Navigate to the 'Manage Your Solution' app, select the relevant country, and adjust the configuration settings to set the section code to 1000 for supplier invoices by default.​
This approach ensures all supplier transactions automatically inherit the default section code without manual intervention.​

You can also adapt to standard applications to meet specific requirements without external tools.​

As you have only one section code (1000), the simplest solution is to designate this as the default value using SSCUIs. 

With kind regards

Chuma