When Posting a Warehouse Receipt Line if all the quantity is dealt with the Warehouse Receipt Line is deleted. Way before this happens I set the Record in a global variable to store for later use. However when the record is deleted it seems to be clearing my temporary record. I can't allow this as I need the values from this record after it is deleted.
I've don it like this.
grecWarehouseReceiptTMP := Rec;
grecWarehouseCommentLineTMP := recWarehouseCommentLine;
cuItemMgmnt.WarehouseReceiptAndCommentSet(grecWarehouseReceiptTMP,grecWarehouseCommentLineTMP);
WarehouseReceiptAndCommentSet(VAR recWarehouseReceiptLineTMP : TEMPORARY Record "Warehouse Receipt Line";VAR recWarehouseCommentLineTMP : TEMPORARY Record "Warehouse Comment Line")
grecWarehouseRcptLineTMP := recWarehouseReceiptLineTMP;
grecWarehouseCommentLineTMP := recWarehouseCommentLineTMP;
Now when after the original record is deleted I try and use these global variables (grecWarehouseRcptLineTMP ,grecWarehouseCommentLineTMP ) They are cleared. How can I prevent this?
*This post is locked for comments