Hi All,
I have below code , here i want to take out the number of shipment has been done along one Sales order. here i have write this code here iam getting only the last vaule . means for example (suppoese SO/1213/001 is sales order now i have done shipment ,SHIP/1213/001,SHIP/1213/002, SHIP/1213/003,in three time , now i want all these 3 shipment number along with Sales order number iam only able to get either the first one(SHIP/1213/001) or the last one(SHIP/1213/004) , can any one give me any idea how to get all these three shipment number .)
int := 1;
shipmentno := ‘’ ;
shipmentno1 := ‘’ ;
recsalesshipmenthead.SETRANGE(recsalesshipmenthead.“Order No.”,sonumber);
IF recsalesshipmenthead.FINDFIRST THEN
IF recsalesshipmenthead.“Order No.” = ‘’ THEN
shipmentno := ‘’
ELSE
shipmentno1 := recsalesshipmenthead.“No.”;
BEGIN
REPEAT
shipmentno := recsalesshipmenthead.“No.”;
UNTIL recsalesshipmenthead. NEXT = 0;
grecExcelBuffer.AddColumn( shipmentno,FALSE,’’,FALSE,FALSE,FALSE,’’);
shipmentno1 := shipmentno;
END;
Regards,
Shailesh