Writting Update action in Microsoft Dynamics AX 4.0 SP2 AIF

Hi there,

We have to write the custom Update action in Microsoft Dynamics AX 4.0 SP2 AIF.

We are aware that this is not available out of box in Microsoft Dynamics AX 4.0 SP2 AIF but can be customized.

Has anyone worked on this earlier?

If YEs then could you please guide us/ provide the code if you have.

Also if you could let us know risks,known issues, mitigation. message limits etc would be great.

Thanks in Advance.

Regards,

Alok Joshi

ReqItemTable reqItemTable;
;

TTSBEGIN;
While Select forupdate reqItemTable where reqItemTable.ItemId == _itemId
{
reqItemTable.MaxInventOnhand = “YourTextHere”;

reqItemTable.update();
}
TTSCOMMIT;