tcBusinessFieldName | tcDataType | tcOperator |
---|---|---|
icDomainCode | c | = |
tpo_mstr.oid_po_mstr | d | =,>=,>,<>,<=,< |
tpo_mstr.po_ap_acct | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_ap_cc | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_ap_sub | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_app_owner | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_bank | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_bill | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_blanket | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_buyer | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_cls_date | t | =,>=,>,<>,<=,< |
tpo_mstr.po_cmtindx | i | =,>=,>,<>,<=,< |
tpo_mstr.po_confirm | l | =,<> |
tpo_mstr.po_consign_cost_point | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_consignment | l | =,<> |
tpo_mstr.po_contact | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_contract | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_cr_terms | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_crt_int | d | =,>=,>,<>,<=,< |
tpo_mstr.po_curr | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_cycl | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_del_to | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_disc_pct | d | =,>=,>,<>,<=,< |
tpo_mstr.po_domain | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_due_date | t | =,>=,>,<>,<=,< |
tpo_mstr.po_duty_type | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_eff_strt | t | =,>=,>,<>,<=,< |
tpo_mstr.po_eff_to | t | =,>=,>,<>,<=,< |
tpo_mstr.po_ent_ex | d | =,>=,>,<>,<=,< |
tpo_mstr.po_ers_opt | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_est_value | d | =,>=,>,<>,<=,< |
tpo_mstr.po_ex_rate | d | =,>=,>,<>,<=,< |
tpo_mstr.po_ex_rate2 | d | =,>=,>,<>,<=,< |
tpo_mstr.po_ex_ratetype | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_exru_seq | i | =,>=,>,<>,<=,< |
tpo_mstr.po_fix_pr | l | =,<> |
tpo_mstr.po_fix_rate | l | =,<> |
tpo_mstr.po_fob | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_frt | d | =,>=,>,<>,<=,< |
tpo_mstr.po_fsm_type | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_fst_id | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_incl_iss | l | =,<> |
tpo_mstr.po_inv_mthd | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_is_btb | l | =,<> |
tpo_mstr.po_lang | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_max_aging_days | i | =,>=,>,<>,<=,< |
tpo_mstr.po_nbr | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_ord_date | t | =,>=,>,<>,<=,< |
tpo_mstr.po_partial | l | =,<> |
tpo_mstr.po_pr_list | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_pr_list2 | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_pr_lst_tp | i | =,>=,>,<>,<=,< |
tpo_mstr.po_prepaid | d | =,>=,>,<>,<=,< |
tpo_mstr.po_priced_dt | t | =,>=,>,<>,<=,< |
tpo_mstr.po_pricing_dt | t | =,>=,>,<>,<=,< |
tpo_mstr.po_print | l | =,<> |
tpo_mstr.po_project | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_pst | l | =,<> |
tpo_mstr.po_pst_id | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_recurr | l | =,<> |
tpo_mstr.po_rel_nbr | i | =,>=,>,<>,<=,< |
tpo_mstr.po_release | l | =,<> |
tpo_mstr.po_req_id | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_rev | d | =,>=,>,<>,<=,< |
tpo_mstr.po_rev_date | t | =,>=,>,<>,<=,< |
tpo_mstr.po_rmks | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_sch_mthd | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_sched | l | =,<> |
tpo_mstr.po_serv_chg | d | =,>=,>,<>,<=,< |
tpo_mstr.po_ship | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_shipvia | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_site | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_so_hold | l | =,<> |
tpo_mstr.po_so_nbr | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_spec_chg | d | =,>=,>,<>,<=,< |
tpo_mstr.po_stat | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_tax_date | t | =,>=,>,<>,<=,< |
tpo_mstr.po_tax_env | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_tax_usage | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_taxable | l | =,<> |
tpo_mstr.po_taxc | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_tot_terms_code | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_trade_sale | l | =,<> |
tpo_mstr.po_trade_sale_so | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_translt_days | d | =,>=,>,<>,<=,< |
tpo_mstr.po_type | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_user_id | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_user1 | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_user2 | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_vend | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_xmit | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tpo_mstr.po_zero_sched | i | =,>=,>,<>,<=,< |
icDomainCode | character | DomainCode |
field name | data type | db field | description |
---|---|---|---|
tcpo_domain | character | po_mstr.po_domain | Domain |
tcpo_vend | character | po_mstr.po_vend | Supplier |
tcpo_type | character | po_mstr.po_type | Type |
tcpo_nbr | character | po_mstr.po_nbr | Purchase Order |
tcpo_curr | character | po_mstr.po_curr | Currency |
tcpo_stat | character | po_mstr.po_stat | Status |
tcpo_site | character | po_mstr.po_site | Site |
tcpo_so_nbr | character | po_mstr.po_so_nbr | Primary SO |
tdpo_spec_chg | decimal | po_mstr.po_spec_chg | Special Charge |
ttpo_tax_date | date | po_mstr.po_tax_date | Tax Date |
tdpo_serv_chg | decimal | po_mstr.po_serv_chg | Service Charge |
tcpo_ship | character | po_mstr.po_ship | Ship-To |
tcpo_shipvia | character | po_mstr.po_shipvia | Ship Via |
tlpo_so_hold | logical | po_mstr.po_so_hold | Secondary SO Cr Hold |
tcpo_taxc | character | po_mstr.po_taxc | Tax Class |
tcpo_tot_terms_code | character | po_mstr.po_tot_terms_code | Terms of Trade |
tlpo_trade_sale | logical | po_mstr.po_trade_sale | Trade Sales Contract |
tcpo_trade_sale_so | character | po_mstr.po_trade_sale_so | Trade Sales SO |
tdpo_translt_days | decimal | po_mstr.po_translt_days | Transport Days |
tcpo_user1 | character | po_mstr.po_user1 | Ufld1 |
tcpo_user2 | character | po_mstr.po_user2 | Ufld2 |
tcpo_user_id | character | po_mstr.po_user_id | Entered By |
tcpo_xmit | character | po_mstr.po_xmit | Transm |
tipo_zero_sched | integer | po_mstr.po_zero_sched | Zero Schedules |
tcpo_tax_env | character | po_mstr.po_tax_env | Tax Environment |
tcpo_tax_usage | character | po_mstr.po_tax_usage | Tax Usage |
tlpo_taxable | logical | po_mstr.po_taxable | Taxable |
tcpo_rmks | character | po_mstr.po_rmks | Remarks |
tcpo_sch_mthd | character | po_mstr.po_sch_mthd | Schedules Via |
tlpo_sched | logical | po_mstr.po_sched | Scheduled |
tcpo_ex_ratetype | character | po_mstr.po_ex_ratetype | Rate Type |
tipo_exru_seq | integer | po_mstr.po_exru_seq | Sequence |
tlpo_fix_pr | logical | po_mstr.po_fix_pr | Fixed Price |
tlpo_fix_rate | logical | po_mstr.po_fix_rate | Fixed Rate |
tcpo_fob | character | po_mstr.po_fob | FOB |
tdpo_frt | decimal | po_mstr.po_frt | Freight |
tcpo_fsm_type | character | po_mstr.po_fsm_type | FSM Type |
tcpo_fst_id | character | po_mstr.po_fst_id | FST ID |
tlpo_incl_iss | logical | po_mstr.po_incl_iss | Include Saturday/Sunday |
tcpo_inv_mthd | character | po_mstr.po_inv_mthd | Invoices Via |
tlpo_is_btb | logical | po_mstr.po_is_btb | EMT PO |
tcpo_lang | character | po_mstr.po_lang | Language |
tipo_max_aging_days | integer | po_mstr.po_max_aging_days | Maximum Aging Days |
tcpo_cr_terms | character | po_mstr.po_cr_terms | Credit Terms |
tdpo_crt_int | decimal | po_mstr.po_crt_int | Credit Terms Int |
tcpo_cycl | character | po_mstr.po_cycl | Cycle Code |
tcpo_del_to | character | po_mstr.po_del_to | Deliver To |
tdpo_disc_pct | decimal | po_mstr.po_disc_pct | Disc % |
ttpo_due_date | date | po_mstr.po_due_date | Due Date |
tcpo_duty_type | character | po_mstr.po_duty_type | Duty Type |
ttpo_eff_strt | date | po_mstr.po_eff_strt | Start Effective |
ttpo_eff_to | date | po_mstr.po_eff_to | End Effective |
tdpo_ent_ex | decimal | po_mstr.po_ent_ex | Exch Rate |
tcpo_ers_opt | character | po_mstr.po_ers_opt | ERS Option |
tdpo_est_value | decimal | po_mstr.po_est_value | Est Value |
tdpo_ex_rate | decimal | po_mstr.po_ex_rate | Exch Rate |
tdpo_ex_rate2 | decimal | po_mstr.po_ex_rate2 | Exch Rate 2 |
tlpo_partial | logical | po_mstr.po_partial | Partial OK |
tcpo_pr_list | character | po_mstr.po_pr_list | Disc Tbl |
tcpo_pr_list2 | character | po_mstr.po_pr_list2 | Price Tbl |
tipo_pr_lst_tp | integer | po_mstr.po_pr_lst_tp | ERS Price List Option |
tdpo_prepaid | decimal | po_mstr.po_prepaid | Amount Prepaid |
ttpo_priced_dt | date | po_mstr.po_priced_dt | Last Price Dt |
ttpo_pricing_dt | date | po_mstr.po_pricing_dt | Pricing Date |
tlpo_print | logical | po_mstr.po_print | Print PO |
tcpo_project | character | po_mstr.po_project | Project |
tlpo_pst | logical | po_mstr.po_pst | PST |
tcpo_pst_id | character | po_mstr.po_pst_id | PST ID |
tlpo_recurr | logical | po_mstr.po_recurr | Recurr |
tipo_rel_nbr | integer | po_mstr.po_rel_nbr | Rel |
tlpo_release | logical | po_mstr.po_release | Release |
tcpo_req_id | character | po_mstr.po_req_id | Req By |
tdpo_rev | decimal | po_mstr.po_rev | Order Revision |
ttpo_rev_date | date | po_mstr.po_rev_date | Order Revision Date |
ttpo_ord_date | date | po_mstr.po_ord_date | Order Date |
tdoid_po_mstr | decimal | po_mstr.oid_po_mstr | |
tcpo_ap_acct | character | po_mstr.po_ap_acct | AP Acct |
tcpo_ap_cc | character | po_mstr.po_ap_cc | Cost Ctr |
tcpo_ap_sub | character | po_mstr.po_ap_sub | AP Sub-Acct |
tcpo_app_owner | character | po_mstr.po_app_owner | Owner Application |
tcpo_bank | character | po_mstr.po_bank | Bank |
tcpo_bill | character | po_mstr.po_bill | Bill-To |
tcpo_blanket | character | po_mstr.po_blanket | Blanket Order |
tcpo_buyer | character | po_mstr.po_buyer | Buyer |
ttpo_cls_date | date | po_mstr.po_cls_date | Close Date |
tipo_cmtindx | integer | po_mstr.po_cmtindx | Comment Index |
tlpo_confirm | logical | po_mstr.po_confirm | Confirming |
tcpo_consign_cost_point | character | po_mstr.po_consign_cost_point | PO Cost Point |
tlpo_consignment | logical | po_mstr.po_consignment | Consignment |
tcpo_contact | character | po_mstr.po_contact | Contact |
tcpo_contract | character | po_mstr.po_contract | Contract |
po_mstrCustom | character | calculated | custom fields |
ti_sequence | integer | calculated | primary index |
tc_rowid | character | calculated | = rowid(po_mstr) |
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 = "BMfgPO". create ttContext. assign ttContext.propertyName = "methodName" ttContext.propertyValue = "SelectPurchaseOrder". 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/bmfgpo.selectpurchaseorder.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.