Skip to main content

Using the CreateWorkOrderBom and CreateWorkOrderPosition functions

Comments

2 comments

  • João Antonio

    Hi Fabio

    Follow the steps below.

  • Fabio

    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

Please sign in to leave a comment.