Using the CreateWorkOrderBom and CreateWorkOrderPosition functions

Fabio

Hi

I need to change the order position's warehouse and its materials to be based on the office's warehouse during order creation. I found the functions CreateWorkOrderBom and CreateWorkOrderPosition. What is the name of the file where I can use these functions?

Rgs

Fabio

BEAS 2024.06

Comentarios

2 comentarios

  • Comment author
    João Antonio

    Hi Fabio

    Follow the steps below.

    0
  • Comment author
    Fabio
    • Editado

    Beas 2020 has a bug in the function, already in BEAS 2024 it worked fine, tks.

    My code

    // ******* Event CreateWorkOrderBom ********
    // Created 2024/08/01 by FBS
    function CreateWorkOrderBom
        select T1.DflWhs FROM BEAS_FTHAUPT T0 INNER JOIN OBPL T1 ON T1.BplId = T0.BPLId WHERE T0.BELNR_ID = <dw_1.item.belnr_id.value>
        setvar=e_whscode=<wert1>
        return true
    end function

     

    Rgs

    0

Iniciar sesión para dejar un comentario.