• Register

Journal Entries

This API is consumed by ServiceNow to post in SAP distinct journal entries present in a ticket.

#### Request URI
#### Request Structure
API field Type Mandatory Description
companyCode String Y Sap Company Code
test String Y It is a flag, indicates that, when the value is 'X', the function will be executed in test mode
JEData
JEID String Y Numeric progressive JE id in a single ticket
rowCount String Y Numeric progressive item for a single JE
ledger String N Special ledger code
documentType String Y Document Type
fiscalPeriod String Y Sap accounting period
documentDate String Y Sap document date, format YYYYMMDD
transactionCurrency String Y Sap currency
postingDate String Y Sap posting date, format YYYYMMDD
exchangeRate Decimal N Exchange rate
currencyTranslationDate String N Exchange rate date, format YYYYMMDD
referenceDocumentNumber String N Reference number for the JE
documentHeaderText String N Header text of JE
TCode String N Sap transaction code used for posting, if null 'FB01' will be used
plannedReversalDate String N Reverse date, format YYYYMMDD
reversalReason String N Reverse reason, values can be '01', '02'
accountType String N Item accounting category; values can be 'S', 'K', 'D', 'T'. In case of null values 'S' will be used
GLAccount String Y Item amount code
amountDocumentCurrency Decimal Y Item amount (document currency)
amountinCompanyCodeCurrency Decimal N Item amount (company code internal currency)
valueDate String N Item value date, format YYYYMMDD
assignmentNumber String N Item assignment number
tradingPartner String N Item trading partner
bewar String N Item transaction type
costCenter String N Item cost center code
partnerBusinessArea String N Item trading partner business area
orderNumber String N Item internal order code
profitCenter String N Item profit center code
businessPartnerReferenceKey String N Item reference 1
businessPartnerReferenceKey2ndField String N Item reference 2
referenceKeyForLineItem String N Item reference 3
itemText String N Item text
taxCode String N Item tax code
paymentMethodSupplement String N Item payment method 2
paymentMethod String N Item payment method
paymentTerm String N Item payment term
customerGroup1 String N Item COPA customer group 1
customerGroup2 String N Item COPA customer group 2
customerGroup3 String N Item COPA customer group 3
customerGroup4 String N Item COPA customer group 4
brand String N Item COPA brand
salesGroup String N Item COPA sales group
nationalKeyCustomer String N Item COPA national key customer
productNumber String N Item COPA product number
WTCode String N Item withholding tax code
WBSElement String N Item WBE code
segmentForSegmentalReporting String N Item segmental reporting
materialNumber String N Item material code
plant String N Item plant code
baseLineDateForDueDateCalculation String N Item baseline date for due date computation, format YYYYMMDD
localCurrencyBaseAmount Decimal N Item base amount
taxJurisdiction String N Tax jurisdiction code
quantity Decimal N Item quantity
baseUnitofMeasure String N Item unit of measure
specialGLIndicator String N Item special ledger indicator
salesOrderNumber String N Item sales document
salesOrderItem String N Item sales document position
purchasingDocument String N Item PO document
itemNumberOfPurchasingDocument String N Item PO document position
houseBank String N Item house bank
houseBankAccount String N Item house bank account id
serviceNowTicketNumber String N Header reference 1
serviceNowReference String N Header reference 2
personnelNumber String N Item personal number
division String N Item COPA division
country String N Item COPA country code
salesOrganization String N Item COPA sales organization
distributionChannel String N Item COPA distribution channel
salesOffice String N Item COPA sales office
salesDistrict String N Item COPA sales district
customerGroup String N Item COPA customer group
customer String N Item COPA customer
billToParty String N Item COPA bill to party
shipToParty String N Item COPA ship to party
financialTransactionType String N Item transaction type
#### Request Example #### Response Structure
API field Type Description
SAPMessage
type String Possible value are S[uccess], I[nformation], W[arning], E[rror], A[bnormal end]
id String Sap Message class
number String Sap message number
message String Sap message text
logNo String JE id related to message
logMsgNo String Other values related to message
messageV1 String Other values related to message
messageV2 String Other values related to message
messageV3 String Other values related to message
messageV4 String Other values related to message
parameter String Other values related to message
row String Other values related to message
field String Other values related to message
system String Other values related to message
SAPOutcome
JEID String Identifier of JE managed by Sap
companyCode String Company code of the posted document
fiscalYear String Fiscal year of the posted document
documentNumber String Number of posted document
postingDate String Posting date of posted document
firstError String First posting error related to JE
errorNumber String Number of posting error related to JE
reverseCompanyCode String Company code of the reversal document
reverseFiscalYear String Fiscal year of the reversal document
reverseDocumentNumber String Number of reversal document
reversePostingDate String Posting date of reversal document
reverseFirstError String First posting error related to reversal
reverseErrorNumber String Number of posting error related reversal
CommonResponse
Status String Response status
Class String Response class
Code String Response code
Message String Response message
#### Response Example

Docs Navigation