I've taken the function "Create Return Related-Documents" from the Sales Return Order to the Sales Order, that we will use to create Purch. Orders for a company that does not have stock. I want to add a validation that in order to run this function, the user must have inputted all of the item tracking lines.
Yes, and drop shipment orders. Everything is coded and accepted by the customer they just want to make mandatory that the item tracking information is inserted to use this functions
I didnt try this but you can try this by using standard functions like
CheckTrackingSpecification function in CU 80
CheckItemTracking function in CU 22
Yes, and drop shipment orders. Everything is coded and accepted by the customer they just want to make mandatory that the item tracking information is inserted to use this functions
This makes no sense. How can someone know the tracking data of something that is yet to be delivered? Tracking data for purchased goods is entered in the purchase order when they arrive/are supplied.
Yes, and drop shipment orders. Everything is coded and accepted by the customer they just want to make mandatory that the item tracking information is inserted to use this functions
This makes no sense. How can someone know the tracking data of something that is yet to be delivered? Tracking data for purchased goods is entered in the purchase order when they arrive/are supplied.
I dont think i've explained to well, item tracking lines are inserted in a Sales Order. On the Sales Order i have a function that creates automatically a Purchase Order (Back to Back Order). All i need is to make sure that tracking info was inserted in the Sales Order before triggering my function.
From the sales order, you open the page "Item Tracking Lines" and you can see if any lines have been created. This is how you would check manually.
What you have to do is replicate the same action but through code.
Take a look at the Action on the Sales Order. Also you will see that there are a lot of functions in the page itself. You can call those same functions to generate the same data set as what would appear in the page. From there, you can test to see if they have created the lines or not.
I dont think i've explained to well, item tracking lines are inserted in a Sales Order. On the Sales Order i have a function that creates automatically a Purchase Order (Back to Back Order). All i need is to make sure that tracking info was inserted in the Sales Order before triggering my function.
That's the point. How can someone enter item tracking data (Serial No., Lot No.) for items that will be purchased!? Unless you mean that the items in the SO are in stock and the PO is used to replenish the sold quantity. In that case you don't have to do anything if the items in question have the right item tracking setup.
Comments
the check is in CU22-CheckItemTracking function
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
what i need is a function i can call before posting the sales order, where the user will have a function to create back to back orders.
What do you mean by "Create back to back orders"?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
CheckTrackingSpecification function in CU 80
CheckItemTracking function in CU 22
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I dont think i've explained to well, item tracking lines are inserted in a Sales Order. On the Sales Order i have a function that creates automatically a Purchase Order (Back to Back Order). All i need is to make sure that tracking info was inserted in the Sales Order before triggering my function.
Thanks
What you have to do is replicate the same action but through code.
Take a look at the Action on the Sales Order. Also you will see that there are a lot of functions in the page itself. You can call those same functions to generate the same data set as what would appear in the page. From there, you can test to see if they have created the lines or not.