Open material requirement list from work order structure Answered

Tayfun Genc

Request:

Insert in work order structure view a line "material request". Ignore all beas rules.

Follow script is not working

windowevent rpopup
setvar=belegnr=<dw_1.item.belnr_id.value,#0>/<dw_1.item.belpos_id.value,#0>
setvar=tex=MATERIALBEDARF
bpopup=add=bmp\reservation.png=<tex>=1=openwindow=reservation_set_source.psr<hier fehlen die paramter>
end event

 

Tayfun Genc

Comments

2 comments

  • Comment author
    Martin Heigl
    • Official comment

    open the reservation window with <wintab> delimiter, if you work with bpopup

    setvar=ls_filter= and "BEAS_FTHAUPT"."BELNR_ID"=<dw_1.item.belnr_id.value,#0> and "BEAS_FTPOS"."BELPOS_ID"=<dw_1.item.belpos_id.value,#0>

    ...
    bpopup=...openwindow=reservation_set_source.psr<wintab>basefilter=<ls_filter><wintab>as_basetype=wo

    ...

    (not tested)

  • Comment author
    Tayfun Genc

    Hi and thanks for quick reply!

    Unfortunately the paramters were ignored and it opened material request for all workorders and not as desired for the highlighted/selected one.

    While I was writing this I find out the reason - it should be as_basefilter - you wrote basefilter

    Thanks again - this helped me a lot!

    T. Genc

    0

Please sign in to leave a comment.