code to receive Transfer Order In Axapta as below.
void TO_PReceive(inventTransferId transferId)
{
InventTransferParmTable InventTransferParmTable_1;
InventTransferUpdReceive InventTransferUpdReceive_1;
;
InventTransferParmTable_1.clear();
InventTransferParmTable_1.initParmDefault();
InventTransferParmTable_1.ParmId = RunBaseMultiParm::getSysParmId();
InventTransferParmTable_1.TransferId = transferId;
InventTransferParmTable_1.UpdateType = InventTransferUpdateType::Receive;
InventTransferParmTable_1.PrintTransferReceipt = NoYes::No;
InventTransferParmTable_1.ReceiveUpdateQty = InventTransferReceiveUpdateQty::All;
InventTransferParmTable_1.EditLines = NoYes::Yes;
InventTransferParmTable_1.ExplodeLines = NoYes::Yes;
InventTransferUpdReceive_1 = InventTransferUpdReceive::newParmBuffer(InventTransferParmTable_1);
InventTransferUpdReceive_1.run();
}
Comments