The following Workaround helps importing products with generated numbers.
- Extend the NumberSeqModuleInventory.loadModule() with the following Code:
//
Setup product display number for DMFProductEntity
datatype.parmDatatypeId(extendedtypenum (EcoResProductDisplayProductNumber));
datatype.parmReferenceHelp("@SYS301183");
datatype.parmReferenceHelp("@SYS301183");
datatype.parmReferenceLabel(literalstr("@SYS133863"));
datatype.parmWizardIsContinuous(false);
datatype.parmWizardIsManual(NoYes::No);
datatype.parmWizardIsChangeDownAllowed(NoYes::No);
datatype.parmWizardIsChangeUpAllowed(NoYes::No);
datatype.parmSortField(1);
datatype.parmWizardHighest(999999);
datatype.addParameterType(NumberSeqParameterType::DataArea, true,
false);
this.create(datatype);
- Change the method from protected to public
- Create a job to
call the loadModule method:
NumberSeqModuleInventory numberSeqModuleInventory = new NumberSeqModuleInventory();numberSeqModuleInventory.loadModule(); - Change the method back to protected
- Go to
Inventory and Warehousemanagement Parameters and set the Number Sequence
for Product Number. You could use the same Number Sequence as for Item
Number or create a new one.
No comments:
Post a Comment