project QadFinancials > class BMfgSOAccountingControl > API query SOAccountingControlByDomain


query filter (table tFilter)


tcBusinessFieldNametcDataTypetcOperator
icDomainc=
tsoc_ctrl.soc__qad03i=,>=,>,<>,<=,<
tsoc_ctrl.soc_alll=,<>
tsoc_ctrl.soc_all_avll=,<>
tsoc_ctrl.soc_all_daysi=,>=,>,<>,<=,<
tsoc_ctrl.soc_apml=,<>
tsoc_ctrl.soc_arl=,<>
tsoc_ctrl.soc_atp_enabledl=,<>
tsoc_ctrl.soc_auto_chgl=,<>
tsoc_ctrl.soc_batchl=,<>
tsoc_ctrl.soc_batch_idc=,>=,>,<>,<=,<,begins,can-do,matches
tsoc_ctrl.soc_btb_alll=,<>
tsoc_ctrl.soc_btb_selc=,>=,>,<>,<=,<,begins,can-do,matches
tsoc_ctrl.soc_btb_typec=,>=,>,<>,<=,<,begins,can-do,matches
tsoc_ctrl.soc_calc_promise_datel=,<>
tsoc_ctrl.soc_companyc=,>=,>,<>,<=,<,begins,can-do,matches
tsoc_ctrl.soc_confirml=,<>
tsoc_ctrl.soc_cr_holdl=,<>
tsoc_ctrl.soc_crn_nexti=,>=,>,<>,<=,<
tsoc_ctrl.soc_crn_prec=,>=,>,<>,<=,<,begins,can-do,matches
tsoc_ctrl.soc_crtacc_acctc=,>=,>,<>,<=,<,begins,can-do,matches
tsoc_ctrl.soc_crtacc_ccc=,>=,>,<>,<=,<,begins,can-do,matches
tsoc_ctrl.soc_crtacc_subc=,>=,>,<>,<=,<,begins,can-do,matches
tsoc_ctrl.soc_crtapp_acctc=,>=,>,<>,<=,<,begins,can-do,matches
tsoc_ctrl.soc_crtapp_ccc=,>=,>,<>,<=,<,begins,can-do,matches
tsoc_ctrl.soc_crtapp_subc=,>=,>,<>,<=,<,begins,can-do,matches
tsoc_ctrl.soc_det_alll=,<>
tsoc_ctrl.soc_dflt_dybksetc=,>=,>,<>,<=,<,begins,can-do,matches
tsoc_ctrl.soc_domainc=,>=,>,<>,<=,<,begins,can-do,matches
tsoc_ctrl.soc_due_calcl=,<>
tsoc_ctrl.soc_dum_locc=,>=,>,<>,<=,<,begins,can-do,matches
tsoc_ctrl.soc_dybkset_by_sitel=,<>
tsoc_ctrl.soc_edit_isbl=,<>
tsoc_ctrl.soc_ex_ratetypec=,>=,>,<>,<=,<,begins,can-do,matches
tsoc_ctrl.soc_fcst_bcki=,>=,>,<>,<=,<
tsoc_ctrl.soc_fcst_fwdi=,>=,>,<>,<=,<
tsoc_ctrl.soc_fnbr_seqc=,>=,>,<>,<=,<,begins,can-do,matches
tsoc_ctrl.soc_fobc=,>=,>,<>,<=,<,begins,can-do,matches
tsoc_ctrl.soc_fr_by_sitel=,<>
tsoc_ctrl.soc_fr_shp_calcl=,<>
tsoc_ctrl.soc_frc_returnsc=,>=,>,<>,<=,<,begins,can-do,matches
tsoc_ctrl.soc_fysmi=,>=,>,<>,<=,<
tsoc_ctrl.soc_gst_pstl=,<>
tsoc_ctrl.soc_hcmmtsl=,<>
tsoc_ctrl.soc_horizoni=,>=,>,<>,<=,<
tsoc_ctrl.soc_index1i=,>=,>,<>,<=,<
tsoc_ctrl.soc_invi=,>=,>,<>,<=,<
tsoc_ctrl.soc_inv_histl=,<>
tsoc_ctrl.soc_inv_mind=,>=,>,<>,<=,<
tsoc_ctrl.soc_inv_prec=,>=,>,<>,<=,<,begins,can-do,matches
tsoc_ctrl.soc_jrnli=,>=,>,<>,<=,<
tsoc_ctrl.soc_lcmmtsl=,<>
tsoc_ctrl.soc_ln_fmtl=,<>
tsoc_ctrl.soc_ln_invl=,<>
tsoc_ctrl.soc_maintain_reviewedl=,<>
tsoc_ctrl.soc_marginl=,<>
tsoc_ctrl.soc_min_shipd=,>=,>,<>,<=,<
tsoc_ctrl.soc_min_shpamtd=,>=,>,<>,<=,<
tsoc_ctrl.soc_mlevel_btbl=,<>
tsoc_ctrl.soc_next_abli=,>=,>,<>,<=,<
tsoc_ctrl.soc_next_cidi=,>=,>,<>,<=,<
tsoc_ctrl.soc_on_ordl=,<>
tsoc_ctrl.soc_pass_currl=,<>
tsoc_ctrl.soc_pc_linel=,<>
tsoc_ctrl.soc_pickl=,<>
tsoc_ctrl.soc_pim_isbl=,<>
tsoc_ctrl.soc_pl_reql=,<>
tsoc_ctrl.soc_printl=,<>
tsoc_ctrl.soc_print_idc=,>=,>,<>,<=,<,begins,can-do,matches
tsoc_ctrl.soc_print_shipl=,<>
tsoc_ctrl.soc_pt_reql=,<>
tsoc_ctrl.soc_reql=,<>
tsoc_ctrl.soc_returns_isbl=,<>
tsoc_ctrl.soc_rnd_flagl=,<>
tsoc_ctrl.soc_sal=,<>
tsoc_ctrl.soc_shp_leadi=,>=,>,<>,<=,<
tsoc_ctrl.soc_soi=,>=,>,<>,<=,<
tsoc_ctrl.soc_so_histl=,<>
tsoc_ctrl.soc_so_prec=,>=,>,<>,<=,<,begins,can-do,matches
tsoc_ctrl.soc_use_btbl=,<>
tsoc_ctrl.soc_use_corr_invl=,<>
tsoc_ctrl.soc_use_fnbrl=,<>
tsoc_ctrl.soc_use_frt_trl_cdl=,<>
tsoc_ctrl.soc_user1c=,>=,>,<>,<=,<,begins,can-do,matches
tsoc_ctrl.soc_user2c=,>=,>,<>,<=,<,begins,can-do,matches
tsoc_ctrl.soc_valueorders_byc=,>=,>,<>,<=,<,begins,can-do,matches


Parameters (internal)


icDomaincharacter


query condition


  each soc_ctrl where
soc_ctrl.soc_domain = icDomain


query resultset tqSOAccountingControlByDomain


field namedata typedb fielddescription
tisoc__qad03integersoc_ctrl.soc__qad03
tisoc_next_cidintegersoc_ctrl.soc_next_cidNext Cntnr Nbr
tlsoc_det_alllogicalsoc_ctrl.soc_det_allDetail Allocations
tcsoc_dflt_dybksetcharactersoc_ctrl.soc_dflt_dybksetDefault Daybook Set
tcsoc_domaincharactersoc_ctrl.soc_domainDomain
tlsoc_due_calclogicalsoc_ctrl.soc_due_calcCalculate Due Date
tcsoc_dum_loccharactersoc_ctrl.soc_dum_locDirect Shipment Location
tlsoc_dybkset_by_sitelogicalsoc_ctrl.soc_dybkset_by_siteUse Daybook Set by Site
tlsoc_edit_isblogicalsoc_ctrl.soc_edit_isbSO Edit ISB Defaults
tcsoc_ex_ratetypecharactersoc_ctrl.soc_ex_ratetypeRate Type
tisoc_fcst_bckintegersoc_ctrl.soc_fcst_bckConsume Back
tisoc_fcst_fwdintegersoc_ctrl.soc_fcst_fwdConsume Fwd
tcsoc_fnbr_seqcharactersoc_ctrl.soc_fnbr_seqDefault Fiscal Number Sequence
tcsoc_fobcharactersoc_ctrl.soc_fobF.O.B.
tlsoc_fr_by_sitelogicalsoc_ctrl.soc_fr_by_siteCalculate Freight by Site
tlsoc_fr_shp_calclogicalsoc_ctrl.soc_fr_shp_calcRecalc Freight at Ship Time
tisoc_horizonintegersoc_ctrl.soc_horizonATP Horizon
tisoc_index1integersoc_ctrl.soc_index1Index
tisoc_invintegersoc_ctrl.soc_invNext Invoice
tlsoc_inv_histlogicalsoc_ctrl.soc_inv_histKeep Invoice History
tdsoc_inv_mindecimalsoc_ctrl.soc_inv_minMinimum Invoice Amount
tcsoc_inv_precharactersoc_ctrl.soc_inv_preInvoice Prefix
tisoc_jrnlintegersoc_ctrl.soc_jrnlNext Journal
tlsoc_lcmmtslogicalsoc_ctrl.soc_lcmmtsSales Order Line Comments
tlsoc_ln_fmtlogicalsoc_ctrl.soc_ln_fmtLn Format S/M
tlsoc_ln_invlogicalsoc_ctrl.soc_ln_invPrint Only Lines to Invoice
tlsoc_maintain_reviewedlogicalsoc_ctrl.soc_maintain_reviewedAllow Maintenance of Reviewed Orders
tlsoc_marginlogicalsoc_ctrl.soc_marginComm on Margin not Sales
tdsoc_min_shipdecimalsoc_ctrl.soc_min_shipMinimum Shipment Amount
tdsoc_min_shpamtdecimalsoc_ctrl.soc_min_shpamtMinimum Shipment Amount
tlsoc_mlevel_btblogicalsoc_ctrl.soc_mlevel_btbMultiple Level EMT
tisoc_next_ablintegersoc_ctrl.soc_next_ablNext ASN/BOL
tlsoc_arlogicalsoc_ctrl.soc_arIntegrate with AR
tlsoc_atp_enabledlogicalsoc_ctrl.soc_atp_enabledATP Enforcement Enabled
tlsoc_auto_chglogicalsoc_ctrl.soc_auto_chgAuto Accept Supplier Changes
tcsoc_crtacc_acctcharactersoc_ctrl.soc_crtacc_acctSO Interest Accrued Acct
tcsoc_crtacc_cccharactersoc_ctrl.soc_crtacc_ccSO Interest Accrued CC
tcsoc_crtacc_subcharactersoc_ctrl.soc_crtacc_subSO Int Accrued Sub
tcsoc_crtapp_acctcharactersoc_ctrl.soc_crtapp_acctSO Interest Applied Account
tcsoc_crtapp_cccharactersoc_ctrl.soc_crtapp_ccSO Interest Applied Cost Center
tcsoc_crtapp_subcharactersoc_ctrl.soc_crtapp_subSO Int Accrued Sub
tisoc_all_daysintegersoc_ctrl.soc_all_daysAllocate Days into Future
tlsoc_apmlogicalsoc_ctrl.soc_apmIntegrate with APM
tlsoc_batchlogicalsoc_ctrl.soc_batchAuto Batch Confirmation
tcsoc_batch_idcharactersoc_ctrl.soc_batch_idConfirmation Batch ID
tlsoc_btb_alllogicalsoc_ctrl.soc_btb_allDirect Allocation
tcsoc_btb_selcharactersoc_ctrl.soc_btb_selEMT Sequence
tcsoc_btb_typecharactersoc_ctrl.soc_btb_typeEMT Type
tlsoc_calc_promise_datelogicalsoc_ctrl.soc_calc_promise_dateCalc Promise Date
tcsoc_companycharactersoc_ctrl.soc_companyCompany Address
tlsoc_confirmlogicalsoc_ctrl.soc_confirmConfirmed Orders
tlsoc_cr_holdlogicalsoc_ctrl.soc_cr_holdHold Orders Over Credit Limit
tisoc_crn_nextintegersoc_ctrl.soc_crn_nextNext Correction Invoice Nbr
tcsoc_crn_precharactersoc_ctrl.soc_crn_preCorrection Invoice Prefix
tlsoc_alllogicalsoc_ctrl.soc_allQty All reduce qty Available
tlsoc_all_avllogicalsoc_ctrl.soc_all_avlLimit allocate to avail only
tlsoc_on_ordlogicalsoc_ctrl.soc_on_ordQty avail include qty on order
tlsoc_pass_currlogicalsoc_ctrl.soc_pass_currUse Customer Currency on PO
tlsoc_pc_linelogicalsoc_ctrl.soc_pc_linePrice by SO Line Due Date
tlsoc_picklogicalsoc_ctrl.soc_pickPick Only Allocated Lines
tlsoc_pim_isblogicalsoc_ctrl.soc_pim_isbPend Inv Edit ISB
tlsoc_pl_reqlogicalsoc_ctrl.soc_pl_reqPrice List Required
tlsoc_printlogicalsoc_ctrl.soc_printAre Sales Orders Printed
tcsoc_print_idcharactersoc_ctrl.soc_print_idConfirmation Printer
tlsoc_print_shiplogicalsoc_ctrl.soc_print_shipShipper On Invoice
tlsoc_pt_reqlogicalsoc_ctrl.soc_pt_reqPrice Table Required
tlsoc_reqlogicalsoc_ctrl.soc_reqRequired qty reduce qty avail
tlsoc_returns_isblogicalsoc_ctrl.soc_returns_isbSO Returns Update ISB
tlsoc_rnd_flaglogicalsoc_ctrl.soc_rnd_flagEnable Rounding Function
tlsoc_salogicalsoc_ctrl.soc_saIntegrate with SA
tisoc_shp_leadintegersoc_ctrl.soc_shp_leadShipping Lead Time
tisoc_sointegersoc_ctrl.soc_soNext Sales Order
tlsoc_so_histlogicalsoc_ctrl.soc_so_histKeep Booking History
tcsoc_so_precharactersoc_ctrl.soc_so_preSales Order Prefix
tlsoc_use_btblogicalsoc_ctrl.soc_use_btbUse Enterprise Material Transfer
tlsoc_use_corr_invlogicalsoc_ctrl.soc_use_corr_invUse Correction Invoices
tlsoc_use_fnbrlogicalsoc_ctrl.soc_use_fnbrUse Fiscal Number
tlsoc_use_frt_trl_cdlogicalsoc_ctrl.soc_use_frt_trl_cdUse SO Frt List Trailer Code
tcsoc_user1charactersoc_ctrl.soc_user1Ufld1
tcsoc_user2charactersoc_ctrl.soc_user2Ufld2
tcsoc_valueorders_bycharactersoc_ctrl.soc_valueorders_byValue Orders Using
tcsoc_frc_returnscharactersoc_ctrl.soc_frc_returnsSales Returns Freight Calculation
tisoc_fysmintegersoc_ctrl.soc_fysmFiscal Start Month
tlsoc_gst_pstlogicalsoc_ctrl.soc_gst_pstPrint Tax ID on Invoice
tlsoc_hcmmtslogicalsoc_ctrl.soc_hcmmtsSales Order Header Comments
soc_ctrlCustomcharactercalculatedcustom fields
ti_sequenceintegercalculatedprimary index
tc_rowidcharactercalculated = rowid(soc_ctrl)


Internal usage


QadFinancials
method BDInvoice.ValidateComponentAllLinkedInvoices
method BDomain.ValidateComponent
method BMfgDaybookSet.ApiGetDaybookCodeByType


Sample code: how to call this query through RPCRequestService (QXtend Inbound)

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 = "BMfgSOAccountingControl".
create ttContext.
assign ttContext.propertyName = "methodName"
       ttContext.propertyValue = "SOAccountingControlByDomain".
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/bmfgsoaccountingcontrol.soaccountingcontrolbydomain.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.