icReference | input | character | - <classname> for receiving business field information of a business class - <classname>.<methodname> for receiving business field information of a browse or report |
tBusinessFields | output | temp-table | |
tCustomRelation | output | temp-table | |
oiReturnStatus | output | integer | Return status of the method. |
<ANCESTOR-CODE> if can-do("CreditorAccountsSummary,CreditorAccountsHistory,CreditorAccountMovements,CreditorPrepayments,CreditorCIREC":U, icReference) then do: create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-2'GL Cal Year':30(1274)T-2#) tBusinessFields.tcFcDescription = trim(#T-3'GL Cal Year':100(1275)T-3#) tBusinessFields.tcFcFieldName = "AccYear_RANGE":U tBusinessFields.tcDataType = "i":U tBusinessFields.tcControlType = "NumericInt":U tBusinessFields.tcDisplayFormat = "9999":U tBusinessFields.tcFcFieldType = "F":U. end. if can-do("CreditorAgeingAnalysisCurrent,CreditorAACGroup,CreditorAgeingABackwards,CreditorAABGroup":U, icReference) then do: create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-4'To GL Calendar Year':30(1535)T-4#) tBusinessFields.tcFcDescription = trim(#T-5'To GL Calendar Year':100(1536)T-5#) tBusinessFields.tcFcFieldName = "ToAccYear":U tBusinessFields.tcDataType = "i":U tBusinessFields.tcControlType = "NumericInt":U tBusinessFields.tcDisplayFormat = "9999":U tBusinessFields.tcFcFieldType = "F":U. end. if can-do("CreditorAccountsSummary,CreditorAccountsHistory,CreditorAccountMovements,CreditorPrepayments,CreditorCIREC":U, icReference) then do: create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-6'GL Period':30(1276)T-6#) tBusinessFields.tcFcDescription = trim(#T-7'GL Period':100(1277)T-7#) tBusinessFields.tcFcFieldName = "AccPeriod_RANGE":U tBusinessFields.tcDataType = "i":U tBusinessFields.tcControlType = "NumericInt":U tBusinessFields.tcDisplayFormat = "99":U tBusinessFields.tcFcFieldType = "F":U. end. if can-do("CreditorAgeingAnalysisCurrent,CreditorAACGroup,CreditorAgeingABackwards,CreditorAABGroup":U, icReference) then do: create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-8'To GL Period':30(1537)T-8#) tBusinessFields.tcFcDescription = trim(#T-9'To GL Period':100(1538)T-9#) tBusinessFields.tcFcFieldName = "ToAccPeriod":U tBusinessFields.tcDataType = "i":U tBusinessFields.tcControlType = "NumericInt":U tBusinessFields.tcDisplayFormat = "99":U tBusinessFields.tcFcFieldType = "F":U. end. if can-do("CreditorCIREC,CreditorPrepayments":U, icReference) then do: create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-10'Unallocated Only':30(1539)T-10#) tBusinessFields.tcFcDescription = trim(#T-11'Unallocated Only':100(1540)T-11#) tBusinessFields.tcFcFieldName = "UnallocatedOnly":U tBusinessFields.tcDataType = "l":U tBusinessFields.tcControlType = "Bool":U tBusinessFields.tcDisplayFormat = "yes/no":U tBusinessFields.tcFcFieldType = "F":U. end. if can-do("CreditorAgeingAnalysisCurrent,CreditorAACGroup,CreditorAgeingABackwards,CreditorAABGroup":U, icReference) then do: create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-12'Date for Aging Calculation':30(1541)T-12#) tBusinessFields.tcFcDescription = trim(#T-13'Date for Aging Calculation':100(1542)T-13#) tBusinessFields.tcFcFieldName = "DateForAgeingCalc":U tBusinessFields.tcDataType = "t":U tBusinessFields.tcControlType = "DateTime":U tBusinessFields.tcDisplayFormat = "99/99/9999":U tBusinessFields.tcFcFieldType = "F":U. create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-81'Aging Type':30(1543)T-81#) tBusinessFields.tcFcDescription = trim(#T-82'Aging Type':100(1544)T-82#) tBusinessFields.tcValueList = trim(#T-83'Days':40(1545)T-83#) + chr(2) + "DAYS":U + chr(2) + trim(#T-84'Months':40(1546)T-84#) + chr(2) + "MONTHS":U tBusinessFields.tcFcFieldName = "AgeingType":U tBusinessFields.tcDataType = "c":U tBusinessFields.tcControlType = "ComboBox":U tBusinessFields.tcDisplayFormat = "x(20)":U tBusinessFields.tcFcFieldType = "F":U. create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-85'Aging Offset':30(1547)T-85#) tBusinessFields.tcFcDescription = trim(#T-86'Aging Offset':100(1548)T-86#) tBusinessFields.tcFcFieldName = "AgeingOffset":U tBusinessFields.tcDataType = "i":U tBusinessFields.tcControlType = "NumericInt":U tBusinessFields.tcDisplayFormat = ">9":U tBusinessFields.tcFcFieldType = "F":U. end. if can-do("CreditorCIREC,CreditorAccountsSummary,CreditorAccountMovements,CreditorAccountsHistory,CreditorOpenItemsDetail,CreditorOpenItems,CreditorPrepayments,CreditorAgeingAnalysisCurrent,CreditorAACGroup,CreditorAgeingABackwards,CreditorAABGroup,CreditorMasterCard,CreditorList,CInvoiceRegister,":U, icReference) then do: if icReference <> "CInvoiceRegister":U then do: create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-20'Business Relation':30(1549)t-20#) tBusinessFields.tcFcDescription = trim(#T-21'Business Relation':100(1550)t-21#) tBusinessFields.tcFcFieldName = "BRCode_RANGE":U tBusinessFields.tcDataType = "c":U tBusinessFields.tcControlType = "TextBox":U tBusinessFields.tcDisplayFormat = "x(20)":U tBusinessFields.tcFcFieldType = "F":U tBusinessFields.tcLookupQuery = "BBusinessRelationSAO.SelectBusinessRelation":U tBusinessFields.tcLookupReturnField = "tqSelectBusinessRelation.tcBusinessRelationCode":U tBusinessFields.tcLookupFilterField = "tBusinessRelation.BusinessRelationCode":U. end. create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-87'Supplier Code':30(1553)T-87#) tBusinessFields.tcFcDescription = trim(#T-88'From - To Supplier Code':100(1554)T-88#) tBusinessFields.tcFcFieldName = "CreditorCode_RANGE":U tBusinessFields.tcDataType = "c":U tBusinessFields.tcControlType = "TextBox":U tBusinessFields.tcDisplayFormat = "x(20)":U tBusinessFields.tcFcFieldType = "F":U tBusinessFields.tcLookupQuery = "BCreditorSAO.SelectCreditor":U tBusinessFields.tcLookupReturnField = "tqSelectCreditor.tcCreditorCode":U tBusinessFields.tcLookupFilterField = "tCreditor.CreditorCode":U. if icReference <> "CreditorOpenItemsDetail":U and icReference <> "CInvoiceRegister":U then do: create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-22'Business Relations':30(1551)t-22#) tBusinessFields.tcFcDescription = trim(#T-23'Business Relations':100(1552)t-23#) tBusinessFields.tcFcFieldName = "BRCode_CANDO":U tBusinessFields.tcDataType = "c":U tBusinessFields.tcControlType = "TextBox":U tBusinessFields.tcDisplayFormat = "x(20)":U tBusinessFields.tcFcFieldType = "F":U tBusinessFields.tcLookupQuery = "BBusinessRelationSAO.SelectBusinessRelation":U tBusinessFields.tcLookupReturnField = "tqSelectBusinessRelation.tcBusinessRelationCode":U tBusinessFields.tcLookupFilterField = "tBusinessRelation.BusinessRelationCode":U. create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-26'Supplier Codes':30(941)T-26#) tBusinessFields.tcFcDescription = trim(#T-27'Supplier Codes':100(942)T-27#) tBusinessFields.tcFcFieldName = "CreditorCode_CANDO":U tBusinessFields.tcDataType = "c":U tBusinessFields.tcControlType = "TextBox":U tBusinessFields.tcDisplayFormat = "x(20)":U tBusinessFields.tcFcFieldType = "F":U tBusinessFields.tcLookupQuery = "BCreditorSAO.SelectCreditor":U tBusinessFields.tcLookupReturnField = "tqSelectCreditor.tcCreditorCode":U tBusinessFields.tcLookupFilterField = "tCreditor.CreditorCode":U. end. end. if can-do("CreditorAccountsSummary":U, icReference) then do: create tBusinessFields. assign tBusinessFields.tcSideLabel = trim (#T-190'Output Format':20(55952)T-190#) tBusinessFields.tcFcDescription = trim (#T-348'Output Format':20(55952)T-348#) tBusinessFields.tcValueList = trim (#T-32'Activity':20(68051)T-32#) + "-" + {&CREDITORBALANCE-BALANCE-TR} + chr (2) + "ACTIVITY-" + {&CREDITORBALANCE-BALANCE} + CHR (2) + trim (#T-957'Activity':20(68051)T-957#) + chr (2) + "ACTIVITY":U + CHR (2) + {&CREDITORBALANCE-BALANCE-TR} + chr(2) + {&CREDITORBALANCE-BALANCE} + chr(2) + {&CREDITORBALANCES} tBusinessFields.tcFcFieldName = "CreditorBalance":U tBusinessFields.tcDataType = "c":U tBusinessFields.tcControlType = "ComboBox":U tBusinessFields.tcDisplayFormat = "x(20)":U tBusinessFields.tcFcFieldType = "F":U. end. else if can-do("CreditorAccountsHistory,CreditorAccountsSummary,CreditorAgeingAnalysisCurrent,CreditorAACGroup,CreditorAgeingABackwards,CreditorAABGroup":U, icReference) then do: create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-28'Supplier Balance':30(1555)T-28#) tBusinessFields.tcFcDescription = trim(#T-29'Supplier Balance':100(1556)T-29#) tBusinessFields.tcValueList = {&CREDITORBALANCES} tBusinessFields.tcFcFieldName = "CreditorBalance":U tBusinessFields.tcDataType = "c":U tBusinessFields.tcControlType = "ComboBox":U tBusinessFields.tcDisplayFormat = "x(20)":U tBusinessFields.tcFcFieldType = "F":U. end. if can-do("CreditorOpenItemsDetail,CreditorPrepayments,CreditorAgeingAnalysisCurrent,CreditorAACGroup,CreditorAgeingABackwards,CreditorAABGroup":U, icReference) then do: create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-34'Sub-Account Code':30(47)T-34#) tBusinessFields.tcFcDescription = trim(#T-35'From-To Sub-Account Code':100(1561)T-35#) tBusinessFields.tcFcFieldName = "DivisionCode_RANGE":U tBusinessFields.tcDataType = "c":U tBusinessFields.tcControlType = "TextBox":U tBusinessFields.tcDisplayFormat = "x(20)":U tBusinessFields.tcFcFieldType = "F":U tBusinessFields.tcLookupQuery = "BDivisionSAO.SelectDivision":U tBusinessFields.tcLookupReturnField = "tqSelectDivision.tcDivisionCode":U tBusinessFields.tcLookupFilterField = "tDivision.DivisionCode":U. if icReference <> "CreditorOpenItemsDetail":U then do: create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-36'Sub-Acct Codes':30(45)T-36#) tBusinessFields.tcFcDescription = trim(#T-37'Sub-Acct Codes':100(46)T-37#) tBusinessFields.tcFcFieldName = "DivisionCode_CANDO":U tBusinessFields.tcDataType = "c":U tBusinessFields.tcControlType = "TextBox":U tBusinessFields.tcDisplayFormat = "x(20)":U tBusinessFields.tcFcFieldType = "F":U tBusinessFields.tcLookupQuery = "BDivisionSAO.SelectDivision":U tBusinessFields.tcLookupReturnField = "tqSelectDivision.tcDivisionCode":U tBusinessFields.tcLookupFilterField = "tDivision.DivisionCode":U. end. end. if can-do("CreditorAgeingAnalysisCurrent,CreditorAACGroup,CreditorAgeingABackwards,CreditorAABGroup":U, icReference) then do: create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-38'Project Code':30(65)t-38#) tBusinessFields.tcFcDescription = trim(#T-39'From-To Project Code':100(66)T-39#) tBusinessFields.tcFcFieldName = "ProjectCode_RANGE":U tBusinessFields.tcDataType = "c":U tBusinessFields.tcControlType = "TextBox":U tBusinessFields.tcDisplayFormat = "x(20)":U tBusinessFields.tcFcFieldType = "F":U tBusinessFields.tcLookupQuery = "BProjectSAO.SelectProject":U tBusinessFields.tcLookupReturnField = "tqSelectProject.tcProjectCode":U tBusinessFields.tcLookupFilterField = "tProjects.ProjectCode":U. create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-40'Project Codes':30(67)t-40#) tBusinessFields.tcFcDescription = trim(#T-41'Project Codes':100(68)t-41#) tBusinessFields.tcFcFieldName = "ProjectCode_CANDO":U tBusinessFields.tcDataType = "c":U tBusinessFields.tcControlType = "TextBox":U tBusinessFields.tcDisplayFormat = "x(20)":U tBusinessFields.tcFcFieldType = "F":U tBusinessFields.tcLookupQuery = "BProjectSAO.SelectProject":U tBusinessFields.tcLookupReturnField = "tqSelectProject.tcProjectCode":U tBusinessFields.tcLookupFilterField = "tProjects.ProjectCode":U. end. if can-do("CreditorAgeingAnalysisCurrent,CreditorAgeingABackwards,CreditorAACGroup,CreditorAABGroup":U, icReference) then do: create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-77'Cost Center Code':30(43)T-77#) tBusinessFields.tcFcDescription = trim(#T-78'From-To Cost Center Code':100(65008)T-78#) tBusinessFields.tcFcFieldName = "CostCentreCode_RANGE":U tBusinessFields.tcDataType = "c":U tBusinessFields.tcControlType = "TextBox":U tBusinessFields.tcDisplayFormat = "x(20)":U tBusinessFields.tcFcFieldType = "F":U tBusinessFields.tcLookupQuery = "BCostCentreSAO.SelectCostCentre":U tBusinessFields.tcLookupReturnField = "tqSelectCostCentre.tcCostCentreCode":U tBusinessFields.tcLookupFilterField = "tCostCentre.CostCentreCode":U. create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-79'Cost Center Codes':30(41)T-79#) tBusinessFields.tcFcDescription = trim(#T-80'Cost Center Codes':100(42)T-80#) tBusinessFields.tcFcFieldName = "CostCentreCode_CANDO":U tBusinessFields.tcDataType = "c":U tBusinessFields.tcControlType = "TextBox":U tBusinessFields.tcDisplayFormat = "x(20)":U tBusinessFields.tcFcFieldType = "F":U tBusinessFields.tcLookupQuery = "BCostCentreSAO.SelectCostCentre":U tBusinessFields.tcLookupReturnField = "tqSelectCostCentre.tcCostCentreCode":U tBusinessFields.tcLookupFilterField = "tCostCentre.CostCentreCode":U. end. if can-do("CreditorPrepayments,CreditorAACGroup":U, icReference) then do: create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-42'Control GL Profile':30(1562)t-42#) tBusinessFields.tcFcDescription = trim(#T-43'From-To Control GL Profile':100(1563)T-43#) tBusinessFields.tcFcFieldName = "CContrGLProfileCode_RANGE":U tBusinessFields.tcDataType = "c":U tBusinessFields.tcControlType = "TextBox":U tBusinessFields.tcDisplayFormat = "x(20)":U tBusinessFields.tcFcFieldType = "F":U tBusinessFields.tcLookupQuery = "BProfileSAO.SelectProfile":U tBusinessFields.tcLookupReturnField = "tqSelectProfile.tcProfileCode":U tBusinessFields.tcLookupFilterField = "tProfile.ProfileCode":U. create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-44'Control GL Profile':30(1564)T-44#) tBusinessFields.tcFcDescription = trim(#T-45'Control GL Profile':100(1565)T-45#) tBusinessFields.tcFcFieldName = "CContrGLProfileCode_CANDO":U tBusinessFields.tcDataType = "c":U tBusinessFields.tcControlType = "TextBox":U tBusinessFields.tcDisplayFormat = "x(20)":U tBusinessFields.tcFcFieldType = "F":U tBusinessFields.tcLookupQuery = "BProfileSAO.SelectProfile":U tBusinessFields.tcLookupReturnField = "tqSelectProfile.tcProfileCode":U tBusinessFields.tcLookupFilterField = "tProfile.ProfileCode":U. end. if can-do("CreditorPrepayments,CreditorAgeingAnalysisCurrent,CreditorAACGroup,CreditorAgeingABackwards,CreditorAABGroup,CreditorAccountMovements,CreditorAccountsSummary":U, icReference) then do: create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-46'Control GL Account':30(1566)T-46#) tBusinessFields.tcFcDescription = trim(#T-47'From-To Control GL':100(1567)T-47#) tBusinessFields.tcFcFieldName = "CContrGLCode_RANGE":U tBusinessFields.tcDataType = "c":U tBusinessFields.tcControlType = "TextBox":U tBusinessFields.tcDisplayFormat = "x(20)":U tBusinessFields.tcFcFieldType = "F":U tBusinessFields.tcLookupQuery = "BGLSAO.SelectGL":U tBusinessFields.tcLookupReturnField = "tqSelectGL.tcGLCode":U tBusinessFields.tcLookupFilterField = "tGL.GLCode":U. create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-48'Control GL Account':30(1566)T-48#) tBusinessFields.tcFcDescription = trim(#T-49'Control GL Account':30(1566)T-49#) tBusinessFields.tcFcFieldName = "CContrGLCode_CANDO":U tBusinessFields.tcDataType = "c":U tBusinessFields.tcControlType = "TextBox":U tBusinessFields.tcDisplayFormat = "x(20)":U tBusinessFields.tcFcFieldType = "F":U tBusinessFields.tcLookupQuery = "BGLSAO.SelectGL":U tBusinessFields.tcLookupReturnField = "tqSelectGL.tcGLCode":U tBusinessFields.tcLookupFilterField = "tGL.GLCode":U. end. if can-do("CreditorPrepayments,CreditorAgeingAnalysisCurrent,CreditorAACGroup,CreditorAgeingABackwards,CreditorAABGroup":U, icReference) then do: create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-50'Daybook Code':30(1025)T-50#) tBusinessFields.tcFcDescription = trim(#T-51'From-To Daybook Code':100(1570)T-51#) tBusinessFields.tcFcFieldName = "JournalCode_RANGE":U tBusinessFields.tcDataType = "c":U tBusinessFields.tcControlType = "TextBox":U tBusinessFields.tcDisplayFormat = "x(20)":U tBusinessFields.tcFcFieldType = "F":U tBusinessFields.tcLookupQuery = "BJournalSAO.SelectJournal":U tBusinessFields.tcLookupReturnField = "tqSelectJournal.tcJournalCode":U tBusinessFields.tcLookupFilterField = "tJournal.JournalCode":U. create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-52'Daybook Codes':30(1571)T-52#) tBusinessFields.tcFcDescription = trim(#T-53'Daybook Codes':100(1572)T-53#) tBusinessFields.tcFcFieldName = "JournalCode_CANDO":U tBusinessFields.tcDataType = "c":U tBusinessFields.tcControlType = "TextBox":U tBusinessFields.tcDisplayFormat = "x(20)":U tBusinessFields.tcFcFieldType = "F":U tBusinessFields.tcLookupQuery = "BJournalSAO.SelectJournal":U tBusinessFields.tcLookupReturnField = "tqSelectJournal.tcJournalCode":U tBusinessFields.tcLookupFilterField = "tJournal.JournalCode":U. end. if can-do("CreditorAccountMovements,CreditorOpenItems,CreditorOpenItemsDetail,CreditorPrepayments,CreditorAgeingAnalysisCurrent,CreditorAACGroup,CreditorAgeingABackwards,CreditorAABGroup":U, icReference) then do: /*create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-54'Reporting Currency':30(1573)t-54#) tBusinessFields.tcFcDescription = trim(#T-55'Reporting Currency':100(1574)t-55#) tBusinessFields.tcValueList = {&CURRENCYTYPES} tBusinessFields.tcFcFieldName = "ReportingCurrency":U tBusinessFields.tcDataType = "c":U tBusinessFields.tcControlType = "ComboBox":U tBusinessFields.tcDisplayFormat = "x(20)":U tBusinessFields.tcFcFieldType = "F":U.*/ create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-91'Reporting Currency':30(1573)T-91#) tBusinessFields.tcFcDescription = trim(#T-92'Reporting Currency':30(1573)T-92#) tBusinessFields.tcValueList = {&CURRENCYTYPE-LC-TR} + chr(2) + {&CURRENCYTYPE-LC} + chr(2) + {&CURRENCYTYPE-CC-TR} + chr(2) + {&CURRENCYTYPE-CC} tBusinessFields.tcFcFieldName = "ReportingCurrency":U tBusinessFields.tcDataType = "c":U tBusinessFields.tcControlType = "ComboBoxM":U tBusinessFields.tcDisplayFormat = "x(20)":U tBusinessFields.tcFcFieldType = "F":U. end. if can-do("CreditorPrepayments,CreditorAgeingAnalysisCurrent,CreditorAACGroup,CreditorAgeingABackwards,CreditorAABGroup,CreditorMasterCard,CreditorList,CreditorWithholdingTax,CreditorWHTCertificate,CreditorWithholdingTaxDue":U, icReference) then do: create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-56'Currency Code':30(1575)t-56#) tBusinessFields.tcFcDescription = trim(#T-57'Currency Code':100(771)t-57#) tBusinessFields.tcFcFieldName = "CurrencyCode":U tBusinessFields.tcDataType = "c":U tBusinessFields.tcControlType = "TextBox":U tBusinessFields.tcDisplayFormat = "x(3)":U tBusinessFields.tcFcFieldType = "F":U tBusinessFields.tcLookupQuery = "BCurrencySAO.SelectCurrency":U tBusinessFields.tcLookupReturnField = "tqSelectCurrency.tcCurrencyCode":U tBusinessFields.tcLookupFilterField = "tCurrency.CurrencyCode":U. end. if can-do("CreditorAgeingAnalysisCurrent,CreditorAACGroup,CreditorAgeingABackwards,CreditorAABGroup":U, icReference) then do: create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-58'Invoices Within Terms':30(1576)t-58#) tBusinessFields.tcFcDescription = trim(#T-59'Invoices Within Terms':100(1577)t-59#) tBusinessFields.tcFcFieldName = "InvoicesWithinTerms":U tBusinessFields.tcDataType = "l":U tBusinessFields.tcControlType = "Bool":U tBusinessFields.tcDisplayFormat = "yes/no":U tBusinessFields.tcFcFieldType = "F":U. create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-89'Supplier Totals Only':30(65075)T-89#) tBusinessFields.tcFcDescription = trim(#T-90'Supplier Totals Only':30(65075)T-90#) tBusinessFields.tcFcFieldName = "CreditorTotalsOnly":U tBusinessFields.tcDataType = "l":U tBusinessFields.tcControlType = "Bool":U tBusinessFields.tcDisplayFormat = "yes/no":U tBusinessFields.tcFcFieldType = "F":U. end. if can-do("CreditorCIREC,CreditorOpenItemsDetail,CreditorAccountMovements":U, icReference) then do: create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-64'Supplier per Page':30(1582)T-64#) tBusinessFields.tcFcDescription = trim(#T-65'Supplier per Page':100(1583)T-65#) tBusinessFields.tcFcFieldName = "CreditorPerPage":U tBusinessFields.tcDataType = "l":U tBusinessFields.tcControlType = "Bool":U tBusinessFields.tcDisplayFormat = "yes/no":U tBusinessFields.tcFcFieldType = "F":U. end. if can-do("CreditorAccountMovements":U, icReference) then do: create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-68'Sorting':30(1586)t-68#) tBusinessFields.tcFcDescription = trim(#T-69'Sorting':100(1587)t-69#) tBusinessFields.tcValueList = {&CREDITORSORTS} tBusinessFields.tcFcFieldName = "ChronologicalLogical":U tBusinessFields.tcDataType = "c":U tBusinessFields.tcControlType = "ComboBox":U tBusinessFields.tcDisplayFormat = "x(20)":U tBusinessFields.tcFcFieldType = "F":U. end. if can-do("CreditorAccountsHistory":U, icReference) then do: create tBusinessFields. assign tBusinessFields.tcSideLabel = trim(#T-70'Reporting Currency':30(1573)t-70#) tBusinessFields.tcFcDescription = trim(#T-71'Reporting Currency':100(1574)t-71#) tBusinessFields.tcValueList = {&CURRENCYTYPE-LC-TR} + chr(2) + {&CURRENCYTYPE-LC} + chr(2) + {&CURRENCYTYPE-CC-TR} + chr(2) + {&CURRENCYTYPE-CC} tBusinessFields.tcFcFieldName = "ReportingCurrency":U tBusinessFields.tcDataType = "c":U tBusinessFields.tcControlType = "ComboBox":U tBusinessFields.tcDisplayFormat = "x(20)":U tBusinessFields.tcFcFieldType = "F":U. end. <M-1 run GetBusinessFields2 (input icReference (icReportName), output viFcReturnSuper (oiReturnStatus)) in BCreditorReport>
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 = "BCreditorReport". create ttContext. assign ttContext.propertyName = "methodName" ttContext.propertyValue = "GetBusinessFields". 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 = "". /* 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.