In sales line details in salestable form, there are some dates i.e.,requested shipping date,requested receipt date,confirmed receipt date and confirmed shipping date .I have to modify the dates for multiple lines…where as in standard it’s applicable for only individual lines…
i have done the customization …nd it’s working fine
SalesLine _salesLine,_salesLine1;
SalesTable _salesTable;
MultiSelectionHelper helper = MultiSelectionHelper::construct();
date shipingdate1,confirmdate1;
helper.parmDatasource(SalesLine_DS);
select _salesLine where _salesLine.ItemId == SalesLine.ItemId && _salesLine.SalesId == SalesLine.SalesId;
{
if(_salesLine)
{
shipingdate1 = _salesLine.ShippingDateRequested;
confirmdate1 = _salesLine.ReceiptDateRequested;
_salesLine = helper.getFirst();
while (_salesLine.RecId != 0)
{
select forUpdate _salesLine1 where _salesLine1.RecId == _salesLine.RecId;
{
if(_salesLine1)
{
_salesLine1.ShippingDateRequested = shipingdate1;
_salesLine1.ReceiptDateRequested = confirmdate1;
_salesLine1.update();
}
}
_salesLine = helper.getNext();
}
}
}
but my requirement is…wen the requested shipping date will be modified, only this dates will get updated for all marked lines and wen the confirmed shipping date will be modified, only confirm dates will get updated for all marked lines.
to do so, which condition I should give ?