How to create a Sales Order Programmatically?

slmaluwa
Member Posts: 366
Hi
We are planning to create sales orders through coding.
Can you please guide us the proper way to do it?
A summarised step by step explanation will help a lot.
Thank you
Maluwa
We are planning to create sales orders through coding.
Can you please guide us the proper way to do it?
A summarised step by step explanation will help a lot.
Thank you
Maluwa
"A bove maiore discit arare minor"-"From the old ox, the young one learns to plow."
0
Comments
-
We are planning to create sales orders through coding.
How the system will know which customer and what item will be booked in the sales order :-k :-k .
Are you looking for a single screen sales order which will reduce the effort of user :?:CA Sandeep Singla
http://ssdynamics.co.in0 -
Sorry for the confusion.
We already know the customer and items to include in the order lines
We are using NAV 4 SP3
Thank you"A bove maiore discit arare minor"-"From the old ox, the young one learns to plow."0 -
how about creat 1 order - then use "copy document"0
-
Why not look at the function get STD CUST Sales codes.
This has all the items already existing against a customer and can be used again and again. If the customer is know this would seem a more logical choice for generating sales orders of known items0 -
Just "simulate" the processing in same way as if you enter the order manually - do it just in C/AL
In general:
Create header
set document type
validate No.
INSERT(True)
Validate other fields
MODIFY(True)
Create lines
fill PK fields (Doc. type, no., line no.)
INSERT(True)
Validate other fields
MODIFY(True)0 -
Thank you kine & others
What kine has suggested is I am looking for.
I will do a R&D on this method and see what happens.
Thanks again
Maluwa"A bove maiore discit arare minor"-"From the old ox, the young one learns to plow."0
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
- 320 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