madvalpreston
Technical User
HI
We have a complex formula with which I want to sea count on where the result is OTIF. I cannot get it to count no matter what syntax i try in my formula. Please see below tjhe two formulas, the complex and then mine trying to count
shared numbervar counter;
shared numbervar OversCounter;
shared numbervar LateCounter;
shared numbervar NotShippedCounter;
// Is Actual shipped by date earlier than actual shipped dated?
//If {BAQReportResult.ShipHead.ShipDate} <= {BAQReportResult.OrderRel.ReqDate} AND {#Total_Qty_Shipped} >= 0.9 * {BAQReportResult.OrderRel.SellingReqQty} AND {#Total_Qty_Shipped} <= {BAQReportResult.OrderRel.SellingReqQty}
If {BAQReportResult.OrderRel.OpenRelease} = True Then
(if {BAQReportResult.OrderRel.ReqDate} <= CDate({BAQReportParameter.Option02}) Then
NotShippedCounter := NotShippedCounter +1; "NOT SHIPPED"
)
Else
( //Start of closed releases
If {BAQReportResult.ShipHead.ReadyToInvoice} = True
THEN
If {BAQReportResult.ShipHead.ShipDate} <= {BAQReportResult.OrderRel.ReqDate} AND {#Total_Qty_Shipped} >= 0.9 * {BAQReportResult.OrderRel.SellingReqQty} AND {#Total_Qty_Shipped} <= {BAQReportResult.OrderRel.SellingReqQty}
THEN ( counter := counter + 1; "OTIF"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
//ELSE "LATE/NOT_ENOUGH"
Else If {BAQReportResult.ShipHead.ShipDate} <= {BAQReportResult.OrderRel.ReqDate} AND {#Total_Qty_Shipped} > {BAQReportResult.OrderRel.SellingReqQty}
THEN (OversCounter := OversCounter +1; "OVER"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
ELSE (LateCounter := LateCounter +1; "LATE")
ELSE IF isnull({BAQReportResult.ShipHead.ReadyToInvoice}) OR {BAQReportResult.ShipHead.ReadyToInvoice} = False
THEN (NotShippedCounter := NotShippedCounter +1; "NOT SHIPPED")
)//End of closed releases
THEN MINE
whileprintingrecords;
Shared numbervar totalcount;
If {@LATENESS_SHIPQTY_CHECKER}= "OTIF"
THEN totalcount := totalcount + 1
I need it to add one every time it shows OTIF.
Any ideas please
Thanks
We have a complex formula with which I want to sea count on where the result is OTIF. I cannot get it to count no matter what syntax i try in my formula. Please see below tjhe two formulas, the complex and then mine trying to count
shared numbervar counter;
shared numbervar OversCounter;
shared numbervar LateCounter;
shared numbervar NotShippedCounter;
// Is Actual shipped by date earlier than actual shipped dated?
//If {BAQReportResult.ShipHead.ShipDate} <= {BAQReportResult.OrderRel.ReqDate} AND {#Total_Qty_Shipped} >= 0.9 * {BAQReportResult.OrderRel.SellingReqQty} AND {#Total_Qty_Shipped} <= {BAQReportResult.OrderRel.SellingReqQty}
If {BAQReportResult.OrderRel.OpenRelease} = True Then
(if {BAQReportResult.OrderRel.ReqDate} <= CDate({BAQReportParameter.Option02}) Then
NotShippedCounter := NotShippedCounter +1; "NOT SHIPPED"
)
Else
( //Start of closed releases
If {BAQReportResult.ShipHead.ReadyToInvoice} = True
THEN
If {BAQReportResult.ShipHead.ShipDate} <= {BAQReportResult.OrderRel.ReqDate} AND {#Total_Qty_Shipped} >= 0.9 * {BAQReportResult.OrderRel.SellingReqQty} AND {#Total_Qty_Shipped} <= {BAQReportResult.OrderRel.SellingReqQty}
THEN ( counter := counter + 1; "OTIF"
//ELSE "LATE/NOT_ENOUGH"
Else If {BAQReportResult.ShipHead.ShipDate} <= {BAQReportResult.OrderRel.ReqDate} AND {#Total_Qty_Shipped} > {BAQReportResult.OrderRel.SellingReqQty}
THEN (OversCounter := OversCounter +1; "OVER"
ELSE (LateCounter := LateCounter +1; "LATE")
ELSE IF isnull({BAQReportResult.ShipHead.ReadyToInvoice}) OR {BAQReportResult.ShipHead.ReadyToInvoice} = False
THEN (NotShippedCounter := NotShippedCounter +1; "NOT SHIPPED")
)//End of closed releases
THEN MINE
whileprintingrecords;
Shared numbervar totalcount;
If {@LATENESS_SHIPQTY_CHECKER}= "OTIF"
THEN totalcount := totalcount + 1
I need it to add one every time it shows OTIF.
Any ideas please
Thanks