Tuoterakenteen tuonti (LFS)

 

Automaattinen tuoterakenteiden tuonti.

Tietosisältö on identtinen tuoterakenteen tuonnin kanssa. Tuoterakenteen voit tuoda vakiorakenteelle (nimikerekisteriin), jolloin ohjelma perustaa nimikerekisteriin myös puuttuvat nimikkeet. Voit tuoda rakenteen myös tuotantoon siirretylle työnumerolle. Jos tuot rakenteen työnumerolle, niin työnumero täytyy olla tuotannossa jo olemassa, tuonti ei luo uusia työnumeroita, eikä perusta puuttuvia nimikkeitä nimikerekisteriin.

Ainoana poikkeuksena manuaaliseen toiminnon käyttämiseen on tuonnin hakemiston määrittäminen.

 

Asetus

Arvo

AUTOIMPORTDEFINITION

Oletuksena tyhjä

Kirjoita Arvo-kenttään määrittelytiedoston nimi hakemistoineen.

Esimerkiksi:
D:\Temp\AutomatisoinninRootKansio\ product_structure.xml

Huomioi Product_Structure.xml-tiedostoa tehdessäsi, että ohjelma käyttää samaa määrittelytiedostoa vakio- ja työnumeroihin kohdistettujen rakenteiden tuonnissa.

 

Lataa malliaineistot zip-muodossa. Lue lisää hakusanalla Tuoterakenteen tuonti.

 

Jos käytät alla olevia esimerkkisisältöjä, niin voit perustaa helpoiten esimerkin nimikkeet kohdan Tuotteet – tiedon tuonti –esimerkin csv-aineistolla.

 

Esimerkki rakenteen tuonnista.

Molemmat (vakiorakenteelle ja työnumerolle) tuonnit, käyttävät samaa AUTOIMPORTDEFINITION-määrittelytiedostoa (product_structure.xml). Tietosisältö alla:

<?xml version="1.0" ?>

  <!--  Lemonsoft tuoterakenteen tuonnin kuvaus -->

  <!--  Database_field-kenttien kuvauksen löydät Lemonsoft\SQL\Tables\tb_products.sql (taulu Product_structure) -->

<ROOT>

  <Settings Delimeter=";" ReadFirstLine="1" Table="product_structure" />

  <Field Database_Field="Sub_structure_product_code" Source_column_no="0" enforced="1" />

  <Field Database_Field="Father_code" Source_column_no="" />

  <Field Database_Field="pos" Source_column_no="4" />

  <Field Database_Field="Sub_structure_product_description" Source_column_no="" />

  <Field Database_Field="Sub_structure_product_description2" Source_column_no="" />

  <Field Database_Field="Sub_structure_dimension" Source_column_no="" />

  <Field Database_Field="Sub_structure_info1" Source_column_no="" />

  <Field Database_Field="Sub_structure_info2" Source_column_no="" />

  <Field Database_Field="Sub_structure_amount" Source_column_no="2" />

  <Field Database_Field="Sub_structure_per" Source_column_no="" />

  <Field Database_Field="Sub_structure_unit" Source_column_no="" />

  <Field Database_Field="Sub_structure_waste" Source_column_no="" />

  <Field Database_Field="Sub_structure_stock" Source_column_no="" />

  <Field Database_Field="Sub_structure_level" Source_column_no="" />

  <Field Database_Field="Worknumber" Source_column_no="3" />

  <Field Database_Field="Sub_structure_attribute" Source_column_no="" />

  <Field Database_Field="Sub_structure_passive_bit" Source_column_no="" />

  <Field Database_Field="Sub_structure_configure_attribute" Source_column_no="" />

  <Field Database_Field="Sub_structure_color" Source_column_no="" />

  <Field Database_Field="Sub_structure_note" Source_column_no="" />

  <Field Database_Field="Sub_structure_askamount" Source_column_no="" />

  <Field Database_Field="Sub_structure_netprice" Source_column_no="" />

  <Field Database_Field="Sub_structure_collected" Source_column_no="" />

  <Field Database_Field="Sub_structure_serial" Source_column_no="" />

  <Field Database_Field="Sub_structure_bit1" Source_column_no="" />

  <Field Database_Field="Sub_structure_started" Source_column_no="" />

  <Field Database_Field="Sub_structure_started_date" Source_column_no="" />

  <Field Database_Field="Sub_structure_subcontract" Source_column_no="" />

  <Field Database_Field="Sub_structure_ready" Source_column_no="" />

  <Field Database_Field="Sub_structure_ready_date" Source_column_no="" />

  <Field Database_Field="Sub_structure_doneamount" Source_column_no="" />

  <Field Database_Field="Sub_structure_error" Source_column_no="" />

  <Field Database_Field="Sub_structure_minamount" Source_column_no="" />

  <Field Database_Field="Color_code" Source_column_no="" />

  <Field Database_Field="Sub_structure_type" Source_column_no="" />

</ROOT>

 

Vakiorakenteelle tuonnin tietosisältö (Rakenne-vakio.csv):

Sub_structure_product_code;;Sub_structure_amount;Worknumber;Pos

VALMIS_LFS_R;Valmis tuote;1;;.

PV1_LFS_R;Puolivalmiste 1;10;;..

KOMP1_LFS_R;Komponentti 1;11;;...

KOMP2_LFS_R;Komponentti 2;12;;...

PV2_LFS_R;Puolivalmiste 2;15;;..

RA1_LFS_R;Raaka-aine 1;2;;...

RA2_LFS_R;Raaka-aine 2;4;;...

KOMP1_LFS_R;Komponentti 1;6;;.

 

Sama rakennetuonti joka on kohdistettu työnumeroon 4171 (Rakenne-tyonumerolle_Nro_4171.csv):

Sub_structure_product_code;;Sub_structure_amount;Worknumber;Pos

VALMIS_LFS_R;Valmis tuote;1;4171;.

PV1_LFS_R;Puolivalmiste 1;10;4171;..

KOMP1_LFS_R;Komponentti 1;11;4171;...

KOMP2_LFS_R;Komponentti 2;12;4171;...

PV2_LFS_R;Puolivalmiste 2;15;4171;..

RA1_LFS_R;Raaka-aine 1;2;4171;...

RA2_LFS_R;Raaka-aine 2;4;4171;...

KOMP1_LFS_R;Komponentti 1;6;4171;.