Symptom
Purchase Order creation date can be set with a previous date or a date in the future. System message 06 028 - 'Purchase Order date is in past' can be issued as either a warning or hard-stop error during regular Purchase order processing, but when trying to edit/change the behaviour(from warning to error, or vice versa), the message behaves differently(sometimes warning, sometimes error), further clarification is needed on this change.
Environment
SAP S/4HANA Cloud Public Edition
Cause
06028 is a hard-coded system message, it's behavior is based on the context in which it is issued.
It is issued as an error when the PO's document date is blank.
If the document date is not blank, but is earlier than the system date, system will only issue a warning message.
Resolution
Create Purchase Order- advanced gives the possibility to create a PO dated in the past or in the future. Future dates are allowed to facilitate Hold and Park functionality and can be overwritten manually by the user. This is not customizable.
It is not possible through customizing to change the field selection of Document date for a PO.
As a workaround, configure in SSCUI 102364 Define Attributes of System Messages. Change the message- 'Purchase order date is in the past' Message no. 06028 to 'E', so that it will prevent from creating a PO using a past date.
If there is no date value, the hard stop 'red' error is issued, but if the date is in the past and filled, the warning is sent to the user.
Example: 06 028 is already customized as hard stop / error message in customizing:
For new PO, error is issued:
- In Create Purchase Order advanced app, enter all required details apart from date, set this as blank.
- Save / Check.
- 06 028 is issued as error.
For existing PO, warning is issued:
- In ME22N (Change Purchase Order advanced) change the document date to yesterday / in the past / prior to original document date.
- Save / Check.
- 06 028 is issued as warning.
Keywords
po date in past, back date, previous date can be set for Purchase order, S4_1C, S4HC, MM-PUR-PO, Document date, create po, S4_PC, date in the future, Create Purchase order advanced app, Purchase Order date is in past, 06 028, error, warning, Define Attributes of System Messages, 102364, X4_BC , KBA , MM-PUR-PO , Purchase Orders , Problem