Message "You must External Document No..." to be changed

santoshmkcetsantoshmkcet Member Posts: 229
Dear All,

Our customer is using Extrenal Document No. - Mandatory.

Now when sales invoice is raised they want the message to be changed from

"You must External Document No. in Sales Header Document Type "Order", No. "XXXX" "

to

"Customer Order No. to be entered"

Can anybody help where to change the message as I could not able to locate the message code.

It would be helpful if it is given solutio is gve ASAP as customer is going Live within 1 day.

Regards,

Santosh


Thanks in advance
Thanks & Regards
Santosh
Where Stones can be transformed to Gold

Answers

  • bbrownbbrown Member Posts: 3,268
    They're going live in 1 day and just noticing this now? I'd question how much testing they done and whether they are ready to go live..

    One your issue, use the debugger to locate where the message trips.
    There are no bugs - only undocumented features.
  • santoshmkcetsantoshmkcet Member Posts: 229
    Debugger was used and we found the code

    CALCFIELDS (External Document No.);

    So where could the message code be?
    Thanks & Regards
    Santosh
    Where Stones can be transformed to Gold
  • bbrownbbrown Member Posts: 3,268
    That code makes no sense. You sure it's not a TESTFIELD?
    There are no bugs - only undocumented features.
  • kinekine Member Posts: 12,562
    Or may be it is the problem, that somebody used CALCFIELDS instead TESTFIELD.... ;-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • ssinglassingla Member Posts: 2,973
    Its a typing mistake :mrgreen:
    The code is
    IF SalesSetup."Ext. Doc. No. Mandatory" THEN
              TESTFIELD("External Document No.");
    

    in CU 80.
    CA Sandeep Singla
    http://ssdynamics.co.in
  • kinekine Member Posts: 12,562
    Than answer is, that the text is system text, if you want different message, you need to replace TESTFIELD with FIELDERROR or ERROR.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • santoshmkcetsantoshmkcet Member Posts: 229
    Dear All,

    Can anyone say where the system message "External Document ...." is specified.
    Is it in the code unit or any other table....?
    Please give advice on this.

    Regards,

    Santosh
    Thanks & Regards
    Santosh
    Where Stones can be transformed to Gold
  • ssinglassingla Member Posts: 2,973
    That is system generated message when you use "Testfield" and you cannot modify it. Follow Kine's advice if you need custom message.
    CA Sandeep Singla
    http://ssdynamics.co.in
  • SogSog Member Posts: 1,023
    The Testfield function is a function not editable in NAV. It has amongst other things that text which you can't change.
    Change the code in CU80 to replace the testfield into something like
    IF SalesSetup."Ext. Doc. No. Mandatory" THEN
              IF delchr("External Document No.") = '' then//delchr for deleting spaces, so that only spaces will still throw the error
                 error(customtextvar); 
    
    |Pressing F1 is so much faster than opening your browser|
    |To-Increase|
  • santoshmkcetsantoshmkcet Member Posts: 229
    Dear Sog,

    Thank you for your advice...

    I will check and get back to you.
    Thanks & Regards
    Santosh
    Where Stones can be transformed to Gold
  • DenSterDenSter Member Posts: 8,304
    This is a really bad approach to the issue. It should be solved by user training. Tell them that when you get that message, the External Document number needs to be entered, and they will understand. No need for any changes. Once you start modifying these system messages you're going to be changing core code for ever, which will make everyone's job more difficult. Do you have any idea how many TESTFIELD commands there are?

    Then again... it does generate more billable hours, and that might be what you're after
  • themavethemave Member Posts: 1,058
    DenSter wrote:
    This is a really bad approach to the issue. It should be solved by user training. Tell them that when you get that message, the External Document number needs to be entered, and they will understand. No need for any changes. Once you start modifying these system messages you're going to be changing core code for ever, which will make everyone's job more difficult. Do you have any idea how many TESTFIELD commands there are?

    Then again... it does generate more billable hours, and that might be what you're after
    I am an end user, and I agree completely with DenSter, please train the users, don't custom program. You are doing a disservice to your clients by catering to there every whim. I you are going to program a change for something this simple, (ie telling them external document no. is the same as customer order number. Then you are going to modify just about everything in Navision, and you will never be able to upgrade, or even apply a service pack.
  • Alex_ChowAlex_Chow Member Posts: 5,063
    On a separate note, the testfield error message really should be the Caption property of the field.
  • ssinglassingla Member Posts: 2,973
    themave wrote:
    DenSter wrote:
    This is a really bad approach to the issue. It should be solved by user training. Tell them that when you get that message, the External Document number needs to be entered, and they will understand. No need for any changes. Once you start modifying these system messages you're going to be changing core code for ever, which will make everyone's job more difficult. Do you have any idea how many TESTFIELD commands there are?

    Then again... it does generate more billable hours, and that might be what you're after
    I am an end user, and I agree completely with DenSter, please train the users, don't custom program. You are doing a disservice to your clients by catering to there every whim. I you are going to program a change for something this simple, (ie telling them external document no. is the same as customer order number. Then you are going to modify just about everything in Navision, and you will never be able to upgrade, or even apply a service pack.

    No second thoughts, I fully agree with both of you.
    CA Sandeep Singla
    http://ssdynamics.co.in
  • santoshmkcetsantoshmkcet Member Posts: 229
    Dear Sog,

    Thanks a lot it worked for me!!!

    Dear Denster
    DenSter wrote:
    This is a really bad approach to the issue. It should be solved by user training. Tell them that when you get that message, the External Document number needs to be entered, and they will understand.

    I truly agree that its just a matter of so called "User Training" and user will surely so call "Understand".
    But then there are extremes, and I just want to make a point that you might not have come across a customer like we do.
    For some customers its a matter of Prestige for them to have a sophisticated software, which I guess Navision has the flexibilty to work upon and we have the best resources to go ahead and be a unique one among all.
    DenSter wrote:
    No need for any changes. Once you start modifying these system messages you're going to be changing core code for ever, which will make everyone's job more difficult. Do you have any idea how many TESTFIELD commands there are?
    Before you come to any type of conclusion, the main thing for any system changes is basic & core Concept and Logic. For your information, the change had to be done at one place only.

    Moreover its the "Challenge" that these kind of customers put us on which makes us like Mr. Sog to go through the unconfortable zone and come up as Masters of the field. Here you gain the knowledge and experiance for the pain of doing the customization.
    DenSter wrote:
    Then again... it does generate more billable hours, and that might be what you're after

    Yes that is there and that will come, if and only if, you go behind excellence. And I think it is not you business to what others are for but you are there to guide people with your experiance or get the learning from what you have not experianced in this forum.

    I hope I have not hurt you ego.

    If I have then I am sorry!!!
    Thanks & Regards
    Santosh
    Where Stones can be transformed to Gold
  • DenSterDenSter Member Posts: 8,304
    Dear Santosh,

    I am not sure whether you mean to insult me or not, but your attempt at "putting me in my place" I am certain is quite deliberate.

    This particular request ("we don't like the system generated messages, we need to make that better") is not extreme at all, it is actually very common. However, changing the message adds no value at all, in fact it only introduces confusion, because now the user gets one message in one place, and other messages in other places. Not only that, but having custom code for standard messages only makes upgrading more complex and more expensive for the customer. It makes much more sense to have consistency in messaging, and leave standard messages alone, and it is your job to explain that to the customer. Once they understand that they usually accept it as it is. Of course there are always customers that insist on the change after all, but that does not change the fact that it is still a bad idea.

    As to the actual programming.... anybody can do that, it is probably one of the easiest things to program, not a 'challenge' at all. The fact that you need the forum to tell you how to do that says a lot about how much help you really need.

    What you don't seem to understand is that the value of forums like these is not just for programming explanations, but also for advice on the approach that you want to take. Other people had already given you options on how to program the message, and I wanted to chime in with some advice about your approach. Whether you want to take my advice is up to you, it makes no difference to me, but I do care about the content of this forum.
  • themavethemave Member Posts: 1,058
    I truly agree that its just a matter of so called "User Training" and user will surely so call "Understand".
    But then there are extremes, and I just want to make a point that you might not have come across a customer like we do.
    For some customers its a matter of Prestige for them to have a sophisticated software, which I guess Navision has the flexibilty to work upon and we have the best resources to go ahead and be a unique one among all.
    For some of us, a sophisticated software package is one that handles complex processes, such warehouse management, mulit-location inventory, etc.

    for others is it "we can change the error messages"

    If you truely agree it is just a matter of "User Training", then why don't you do that, you are not doing your customer any favors by programing a change like this, I still say, as an end user myself, you are doing them a disservice. I have gone through upgrades and service packs, I would never do a change as trivial as this, it will only cost them down the road.

    I can not speak for DenSter, but I imagine he has come across many customers, who are exactly like yours. I also believe he probably would try to give them good advice, rather then try to dazzle them by making programing changes that arn't really needed. Just because he could.
  • santoshmkcetsantoshmkcet Member Posts: 229
    Regarding the topic under discussion we have come a long way where we can now take a change in the point of view under where you can figure 9, I can see figure 6 for the same point.

    Both are same under the line of view.

    We consider that we are not the masters of the field at any point of time even if we strive to be. That is why we are still coming to get some knowledge from this forum from the specialist like you, and some may consider changing the message is not a challenge but it was for us for some time.

    I think there is not much to discuss in this issue because we all know what we are here for, but I would like to say we can bend at times if you know the way and the process to back you up.
    Thanks & Regards
    Santosh
    Where Stones can be transformed to Gold
  • DenSterDenSter Member Posts: 8,304
    Back in Holland we used to call that 'fried air' and I have always found it fascinating to see that there are actually customers that accept stories like it :mrgreen:

    We definately do NOT have the same point from two different angles.
  • SavatageSavatage Member Posts: 7,142
    some may consider changing the message is not a challenge but it was for us for some time.

    Coming in late to this post..the discussion on if it's a challenge was not the point. It was actually making the change in the first place. What if at some point they don't like another message, and another..where does it end? Yes, at the end of the day you can do whatever you want but, you have to ask yourself ..are you actually helping or hurting your client?

    There are times when you have to say somthing they don't want to hear and give good advice. A little training would have solved this and you can't fall to their every whim. they might not see it as good advice right away, when they do you will have a client that trusts you.

    And it's all about a good partnership, isn't it?

    As for dazzling, you can give them a nice Winter Holiday menu..see download section :lol:
  • themavethemave Member Posts: 1,058
    Savatage wrote:
    some may consider changing the message is not a challenge but it was for us for some time.

    Coming in late to this post..the discussion on if it's a challenge was not the point. It was actually making the change in the first place. What if at some point they don't like another message, and another..where does it end? Yes, at the end of the day you can do whatever you want but, you have to ask yourself ..are you actually helping or hurting your client?

    There are times when you have to say somthing they don't want to hear and give good advice. A little training would have solved this and you can't fall to their every whim. they might not see it as good advice right away, when they do you will have a client that trusts you.

    And it's all about a good partnership, isn't it?

    As for dazzling, you can give them a nice Winter Holiday menu..see download section :lol:
    I'll chime in one last time, as an end user, I agree completely, I also know what it is like to upgrade or apply a service pack, and I wish we didn't have half the changes we had made.

    In fact when we did a major upgrade a while back, we looked at all the changes we had made, and re-evaluated each one of them, to see if they were still appropriate. Many were, some were not. Even carrying over just the changes we really needed, it is still a challenge to upgrade and apply service packs.

    Personally I would never have minor changes like this done to my database

    We are looking at going from 4.0 to 2009, and most off the changes we have, will go away
  • santoshmkcetsantoshmkcet Member Posts: 229
    Dear All,

    I accept and agree to core for the advice that all have showered. Also I respect the concern you all have poured.

    But the fact remains is that I have been talking in general in erp implementation, and the reponse is based on the issue under subject. The issue has been closed. We have gone full circle in this issue and we do not want to come back to square.

    Lets close it out. And thanks a lot for all your support.
    Thanks & Regards
    Santosh
    Where Stones can be transformed to Gold
Sign In or Register to comment.