Hi Gurus
I am trying to give an extra button to post a transfer order to post Shipment and Receipt in one go on special occasions. I already tried to simulate the "Code" section of CU "5706 - TransferOrder-Post (Yes/No)" like below:
TransHeader is a record variable.
TransHeader.RESET;
TransHeader.COPY(Rec);
TransferPostShipment.RUN(TransHeader);
CLEARALL
CurrForm.UPDATECONTROLS;
TransHeader.COPY(Rec);
TransferPostReceipt.RUN(TransHeader);
Rec := TransHeader;
The problem is , I want to rollback the Shipment if an error happened in the Receipt part.
Is it possible? is there a way to do it?