tcBusinessFieldName | tcDataType | tcOperator |
---|---|---|
icDomain | c | = |
tpoc_ctrl.poc_ack_req | l | =,<> |
tpoc_ctrl.poc_apv_req | l | =,<> |
tpoc_ctrl.poc_bill | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpoc_ctrl.poc_crtacc_acct | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpoc_ctrl.poc_crtacc_cc | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpoc_ctrl.poc_crtacc_sub | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpoc_ctrl.poc_crtapp_acct | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpoc_ctrl.poc_crtapp_cc | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpoc_ctrl.poc_crtapp_sub | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpoc_ctrl.poc_date_based_rlse_id | l | =,<> |
tpoc_ctrl.poc_dflt_dybkset | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpoc_ctrl.poc_domain | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpoc_ctrl.poc_dybk_on_invoice | l | =,<> |
tpoc_ctrl.poc_dybkset_by_site | l | =,<> |
tpoc_ctrl.poc_ers_opt | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpoc_ctrl.poc_ers_proc | l | =,<> |
tpoc_ctrl.poc_ex_ratetype | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpoc_ctrl.poc_fiscal_confirm | l | =,<> |
tpoc_ctrl.poc_fst_id | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpoc_ctrl.poc_hcmmts | l | =,<> |
tpoc_ctrl.poc_insp_loc | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpoc_ctrl.poc_lcmmts | l | =,<> |
tpoc_ctrl.poc_ln_fmt | l | =,<> |
tpoc_ctrl.poc_ln_stat | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpoc_ctrl.poc_multi_due_dates | l | =,<> |
tpoc_ctrl.poc_next_batch | i | =,>=,>,<>,<=,< |
tpoc_ctrl.poc_pc_line | l | =,<> |
tpoc_ctrl.poc_pl_req | l | =,<> |
tpoc_ctrl.poc_po_hist | l | =,<> |
tpoc_ctrl.poc_po_nbr | i | =,>=,>,<>,<=,< |
tpoc_ctrl.poc_po_pre | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpoc_ctrl.poc_pst_id | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpoc_ctrl.poc_pt_req | l | =,<> |
tpoc_ctrl.poc_rcv_all | l | =,<> |
tpoc_ctrl.poc_rcv_nbr | d | =,>=,>,<>,<=,< |
tpoc_ctrl.poc_rcv_pre | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpoc_ctrl.poc_rcv_type | d | =,>=,>,<>,<=,< |
tpoc_ctrl.poc_req_nbr | i | =,>=,>,<>,<=,< |
tpoc_ctrl.poc_req_pre | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpoc_ctrl.poc_sched_disc_tbl_req | l | =,<> |
tpoc_ctrl.poc_ship | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpoc_ctrl.poc_sort_by | l | =,<> |
tpoc_ctrl.poc_tol_cst | d | =,>=,>,<>,<=,< |
tpoc_ctrl.poc_tol_pct | d | =,>=,>,<>,<=,< |
tpoc_ctrl.poc_user1 | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpoc_ctrl.poc_user2 | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpoc_ctrl.poc_zero_sched | i | =,>=,>,<>,<=,< |
icDomain | character |
field name | data type | db field | description |
---|---|---|---|
tlpoc_ack_req | logical | poc_ctrl.poc_ack_req | Require Acknowledgment |
tlpoc_apv_req | logical | poc_ctrl.poc_apv_req | Approved Reqs Needed for POs |
tcpoc_bill | character | poc_ctrl.poc_bill | Bill-To |
tcpoc_crtacc_acct | character | poc_ctrl.poc_crtacc_acct | PO Interest Accrued Acct |
tcpoc_crtacc_cc | character | poc_ctrl.poc_crtacc_cc | PO Interest Accrued CC |
tcpoc_crtacc_sub | character | poc_ctrl.poc_crtacc_sub | PO Int Accrued Sub-Acct |
tcpoc_crtapp_acct | character | poc_ctrl.poc_crtapp_acct | PO Interest Applied Acct |
tcpoc_crtapp_cc | character | poc_ctrl.poc_crtapp_cc | PO Interest Applied CC |
tcpoc_crtapp_sub | character | poc_ctrl.poc_crtapp_sub | PO Int Applied Sub-Acct |
tlpoc_date_based_rlse_id | logical | poc_ctrl.poc_date_based_rlse_id | Generate Date Based Release ID |
tcpoc_dflt_dybkset | character | poc_ctrl.poc_dflt_dybkset | Default Daybook Set |
tcpoc_domain | character | poc_ctrl.poc_domain | Domain |
tlpoc_dybk_on_invoice | logical | poc_ctrl.poc_dybk_on_invoice | Allow Supplier Invoice Daybook Update |
tlpoc_dybkset_by_site | logical | poc_ctrl.poc_dybkset_by_site | Use Daybook Set by Site |
tcpoc_ers_opt | character | poc_ctrl.poc_ers_opt | ERS Option |
tlpoc_ers_proc | logical | poc_ctrl.poc_ers_proc | ERS Processing |
tcpoc_ex_ratetype | character | poc_ctrl.poc_ex_ratetype | Rate Type |
tlpoc_fiscal_confirm | logical | poc_ctrl.poc_fiscal_confirm | Fiscal Confirm Required |
tcpoc_fst_id | character | poc_ctrl.poc_fst_id | Company FST ID |
tlpoc_hcmmts | logical | poc_ctrl.poc_hcmmts | PO Header Comments |
tcpoc_insp_loc | character | poc_ctrl.poc_insp_loc | Inspection Location |
tlpoc_lcmmts | logical | poc_ctrl.poc_lcmmts | PO Line Comments |
tlpoc_ln_fmt | logical | poc_ctrl.poc_ln_fmt | Ln Format S/M |
tcpoc_ln_stat | character | poc_ctrl.poc_ln_stat | Cancel Backorders |
tlpoc_multi_due_dates | logical | poc_ctrl.poc_multi_due_dates | Multi Due Dates |
tipoc_next_batch | integer | poc_ctrl.poc_next_batch | Next Fiscal Batch |
tlpoc_pc_line | logical | poc_ctrl.poc_pc_line | Price by PO Line Due Date |
tlpoc_pl_req | logical | poc_ctrl.poc_pl_req | Price List Required |
tlpoc_po_hist | logical | poc_ctrl.poc_po_hist | Keep Booking History |
tipoc_po_nbr | integer | poc_ctrl.poc_po_nbr | Next Purchase Order |
tcpoc_po_pre | character | poc_ctrl.poc_po_pre | PO Prefix |
tcpoc_pst_id | character | poc_ctrl.poc_pst_id | PST ID |
tlpoc_pt_req | logical | poc_ctrl.poc_pt_req | Price Table Required |
tlpoc_rcv_all | logical | poc_ctrl.poc_rcv_all | Receive All |
tdpoc_rcv_nbr | decimal | poc_ctrl.poc_rcv_nbr | Next Receiver |
tcpoc_rcv_pre | character | poc_ctrl.poc_rcv_pre | Receiver Prefix |
tdpoc_rcv_type | decimal | poc_ctrl.poc_rcv_type | Receiver Type |
tipoc_req_nbr | integer | poc_ctrl.poc_req_nbr | Next Req |
tcpoc_req_pre | character | poc_ctrl.poc_req_pre | Requistion Prefix |
tlpoc_sched_disc_tbl_req | logical | poc_ctrl.poc_sched_disc_tbl_req | Sched Disc Table Required |
tcpoc_ship | character | poc_ctrl.poc_ship | Ship-To |
tlpoc_sort_by | logical | poc_ctrl.poc_sort_by | Sort PO By |
tdpoc_tol_cst | decimal | poc_ctrl.poc_tol_cst | Tolerance Cost |
tdpoc_tol_pct | decimal | poc_ctrl.poc_tol_pct | Tolerance Percent |
tcpoc_user1 | character | poc_ctrl.poc_user1 | Ufld1 |
tcpoc_user2 | character | poc_ctrl.poc_user2 | Ufld2 |
tipoc_zero_sched | integer | poc_ctrl.poc_zero_sched | Zero Schedule |
poc_ctrlCustom | character | calculated | custom fields |
ti_sequence | integer | calculated | primary index |
tc_rowid | character | calculated | = rowid(poc_ctrl) |
define temp-table ttContext no-undo field propertyQualifier as character field propertyName as character field propertyValue as character index entityContext is primary unique propertyQualifier propertyName index propertyQualifier propertyQualifier. define dataset dsContext for ttContext. define variable vhContextDS as handle no-undo. define variable vhExceptionDS as handle no-undo. define variable vhServer as handle no-undo. define variable vhInputDS as handle no-undo. define variable vhInputOutputDS as handle no-undo. define variable vhOutputDS as handle no-undo. define variable vhParameter as handle no-undo. /* Create context */ create ttContext. assign ttContext.propertyName = "programName" ttContext.propertyValue = "BMfgPOAccountingControl". create ttContext. assign ttContext.propertyName = "methodName" ttContext.propertyValue = "POAccountingControlByDomainV01". create ttContext. assign ttContext.propertyName = "applicationId" ttContext.propertyValue = "fin". create ttContext. assign ttContext.propertyName = "entity" ttContext.propertyValue = "1000". create ttContext. assign ttContext.propertyName = "userName" ttContext.propertyValue = "mfg". create ttContext. assign ttContext.propertyName = "password" ttContext.propertyValue = "". /* Create input dataset */ create dataset vhInputDS. vhInputDS:read-xmlschema("file", "xml/bmfgpoaccountingcontrol.poaccountingcontrolbydomainv01.i.xsd", ?). vhParameter = vhInputDS:get-buffer-handle("tParameterI"). vhParameter:buffer-create(). assign vhParameter::icRange = "A" vhParameter::icRowid = "" vhParameter::iiRownum = 0 vhParameter::iiNumber = 5 /* Number of records to read */ vhParameter::icSortColumns = "" vhParameter::ilCountOnly = false vhParameter::ilForwardRead = true vhParameter::iiMaximumBrowseRecordsToCount = 0. vhParameter = vhInputDS:get-buffer-handle("tFilter"). vhParameter:buffer-create(). assign vhParameter::<field-name-1> = <field-value-1> vhParameter::<field-name-2> = <field-value-2> ... /* Connect the AppServer */ create server vhServer. vhServer:connect("-URL <appserver-url>"). if not vhServer:connected() then do: message "Could not connect AppServer" view-as alert-box error title "Error". return. end. /* Run */ assign vhContextDS = dataset dsContext:handle. run program/rpcrequestservice.p on vhServer (input-output dataset-handle vhContextDS by-reference, output dataset-handle vhExceptionDS, input dataset-handle vhInputDS by-reference, input-output dataset-handle vhInputOutputDS by-reference, output dataset-handle vhOutputDS). /* Handle output however you want, in this example, we dump it to xml */ if valid-handle(vhExceptionDS) then vhExceptionDS:write-xml("file", "Exceptions.xml", true). if valid-handle(vhOutputDS) then vhOutputDS:write-xml("file", "Output.xml", true). /* Cleanup */ vhServer:disconnect(). assign vhServer = ?. if valid-handle(vhInputDS) then delete object vhInputDS. if valid-handle(vhOutputDS) then delete object vhOutputDS. if valid-handle(vhExceptionDS) then delete object vhExceptionDS.