Skip to main content

Delete several Work Orders

Answered

Comments

3 comments

  • Official comment
    Martin Heigl

    i will make an example, in which way you can make this in beas 9.3 with beas B1UP integration 

  • Martin Heigl

    Hi,

    beas 9.3 PL 0 BETA is available next week (plan). With this version and with beas B1UP integration (you need B1UP License) you can create a solution in short and simple way, 

    See https://youtu.be/ym4sjUhAIY8

    More about the B1UP Integration see our youtube playlist

    https://www.youtube.com/playlist?list=PL-FzlfVF_PDuqK-8TXa22p5iAnPzKxpB0

    Regards

    Martin Heigl

     

  • Abdul Mannan

    Hi Martin Heigl

    I've followed your video and created a similar script When I click on the yes button it just reloads the work orders but does not delete them.  Below is my script, the only difference is I am using BEAS 21.0.0.1288 with SAP B1 HANA V10

     

    messagebox=question$id=**<tab>text=Do you want delete all marked workorders<tab>modal=true<tab>popup<tab>yestext=Yes<tab>notext=No

    if <messagereturnvalue> n= -1 then
      return failure
    end if

    setpointer=hourglass

    declare=wo=ue_api_wo
    for cl_loop = 1 to <dw_1.rowcount>
      if <dw_1.isselect:[cl_loop]> = true and <dw_1.item.zeilentyp:[cl_loop].value> n = 0 then
           wo.deleteworkorder=<dw_1.item.belnr_id:[cl_loop].value>
      end if
    next
    destroy=wo
    form=retrieve

     

     

Please sign in to leave a comment.