Using the CreateWorkOrderBom and CreateWorkOrderPosition functions
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
1
-
Hi Fabio
Follow the steps below.

-
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.
Comments
2 comments