So, I have tried many ways to do this but still getting error messages. I don't know this language at all and this is my first BPM. I have added a check box and Epibinded it to CallContextBPMData.Checkbox01 to my "Move Inventory" Hand Held Screen to start the action. Anyone able to help me fix the code so I can get this running for me?
The errors I am getting are as follows;
Cannot Find NEXT LEAVE RETRY or UNDO label appropriate block. (209)
Could not understand Line 1. (196)
Unknown Field or Variable name - exceptionOccured__. (201)
Could not understand line 1 (196)
and the code is as follows;
/*Add source code that should be executed before the designed actions here*/
for each ttInvTrans where ttInvTrans.RowMod = 'U' or ttinvtrans.RowMod = 'A'.
find PlantWhse where PlantWhse.Company = CUR-COMP and PlantWhse.PartNum =
ttinvtrans.PartNum and PlantWhse.WarehouseCode = "RACOMAIN" and
ttinvtrans.ToWarehouseCode = "RACOMAIN" NO-ERROR.
IF AVAILABLE PlantWhse THEN DO:
FOR EACH ttCallContextBPMData WHERE ttCallContextBPMData.checkbox01 = True:
Run lib\UpdateTableBuffer.p(input BUFFER PlantWhse:HANDLE, 'PrimBin',
ttinvtrans.ToBinNum).
end.
end.
{&CALL_DESIGNED_ACTIONS}
end.
end.
/*Add source code that should be executed after the designed actions here*/
The errors I am getting are as follows;
Cannot Find NEXT LEAVE RETRY or UNDO label appropriate block. (209)
Could not understand Line 1. (196)
Unknown Field or Variable name - exceptionOccured__. (201)
Could not understand line 1 (196)
and the code is as follows;
/*Add source code that should be executed before the designed actions here*/
for each ttInvTrans where ttInvTrans.RowMod = 'U' or ttinvtrans.RowMod = 'A'.
find PlantWhse where PlantWhse.Company = CUR-COMP and PlantWhse.PartNum =
ttinvtrans.PartNum and PlantWhse.WarehouseCode = "RACOMAIN" and
ttinvtrans.ToWarehouseCode = "RACOMAIN" NO-ERROR.
IF AVAILABLE PlantWhse THEN DO:
FOR EACH ttCallContextBPMData WHERE ttCallContextBPMData.checkbox01 = True:
Run lib\UpdateTableBuffer.p(input BUFFER PlantWhse:HANDLE, 'PrimBin',
ttinvtrans.ToBinNum).
end.
end.
{&CALL_DESIGNED_ACTIONS}
end.
end.
/*Add source code that should be executed after the designed actions here*/
--- In vantage@yahoogroups.com, "Drew" <ahsalloum@...> wrote:
>
> Ok, let me try that. I just sent you an email. Just disregard the email.
>
> --- In vantage@yahoogroups.com, "Gerry Loranger" <gloranger@> wrote:
> >
> > Try adding a checkbox on the screen and bind it to
> > CallContextBpmData.Checkbox01. Then add "CallContextBpmData.Checkbox01 =
> > True" to the criteria below .
> >
> >
> >
> >
> >
> > > for each ttInvTrans where ttInvTrans.RowMod = 'U' or ttinvtrans.RowMod =
> > > 'A'.
> > >
> > >
> > >
> > > find PlantWhse where PlantWhse.Company = CUR-COMP and PlantWhse.PartNum =
> > > ttinvtrans.PartNum and PlantWhse.WarehouseCode = "MAIN" and
> > > ttinvtrans.ToWarehouseCode = "MAIN".
> > >
> > > if avail PlantWhse then do:
> > >
> > >
> > >
> > > Run lib\UpdateTableBuffer.p(input BUFFER PlantWhse:HANDLE, 'PrimBin',
> > > ttinvtrans.ToBinNum).
> > >
> > >
> > >
> > > end.
> > >
> > > end.
> >
> >
> >
> >
> >
> > From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
> > Drew
> > Sent: August-09-12 1:58 PM
> > To: vantage@yahoogroups.com
> > Subject: [Vantage] Re: Changing a Primary Bin Location with a handheld
> >
> >
> >
> >
> >
> > Rick, I actually had the exact idea. How easy would it be to just have the
> > WH worker hit a check box to make it the primary. I just wish I knew how to
> > do it. I will let you know if I ever figure it out.
> >
> > --- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ,
> > "that_guyy" <rbird@> wrote:
> > >
> > > Drew,
> > > About a year ago I wanted to do the same thing from the handheld when the
> > user is using the Move Inventory HH program.
> > > The scenario was, whenever the user/mtl handler was moving inventory
> > around (often times for whs reorganization, etc) we wanted the ability for
> > the user to indicate that the TO WHS & the TO BIN would be the new Primary
> > WHS & Primary BIN in that whs.
> > > My idea (never implemented) was to add a checkbox to the form labeled
> > 'Make Primary' between the WHS/Bin and Lot fields.
> > > Then have a BPM on the... whatever Method Directive... to check and see if
> > the checkbox was checked, if it was then to run some ABL code that would
> > grab the To whs & To Bin and update that part's primary whs and, it's
> > primary bin for the CURRENT Plant to those values.
> > > Everyone liked the idea and thought it would be easy enough to use, but I
> > never got to that project before I moved on to another employer.
> > > Perhaps this helps? I can help more if you need... or I would think others
> > in the group would have experience with BPM's & ABL in BPM's if you need.
> > >
> > > -Rick Bird
> > > IT Software Administrator
> > > Rowmark, LLC.
> > >
> > > --- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> , "Drew"
> > <ahsalloum@> wrote:
> > > >
> > > > Thanks guys for all the suggestions.
> > > >
> > > > I knew it was in PlantWhse, but how do I get that on the hand held
> > screen? When I add a EpiTextBox, can I assign that box as the primebin under
> > planwhse. That is my confusion. I guess I don't know how to add a field on
> > the screen and assign it to be any field/table, unless it is already listed
> > in EpiBinding drop down list.
> > > >
> > > > --- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> , Mark
> > Wonsil <mark_wonsil@> wrote:
> > > > >
> > > > > Hi Drew,
> > > > >
> > > > > > Jose, I have also customized a lot of my hand held screens, but
> > can't find the field for the primary.
> > > > >
> > > > > It's in PlantWhse.
> > > > >
> > > > > Mark W.
> > > > >
> > > >
> > >
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>