Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Document1067402.1
PowerViewisOn
Dashboard
Knowledge
ServiceRequests
SupportIdentifier:19334437(AirLiquide...
Patches&Updates
GiveFeedback...
YouhavebeendirectedtothisdocumentbasedonanIDmatch.
SANDEEP(Available)
(0)
ContactUs
Help
1067402.1
Alternatively,clickheretosearchonthisphrase.
AutoInvoiceSetupforRelease12:ACaseStudyUsingaSimpleScript(DocID1067402.1)
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
Hide
ToBottom
1/35
8/5/2016
Document1067402.1
InthisDocument
Wasthisdocumenthelpful?
Yes
No
Abstract
History
Details
1.DefineCommonAccountsReceivableConfiguration
2.ManageReceivablesDescriptiveFlexfields
3.ManageReceivablesProfileOptions
4.ManageTransactionTypes
5.ManageAutoAccountingRules
6.ManageAutoInvoiceLineOrderingRules
7.ManageAutoInvoiceGroupingRules
8.ManageReceivablesPaymentTerms
9.ManageTransactionSources
10.ManageReceiptClassesandMethods
11.ManageReceivablesCustomerProfileClasses
12.CreateCustomer
13.ManageReceivablesSystemOptions
14.ManageReceivablesAccountingPeriods
15.ManageRemitToAddress
16.PopulateInterfacetable
a.InsertstatementforanINVOICE
b.InsertstatementforanAPPLIEDCREDITMEMO
c.InsertstatementforanONACCOUNTCREDITMEMO
d.InsertstatementforanINVOICEandCREDITMEMOWITHMANUALTAXLINES
e.InsertstatementforanINVOICEWITHRULES
f.InsertstatementforanINVOICEWITHGLDISTRIBUTIONS
g.InsertstatementforanINVOICEWITHSALESCREDITS
h.InsertstatementforanINVOICEWITHHEADERLEVELFREIGHT
i.InsertstatementforanINVOICEWITHFREIGHTASANINVENTORYITEM
17.TestingAutoInvoice:AutoInvoiceImportProcess
18.PurgingtheInterfaceTableAfterImport
19.SchedulingAutoInvoice
20.ReviewInvoiceCreatedbyAutoInvoice
21.Troubleshooting&Tips
22.StillHaveQuestions?
DocumentDetails
Type:
Status:
LastMajor
Update:
Last
Update:
Language:
English
RelatedProducts
OracleReceivables
OracleReceivables
InformationCenters
InformationCenter:Overview
oftheReceiptsWorkbenchin
OracleReceivables(AR)11.5
andlater[1362278.2]
InformationCenter:Month
EndProcessinginOracle
Receivables(AR)[1370198.2]
InformationCenter:Overview
ofAutoInvoiceinOracle
Receivables(AR)11.5and
later[1137414.2]
InformationCenter:Overview
oftheTransactionsWorkbench
inOracleReceivables(AR)
11.5andlater[1320546.2]
InformationCenter:R12
Critical,Rollupand
RecommendedPatchesfor
OracleReceivables(AR)
[1433375.2]
ShowMore
DocumentReferences
TroubleshootingAutoInvoice
forOracleReceivables
Release11.5Through12
[1075757.1]
SampleScripttoImport
InvoicewithRulesusing
Autoinvoice[820254.1]
APPLIESTO:
ABSTRACT
OracleReceivables(AR):AutoInvoiceInformationCenter>Note1067402.1
TheobjectiveofthisdocumentistoprovidestepbystepinstructionsonthesetupsrequiredinReceivables(AR)inorderforyou
tocreatesimpletransactions.UsingaSQLscripttoinsertdataintotheinterfacetable,AutoInvoiceisthenruntocreatethe
invoiceinthecoreARtables.ReviewthesectionPopulateInterfaceTablebelowforthevariousexamplescriptsprovided.
Thisdocumentliststherequiredsetupsinpropersequence,providesasamplescript,detailsonhowtorunandtestyourscript,
andhowtoverifythetransactionswerecreatedinReceivables.
Pleaseprovideyourinput,ideas,gapsandsuggestionssowecanfurtherenhancethisnotebypostingtothecommunitythread
forLearnWhatSetupsAreRequiredToSetupReceivablesToUseASimpleScriptToImportTransactionsViaAutoInvoice
Release12.
WHITEPAPER
PUBLISHED
10Apr2014
02Mar2016
References
OracleReceivablesVersion12.0.0andlater
Informationinthisdocumentappliestoanyplatform.
Executable:RAXMTRAutoinvoiceMasterProgram
Executable:RAXTRXAutoinvoiceImportProgram
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
RecentlyViewed
AutoInvoiceSetupfor
Release12:ACaseStudy
UsingaSimpleScript
[1067402.1]
ListingofAutoInvoiceError
Messagesand
TroubleshootingTipsto
ResolveeachError
[1138254.1]
TroubleshootingAutoInvoice
forOracleReceivables
Release11.5Through12
[1075757.1]
TroubleshootingAutoInvoice
ReceiptMethod,Payment
Method,CreditCardand
BankAccountErrors
[1098583.1]
AutoInvoiceError:Whenthe
receiptmethodisoftype
Automatic,youmusteither
supplyavalidbankaccount
orensurethataprimary
bankaccountforthe
currencycodeofthe
transactionhasbeenset
[1072672.1]
2/35
8/5/2016
Document1067402.1
[1072672.1]
HISTORY
ShowMore
Authors:VictoriaCrisostomo,KiranKunderu&FrankHalvey
CreationDate:22Mar2010
UpdateDate:13Oct2010
Checkedforrelevance23Jan2013
DETAILS
1.DefineCommonAccountsReceivableConfiguration
CommonAccountsconfigurationpertainstotheAccountingFlexfieldsetup.ThisisdoneintheGeneralLedger(GL)application.
Theassumptionofthiscasestudyisthatyouhavealreadydefinedyouraccountingflexfieldsegments,andcancreateand
completemanualtransactionsusingtheTransactionWorkbench.
IfyouneedmoreinformationonhowtosetupyourAccountingFlexfield,refertotheOracleGeneralLedgerImplementation
Guide,page133.
2.ManageReceivablesDescriptiveFlexfields
OracleReceivablesusesthetransactionflexfieldstouniquelyidentifyeachtransactionlinethatisimportedthoughAutoInvoice.
AutoInvoiceiscapableofusinginformationfromfourtypesoftransactionflexfields:
LineTransactionFlexfield
LinktoTransactionFlexfield
ReferenceTransactionFlexfield
InvoiceTransactionFlexfield
MoredetailsoneachofthesetypesisavailableinNote1068344.1,SettingUpReceivablesDescriptiveFlexfields.
Forthiscasestudy,youneedtosetupaLineTransactionFlexfieldasshownbelow.
Clickonthesegmentsbuttontocreatethefollowingrows.ThevaluesinthefieldColumnarenotshowncompletely,theyare
INTERFACE_LINE_ATTRIBUTE1andINTERFACE_LINE_ATTRIBUTE2respectively.
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
3/35
8/5/2016
Document1067402.1
3.ManageReceivablesProfileOptions
SeveralProfileoptionsimpactthebehaviorofAutoInvoice.PleaserefertoNote1069294.1,SettingUpSystemProfileOptionsFor
AutoInvoicefordetails.
4.ManageTransactionTypes
Thedatayouinsertintotheinterfacetablewillbeassociatedtoaparticulartransactiontype.
CreateaninvoicetransactiontypewhichwillbeusedwhenweinsertdataintotheInterfacetable.
Responsibility:ReceivablesManager
Navigation:Setup>Transactions>TransactionTypes
Note:IfyoualsowanttorunatestcasetoimportaCreditmemo,createaCreditMemotransactiontypeasshownbelow,
otherwiseyoudon'tneedtocreateaCreditMemotransactiontype.
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
4/35
8/5/2016
Document1067402.1
Toseemoredetailsonhowtocreatenewtransactiontypes,pleaserefertoNote1067797.1,SettingUpTransactionTypesIn
Receivables.
PleasenotethatifyouwanttousetheAutoAccountingfunctionality(nexttask),andsomeofthesegmentsoftheAccountare
sourcedfromthetransactiontype,thenyoumustdefineGLaccountsintheAccountstab.
5.ManageAutoAccountingRules
AutoAccountingenablesyoutocreatedefaultaccountsforrevenue,receivable,freight,tax,unearnedrevenue,unbilled
receivable,latecharges,billsreceivablesaccounts,andAutoInvoiceclearing(suspense)accounts.
Inthefollowingscreen,thesourceforthethirdsegmentis'TransactionTypes'.Whenthedefaultaccountingisgeneratedforthe
Receivableaccount,theaccountingflexfieldwillpullthethirdsegmentfromtheReceivablesaccountdefinedforthetransaction
type.Ifwecrossreferencethistothescreenshotfromtheprevioustask,thevalueforthethirdsegmentis1210,comingfrom
0100012100000000definedforReceivablesaccount.
Responsibility:ReceivablesManager
Navigation:Setup>Transactions>AutoAccounting
DuringAutoInvoice,youareinterfacingdatawiththeintentionofcreatingcompletetransactionsautomatically.Hence,youare
advisedtocompletethesetupforAutoAccountingsothatAutoInvoicecandeterminetheGLaccountstouseforyourinterfaced
transactions,andprocessthemcompletelywithouterrorsandwithouttheneedformanualintervention.
ToseehowtomanageandsetupAutoAccounting,pleaserefertoNote1069052.1,SettingUpAutoAccountingRulesIn
Receivables.
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
5/35
8/5/2016
Receivables.
Document1067402.1
6.ManageAutoInvoiceLineOrderingRules
Ifyouwantthedatainyourinterfacetabletobecreatedinaparticularsortorder,defineLineOrderingRules.
ThefollowingscreenshotshowsaLineOrderingRule,thatreferencesthesamefieldsweusedintheLinetransactionflexfield
definedinTask2above.
Responsibility:ReceivablesManager
Navigation:Setup>Transactions>AutoInvoice>LineOrderingRules
ToseehowtomanageandsetupAutoInvoiceLineOrderingRules,pleaserefertoNote1067965.1,HowtoManageLine
OrderingWhenUsingAutoinvoiceToImport.
7.ManageAutoInvoiceGroupingRules
Groupingrulesspecifyattributesthatmustbeidenticalforlinestobecreatedasonetransaction.Groupingrulesalwaysinclude
themandatoryattributes,andtothisisaddedoptionalattributesthatyoudefineinyourgroupingrule.
ThefollowingscreenshotshowsaGroupingRulethatusestheLineOrderingRuledefinedinTask6above.
Responsibility:ReceivablesManager
Navigation:Setup>Transactions>AutoInvoice>GroupingRules
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
6/35
8/5/2016
Document1067402.1
ToseehowtomanageandsetupAutoInvoiceGroupingRules,pleaserefertoNote1067993.1,HowToUseGroupingRulesWith
AutoInvoice.
8.ManageReceivablesPaymentTerms
Paymenttermsletyoudefinetheduedatetobecalculatedfortransactions.Whenyouinterfacedata,itismandatorytoprovide
eitheraTERM_IDoraTERM_NAMEintheRA_INTERFACE_LINES_ALLtable(dependingonhowyouhavesetupyourtransaction
batchsource).Althoughthereisadefaultingmechanismforpaymenttermwhenenteringtransactionsmanuallyintheform,this
isdefaultingisnotavailableduringAutoInvoice,becauseitwouldsignificantlyslowdowntheperformanceoftheprocess.
ThefollowingscreenshotshowsaPaymenttermwewilluseinourinterfacedata.
Responsibility:ReceivablesManager
Navigation:Setup>Transactions>PaymentTerms
ToseehowtomanageandsetupPaymentTerms,pleaserefertoNote1069049.1,HowToDefineTransactionPaymentTerms
InReceivables.
9.ManageTransactionSources
Batchsourcesdefinedefaultinformationsuchastransactiontypeandautomaticnumbering.Therearetwotypesavailable:
ManualandImported.AutoInvoicerequiresabatchoftypeImported.
ThefollowingscreenshotshowsaTransactionsourcewewillusetointerfacedataviaAutoInvoice.Highlightedbelowisthe
transactiontypewecreatedearlier,hereweareassociatingittothisImportedBatchSource.
Responsibility:ReceivablesManager
Navigation:Setup>Transactions>Sources
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
7/35
8/5/2016
Document1067402.1
FollowingscreenshotsshowthesubtabfortheTransactionSourcesform:
TheAutoInvoiceOptionstabhighlightstheGroupingrulecreatedearlier.Thesetupindicatesthisbatchwillgroupdataas
specifiedinthisgroupingrule.
Thefollowingscreenshotsshowtherestofthesubtabsofthisform,includingCustomer,Accounting,Salescreditandother
information.YouneedtodefinewhetherthedatayouwillinterfaceprovidestheValueortheIDsothatAutoInvoicecanvalidate
thedata.
CustomerInformationtab:
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
8/35
8/5/2016
Document1067402.1
AccountingInformationtab:
OtherInformationtab:
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
9/35
8/5/2016
Document1067402.1
SalesCreditValidationtab:
ToseehowtomanageandsetupTransactionSources,pleaserefertoNote1068008.1,CreatingTransactionSourcesUsedFor
AutoInvoice.
10.ManageReceiptClassesandMethods
TodefaultapaymentmethodtothetransactionsyouinterfaceviaAutoInvoice,youneedtodefineaReceiptClassandMethod
foryourtransactiontouse.
Responsibility:ReceivablesManager
Navigation:Setup>Receipts>ReceiptClasses
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
10/35
8/5/2016
Document1067402.1
ToseehowtomanageandsetupReceiptClassesandMethods,pleaserefertoNote1071284.1,SettingUpReceiptClassAnd
MethodForAutoInvoice.
11.ManageReceivablesCustomerProfileClasses
OracleReceivablesprovidesaprofileclassDEFAULT.
Ifnecessary,youcandefinedifferentcustomerprofileclassestocategorizeyourcustomers.YoucanassociateCustomerProfile
classestocustomerrecordsyoucreatelater.Byusingaprofileclassyoudefaultcertainattributes/fieldsintothecustomer
recordstomakecustomermaintenancemoreefficient.
Thefollowingscreenshotdefinesanewcustomerprofileclass,towhichweassociatethePaymentTermfromTask8andthe
groupingrulefromTask7.
Responsibility:ReceivablesManager
Navigation:Customers>ProfileClasses
ToseehowtomanageandsetupCustomerProfileClasses,pleaserefertoNote1071218.1,HowToDefineCustomerProfile
ClassesForAutoInvoice.
12.CreateCustomer
Createcustomerrecordtouseforinterfacedata,atthispointwereferencevarioussetupdatawecreatedearlier.
ThefollowingscreenshotshowsthevarioussubtabsattheACCOUNTprofilelevel.
OntheAccountProfiletab,weassociatetothiscustomerrecordthecustomerprofilecreatedinTask11,thepaymenttermfrom
Task8andtheGroupingRulefromTask7createdearlier.
Responsibility:ReceivablesManager
Navigation:Customers>Customers
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
11/35
8/5/2016
Document1067402.1
Navigation:Customers>Customers
PaymentDetailstab:hereweassociatetothiscustomerrecordtheReceiptmethodcreatedinTask10.
WehavedefinedtheReceiptmethodattheACCOUNTlevelprofile.Ifthiscustomerhasonlyonesite,oralltheSitesofthis
customerwillusethesameReceiptmethod,thereisnoneedtosetupPaymentDetailsattheSiteLevel.
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
12/35
8/5/2016
Document1067402.1
However,iftherewillbemultiplesitesforthisaccount,andeachsitethatusesaReceiptmethoddifferentfromthatsetatthe
ACCOUNTlevel,thenyouwillneedtosetupthePaymentDetailsattheSITElevelasshownbelow.
ToseehowtoCreateCustomerRecords,pleaserefertoNote1069338.1HowToDefineCustomersForAutoInvoice.
13.ManageReceivablesSystemOptions
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
13/35
8/5/2016
Document1067402.1
ThesettingsinSystemOptionsthatimpactAutoInvoiceareintheTransandCustomerstab.Thefollowingscreenshotshows
recommendedsettingsforfieldsinthe'AutoInvoice'Section.AlsohighlightedistheGroupingrulewedefinedearlier.
Logfilemessagelevel=10providesthemostdetaileddebugmessages,andisusefulwhenyouaredebuggingor
troubleshooting.
Responsibility:ReceivablesManager
Navigation:Setup>System>SystemOptions
ToseehowtoManageReceivableSystemOptions,pleaserefertoNote1068052.1,HowToManageReceivablesSystemOptions
ForAutoInvoice.
AdditionalinformationontheTuningSegments,refertotheOracleReceivablesUser'sGuide,page2210.
14.ManageReceivablesAccountingPeriods
Openorcloseperiodsinyouraccountingcalendartocontroltherecordingofaccountinginformationfortheseperiods.Sincethe
objectiveofAutoInvoiceistocreatenewtransactions,thegoalistohavethesetransactionsimpactopenGLperiods.
EnsurethattheGL_DATEvalueyouprovideinthenexttaskiswithinanopenperiod.
Responsibility:ReceivablesManager
Navigation:Control>Accounting>Open/Closeperiods
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
14/35
8/5/2016
Document1067402.1
ToseehowtoManageReceivableAccountingPeriods,pleaserefertoNote1069057.1,HowToManageReceivablesAccounting
Periods.
15.ManageRemitToAddress
DefineaRemitToAddresssothatcustomersknowwheretosendpaymentfortheirinvoices.
Responsibility:ReceivablesManager
Navigation:Setup>Print>RemitToAddress>CreateRemitToAddress
ToseehowtocreateRemittoaddresses,pleaserefertoNote1101666.1,HowtoSetupaRemitToAddressinRelease12
OracleReceivables
16.PopulateInterfacetable
Atthispointwehavecompletedthebareminimumsetuprequiredtoenableustoinsertdataintotheinterfacetableandhaveit
processedbyAutoInvoicetocreateatransactioninthecoreARtables.
Thefollowingsectiongivesyousamplescriptstopopulatethetableforvariousscenarios.
Note:
ForadetaileddiscussionofthefieldsinRA_INTERFACE_LINES_ALL,pleasereviewNote1195997.1,DescriptionandUsage
ofFieldsinRA_INTERFACE_LINESTable.
a.InsertstatementforanINVOICE
Thefollowingscriptwillcreateasimpleinvoice.
INSERTINTOra_interface_lines_all(interface_line_context,interface_line_attribute1,
interface_line_attribute2,
amount,batch_source_name,conversion_rate,
conversion_type,currency_code,cust_trx_type_id,
description,gl_date,line_type,
orig_system_bill_address_id,orig_system_bill_customer_id,
quantity,unit_selling_price,
term_id,taxable_flag,amount_includes_tax_flag,
set_of_books_id,org_id)
VALUES
('TIP','TIPSAMPLEINVOICE1','TIPSAMPLEINVOICE1',
1000.00,'TIPBATCHSOURCE',1,
'User','USD',3627,
'TIPSAMPLEINVOICE1ITEM#1','31JAN2010','LINE',
11145,117751,
10,100.00,
1514,'Y','N',
1,204)
COMMIT
Forsomefields,wepassconstantvaluesandforotherfieldsweneedtoprovidevaluesthattieinwiththesetup
wecreatedinTasks114above.ThefollowingsectionexplainshowtodeterminetheIDvaluescreatedduring
thesetup.
INTERFACE_LINE_CONTEXTidentifiestheTransactionFlexfieldusedbytheinterfacedatathishelpsAutoInvoice
understandwhatdataisbeingpassedintheinterfacetable'sfields.ThevalueheretiesinwiththesetupcreatedinTask
2,wherewecreatedtheLineTransactionFlexfield'TIP'.
Usethevalue='TIP'
INTERFACE_LINE_ATTRIBUTE1andINTERFACE_LINE_ATTRIBUTE2thecombinationofvaluesinthesetwo
fieldsuniquelyidentifythetransactionyouarecreating.
Usethevalues='TIPSAMPLEINVOICE1'and'TIPSAMPLEINVOICE1'
AMOUNTthisfieldcontainsthevalueofyourtransactionpassinaconstant.Thisvalueshouldbetheproductofthe
numbersyoupassinforQUANTITY*UNIT_SELLING_PRICE.
Usethevalue=1000.00
BATCH_SOURCE_NAMEthevalueyouspecifyhereidentifiesthetransactionbatchsourcetobeusedbyAutoInvoice
wheninterfacingthistransaction.InTask9,wecreatedtheBatchSource'TIPBATCHSOURCE'.
Usethevalue='TIPBATCHSOURCE'
CONVERSION_RATEFornonfunctionalcurrencytransactions,thisfieldwouldcontaintheexchangeratevalue.For
ourtestcase,wearecreatingatransactioninthefunctionalcurrency=USD,sotherateis1.
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
15/35
8/5/2016
Document1067402.1
Usethevalue=1
CONVERSION_TYPESpecifytheconversionratetype,forourtestcasewewilluse'User'.
Usethevalue='User'
CURRENCY_CODEIndicatethecurrencycodeofthetransaction,forourtestcasewewilluse'USD'.
Usethevalue='USD'
CUST_TRX_TYPE_IDidentifiestheIDassociatedtothetransactiontypewecreatedinTask4wherewedefined'TIP
INVOICE'.
TodeterminetheIDassociatedtothistransactiontype,runthefollowing:
PleasenotethattheIDmaybedifferentinyourinstance.
selectcust_trx_type_id
fromra_cust_trx_types_all
wherename='TIPINVOICE'
Usethevalue=3627
DESCRIPTIONenteralineitemdescription.
Usethevalue='TIPSAMPLEINVOICE1ITEM#1'
GL_DATEthevalueyouspecifyherewillbeusedbyAutoInvoiceastheGL_DATEofyourtransaction.Typicallythe
periodinwhichthisGL_DATEvaluefallsshouldbeanopenperiod.
Usethevalue='31JAN2010'
LINE_TYPEindicatesthetypeoflinethisinterfacedatadefines.
Usethevalue='LINE'
ORIG_SYSTEM_BILL_ADDRESS_IDandORIG_SYSTEM_BILL_CUSTOMER_IDidentifiestheAddressIDand
CustomerIDassociatedtotheinvoice.
TodeterminetheIDvaluestouse,runthefollowing:
PleasenotethattheIDmaybedifferentinyourinstance.
selectc.cust_acct_site_idorig_system_bill_address_id,b.cust_account_id
orig_system_bill_customer_id
fromhz_partiesa,
hz_cust_accountsb,
hz_cust_acct_sites_allc,
hz_cust_site_uses_alld
wherea.party_name='TIPCUSTOMER1'
anda.party_id=b.party_id
andc.cust_account_id=b.cust_account_id
andc.cust_acct_site_id=d.cust_acct_site_id
andd.site_use_code='BILL_TO'
Usethevalues=11145and117751
QUANTITYspecifythenumberofitems.
Usethevalue=10
UNIT_SELLING_PRICEspecifythepriceofeachitem.
Usethevalue=100.00
TERM_IDidentifiesthetermIDassociatedwiththesetupcreatedinTask8.
TodeterminetheIDvaluetouse,runthefollowing:
PleasenotethattheIDmaybedifferentinyourinstance.
selectterm_id
fromra_terms
wherename='TIPTERM'
Usethevalue=1514
TAXABLE_FLAGindicateswhetherornotthetransactionistaxable.
Usethevalue='Y'
AMOUNT_INCLUDES_TAX_FLAGindicateswhetherornottheamountisinclusiveoftaxes.
Usethevalue='N'
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
16/35
8/5/2016
Document1067402.1
Usethevalue='N'
SET_OF_BOOKS_IDidentifiestheSetofBooksIDassociatedtotheOperatingUnityouareprocessingyour
transactionin.
ThesetofbooksidisassociatedtoyourOperatingUnit.IfyouknowyouroperatingunitID,youcanrunthe
following:
PleasenotethattheORG_IDinyourinstancemaybedifferent.
selectset_of_books_id
fromar_system_parameters_all
whereorg_id=&org_id
Usethevalue=1
TofindyourORG_IDrunthescriptbelow:
Selectorganization_id,name
Fromhr_organization_units;
ORG_IDindicatestheIDoftheOperatingUnitagainstwhichthistransactioniscreated.
Usethevalue=204
IfyoudonotknowyourORG_IDorSET_OF_BOOKS_IDvalue,youcanuseGeneralSetupdiagnostics(e.g.inR
12.0.6thisisNote732193.1).ThiswillshowthevalueofORG_IDbesidetheOperatingUnitName,and
SET_OF_BOOKS_IDbesidetheLedgerName.
b.InsertstatementforanAPPLIEDCREDITMEMO
ThisfollowingscriptwillcreateaCreditMemoagainsttheInvoicecreatedabove.Thetexthighlightedinboldare
thechangesfromtheinsertscriptfortheInvoice.
OPTION1:
IftheInvoiceyouarecreditingwasalsocreatedviaAutoInvoice,thenyoucanpopulate
REFERENCE_LINE_CONTEXTandREFERENCE_LINE_ATTRIBUTE*fieldswithvaluesthatwoulduniquelyidentify
theinvoice.Otherwise,pleasereviewOption2below.
INSERTINTOra_interface_lines_all
(interface_line_context,interface_line_attribute1,interface_line_attribute2,
reference_line_context,reference_line_attribute1,reference_line_attribute2,
amount,batch_source_name,conversion_rate,
conversion_type,currency_code,cust_trx_type_id,
description,gl_date,line_type,
orig_system_bill_address_id,orig_system_bill_customer_id,
quantity,unit_selling_price,
term_id,taxable_flag,amount_includes_tax_flag,
set_of_books_id,org_id)
VALUES
('TIP','TIPSAMPLECM1','TIPSAMPLECM1',
'TIP','TIPSAMPLEINVOICE1','TIPSAMPLEINVOICE1',
10.00,'TIPBATCHSOURCE',1,
'User','USD',3628,
'TIPSAMPLECM1ITEM#1','31JAN2010','LINE',
11145,117751,
1,10.00,
null,'Y','N',
1,204)
ThefollowingsectionexplainshowtodeterminetheIDvaluescreatedduringthesetup.Manyofthefieldsarethe
sameastheinsertstatementusedfortheInvoice.Wewillfocusonthethingsthatchanged.
INTERFACE_LINE_ATTRIBUTE1andINTERFACE_LINE_ATTRIBUTE2thecombinationofvaluesin
thesetwofieldsuniquelyidentifythetransactionyouarecreating.
Usethevalues='TIPSAMPLECM1'and'TIPSAMPLECM1'
REFERENCE_LINE_CONTEXT
REFERENCE_LINE_ATTRIBUTE1
REFERENCE_LINE_ATTRIBUTE2
Thesefieldsassociatethiscreditmemotoaninvoice,thevaluesinthesefieldsneedtomatchthe
INTERFACE_LINE*fieldsoftheinvoice,becausethisishowyouaretellingAutoinvoicewhichInvoice
youwanttoapplythisCreditmemoto.
AMOUNTthisfieldcontainsthevalueofyourcreditmemopassinaconstant.Thisvalueshouldbethe
productofthenumbersyoupassinforQUANTITY*UNIT_SELLING_PRICE.
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
17/35
8/5/2016
Document1067402.1
Usethevalue=10.00
CUST_TRX_TYPE_IDidentifiestheIDassociatedtothetransactiontypewecreatedinTask4wherewe
definedTIPCM
TodeterminetheIDassociatedtothistransactiontype,runthefollowing:
PleasenotethattheIDmaybedifferentinyourinstance.
selectcust_trx_type_id
fromra_cust_trx_types_all
wherename='TIPCM'
Usethevalue=3628
QUANTITYspecifythenumberofitems.
Usethevalue=1
UNIT_SELLING_PRICEspecifythepriceofeachitem.
Usethevalue=10.00
TERM_ID
ItisimportanttounderstandthataCreditMemodoesnothaveapaymentterm,andthisfieldshould
beleftNULL
OPTION2:
IftheInvoiceyouarecreditingwasnotcreatedviaAutoInvoice,thenitwouldnothavevaluesin
INTERFACE_LINE_CONTEXT+INTERFACE_LINE_ATTRIBUTE*fields,inthiscaseyoucannotusethesevaluesto
identifytheinvoiceyouwantthiscreditmemotocredit.InsteadyoucanuseREFERENCE_LINE_ID.
INSERTINTOra_interface_lines_all
(interface_line_context,interface_line_attribute1,interface_line_attribute2,
reference_line_id,
amount,batch_source_name,conversion_rate,
conversion_type,currency_code,cust_trx_type_id,
description,gl_date,line_type,
orig_system_bill_address_id,orig_system_bill_customer_id,
quantity,unit_selling_price,
term_id,taxable_flag,amount_includes_tax_flag,
set_of_books_id,org_id)
VALUES
('TIP','TIPSAMPLECM2','TIPSAMPLECM2',
82141,
10.00,'TIPBATCHSOURCE',1,
'User','USD',3628,
'TIPSAMPLECM1ITEM#1','31JAN2010','LINE',
11145,117751,
1,10.00,
null,'Y','N',
1,204)
ThefollowingsectionexplainshowtodeterminetheIDvaluescreatedduringthesetup.Manyofthefieldsarethe
sameastheinsertstatementforOption1above,wewillfocusonthedifference.
REFERENCE_LINE_IDistheCUSTOMER_TRX_LINE_IDoftheInvoicelinethatyouwishtoapplythe
creditmemoto.Tofindtherightvalue,youcanusethevaluesintheLineTransactionFlexfield.As
mentionedearlierthecombinationofvaluesintheContextandAttributesfieldsisunique,henceyoucanfind
theexactlineyouwishtocreditbyusingthesevaluesinthewherecondition.
PleasenotethattheIdmaybedifferentinyourinstance.
selectcustomer_trx_line_id
fromra_customer_trx_lines_all
whereinterface_line_context='TIP',
andinterface_line_attribute1='TIPSAMPLEINVOICE1'
andinterface_line_attribute2='TIPSAMPLEINVOICE1'
Usethevalue=821481
c.InsertstatementforanONACCOUNTCREDITMEMO
ThefollowingscriptwillcreateanOnAccountcreditmemo.
INSERTINTOra_interface_lines_all
(interface_line_context,interface_line_attribute1,interface_line_attribute2,
amount,batch_source_name,conversion_rate,
conversion_type,currency_code,cust_trx_type_id,
description,gl_date,line_type,
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
18/35
8/5/2016
Document1067402.1
description,gl_date,line_type,
orig_system_bill_address_id,orig_system_bill_customer_id,
quantity,unit_selling_price,
term_id,taxable_flag,amount_includes_tax_flag,
set_of_books_id,org_id)
VALUES
('TIP','TIPSAMPLEONACCTCM1','TIPSAMPLEONACCTCM1',
1000.00,'TIPBATCHSOURCE',1,
'User','USD',3628,
'TIPSAMPLEONACCTCM1ITEM#1','31JAN2010','LINE',
11145,117751,
10,100.00,
null,'Y','N',
1,204)
ThefollowingsectionexplainshowtodeterminetheIDvaluescreatedduringthesetup.Manyofthefieldsarethe
sameasfortheinsertforInvoiceabove,wewillfocusonthedifferences:
INTERFACE_LINE_ATTRIBUTE1andINTERFACE_LINE_ATTRIBUTE2thecombinationofvaluesin
thesetwofieldsuniquelyidentifythetransactionyouarecreating.
Usethevalues='TIPSAMPLEONACCTCM1'and'TIPSAMPLEONACCTCM1'
AMOUNTthisfieldcontainsthevalueofyourcreditmemopassinaconstant.Thisvalueshouldbethe
productofthenumbersyoupassinforQUANTITY*UNIT_SELLING_PRICE.
Usethevalue=1000.00
CUST_TRX_TYPE_IDidentifiestheIDassociatedtothetransactiontypewecreatedinTask4where
definedTIPCM
TodeterminetheIDassociatedtothistransactiontype,runthefollowing:
PleasenotethattheIDmaybedifferentinyourinstance.
selectcust_trx_type_id
fromra_cust_trx_types_all
wherename='TIPCM'
Usethevalue=3628
QUANTITYspecifythenumberofitems.
Usethevalue=10
UNIT_SELLING_PRICEspecifythepriceofeachitem.
Usethevalue=100.00
TERM_ID
ItisimportanttounderstandthataCreditMemodoesnothaveapaymentterm,andthisfieldshould
beleftNULL
d.InsertstatementforanINVOICEandCREDITMEMOWITHMANUALTAXLINES
ForasamplescriptonhowtopassinterfacedataforanInvoiceincludingmanualtaxLineswiththeintentionof
bypassingtheEBusinessTaxengine,pleasereviewNote731149.1,R12HowToBringIn(andTroubleshoot)
ManualTaxLinesThroughAutoinvoiceandEBusinessTax(EBTax).
e.InsertstatementforanINVOICEWITHRULES
Tocreateinvoiceswithrules,asidefromthesetupstepsdetailedabove,anadditionalsetupstepisrequiredto
definetheAccountingRule.
Responsibility:ReceivablesManager
Navigation:Setup>Transactions>AccountingRules
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
19/35
8/5/2016
Document1067402.1
ForadditionalinformationonsettingupandtroubleshootingAccountingRules,pleasereviewNote1116934.1,How
ToSetupAndTroubleshootInvoicingRulesandAccountingRules.
ThefollowingscriptwillcreateaninvoiceusingtheTIPRULEdefinedabove.
INSERTINTOra_interface_lines_all
(interface_line_context,interface_line_attribute1,interface_line_attribute2,
amount,batch_source_name,conversion_rate,
conversion_type,currency_code,cust_trx_type_id,
description,gl_date,line_type,
orig_system_bill_address_id,orig_system_bill_customer_id,
quantity,unit_selling_price,
term_id,taxable_flag,amount_includes_tax_flag,
set_of_books_id,org_id,
invoicing_rule_id,accounting_rule_id,accounting_rule_duration)
VALUES
('TIP','TIPRULEINVOICE1','TIPRULEINVOICESAMPLE',
1000.00,'TIPBATCHSOURCE',1,
'User','USD',3627,
'TIPDESCRIPTION1ITEM#1','10AUG2010','LINE',
11145,117751,
10,100.00,
1514,'Y','N',
1,204,
2,12086,null)
Forsomefields,wepassconstantvaluesandforotherfieldsweneedtoprovidevaluesthattieinwiththesetup
wecreatedinTasks114above.ThefollowingsectionexplainshowtodeterminetheIDvaluescreatedduring
thesetup.
INTERFACE_LINE_CONTEXTidentifiestheTransactionFlexfieldusedbytheinterfacedatathishelps
AutoInvoiceunderstandwhatdataisbeingpassedintheinterfacetable'sfields.Thevalueheretiesinwith
thesetupcreatedinTask2,wherewecreatedtheLineTransactionFlexfield'TIP'.
Usethevalue='TIP'
INTERFACE_LINE_ATTRIBUTE1andINTERFACE_LINE_ATTRIBUTE2thecombinationofvaluesin
thesetwofieldsuniquelyidentifythetransactionyouarecreating.
Usethevalues='TIPRULEINVOICE1'and'TIPRULEINVOICESAMPLE'
AMOUNTthisfieldcontainsthevalueofyourtransactionpassinaconstant.Thisvalueshouldbethe
productofthenumbersyoupassinforQUANTITY*UNIT_SELLING_PRICE.
Usethevalue=1000.00
BATCH_SOURCE_NAMEthevalueyouspecifyhereidentifiesthetransactionbatchsourcetobeusedby
AutoInvoicewheninterfacingthistransaction.InTask9,wecreatedtheBatchSource'TIPBATCH
SOURCE'.
Usethevalue='TIPBATCHSOURCE'
CONVERSION_RATEFornonfunctionalcurrencytransactions,thisfieldwouldcontaintheexchangerate
value.Forourtestcase,wearecreatingatransactioninthefunctionalcurrency=USD,sotherateis1.
Usethevalue=1
CONVERSION_TYPESpecifytheconversionratetype,forourtestcasewewilluse'User'.
Usethevalue='User'
CURRENCY_CODEIndicatethecurrencycodeofthetransaction,forourtestcasewewilluse'USD'.
Usethevalue='USD'
CUST_TRX_TYPE_IDidentifiestheIDassociatedtothetransactiontypewecreatedinTask4where
wedefined'TIPINVOICE'.
TodeterminetheIDassociatedtothistransactiontype,runthefollowing:
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
20/35
8/5/2016
Document1067402.1
TodeterminetheIDassociatedtothistransactiontype,runthefollowing:
PleasenotethattheIDmaybedifferentinyourinstance.
selectcust_trx_type_id
fromra_cust_trx_types_all
wherename='TIPINVOICE'
Usethevalue=3627
DESCRIPTIONenteralineitemdescription.
Usethevalue='TIPDESCRIPTION1ITEM#1'
GL_DATEthevalueyouspecifyherewillbeusedbyAutoInvoiceastheGL_DATEofyourtransaction.
TypicallytheperiodinwhichthisGL_DATEvaluefallsshouldbeanopenperiod.
Usethevalue='10_AUG2010'
LINE_TYPEindicatesthetypeoflinethisinterfacedatadefines.
Usethevalue='LINE'
ORIG_SYSTEM_BILL_ADDRESS_IDandORIG_SYSTEM_BILL_CUSTOMER_IDidentifiesthe
AddressIDandCustomerIDassociatedtotheinvoice.
TodeterminetheIDvaluestouse,runthefollowing:
PleasenotethattheIDmaybedifferentinyourinstance.
selectc.cust_acct_site_idorig_system_bill_address_id,b.cust_account_id
orig_system_bill_customer_id
fromhz_partiesa,
hz_cust_accountsb,
hz_cust_acct_sites_allc,
hz_cust_site_uses_alld
wherea.party_name='TIPCUSTOMER1'
anda.party_id=b.party_id
andc.cust_account_id=b.cust_account_id
andc.cust_acct_site_id=d.cust_acct_site_id
andd.site_use_code='BILL_TO'
Usethevalues=11145and117751
QUANTITYspecifythenumberofitems.
Usethevalue=10
UNIT_SELLING_PRICEspecifythepriceofeachitem.
Usethevalue=100.00
TERM_IDidentifiesthetermIDassociatedwiththesetupcreatedinTask8.
TodeterminetheIDvaluetouse,runthefollowing:
PleasenotethattheIDmaybedifferentinyourinstance.
selectterm_id
fromra_terms
wherename='TIPTERM'
Usethevalue=1514
TAXABLE_FLAGindicateswhetherornotthetransactionistaxable.
Usethevalue='Y'
AMOUNT_INCLUDES_TAX_FLAGindicateswhetherornottheamountisinclusiveoftaxes.
Usethevalue='N'
SET_OF_BOOKS_IDidentifiestheSetofBooksIDassociatedtotheOperatingUnityouareprocessing
yourtransactionin.
ThesetofbooksidisassociatedtoyourOperatingUnit.IfyouknowyouroperatingunitID,youcan
runthefollowing:
PleasenotethattheORG_IDinyourinstancemaybedifferent.
selectset_of_books_id
fromar_system_parameters_all
whereorg_id=&org_id
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
21/35
8/5/2016
Document1067402.1
Usethevalue=1
ORG_IDindicatestheIDoftheOperatingUnitagainstwhichthistransactioniscreated.
Usethevalue=204
IfyoudonotknowyourORG_IDorSET_OF_BOOKS_IDvalue,youcanuseGeneralSetup
diagnostics(e.g.inR12.0.6thisisNote732193.1).ThiswillshowthevalueofORG_IDbesidethe
OperatingUnitName,andSET_OF_BOOKS_IDbesidetheLedgerName.
INVOICING_RULE_IDindicatesmannerinwhichyouwanttheReceivablerecognized.Thereareonly2
valuesavailable:2(InAdvance)and3(InArrears).FormoreinformationpleasereviewNote1116934.1
Usethevalue=2
ACCOUNTING_RULE_IDindicatesthemannerinwhichyouwanttheRevenuetoberecognized.This
tiesinwiththesetupwecreatedabovefor'TIPRULE'.FormoreinformationpleasereviewNote1116934.1
TodeterminetheIDvaluetouse,runthefollowing:
PleasenotethattheIDmaybedifferentinyourinstance.
selectrule_id
fromra_rules
wherename='TIPRULE'
ACCOUNTING_RULE_DURATIONwhentheruleyouusehasvariableduration,youneedtoprovidea
valueinthisfield.However,inourcase,therulehasafixeddurationof3periods,soweleavethisnull.
Usethevalue=null
f.InsertstatementforanINVOICEWITHGLDISTRIBUTIONS
Notes:
IfyouhavesetupAutoAccountingandwouldliketousetheGLaccountsderivedbyyoursetup,youdo
nothavetopassindatainRA_INTERFACE_DISTRIBUTIONS_ALL.TheGLdistributionsandGLaccounts
willbeautomaticallycreatedforyourtransactions.
WhenpassingGLdistributions,AutoAccountingwillbeusedtoderivetheGLaccountsofallaccounting
distributionsthatarenotexplicitlyprovidedinRA_INTERFACE_DISTRIBUTIONS_ALL.
UsershavetheabilitytobypassAutoAccountingbyprovidingGLdistributionsin
RA_INTERFACE_DISTRIBUTIONS_ALL.
Inthefollowingscript,weinterfaceanInvoiceandpassindistributionsfortheRevenueandReceivableaccount.
ThesetupinthisinstancewillcreateRoundingrows,andsincewedonotexplicitlypassinthatdistribution,itwill
becreatedusingtheAutoAccountingsetup.
FormoreonthisrefertoNote1228525.1HowtoImportandTroubleshootDistributionsinAutoInvoiceUsing
RA_INTERFACE_DISTRIBUTIONS_ALL
createthe"parent"recordinRA_INTERFACE_LINES_ALL
INSERTINTOra_interface_lines_all
(interface_line_context,interface_line_attribute1,interface_line_attribute2,
amount,batch_source_name,conversion_rate,
conversion_type,currency_code,cust_trx_type_id,
description,gl_date,line_type,
orig_system_bill_address_id,orig_system_bill_customer_id,
quantity,unit_selling_price,
term_id,taxable_flag,amount_includes_tax_flag,
set_of_books_id,org_id)
VALUES
('TIP','TIPDISTINVOICE1','TIPDISTINVOICESAMPLE',
1000.00,'TIPBATCHSOURCE',1,
'User','USD',3627,
'TIPDESCRIPTION1ITEM#1','10AUG2010','LINE',
11145,117751,
10,100.00,
1514,'Y','N',
1,204)
createdistributionrecordsforonlyREVandRECrows
INSERTINTOra_interface_distributions_all(
account_class,amount,code_combination_id,percent,
interface_line_context,interface_line_attribute1,interface_line_attribute2,org_id)
VALUES('REC',1000.00,12833,100,
'TIP','TIPDISTINVOICE1','TIPDISTINVOICESAMPLE',204)
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
22/35
8/5/2016
Document1067402.1
INSERTINTOra_interface_distributions_all(
account_class,amount,code_combination_id,percent,
interface_line_context,interface_line_attribute1,interface_line_attribute2,org_id)
VALUES('REV',1000.00,107410,100,
'TIP','TIPDISTINVOICE1','TIPDISTINVOICESAMPLE',204)
Foranexplanationofthefields/valuesusedfortheinsertstatement,pleasereviewthefirstexamplescriptabove,
thevaluesusedaresimilar.
Thefollowingprovidesanexplanationofthefields/valuesusedforthe2ndand3rdinsertstatements:
ACCOUNT_CLASSthereare7validvalues:REV,FREIGHT,TAX,REC,UNBILL(forArrears),UNEARN
(forAdvance),CHARGES
Youmaypassvaluesforanyoftheseaccountclasses.
ForanyrequiredGLdistributionthatyoudonotprovideinRA_INTERFACE_DISTRIBUTIONS_ALL,the
codewillinvokeAutoAccounting.
Usethevalue='REC'and'REV'
AMOUNTthisfieldcontainsthevalueassociatedtotheGLdistributionyouarecreatingpassina
constant.FortheRECaccount,thisshouldbethesumofalltheLINE,TAXandFREIGHTamountsin
RA_INTERFACE_LINES_ALLforthisparticulartransaction.
Usethevalue=1000.00(forbothRECandREV)
CODE_COMBINATION_IDthisindicatestheGLaccount'scode_combination_id,thevaluespecifiedhere
shouldexistinGL_CODE_COMBINATIONS.ItuniquelyidentifiestheGLaccounttouse.
Usethevalue=12833(forREC)and107410(forREV)
Typically,thepurposeofpassinginrowsinRA_INTERFACE_DISTRIBUTIONS_ALListobypass
AutoAccounting.Inourcurrentsetup,AutoAccountingwouldhaveusedthecodecombinationidvalues:
12835and158423respectively.Byusingdifferentcode_combination_idvaluesweareabletoverifythat
thedistributionswepassedinarewhatactuallygotusedwhentheInvoicewascreated.
PERCENTindicatesthepercentageassociatedtothedistributions.
Usethevalue=100
INTERFACE_LINE_CONTEXTidentifiestheTransactionFlexfieldusedbytheinterfacedatathishelps
AutoInvoiceunderstandwhatdataisbeingpassedintheinterfacetable'sfields.Thevalueheretiesinwith
thesetupcreatedinTask2,wherewecreatedtheLineTransactionFlexfield'TIP'.
INTERFACE_LINE_ATTRIBUTE1andINTERFACE_LINE_ATTRIBUTE2thecombinationofvaluesin
thesetwofieldsuniquelyidentifythetransactionyouarecreating.
Usethevalues='TIPDISTINVOICE1'and'TIPDISTINVOICESAMPLE'
ORG_IDindicatestheIDoftheOperatingUnitagainstwhichthistransactioniscreated.
Usethevalue=204
IfyoudonotknowyourORG_IDorSET_OF_BOOKS_IDvalue,youcanuseGeneralSetupdiagnostics(e.g.
inR12.0.6thisisNote732193.1).ThiswillshowthevalueofORG_IDbesidetheOperatingUnitName,and
SET_OF_BOOKS_IDbesidetheLedgerName.
g.InsertstatementforanINVOICEWITHSALESCREDITS
Thefollowingscriptwillcreateasimpleinvoiceandassignsalescreditsto2Salespersons.
INSERTINTOra_interface_lines_all
(interface_line_context,interface_line_attribute1,interface_line_attribute2,
amount,batch_source_name,conversion_rate,
conversion_type,currency_code,cust_trx_type_id,
description,gl_date,line_type,
orig_system_bill_address_id,orig_system_bill_customer_id,
quantity,unit_selling_price,
term_id,taxable_flag,amount_includes_tax_flag,
set_of_books_id,org_id)
VALUES
('TIP','TIPSCINVOICE1','TIPSCINVOICESAMPLE',
1000.00,'TIPBATCHSOURCE',1,
'User','USD',3627,
'TIPDESCRIPTION1ITEM#1','10AUG2010','LINE',
11145,117751,
10,100.00,
1514,'Y','N',
1,204)
INSERTINTOra_interface_salescredits_all(
salesrep_id,sales_credit_type_id,sales_credit_percent_split,
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
23/35
8/5/2016
Document1067402.1
salesrep_id,sales_credit_type_id,sales_credit_percent_split,
interface_line_context,interface_line_attribute1,interface_line_attribute2,org_id)
VALUES(100000013,1,50,
'TIP','TIPSCINVOICE1','TIPSCINVOICESAMPLE',204)
INSERTINTOra_interface_salescredits_all(
salesrep_id,sales_credit_type_id,sales_credit_percent_split,
interface_line_context,interface_line_attribute1,interface_line_attribute2,org_id)
VALUES(100000015,1,50,
'TIP','TIPSCINVOICE1','TIPSCINVOICESAMPLE',204)
Foranexplanationofthefields/valuesusedfortheinsertstatement,pleasereviewthefirstexamplescriptabove,
thevaluesusedaresimilar.
Thefollowingprovidesanexplanationofthefields/valuesusedforthe2ndand3rdinsertstatements:
SALESREP_IDidentifiestheSalespersontobeassociatedtothesalescredit.Youneedtodeterminethe
IDassociatedtotheSalespersonnamestowhomyouwanttoassigncreditforthissale.
PleasenotethattheIDvaluesinyourinstancemaybedifferent.
select*fromJTS_RS_SALESREPS
wherename='&salesrep_name'
or
select*fromJTS_RS_SALESREPS
wheresalesrep_number='&salesrep_num'
Usethevalue=100000013and100000015
SALES_CREDIT_TYPE_IDindicateswheretheSalescreditistofulfillaSalesQuota(1)orNonQuota
(2)
Usethevalue=1
SALES_CREDIT_PERCENT_SPLITthisidentifiesthepercentofthecredityouwanttoassociatetoa
particularsalesperson.Thetotalofallsalescreditsforatransactionshouldbe100.
Usethevalue=50(sincewearesplittingthecreditsacross2people)
INTERFACE_LINE_CONTEXTidentifiestheTransactionFlexfieldusedbytheinterfacedatathishelps
AutoInvoiceunderstandwhatdataisbeingpassedintheinterfacetable'sfields.Thevalueheretiesinwith
thesetupcreatedinTask2,wherewecreatedtheLineTransactionFlexfield'TIP'.
INTERFACE_LINE_ATTRIBUTE1andINTERFACE_LINE_ATTRIBUTE2thecombinationofvaluesin
thesetwofieldsuniquelyidentifythetransactionyouarecreating.
Usethevalues='TIPSCINVOICE1'and'TIPSCINVOICESAMPLE'
ORG_IDindicatestheIDoftheOperatingUnitagainstwhichthistransactioniscreated.
Usethevalue=204
IfyoudonotknowyourORG_IDorSET_OF_BOOKS_IDvalue,youcanuseGeneralSetup
diagnostics(e.g.inR12.0.6thisisNote732193.1).ThiswillshowthevalueofORG_IDbesidethe
OperatingUnitName,andSET_OF_BOOKS_IDbesidetheLedgerName.
h.InsertstatementforanINVOICEWITHHEADERLEVELFREIGHT
ThefollowingscriptwillcreateasimpleinvoicewithheaderlevelFreight.
InsertrecordforLINE
INSERTINTOra_interface_lines_all
(interface_line_context,interface_line_attribute1,interface_line_attribute2,
amount,batch_source_name,conversion_rate,
conversion_type,currency_code,cust_trx_type_id,
description,gl_date,line_type,
orig_system_bill_address_id,orig_system_bill_customer_id,
quantity,unit_selling_price,
term_id,taxable_flag,amount_includes_tax_flag,
set_of_books_id,org_id,
ship_via,warehouse_id,ship_date_actual)
VALUES
('TIP','TIPTAXFRTINV1','INVOICELINE',
1000.00,'TIPBATCHSOURCE',1,
'User','USD',3627,
'TIPTAXFRTINVOICEITEM#1','10AUG2010','LINE',
11145,117751,
10,100.00,
1514,'Y','N',
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
24/35
8/5/2016
Document1067402.1
1514,'Y','N',
1,204,
'FederalExpress',204,'10AUG10')
InsertRecordforFreight
INSERTINTOra_interface_lines_all
(interface_line_context,interface_line_attribute1,interface_line_attribute2,
LINK_TO_LINE_CONTEXT,LINK_TO_LINE_ATTRIBUTE1,LINK_TO_LINE_ATTRIBUTE2,
amount,batch_source_name,conversion_rate,
conversion_type,currency_code,cust_trx_type_id,
description,gl_date,line_type,
orig_system_bill_address_id,orig_system_bill_customer_id,
quantity,unit_selling_price,
term_id,taxable_flag,amount_includes_tax_flag,
set_of_books_id,org_id)
VALUES
('TIP','TIPTAXFRTINV1','FREIGHT',
'TIP','TIPTAXFRTINV1','INVOICELINE',
49.95,'TIPBATCHSOURCE',1,
'User','USD',3627,
'Freight','10AUG2010','FREIGHT',
11145,117751,
null,null,
1514,null,null,
1,204)
Foranexplanationofthefields/valuesnotlistedbelow,pleasereviewthefirstexamplescriptabove,thevalues
usedaresimilar.
Thefollowingprovidesanexplanationoftheadditionalfields/valuesusedwhicharehighlightedinboldinthefirst
Insertstatement.
Note:AllthefreightrelatedinformationisactuallyprovidedintherecordwhereLINE_TYPE=LINEandnotthe
recordwhereLINE_TYPE=FREIGHT.
SHIP_VIAidentifiestheFreightCarrier,thisvalueshouldexistasFREIGHT_CODEinORG_FREIGHT
table.
PleasenotethattheFreightCodevaluesinyourinstancemaybedifferent,thefollowingwill
listthevaluesofFreightCodesthatyoucanuse.
selectFREIGHT_CODEfromORG_FREIGHT
whereORGANIZATION_ID=&ORG_ID
Usethevalue='FederalExpress'
WAREHOUSE_IDindicatestheOrganizationofthewarehousefromwhichyouwillbeshippingtheitems
Inourcase,theORG_IDandWAREHOUSE_IDarethesame.
Usethevalue=204
SHIP_DATE_ACTUALthisidentifiesthedatetheshipmentwasactuallymade
Usethevalue='10AUG10'
INTERFACE_LINE_CONTEXTidentifiestheTransactionFlexfieldusedbytheinterfacedatathishelps
AutoInvoiceunderstandwhatdataisbeingpassedintheinterfacetable'sfields.Thevalueheretiesinwith
thesetupcreatedinTask2,wherewecreatedtheLineTransactionFlexfield'TIP'.
Usethevalue='TIP'
INTERFACE_LINE_ATTRIBUTE1andINTERFACE_LINE_ATTRIBUTE2thecombinationofvaluesin
thesetwofieldsuniquelyidentifythetransactionyouarecreating.
Usethevalues='TIPTAXFRTINV1'and'INVOICELINE'(forthefirstinsertstatement)|
Usethevalues='TIPTAXFRTINV1'and'FREIGHT'(forthesecondinsertstatement)
Forthesecondinsertstatement,whichistheFREIGHTline,followingisanexplanationofthefieldsused:
LINK_TO_LINE_CONTEXTidentifiestheTransactionFlexfieldoftheInvoicelinetowhichyouwantto
linkthisFreightrecordto
Usethevalue='TIP'
LINK_TO_LINE_ATTRIBUTE1andLINK_TO_LINE_ATTRIBUTE2thecombinationofvaluesinthese
twofilesuniquelyidentifiythetransactionlinetowhichthisFreightrowisassociatedto,itshouldbe
identicaltothevaluesinINTERFACE_LINE_ATTRIBUTE1and2fortheLINE_TYPE=LINE
Usethevalue='TIPTAXFRTINV1'and'INVOICELINE'
AMOUNTentertheamountassociatedtoFreight
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
25/35
8/5/2016
Document1067402.1
Usethevalue=49.95
LINE_TYPEidentifieswhattypeofdataisinthisrecord
Usethevalue='FREIGHT'
i.InsertstatementforanINVOICEWITHFREIGHTASANINVENTORYITEM
ThefollowingscriptwillcreateasimpleinvoicewithFreightasaninventoryitem,thisenablesyoutocalculate
taxesontheFreightamount.Fordetailsontheprerequisitestepsrequired,pleasereviewNote1096942.1,HowTo
SetupAndTroubleshootFreightInAutoInvoiceAndTheTransactionsForm
InsertrecordforLINE
INSERTINTOra_interface_lines_all
(interface_line_context,interface_line_attribute1,interface_line_attribute2,
amount,batch_source_name,conversion_rate,
conversion_type,currency_code,cust_trx_type_id,
description,gl_date,line_type,
orig_system_bill_address_id,orig_system_bill_customer_id,
quantity,unit_selling_price,
term_id,taxable_flag,amount_includes_tax_flag,
set_of_books_id,org_id,inventory_item_id,uom_code)
VALUES
('TIP','TIPFRTASINV3','INVOICELINE',
1000.00,'TIPBATCHSOURCE',1,
'User','USD',3627,
'SentinelDeluxeDesktop','10AUG2010','LINE',
11145,117751,
10,100.00,
1514,'Y','N',
1,204,155,'Ea')
InsertRecordforFreight
INSERTINTOra_interface_lines_all
(interface_line_context,interface_line_attribute1,interface_line_attribute2,
amount,batch_source_name,conversion_rate,
conversion_type,currency_code,cust_trx_type_id,
description,gl_date,line_type,
orig_system_bill_address_id,orig_system_bill_customer_id,
quantity,unit_selling_price,
term_id,taxable_flag,amount_includes_tax_flag,
set_of_books_id,org_id,inventory_item_id,uom_code)
VALUES
('TIP','TIPFRTASINV3','FREIGHTLINE',
49.95,'TIPBATCHSOURCE',1,
'User','USD',3627,
'FreightCharges','10AUG2010','LINE',
11145,117751,
1,49.95,
1514,'Y','N',
1,204,1747,'Ea')
Foranexplanationofthefields/valuesnotlistedbelow,pleasereviewthefirstexamplescriptabove,thevalues
usedaresimilar.
Thefollowingprovidesanexplanationoftheadditionalfields/valuesusedwhicharehighlightedinbold.
INVENTORY_ITEM_IDidentifiestheInventoryitemtobeshipped.
Usethevalue=155(fortheregularInventoryItem=SentinelDeluxeDesktop)
Usethevalue=1747(fortheFreightInventoryItem=FreightCharges,seedetailsinNote1096942.1on
howtodefineFreightasanInventoryItem)
UOM_CODEindicatestheUnitofMeasureassociatedtotheInventoryItem,thisvaluemustbeidentical
tothevalueinMTL_ITEM_UOMS_VIEW.UOM_CODEfortheINVENTORY_ITEM_ID
Usethevalue='Ea'
INTERFACE_LINE_CONTEXTidentifiestheTransactionFlexfieldusedbytheinterfacedatathishelps
AutoInvoiceunderstandwhatdataisbeingpassedintheinterfacetable'sfields.Thevalueheretiesinwith
thesetupcreatedinTask2,wherewecreatedtheLineTransactionFlexfield'TIP'.
Usethevalue='TIP'
INTERFACE_LINE_ATTRIBUTE1andINTERFACE_LINE_ATTRIBUTE2thecombinationofvaluesin
thesetwofieldsuniquelyidentifythetransactionyouarecreating.
Usethevalues='TIPFRTASINV3'and'INVOICELINE'(forthefirstinsertstatement,whichisforthe
regularLineitem)
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
26/35
8/5/2016
Document1067402.1
Usethevalues='TIPFRTASINV3'and'FREIGHTLINE'(forthesecondinsertstatement,whichisfortheFreight
InventoryItem)
LINE_TYPEidentifieswhattypeofdataisinthisrecord
Usethevalue='LINE'(forbothrecords)
Note:EvenifthesecondlinebeinginterfacedisforFREIGHT,theLINE_TYPEremains=LINE
becausewearetreatingtheFreightasaregularinventoryitemandarepassingitasaninvoice
linetoenablethecalculationoftaxes.
17.TestingAutoInvoice:AutoInvoiceImportProcess
OncethedataisinsertedintotheInterfacetable,wearereadytosubmittheAutoInvoiceImportProcess
Responsibility:ReceivablesManager
Navigation:Interfaces>AutoInvoice
Tomonitortheprogressoftheprocess,
Navigation:View>Requests
clickonFindButton
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
27/35
8/5/2016
Document1067402.1
Oncetheprocessiscomplete,reviewtheoutputgeneratedfromtheAutoInvoiceImportProgramandensurethereareno
errors.
Followingareexamplesoferrorsyoumayencounter:
SampleError1
Theerrorshownbelow,wouldhappenifyourantheinsertstatementaboveforasecondtimewithoutmodifyinganyofthe
flexfieldvalues.
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
28/35
8/5/2016
Document1067402.1
Aspointedoutbytheerrormesssage,thecombinationoftheflexfieldvaluesisnotunique.Tofixthisissue,youshouldupdate
thedataintheinterfacetablesothatthecombinedvaluesinINTERFACE_LINE_ATTRIBUTE1+
INTERFACE_LINE_ATTRIBUTE2areunique.
Youcouldrunanupdatestatementlike:
updatera_interface_lines_all
setinterface_line_attribute1='TIPSAMPLEINVOICE2',
interface_line_attribute2='TIPLEGACYLINE1'
whereinterface_line_attribute1='TIPSAMPLEINVOICE1'
andinterface_line_attribute2='TIPSAMPLEINVOICE1'
andnvl(interface_status,'~')<>'P'
theaboveshouldupdateonerow
commit
Nowthatyouhavemadetheinterfacelineattributevaluesunique,youcanrerunAutoInvoiceanditshouldprocesssuccessfully.
SampleError2
Theerrorshownbelow,wouldhappenifyouhaveatypographicalerrorintheinsertstatementandyoumistypedthevaluefor
CUST_TRX_TYPE_ID.
Asshownintheerror,theCUST_TRX_TYPE_IDwithvalue36277isinvalid.Ifyoureviewthedetailsinthefirstinsertstatement
inTask16,youwillnotethatthecorrectCUST_TRX_TYPE_ID=3627andnot36277.
Tofixthisissue,youshouldupdatethedataintheinterfacetabletocorrecttheCUST_TRX_TYPE_IDvalue.
AnotherwaytomakecorrectionsistousetheInterfaceLinesform.
Responsibility:ReceivablesManager
Navigation:Control>AutoInvoice>InterfaceLines
RunaqueryusingeithertheINTERFACE_LINE_IDortheBatchSourcenameorjustChecktheErrorsExistcheckboxtoviewlines
witherrors.Positionthecursorontherecordyouwanttofix,thenclickontheErrorsbuttontoseedetailsoftheerrors.
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
29/35
8/5/2016
Document1067402.1
Tocorrecttheerror,navigatebacktothelinesformandpositionyourcursorontheLinetypefield,Clickonthefoldermenuand
clickonShowfield.Doingthiswillallowyoutoexposemorefieldsfromthetableintheform.
Tofixthisparticularerror,wewanttomodifytheTransactionTypeId,solocatethatfieldnameinthelistofvaluesandclickon
it.
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
30/35
8/5/2016
Document1067402.1
TheTransactionTypeIdfieldwillnowbedisplayedtotherightofLinetypeandyoucanenterthecorrectID,andsaveyour
changes.
Ifthereweremultipleerrorsonaline,youwouldfollowthesameprocesstomakecorrectionstootherfields.Onceall
correctionsarecompleteyoucanrunAutoInvoiceagain.
OthersimilarerrorsduetoinvalidIDvalueswouldbe:
Asshownintheexamples,theerrormessageprovidehelpfulinformationabouttheproblemencountered.Patientandcareful
reviewoftheerrormessageandthedetailsprovidedthereinwillhelpyouresolvetheerror.Also,itistypicallymostdifficultto
createthefirstinvoiceviaascript,butonceyouhavetherightscriptitisveryeasytoadaptittoyourneeds.
18.PurgingtheInterfaceTableAfterImport
ToautomaticallypurgetheAutoInvoiceInterfacetablesafterrunningAutoInvoice,checkthePurgeInterfaceTablesboxinthe
receivablessystemoptions.Ifyoucheckthisbox,Receivablesdeletestherecordsthathavesuccessfullytransferredinto
permanentReceivablestables.DonotcheckthisboxifyouwanttosubmittheAutoInvoicePurgeprogrammanuallyafterrunning
AutoInvoice.
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
31/35
8/5/2016
Document1067402.1
TroubleshootingTip:Deselectthissettingwhentroubleshootingrecordsthatseemtobeimportingincorrectlysuchaswhen
groupingrulesarenotbeinghonoredorlineorderingappearsincorrect.Thiswillallowyoutoreviewthedataasitlookedin
theinterfacetableandafterithasimported.
FormoreonthepurgeprocesspleaseseeNote1127413.1UnderstandingandTroubleshootingAutoInvoicePurge
19.SchedulingAutoInvoice
InmostcasesAutoInvoiceisusedtoloadinvoicesfromOracleEBSmodulessuchasOrderManagementortobuildintegration
fromalegacyapplicationsystem.InthesecasesAutoInvoicecanbescheduledtorunonaregularbasis.Thearticlesbelow
outlineoptionsthatcanbeusedtosatisfythisrequirement.
Note279423.1HowtoScheduleAutoInvoicetoRunonaPeriodicBasis
Note1127399.1SamplePLSQLScripttocallAutoinvoiceImportProgramRAXTRXusingfnd_request.submit_requestinRelease
12
20.ReviewInvoiceCreatedbyAutoInvoice
ToverifywhetherAutoInvoicecreatedtheinvoicesuccessfully,viewtheinvoiceintheTransactionworkbench.
Responsibility:ReceivablesManager
Navigation:Transactions>Transactions
ThenrunaQueryusingView>QueryByExample
Enterthefollowingfilters:
BatchSourcename='TIPBATCHSOURCE'
Referencefield=
fortheInvoice:enterthevalueyouprovidedforinterface_line_attribute1='TIPSAMPLEINVOICE1'
fortheCreditmemo(ifyoualsoranthistest):enterthevalueyouprovidedforinterface_line_attribute1=
'TIPSAMPLECM1'or'TIPSAMPLECM2'
fortheInvoicewithrules:enterthevaludyouprovidedforinterface_line_attribute1='TIPRULEINVOICE1'
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
32/35
8/5/2016
Document1067402.1
Thenexecutethequery.
ClickonLineItemsbuttontoseeinvoicelines.
Thisshowsthatasimpleinvoicewassuccessfullycreated,usingthedatawepassedin!Runningasimilarqueryforthevaluein
INTERFACE_LINE_ATTRIBUTE1fortheAppliedCreditMemoandOnAccountCreditmemoandInvoicewithRuleswilldisplay
thecreditmemoscreated.
21.Troubleshooting&Tips
Thefollowingnotescontaindetailsonvarioustroubleshootingtips:
Note733835.1,AutoInvoiceFAQforRelease12
Note1075757.1,AutoInvoiceTroubleshootingGuide
OraclealsoprovidesaDiagnosticframeworkthatincludesDiagnosticsthatcanhelpyoureviewandidentifyAutoInvoiceissues.
PleasereviewtheR12DiagnosticsCatalog,identifyyourpointreleaseandlocatethediagnosticsunderOracleReceivables:
AutoInvoiceInterfaceandAutoInvoiceSetup.
ForexampleinRelease12.0.6,Note732187.1AutoInvoiceInterface,thiscollectsinformationpertainingtoaparticularattribute
intheInterfacetable.Note732189.1AutoInvoiceSetup,collectsinformationregardingsetupsuchaslineordering,grouping
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
33/35
8/5/2016
Document1067402.1
intheInterfacetable.Note732189.1AutoInvoiceSetup,collectsinformationregardingsetupsuchaslineordering,grouping
rules,descriptiveflexfields,aswellasfileversionsandtriggers.
ToaccessdiagnosticsintheapplicationinRelease12.0.6,theaccesspathisasfollows:
PleasenotethateachdiagnostictestincludesthisinformationintheUsagesection.
Responsibility:ApplicationDiagnostics
Navigation:ApplicationDiagnostics>Diagnose
ClickbuttonSelectApplicationandselectApplication"Receivables"
Scrolldowntogroup"Transactions"
SelectTest:AutoInvoiceSetuporAutoInvoiceInterface.
22.StillHaveQuestions?
TodiscussthisinformationfurtherwithOracleexpertsandindustrypeers,weencourageyoutoreview,joinorstarta
discussionintheMyOracleSupportReceivablesCommunity.
Toprovidefeedbackonthisnote,clickontheRatethisdocumentlink.
REFERENCES
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
34/35
8/5/2016
Document1067402.1
REFERENCES
NOTE:1075757.1TroubleshootingAutoInvoiceforOracleReceivablesRelease11.5Through12
Didn'tfindwhatyouarelookingfor?
AskinCommunity...
Related
Products
OracleEBusinessSuite>FinancialManagement>CredittoCash>OracleReceivables>TransactionsRelated>AutoInvoice(RAXTRX)
OracleEBusinessSuite>FinancialManagement>CredittoCash>OracleReceivables>SetupRelatedIssues>SysOptions/GeneralSetupIssues
Keywords
AUTOACCOUNTING AUTOINVOICE DESCRIPTIVEFLEXFIELDS FLEXFIELDS GROUPINGRULES ORDERINGRULES RA_INTERFACE_LINES_ALL TRANSACTIONSOURCES
Errors
ERROR1 ERROR2
Translations
English Source
Chinese
Korean
BacktoTop
Copyright(c)2016,Oracle.Allrightsreserved.
LegalNoticesandTermsofUse
PrivacyStatement
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=484128636326332&id=1067402.1&_adf.ctrlstate=dpyxsjqrm_105
35/35