// Case : update the record
ripCtx.put("orderId", orderId);
comiCtx.put("orderId", orderId);
GenericValue orderItem = delegator.makeValue("OrderItem", UtilMisc.toMap("orderId", orderId, "productId",productId,"quantity",new Double(itemQtyStr)));
delegator.setNextSubSeqId(orderItem, "orderItemSeqId", 5, 1);
delegator.create(orderItem);
ripCtx.put("orderItemSeqId", orderItem.get("orderItemSeqId"));
} else {
// Case : New record entry when PO not exists in the Database
orderHeader = delegator.makeValue("OrderHeader", UtilMisc.toMap("orderId", orderId, "orderTypeId",orderTypeId ,
"orderDate", timestampItemReceived, "statusId", "ORDER_CREATED", "entryDate", UtilDateTime.nowTimestamp(),