Document date is overriden by work date

kamranshehzadkamranshehzad Member Posts: 165
I am importing some data through xmlport and system overrides document date field with work date. this is bit annoying as i want to use import files document date. i am also not validating the date field but still its overriding it.

please suggest anything.

regards,
KS

Answers

  • AdrianAkersAdrianAkers Member Posts: 137
    Is it a gen. journal line you are importing?

    Are you calling the SetupNewLine function where the Document Date is set to the WORKDATE?

    Any more information you can provide?
  • kamranshehzadkamranshehzad Member Posts: 165
    no...
    i am importing in purchase orders through codeunit /xmlport.
    for some reason its overriding work date on the date i m trying to import.
    i have stopped all validations etc.. but nothing worked so far..

    any advice...
    regards,
    KS
  • AdrianAkersAdrianAkers Member Posts: 137
    On the Insert trigger of the Purchase Header table the function InitRecord is called where the Document Date is set to the WORKDATE.

    This could be your problem...
  • kamranshehzadkamranshehzad Member Posts: 165
    that could be the potential reason.
    thanks for your help. ill try that....

    regards,
    KS
  • AdrianAkersAdrianAkers Member Posts: 137
    Ok hope this works... If so mark this post as solved.
  • kamranshehzadkamranshehzad Member Posts: 165
    thanks...
    KS
Sign In or Register to comment.