SalesOrderSubForm_Service Ss2 = new SalesOrderSubForm_Service(); SalesOrderSubForm S2 = new SalesOrderSubForm(); Ss2.Url = "http://spvm:7047/DynamicsNAV/WS/CRONUS_International_Ltd/Page/SalesOrderSubForm"; Ss2.UseDefaultCredentials = true; S2.Document_No = "1020"; S2.Line_No = 10000; Ss2.Create(ref S2);But, through NAV code execution, I found that, it is assigning the Last record of SalesHeader table to SalesHeader record variable and since it is Released Status order, it is showing me the error "Status must be Open in Sales Header".
Answers
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
I tried to use as you suggested.
But, I dint find any methods for the Sales Order Line insertion in Sales Order web service.
I found Sales Order Line object, but no methods of it. I can use it only to access the fields of it.
Can you suggest me some example code?
Thanks in Adv.
Ahmedabad, Gujarat, India
E Mail : ravi.thakkar@hotmail.com
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
Thanks for the discussion on this topic...
I got your point freddy, i tried also to insert a new line but was not successful..
Can you please point out the exact method.
Thanks in Adv.
Thanks for your reply and suggestion.
It really insertion of new line worked nicely. Deletion is under testing.
=D> =D> =D>
Thanks again.
Ahmedabad, Gujarat, India
E Mail : ravi.thakkar@hotmail.com
I tried for the DELETION of Sales Line by using array and then update function of Sales Order web service. But, unable to do the same.
Can you please suggest in some detail?
Since this post is related to INSERTION issues, provide me the suggestion on following link for DELETION issues :
http://mibuso.com/forum/viewtopic.php?f=32&t=34250&sid=cab5d23f62f81fe3af443c09e0132235
Thanks in Adv.
Ahmedabad, Gujarat, India
E Mail : ravi.thakkar@hotmail.com
http://blogs.msdn.com/freddyk/archive/2 ... d-rtm.aspx
Hope that helps
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
I will go through your blog on specified link.
Thanks for help.
Ahmedabad, Gujarat, India
E Mail : ravi.thakkar@hotmail.com
Problem solved.
Ahmedabad, Gujarat, India
E Mail : ravi.thakkar@hotmail.com