Skip to main content
Solved

I need an import scenario to update fields "Lot" and "Expiry" on Shipment and then confirm it.


Forum|alt.badge.img

Hi All, @Naveen B ,

is it possible to find a Shipment and update the lines and then confirm it in one Import Scenario?

I have the attached import scenario but not successful.

Cheers,

Laura

 

Best answer by Naveen Boga

Hi @lauracastagna  After long time :) Hope you are doing well.

I just worked on this report and please find the my observations.

  1. You have selected the wrong Target Object i.e. Line Details instead of Details
  2. <LineNumber>  =-1 is nothing but we instructing to add a new line → This should be unchecked
  3. In Shipments screen → Details tab, Expiration Date is NOT editable (This is default Acumatica behavior), whatever we can do manually at screen, those actions we can do from Import scenario. First we need to make the field editable using workflows then we can able to update the Expiry Date at line. 
    Here is the example to make the field editable using workflows - https://asiablog.acumatica.com/2021/10/enable-customization-fields-when-document-is-completed.html
  4.  I have re-write the above import scenario and verified it is working as expected. 

Please find the import scenario below for your reference.

 

 

View original
Did this topic help you find an answer to your question?

19 replies

Forum|alt.badge.img+8
  • Semi-Pro I
  • 715 replies
  • November 28, 2021

Hi @lauracastagna At a first glance of the Import scenario, please use @@LineNumber instead of the @@InventoryID. This will cover a scenario having the same item on multiple lines.

Thanks

 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3407 replies
  • Answer
  • November 28, 2021

Hi @lauracastagna  After long time :) Hope you are doing well.

I just worked on this report and please find the my observations.

  1. You have selected the wrong Target Object i.e. Line Details instead of Details
  2. <LineNumber>  =-1 is nothing but we instructing to add a new line → This should be unchecked
  3. In Shipments screen → Details tab, Expiration Date is NOT editable (This is default Acumatica behavior), whatever we can do manually at screen, those actions we can do from Import scenario. First we need to make the field editable using workflows then we can able to update the Expiry Date at line. 
    Here is the example to make the field editable using workflows - https://asiablog.acumatica.com/2021/10/enable-customization-fields-when-document-is-completed.html
  4.  I have re-write the above import scenario and verified it is working as expected. 

Please find the import scenario below for your reference.

 

 


Forum|alt.badge.img
  • Author
  • Varsity I
  • 66 replies
  • November 29, 2021

Thanks @Naveen B,

the Shipment isn’t confirmed so I am able to update it.  that works.

Now I would like to add the “confirm shipment” ,”update in” and “create and release invoice”.  This part is not working when I tick the last four.  I get the following error…

 


Forum|alt.badge.img+12
  • Acumatica Support Team
  • 871 replies
  • November 29, 2021

Hi @lauracastagna 

Please send the updated scenario you are using with those actions?

Hope the first document reflected on the import, you are able to manually confirm shipment after entering the Lot/serial number. Just want to know if the Lot number entered for the first document is correct.

Regards,


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3407 replies
  • November 29, 2021

Hi @lauracastagna  

Confirm Shipment and Update Invoice should work in the import Scenario and Prepare Invoice should not work because it will take you to the Invoices screens.

(Import Scenario won't work when multiple screens involved)

Can you please only check the Confirm Shipment and Undate IN action rows and verify.


Forum|alt.badge.img
  • Author
  • Varsity I
  • 66 replies
  • November 29, 2021

Hi @Naveen B ,

I tried unticking the Prepare Invoice but I am getting the same error.  It updates the first line of each Shipment but then errors (same error I screen shot above).

Cheers,

Laura


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3407 replies
  • November 29, 2021

Hi @lauracastagna  Could you please share the updated import scenario, I will take look from my end and let you know.

Can you please also confirm, Are you able to perform this activity (Confirm Shipment and Update IN actions) manually at screen level after providing the Lot Serial Number?

 


Forum|alt.badge.img
  • Author
  • Varsity I
  • 66 replies
  • November 29, 2021

Hi @Naveen B ,

 

I have manually updated the second line and then confirmed shipment and updated IN for both of the Shipments and all good.

Import attached.


Forum|alt.badge.img+12
  • Acumatica Support Team
  • 871 replies
  • November 29, 2021

Hi @lauracastagna 

Please try this and let me know if it works at your end.
Regards,


Forum|alt.badge.img
  • Author
  • Varsity I
  • 66 replies
  • November 29, 2021

that didn’t work vkumar.


Forum|alt.badge.img
  • Author
  • Varsity I
  • 66 replies
  • November 29, 2021

@Naveen B ,

 

not sure if you needed the file so is attached.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3407 replies
  • November 29, 2021

Hi @lauracastagna  I have verified below import scenario and it is working as expected.

SAVE action is NOT required invoke explicitly.

 

 


Forum|alt.badge.img+12
  • Acumatica Support Team
  • 871 replies
  • November 29, 2021

Hi @lauracastagna , 

I could not access the excel attached to the scenario. 
Are there more than one lines per shipment document?
In that case, Confirm shipment wont work for second line of the document ( also Update IN).

I suggest creating separate scenario to just trigger the action Confirm Shipment and Update IN, but just supplying the Shipment number. 

Regards,


Forum|alt.badge.img
  • Author
  • Varsity I
  • 66 replies
  • November 29, 2021

Hi @Naveen B ,

 

It didn’t work.  I have two lines per Shipment.  How do I state in the Import Scenario to update “all” lines before Confirming Shipment please.

 

Regards,

Laura


Forum|alt.badge.img+12
  • Acumatica Support Team
  • 871 replies
  • November 29, 2021

Hi @lauracastagna 

Since you have two lines per shipment, its giving the error. The scenario provided by @Naveen B does work for single line on shipment. 

When you run the scenario, for each line it executes the ‘action’ and for second line, the Confirm shipment will be disabled.

Here is what I suggest : 

  • Import the allocation ( Lot/serial ) first and save the shipment in Open status in one Import scenario
  • Create another scenario with only shipment number and action to Confirm, Update IN. But you need to have a provider with just one line per shipment. 

Regards,


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3407 replies
  • November 29, 2021

Hi @laura Yes, once line item is updated and confirm the shipment, second line will not update by Confirm Shipment button will be disabled.

There 2 ways we can do.

  1. As suggested above, in this case we need to come up with 2 import scenarios.
  2. Create a import scenario for Import the allocation ( Lot/serial ) first and save the shipment in Open status and then configure default Acumatica processing screen (Process Shipments screen), it will taken care of Confirm Shipment and Update IN and Prepare Invoice ().
  3. For Release invoice, you can configure “AR Release Documents” (AR501000).

This way you can come up with only one import scenario for open Shipment and remaining actions taken care by Acumatica schedulers.

 

Hope this helps!

 


Forum|alt.badge.img
  • Author
  • Varsity I
  • 66 replies
  • November 29, 2021

Hi,

 

yes I know I can do what you have suggested but was hoping there was a way of doing it all in the one scenario.

 

Cheers,

Laura


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3407 replies
  • November 29, 2021

Understood @lauracastagna  There are few limitations with Import Scenarios, this is one of them :(


Forum|alt.badge.img

@Naveen Boga Hi Naveen. I used your import above to add serial numbers to an existing shipment line. However, I have multiple serials to add per line, and the import is only adding one serial number. Any thoughts?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings