Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Time Constraint Error when calling a Function Module

Former Member
0 Likes
1,133

Any help will be greatly appreciated - Thanks RM

Time Constraint Error

Information on where terminated

Termination occurred in the ABAP program "SAPUP50R" - in

"CHECK_TIME_CONSTRAINT_S1".

The main program was "MP000000 ".

In the source code you have the termination point in line 1069

of the (Include) program "UP50RU01".

Error occurred during batch input processing

Source Code Extract

l_is_inconsistent = 'X'.

ENDIF.

Check if there are inverted time periods.

IF l_prelp_line-begda > l_prelp_line-endda.

l_is_inconsistent = 'X'.

ENDIF.

Check if there are overlaps or gaps.

IF NOT l_prelp_before IS INITIAL.

l_date_difference = l_prelp_line-begda - l_prelp_before-endda.

IF l_date_difference 1.

l_is_inconsistent = 'X'.

ENDIF.

ENDIF.

l_prelp_before = l_prelp_line.

ENDLOOP.

IF l_prelp_before-endda '99991231'.

l_is_inconsistent = 'X'.

ENDIF.

IF l_is_inconsistent = 'X'.

IF p_access_type = 'R'.

490 Datenbankschiefstand Personalnummer & Infotyp &

MESSAGE x490 WITH l_prelp_before-pernr l_prelp_before-infty.

ELSE.

491 Unzulässige Daten Personalnummer & Infotyp &

Line 1069 Error occcurs >>>> MESSAGE x491 WITH l_prelp_before-pernr l_prelp_before-infty.

ENDIF.

ENDIF.

ENDFORM. " CHECK_TIME_CONSTRAINT_S1 "XYVN0352581

&----

-


*& Form clear_no_adapter_needed new "XREN844998

&----

-


text

-

-


FORM clear_no_adapter_needed .

CLEAR no_adapter_needed.

ENDFORM. " clear_no_adapter_needed

&----

-


*& Form set_no_adapter_needed new "XREN844998

&----

-


text

-

-


FORM set_no_adapter_needed .

no_adapter_needed = 'X'.

ENDFORM. " clear_no_adapter_needed

6 REPLIES 6
Read only

Former Member
0 Likes
948

This is a standard SAP program - have you looked for notes??

Rob

Read only

0 Likes
948

Yes we checked the SAP notes and all the notes were applied. But I will doublecheck.

Read only

Former Member
0 Likes
948

Refer Notes : 361522, 356876, 361522 & 569141. depending on current version.

Read only

0 Likes
948

Can you please help me for the problem arising in ECC 6.0 and 4.7 and refer some solution<< removed by moderator >>

Note : All notes are applied till ver 4.6c

Edited by: Rob Burbank on Dec 22, 2010 1:30 PM

Read only

0 Likes
948

Ours is ECC6.0. I am also facing this issue.. Any idea?.

Read only

0 Likes
948

Hi,

Well, are you trying to do a batch input on infotype 0000? If yes you need to check that the proposed values respects the time constraint, meaning no gap, no overlaps and no inversions. Also fields SUBTY, OBJPS, SPRPS and SEQNR must remain initial when processing IT0000...

Kr,

Manu.