Proficiency Trigger– Microsoft Great Plains customization e…

Posted on: January 27, 2024 by in Uncategorized
No Comments

Proficiency Trigger– Microsoft Great Plains adjustment example

Proficiency is setting language and environment, the whole Great Plains is made up on. In this little brief post we want to offer you Dexterity trigger example. You can establish Dexterity from Microsoft Great Plains CD # 2.
The trigger figures out QTY estimate for the stock item and positions the result into “Quantity Quoted” tailored field, plus it updates QTY used– subtracts QTY on orders, the trigger fires when we open IV_Item_Inquiry window.
Now lets have a look at the trigger body:
AST_Update_Qtys– this is the name of the trigger
* Trigger for after Display Existing Record of IV_Item_Inquiry. *
* Part 1 *
* Used to calculate and reveal the qty estimate and subtract the *
* qty on orders from the qty used. *
local currency lc_qty_quoted.
clear field ‘( L) Quantity Quoted’ of window IV_Item_Inquiry of type IV_Item_Inquiry
set precision of ‘( L) Quantity Quoted’ of window IV_Item_Inquiry.
of kind IV_Item_Inquiry to ‘Decimal Places QTYS’ of file IV_Item_MSTR – 1.
* If based upon site and site blank, set priced price quote to 0. *
if ‘( L) Display Options’ of window IV_Item_Inquiry of kind IV_Item_Inquiry = 1 and
‘ Area Code’ of window IV_Item_Inquiry of type IV_Item_Inquiry=””
.
set ‘( L) Quantity Quoted’ of window IV_Item_Inquiry of kind IV_Item_Inquiry to 0.
end script.
End if.
lc_qty_quoted = rw_qty_quoted_site(‘ Item Number’ of window IV_Item_Inquiry.
of kind IV_Item_Inquiry, ‘Location Code’ of window IV_Item_Inquiry.
of kind IV_Item_Inquiry).
set ‘( L) Quantity Quoted’ of window IV_Item_Inquiry of type IV_Item_Inquiry.
to lc_qty_quoted.
set ‘( L) Quantity Available’ of window IV_Item_Inquiry of type IV_Item_Inquiry.
to ‘( L) Quantity Available’ of window IV_Item_Inquiry.
of type IV_Item_Inquiry – lc_qty_quoted.
* Part 2 *.
* Used to inhabit the price. *.
set ‘List Price’ of window IV_Item_Inquiry of kind IV_Item_Inquiry to ‘List Price’.
of table IV_Item_MSTR.
And this is how you do register the trigger:.
Start-up– script.
local integer l_result.
l_result = Trigger_RegisterFocus( personal(‘ Display Existing Record’.
of window IV_Item_Inquiry of kind IV_Item_Inquiry), TRIGGER_FOCUS_CHANGE,.
TRIGGER_AFTER_ORIGINAL, script SB_Update_Qtys).
If l_result SY_NOERR.
warning “Focus trigger registration quit working.”.
End if.
Let us comprehend if you need support: 1-630-961-5918, 1-866-528-0577 or help@albaspectrum.com.

In this little post we would like to supply you Dexterity trigger example. You can set up Dexterity from Microsoft Great Plains CD # 2.

Proficiency is setting language and environment, the whole Great Plains is made up on. In this little brief post we would like to supply you Dexterity trigger example. You can set up Dexterity from Microsoft Great Plains CD # 2.
In this little post we would like to supply you Dexterity trigger example. You can set up Dexterity from Microsoft Great Plains CD # 2.

Comments are closed.