Sales Credit Memo Postind Error

imclever1205imclever1205 Member Posts: 94
Hi All,

I am having a problem while Posting a Sales Credit Memo,I am getting an error message as such:
" Posting Date is not within your range of allowed Posting Date,in Item Journal Line,Journal Template Name",Line No='0'

My Posting Date of the credit memo is 30/09/2011.

In Financial Management->Setup->General Setup and the User Setup,I have defined
Allow Posting From:29/09/2011
Allow Posting To:01/10/2011


Please any suggestion will be most welcome.

Comments

  • mohana_cse06mohana_cse06 Member Posts: 5,504
    What about the Allow Posting From and Allow Posting to dates in user setup table?
  • imclever1205imclever1205 Member Posts: 94
    Yeah in the User Setup Table also i have defined it,and i even deleted the Item No. which was in the Item Journal Line Table.
  • mohana_cse06mohana_cse06 Member Posts: 5,504
    i even deleted the Item No. which was in the Item Journal Line Table.
    How can it solve your problem? :-k

    If you are a technical person, can you check with activating debugger where exactly you are getting error?
  • imclever1205imclever1205 Member Posts: 94
    A functional told to delete it thinking it would solve the issue but it as in vain.
    Yeah i am a technical person and after debugging the error occurred in the Function CheckAllowedPostingDate(ItemJournalLine)

    WITH ItemJnlLine DO BEGIN
    IF (AllowPostingFrom = 0D) AND (AllowPostingTo = 0D) THEN BEGIN
    InvtSetup.GET;
    GLSetup.GET;
    IF USERID <> '' THEN
    IF UserSetup.GET(USERID) THEN BEGIN
    AllowPostingFrom := UserSetup."Allow Posting From";
    AllowPostingTo := UserSetup."Allow Posting To";
    END;
    IF (AllowPostingFrom = 0D) AND (AllowPostingTo = 0D) THEN BEGIN
    AllowPostingFrom := GLSetup."Allow Posting From";
    AllowPostingTo := GLSetup."Allow Posting To";
    END;
    IF AllowPostingTo = 0D THEN
    AllowPostingTo := 31129999D;
    END;
    *Error occured in this line =IF ("Posting Date" < AllowPostingFrom) OR ("Posting Date" > AllowPostingTo) THEN
    FIELDERROR("Posting Date",Text001)
    END;
  • mohana_cse06mohana_cse06 Member Posts: 5,504
    Did you check what are the values in
    "Posting Date" field and AllowPostingFrom,AllowPostingto variables?
  • imclever1205imclever1205 Member Posts: 94
    The first time it is executing the posting date is 30/09/2011.
    The error comes when it is executed for the second time because the posting date takes a value of 28/02/2012,causing the error to be displayed.

    What i am not getting is why it is executing 2 times,why does it go the table Item Journal Line ,when there are no records about this item there.

    And on my credit Sales Credit Memo subform i have only one line and it is an Item.
Sign In or Register to comment.