Saltar al contenido principal

Backfushing screen : possibility to block WO based on their WO Type

Comentarios

1 comentario

  • Martin Heigl

    Hi Thierry,

    i think, you speak about follow window

    in this window Tools->Customization Tools -> Windows Customizing script

    Insert follow script


    global function dw_1_item_nummer_itemchanged 
    setvar=wert1=
    sql=select "BEAS_FTHAUPT"."TYP"  from "BEAS_FTPOS" &
      inner join "BEAS_FTHAUPT" on "BEAS_FTHAUPT"."BELNR_ID"="BEAS_FTPOS"."BELNR_ID"
      where "BEAS_FTPOS"."BarCode"='<nummer>' 

    // Define here the blocked work order type
    if <wert1> = "Kunde" then
       meldung=fehler$Fertigungsaufträge von Typ <wert1> dürfen hier nicht gemeldet werden
       event=script1
       setcolumn=nummer
       return failure
    end if
    end global

Iniciar sesión para dejar un comentario.