%Mode value when calling from CI
Hi Everyone,
I am calling CI for Requisition component from request handler of rest service. I am trying to change the value of some the fields and I am able to do so. But when I am changing the value , Req_status is getting set from 'Pending' to 'Approved'. After analyzing the trace, I found that its happening at REQ_HDR.REQ_ID.SavePreChange which set the value to 'A' based on approval type.
This approval type is getting decided from below function REQ_HDR.REQ_ID.Rowinit.
&c_approval = getApprovalType(REQ_HDR.BUSINESS_UNIT.Value, REQ_HDR.REQ_ID.Value, BUS_UNIT_TBL_PM.REQ_AMT_APPR_REQD.Value, BUS_UNIT_TBL_PM.REQ_CF_APPR_REQD.Value, BUS_UNIT_TBL_PM.REQ_AF_USED.Value, BUS_UNIT_TBL_PM.REQ_APPR_REQD.Value);