SAP Knowledge Base Article - Public

3770226 - Service entry sheet can be created despite closed posting period and fails during approval workflow

Symptom

  • A Service Entry Sheet (SES) can be created successfully although the posting date falls in a closed posting period.
  • No error or warning is displayed during SES creation.
  • The posting period validation is only performed when the SES is approved.
  • During approval, the system rejects the SES due to posting period restrictions.
  • Customers expect the posting period check to occur during SES creation so that invalid documents are prevented from entering the approval workflow.
  • This behavior may lead to additional processing effort because the issue is detected only at a later stage of the process.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Ensure the posting period for the relevant company code is closed for the intended posting date.
  2. Create a Purchase Order for a service item.
  3. Create a Service Entry Sheet (SES) referencing the Purchase Order.
  4. Enter a posting date that falls within the closed posting period.
  5. Save and submit the Service Entry Sheet.
  6. Observe that the SES is created successfully without any posting period validation error.
  7. Trigger the approval workflow for the Service Entry Sheet.
  8. Approve the Service Entry Sheet.
  9. Observe that the system performs the posting period validation during approval and rejects the SES because the posting date is in a closed posting period.

Cause

This is standard system behavior.

  • During SES creation, the system checks only the general posting period.
  • The G/L account-specific posting period check is performed later during SES approval/posting.
  • The required CDS view for checking G/L account-specific posting periods (fac_opp_cds_t001b) is not released for customer use.
  • The released CDS view (I_CompanyCodePeriod) provides only general posting period information.

Therefore, the system cannot validate G/L account-specific posting periods when the SES is created.

 
 

Resolution

  1. This is standard system behavior. During SES creation, the system checks only the general posting period. G/L account-specific period checks are performed during approval/posting.
  2. To add custom validations during SES creation, implement BAdI MM_PUR_S4_SES_CHECK_HEADER. You can validate the posting date and account assignment data based on  business rules.
  3. Use CDS view I_CompanyCodePeriod to check the open general posting period and restrict invalid posting dates during SES creation.
  4. To prevent approval failures caused by closed periods, implement BAdI MMIM_CREATE_GM_POSTING_DATE to adjust the posting date to an open period during posting.
  5. Since G/L account-specific posting period information is not currently available through a released CDS view, direct validation at SES creation is not supported.
  6. If stricter controls are required, combine the above enhancement options to validate posting dates earlier in the process and reduce workflow errors.

Keywords

service entry sheet, ses, posting date, posting period, gl account interval, account type S, general interval +, validation at creation, approval error, in approval status, MM_PUR_S4_SES_CHECK_HEADER, MMIM_CREATE_GM_POSTING_DATE, I_CompanyCodePeriod, fac_opp_cds_t001b, manage posting periods , KBA , MM-PUR-SVC-SES-2CL , Service Entry Sheet for Service Procurement (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions