BeAs Script: Work Order Timed Receipt Answered

Dear Experts,

Good day to all,

I'm having some issue creating work order timed receipt using BeAs Scripting: Below is my current script:

declare=wotime=ue_api_time
wotime=addline
if <return> = -1 then
return failure
end if

wotime=user=Oper01
wotime=pers_id=Oper01
wotime=belnr_id=23
wotime=belpos_id=120
wotime=pos_id=10
wotime=ordername=12-1
wotime=minute=5
wotime=quantity_rm=1
wotime=save
destroy=wotime

This is the current structure of the WO im working on:

but upon execute im having error:

(**) Error select beas_fthaupt/pos wo_time Errorplace:1800 (Error: Entry not found)

please help me on this issue or can you help me provide the correct way to create WOTR using BeAS Script?

Thanks in Advance,

Joseff

Comments

3 comments

  • Comment author
    Yaremi Miranda Lopez
    • Official comment

    Hello Joseff,

    Since this is an advance question I will create a ticket. Thank you for contacting Boyum IT.

  • Comment author
    Joseff Anthony Angeles

    I was able to create a timed receipt using the script below:

    declare=wotime=ue_api_time
    wotime=woreset
    wotime=new
    wotime=check_presence=false
    wotime=cancel=N
    wotime=user=Oper01
    wotime=pers_id=Oper01
    wotime=belnr_id=23
    wotime=belpos_id=120
    wotime=pos_id=10
    wotime=ordername=12-1
    wotime=manualbooking=N
    wotime=parallel=N
    wotime=aplatz_id=BARP-01
    wotime=timetype_id=Processing
    wotime=minute=5
    wotime=quantity_rm=1
    wotime=batchnum=Test1234
    wotime=save

    now im having issue on the Receipt batchnumber, BeAs will ask to input the receipt batch number manually.

    Is there a way to automate it using beas script.

    Note: the batch number is created outside SAPB1.

    0
  • Comment author
    Martin Heigl

    Hello Joseff,

    you don't need follow line

    wotime=ordername=12-1

    with wotime=manualbooking=N you activate the backflush process, if this the last routing position.

    if beas ask for batch number, then you activate "ask for batch number"

     

    In item master data for the assembly set this setting to automatic batch

    Information for beas 9.3 together with B1UP License

    In future it will be very simple, because you've a assistance to create needed scripts for main functions

    beas 9.3 PL 0 is current available as BETA Version

     

     

    0

Please sign in to leave a comment.