I do not have Customer on Sales line but its on Sales Header

landlordlandlord Member Posts: 18
Hi,
I have a problem which I can't resolve so I want to ask for your help: by executing a report from one application I insert data, which are later to be used for Sales header and Sales line tables, into two tables I created myself. I have enabled contact creation in Navision from this external application. when running the report if the customer does not exist as a contact I create it. the problem is that when I try loading data from these tables into Sales Header and Sales Line tables, when I validate in the customer which is in Sales Headeru is not loaded in Sales Line.
I did Validate on:


VALIDATE("Document Type",SalesHeader."Document Type");
VALIDATE("Document No.",SalesHeader."No.");
VALIDATE("Line No.", GetLineNo(p_Repeat,MySalesLineTable.No));

and after this in sales line I do not have a loaded customer which I created nor do I have its VAT entry group.

Comments

  • ShedmanShedman Member Posts: 194
    Try validating the No. on the sales line also. As you can see in the code, a lot of fields from the sales header are copied to the line there.
  • landlordlandlord Member Posts: 18
    Thnx a lot... it works
Sign In or Register to comment.