cancel
Showing results for 
Search instead for 
Did you mean: 

STO error

Former Member
0 Kudos

Hi,

When I try to create STO and view the matl in MD04 i got the following error.

"05/02/2020 date comes after end of valid factory calendar. (Pleae correct)."

Could you please explain the reason.

Regards,

MBKM

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member201758
Contributor
0 Kudos

hello,

The issue you have now is that you are extending the Factory Calendar outside of the dates for the Holiday Calendar assigned to it.

You will need to extend the Holiday Calendar first and then extend the

Factory Calendar.

Is the message number M7 523?

Please check

All table entries must be consistent. Check the entries in the

following tables - also the entries delivered by SAP as an example:

-T001W are all plants defined?

-T001K are all valuation areas from T001W defined (OX18)?

-T001 are all company codes from T001K defined (GCB1)?

-MARV current period contained? If necessary, open period via

Transaction MMPV.

-T159C do all plants exist (OMCO)?

- Sanjeev

Former Member
0 Kudos

Hi.

The error code should be 61062 or 6P365.

(I search it from SE17 - T100).If you want to ask the error with error no,

you had better to state the error code.

Anyway,there error may occur in the following case.

CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'

EXPORTING

CORRECT_OPTION = '+'

DATE = DATE1

FACTORY_CALENDAR_ID = GL_FABKL

IMPORTING

DATE = DATE2

FACTORYDATE = FDAY

WORKINGDAY_INDICATOR = INDICATOR

EXCEPTIONS

DATE_INVALID = 01

DATE_AFTER_RANGE = 02 <<<<<<

DATE_BEFORE_RANGE = 03

FACTORY_CALENDAR_NOT_FOUND = 05

CALENDAR_BUFFER_NOT_LOADABLE = 06.

IF SY-SUBRC > 0.

CASE SY-SUBRC.

WHEN 01. MESSAGE E060 WITH DATE1.

WHEN 02. MESSAGE E062 WITH DATE1. <<<<<

DATE_AFTER_RANGE situation in the function module should be

CALL 'CAL_CONVERT_DATE_TO_FDATE'

ID 'FCID' FIELD FACTORY_CALENDAR_ID

ID 'COPT' FIELD CORRECT_OPTION

ID 'FDAY' FIELD C_FDAY

ID 'ABSD' FIELD C_ABS.

......

WHEN 4.

RAISE DATE_AFTER_RANGE. <<<<<<<<

In your case , sy-subrc should be 4.

So I think the reason of this error must be

1) The calender used in this case is not cover 05/02/2020.

=> Please extend the calender setting in T-cd:SCAL

2) Caluculation of 05/02/2020 is not correct.

In this case, I'm not sure the root cause because too many case

can be error cause.

In this case, you should set watch point to field GKDAY.

Best regards.

Keiichiro

Former Member
0 Kudos

Hi BK

You must have a reservation with a requirement date outside your factory calendar. I assume you are using PM orders,so search for orders with a start date that exceeds your factory calendar.

You can simply remove the material reservation from the order or change the

scheduled date for the order. You can also change your factory calendar usinf SCAL tcode.

Regards

Yogesh

Former Member
0 Kudos

Hi BK

If this also not works then try this also go to tcode MD63 and check for planned independent reqrmnts --check the SO scheduling date.

it is possible that SO is having a date exceeding the factory calander calculation days.if yes then go to Tcode MD62 and correct the date.

Regards

Yogesh