I do not have Customer on Sales line but its on Sales Header
landlord
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.
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.
0
Comments
-
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.0
-
Thnx a lot... it works0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 322 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions