Hello,
I am very new to trying to develop on SAGE and my only resource is the French bits of vertical already in the system so I apologise in advance.
Ultimately what I am trying to do is, put a control on the ITMREF field on the GESSCS (Stock Change) function for a particular entry transaction.
What I want it to do is to only allow products to be entered when the product category starts with "03" which is our intermediate manufactured good.
What I have tried is the below
Subprog AS_ITMREF(VALEUR)
Variable Char VALEUR()
READ[F:ITM]ITM0 = VALEUR
IF TSICOD <> "03AA"
mkstat = 2
GMESSAGE = Product entered not BULK please review
Endif
End
The idea is that it looks at the ITMREF entered > uses that to find the ITMMASTER record > Evaluates whether it is the correct category > Error with message if it returns TRUE.
I am using a hardcoded Category with <> as I do not know what the operation for "Startswith" or "LIKE" is and anything starting with 03 our intermediaries.
Any pointers in the right direction is appreciated it is all guess work right now.