Professional Documents
Culture Documents
Document 224031
Document 224031
FAQ:PurchasingDocumentsOpenInterface(DocID224031.1)
InthisDocument
Purpose
QuestionsandAnswers
WherecanIfindexamplescriptstobeusedwiththePDOIprocessforimportingvariousdocumenttypes?
WhatshouldIdoifthePurchaseDocumentOpenInterface(PDOI)processfails?
HowdoItogetthelogfileforthePDOIrun?
Howtoview/purgeandcorrecttheerrorstables?
WhatdoIdowhenPOsarenotbeingpickedupbyPDOIandtheserecordsremaininpendingstatus?
HowshouldIpopulatetheprojectandtaskinformationinPDOI?
WhatshouldIdoifPDOIerrorsoutwith"po_pdoi_invalid_dest_typedestinationtype(value=expense)isnotvalid"for
expenseitems?
HowandwhenaretheBlanketeffectivedatesupdatedthoughPDOI?
WhatshouldIdoifPDOIerrorsoutwith"shiptoorganizationid(value=769)specifiedisinactiveorinvalid"when
creatingnewitemsonthefly?
Whyaresupplyrecordsarenotcreatedforstandardpurchaseorders?
CanyouupdatedocumentsviaPDOIwhichwerecreatedmanually?
WhenusingencumbranceaccountingIwantthefundstobereservedandencumbranceentriescreatedingl_bc_packets?
WhydoesPDOIerroroutwith"ora00001uniqueconstraintviolationinpo_headers_u2"?
WhatshouldIdowhenPDOIcreatesapprovedstandardpurchaseordersbutnochargeaccountisbeinggenerated?
HowdowedebugwhenPDOIdoesnotcreateanyPOs?
IhadsubmittedthePDOIconc.requestforupdatingtheunit_priceofablanketpurchaseagreementlinewithanaction
of"UPDATE".PDOIinsteadofupdatingtheline,hascreatedanewlinewithnewprice.Everyupdatedlineisbeing
createdmultipletimes.Howcanthisbeavoided?
Howisdatadeletedfromtheinterfacetablesafterithasbeenloaded?
Isthereanexamplescripttoloadnewblanket,newitemandnewsourcingrule?
Ihadloadedallthedataintotheinterfacetablesandwithprocess_codeas'PENDING'.IrunthePDOIprogram,but
dataisnotgettingpickedupbyPDOI.Therecordsremaininstatus'PENDING'intheinterfacetables.WhatdoIdo?
Iwanttoupdateheaderofadocument.IsitpossibleviaPDOI?
IamtryingtoupdateitemdescriptionthroughPDOI.Theprogramisupdatingtheitemdescriptionatthelinelevelbutis
notupdatingthesameatitemmaster.
CanweusePurchasingDocumentOpenInterface(PDOI)toloadcomplexmilestonebasedpurchaseorder(PO)from
externalsource?
Whatdocumentstypesaresupported?
WhatActionsaresupported?
Tocreatenewsourcingrules,populatethefollowingcolumnsinthepo_lines_interface:
WhichdocumenttypescanbeupdatedbyusingPurchasingDocumentOpeninterface?
Whatdocumentcanbeviewedafterrunningpurchasingdocumentopeninterfacewithrecordsrejected?
Howarenewblankets/quotations,newitemsandnewsourcingrulesaddedatthesametime?
Howisexistinglineinformationupdatedinthepo_lines_alltableforBlanketorQuotation.
Howarenewlinesaddedtoanexistingblanketandquotation?
Howisquantitypopulatedinpo_lines_interface?
Howisanexistingblanketorquotationreplaced?
Howarethedefaultrulesapplied?
Isthereanexamplescripttoloadnewblanket,newitem,newsourcingrule?
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrlstate=sa5q9gfvj_111&id=224031.1 1/11
23/03/2017 Document224031.1
Howisdatadeletedfromtheinterfacetablesafterithasbeenloaded?
Whentryingtoupdateblanketpurchaseagreement(Amountlimit)usinginterfacePO_HEADERS_INTERFACEconcurrent
completedsuccessfullywithprocess_codeREJECTEDandnothinginPO_INTERFACE_ERRORStheconcurrentcomplete
successfully.WhyweareunabletoUpdateAmountlimitusingPDOI?
References
APPLIESTO:
OraclePurchasingVersion10.7to11.5.10[Release10.7to11.5]
Informationinthisdocumentappliestoanyplatform.
PURPOSE
PURCHASEORDERS:PurchasingDocumentOpenInterface(PDOI)Release10.7,11.0,11.5.10,12.0
QUESTIONSANDANSWERS
WherecanIfindexamplescriptstobeusedwiththePDOIprocessforimportingvariousdocumenttypes?
Examplescriptscanbefoundinthefollowingnotes:
Note1406003.1HowTocreate/updateaStandardPurchaseOrder/BlanketPurchaseAgreement/QuotationthroughPDOI
process
Note2014101.1VisionDemoHowToImportStandardPurchaseOrdersUsingthePurchaseDocumentOpenInterface
PDOI(12.2and12.1.3EnhancedPDOI)
WhatshouldIdoifthePurchaseDocumentOpenInterface(PDOI)processfails?
Thefirstthingistocheckfortheerrormessageandexaminedescriptionfromthepo_interface_errorstableforthegiven
interface_header_id.Thedescriptionwouldbeselfexplanatory.Accordinglycheckforthedatainthepo_headers_interface,
po_lines_interfacetablesandcorrectthemandrunthePDOIagainwiththecorrecteddata.
HowdoItogetthelogfileforthePDOIrun?
TogetthelogfileforthePDOIsetthefollowingprofileoptiontoYes:PO:Writeserveroutputtofile.
Howtoview/purgeandcorrecttheerrorstables?
ToviewtheerrorsrunthefollowingReport:
Purchasinginterfaceerrorreport.
ToPurgetheerrorandinterfacetablesrunthefollowingReports:
Purgepurchasingopeninterfaceprocesseddatareport.Purchasinginterfaceerrorreport.
WhatdoIdowhenPOsarenotbeingpickedupbyPDOIandtheserecordsremaininpendingstatus?
Checkiftheclientisasingleorginstance.Ifyouareusingsingleorginstancethenyouarenotsupposedtopopulatethe
org_idintheinterfacetables.Org_idshouldbenullforasingleorgimplementation.
HowshouldIpopulatetheprojectandtaskinformationinPDOI?
Thepointtobenotedhereisthatalwayspopulateprojectnameandtasknameintotheprojectandtaskcolumnof
po_headers_interfacetableinsteadofprojectnumberandtasknumber.BasedonprojectnameandtasknamePDOIderives
theproject_idandtask_idandinsertsinthepo_distributionstable.
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrlstate=sa5q9gfvj_111&id=224031.1 2/11
23/03/2017 Document224031.1
WhatshouldIdoifPDOIerrorsoutwith"po_pdoi_invalid_dest_typedestinationtype(value=expense)isnot
valid"forexpenseitems?
ThisErrorcanariseoutoffollowingsituation:
1.Validationofdestinationorganizationidfails.
2.Validationofdestinationtypecodefails.
3.Item_idisNULLanddestination_type_codeisINVENTORY.
4.Validationofdestinationsubinventoryfails.
5.Destination_type_codein('SHOPFLOOR','EXPENSE')anddestination_subinventoryisnotnull.
6.Validationofdestinationorganizationidfails.
HowandwhenaretheBlanketeffectivedatesupdatedthoughPDOI?
IfyouareusingtheUPDATEactioncodethenPDOIonlyVALIDATESthelinelevelinfo.Ifyouwanttoupdateheadersthen
useREPLACEinsteadofUPDATE.ByusingUPDATEyoucanonlyupdatesomecolumnsatthePOlineslevelasmentionedin
theusersguide.
WhatshouldIdoifPDOIerrorsoutwith"shiptoorganizationid(value=769)specifiedisinactiveorinvalid"
whencreatingnewitemsonthefly?
Thishasbeentakenuponasanenhancement.Previouslywewerenotcreatinganitemforthedestination/ship_to_orginthe
PDOIrun.Butaspartoftheenhancement2064961nowwecreateitemsfortheship_to_orgalso.
Whyaresupplyrecordsarenotcreatedforstandardpurchaseorders?
Supplyrecordsarecreatedinmtl_supplywhileapprovingthePOandsincepriortoProcurementfamilypackG,wewerenot
supportingapprovedstandardpurchaseorderswewerenotcreatingthesupplyrecords.
CanyouupdatedocumentsviaPDOIwhichwerecreatedmanually?
PleaseseeNote746040.1.
WhenusingencumbranceaccountingIwantthefundstobereservedandencumbranceentriescreatedin
gl_bc_packets?
ThefunctionalityispartofProcurementFamilyPackGorRelease11.5.7.
Thoughthisissuemayoccurrarelybutitcananditsexplainedbelow:
ThedocumentnumberisgeneratedattheendofthePDOIprocessbeforecommitandupdatedinthepo_headerstable.
WhenthePDOIprocessstarts,po_headerstableisupdatedwithpoi_temp_po_b679535valueinsegment1andthenlater
afterheadersandlinesareprocesseddocument_numberisgeneratedandthepo_headersisupdatedwiththat.Assumefor
anyreasononaccountofanincompletetransactionthereisarecordinpo_headerstablewithpoi_temp_po_b679535value
insegment1thenPDOIwouldfailwiththeaboveerrormessage.Sojustcheckforarecordinpo_headerstablewith
poi_temp_po_b679535valueofthesegment1forthiserror.
WhydoesPDOIerroroutwith"ora00001uniqueconstraintviolationinpo_headers_u2"?
Thoughthisissuemayoccurrarelybutitcananditsexplainedbelow:
ThedocumentnumberisgeneratedattheendofthePDOIprocessbeforecommitandupdatedinthepo_headerstable.
WhenthePDOIprocessstarts,po_headerstableisupdatedwithpoi_temp_po_b679535valueinsegment1andthenlater
afterheadersandlinesareprocesseddocument_numberisgeneratedandthepo_headersisupdatedwiththat.Assumefor
anyreasononaccountofanincompletetransactionthereisarecordinpo_headerstablewithpoi_temp_po_b679535valuein
segment1thenPDOIwouldfailwiththeaboveerrormessage.Sojustcheckforarecordinpo_headerstablewith
poi_temp_po_b679535valueofthesegment1forthiserror.
WhatshouldIdowhenPDOIcreatesapprovedstandardpurchaseordersbutnochargeaccountisbeing
generated?
Wedonotsupportimportingapprovedstandardpurchaseorders.ButintheProcurementFamilyPackGonwardsthisfeature
hasbeenadded.
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrlstate=sa5q9gfvj_111&id=224031.1 3/11
23/03/2017 Document224031.1
HowdowedebugwhenPDOIdoesnotcreateanyPOs?
Twomethodscanbeemployed:
1.BeforerunningthePDOIprogram,settheprofileoptionPO:Writeserveroutputtofileto'Yes'andthenyoucanviewthe
logfilethusgeneratedwhilerunningthePDOI.
2.AfterthePDOIisrun,runthereport'Purchasinginterfaceerrorreport'todebugwhatistheexacterror.
IhadsubmittedthePDOIconc.requestforupdatingtheunit_priceofablanketpurchaseagreementlinewith
anactionof"UPDATE".PDOIinsteadofupdatingtheline,hascreatedanewlinewithnewprice.Every
updatedlineisbeingcreatedmultipletimes.Howcanthisbeavoided?
Thismightbebecausethelineyouaretryingtoupdateisalreadyexpired.PDOIcreatesanotherlinewiththeupdated
informationifthelinewhichisgettingupdatedisalreadyexpired.
Howisdatadeletedfromtheinterfacetablesafterithasbeenloaded?
AftersuccessfulcreationofdatathroughPDOI,theprocess_codeintheinterfacetableswillbesetto'Accepted'.Ifthe
Customerwantstodeletethisinterfacedatawhichisusednomorethentheyneedtoruntheconcurrentrequest'Purge
purchasinginterfaceprocesseddata'.
Isthereanexamplescripttoloadnewblanket,newitemandnewsourcingrule?
Yes.Pleaseseethescriptbelow:
insertintopo_headers_interface
(interface_header_id,
action,
org_id,
document_type_code,
vendor_id,
vendor_site_code,
vendor_site_id,
effective_date,
expiration_date,
Vendor_doc_num,
load_sourcing_rules_flag)
values
(po_headers_interface_s.nextval,
'ORIGINAL',
204,
'BLANKET',
21,
'SANTACLARA',
41,
'01JAN2001',
'01JAN2002',
'VENDOR02',
'Y')
insertintopo_lines_interface
(interface_line_id,
interface_header_id,
action,
item,
item_description,
unit_price,
unit_of_measure,
effective_date,
expiration_date,
template_name,
sourcing_rule_name)
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrlstate=sa5q9gfvj_111&id=224031.1 4/11
23/03/2017 Document224031.1
values
(po_lines_interface_s.nextval,
po_headers_interface_s.currval,
'ORIGINAL',
'BB54888',
'BB54888Description',
10,
'Each',
'01JAN2001',
'01JAN2002',
'PurchasedItem',
'SourcingRuleBB54888')
Ihadloadedallthedataintotheinterfacetablesandwithprocess_codeas'PENDING'.IrunthePDOI
program,butdataisnotgettingpickedupbyPDOI.Therecordsremaininstatus'PENDING'intheinterface
tables.WhatdoIdo?
Checkwhetherclientissingleorg.Iftheyaresingleorg,thentheyshouldnotpopulateorg_idintotheinterfacetables.
maketheorg_idnullintheinterfacetablesandrerunPDOI.
Iwanttoupdateheaderofadocument.IsitpossibleviaPDOI?
No.ItisnotpossibletoupdateheaderinformationbutonlylineinformationcanbeupdatedfromPDOI.youcanuse'Replace'
optiontoreplacetheentiredocumentinthiscase.
IamtryingtoupdateitemdescriptionthroughPDOI.Theprogramisupdatingtheitemdescriptionattheline
levelbutisnotupdatingthesameatitemmaster.
ThisisdesiredfunctionalityofPDOI.PDOIwillonlyupdatetheitemdescriptionatthelinelevelandnotatitemmaster.
Thefirstthingistocheckfortheerrormessageandexaminedescriptionfromthepo_interface_errorstableforthegiven
interface_header_id.Thedescriptionwouldbeselfexplanatory.Accordinglycheckforthedatainthepo_headers_interface,
po_lines_interfacetablesandcorrectthemandrunthePDOIagainwiththecorrecteddata.
CanweusePurchasingDocumentOpenInterface(PDOI)toloadcomplexmilestonebasedpurchaseorder
(PO)fromexternalsource?
PDOIdoesnotsupportcomplexPOsyet.Thereasonis:
Thefollowingcolumnsaddedtothetablepo_lines_interfaceandareintendedforinternaluseonly:
processing_id
line_loc_populated_flag
file_line_number
retainage_rate
max_retainage_amount
progress_payment_rate
recoupment_rate
advance_amount
withoutusingthesecolumns,thereisnowaytoimportcomplexworkPOs.
However,thereareplanstosupportthisinthenearfuture.
Thereisnodirectwaytodoit.However,workaroundcouldbeusingthespreadsheettouploadinSourcingtocreateanRFQ,
createaquoteoutofit,thenawardittocreatethePO.
AnotherworkaroundsuggestionthatmighthelpistouseanexternalprogramthatmimicskeystrokeslikeDataloadertoenter
documentsinbulk.
ThisisnotasupportedsolutionbutcouldbehelpfultothecustomeriftheyarelookingtoentercomplexPOsinbulk.
Thedataloadersheettakesalittletimetoprepareandtest(dependingonthecomplexityoftheform)butitdoesworkand
savesagreatamountoftime
enteringdatainbulk.It'snotsomethingwesupportbutitmaygivecustomerapossibleapproachfortheinitialdataentryof
complexPOs.
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrlstate=sa5q9gfvj_111&id=224031.1 5/11
23/03/2017 Document224031.1
Whatdocumentstypesaresupported?
Currently,thePurchasingDocumentOpenInterfacecanimportthefollowing:
Blanket
Quotation
Item
SourcingRules
**StandardPurchaseOrderscanbeimportedthroughPOXPDOIinRelease11i
onlywithoneoffPatch1550991.Thisoneoffpatchwillalsobe
includedin11i.PO.D.
**StandardPurchaseOrderscannotbeimportedinrelease11.0.X
**BlanketReleasescannotbeimportedinanyrelease
Note:EnhancementRequest'Bug1882841:ENHANCEMENTREQUESTSFORNEWFUNCTIONALITYFORPDOI'isalready
createdinorderthatotherdocumenttypessuchasBlankerReleasestobepossibletobecreatedusingPDOIinthefuture.
WhatActionsaresupported?
ORIGINALcreateanewdocument
ADDaddnewlinesontoanexistingdocument
UPDATEupdateexistinglineinformationforadocument
REPLACEReplacetheexistingdocument
Whichinterfacetablesareinvolved?
PO_HEADERS_INTERFACE
PO_LINES_INTERFACE
PO_DISTRIBUTIONS_INTERFACE(UsedforStandardPOonly)
Tocreatenewsourcingrules,populatethefollowingcolumnsinthepo_lines_interface:
Sourcing_rule_name
Effective_date
Expiration_date
andsetthefollowingparameterwhenrunningthePurchasingDocumentOpen
Interface:
CreateSourcingRules=Yes
ReleaseGenerationMethod=AutomaticRelease
AutomaticRelease/Review
ReleaseUsingAutoCreate
WhichdocumenttypescanbeupdatedbyusingPurchasingDocumentOpeninterface?
BlanketsandquotationscreatedbyPurchasingDocumentOpenInterface.
BlanketsandquotationscreatedmanuallyviaOracleApplicationsstandard
formscannotbeupdatedbyusingPurchasingDocumentOpenInterfacesince
thereisnovalueforvendor_order_numforblanketor
quote_vendor_quote_numberforquotation.
Inrelease11.5.10,newlinesandassociatedshipmentscanbeaddedto
anexistingstandardpurchaseordercreatedbyPDOI.ExistinglinesintheStandard
POcannotbeupdatedusingthisprocess.
Whatdocumentcanbeviewedafterrunningpurchasingdocumentopeninterfacewithrecordsrejected?
Checktheprocess_codeinthepo_headers_interfaceandpo_lines_interface,ifitis'REJECTED',
selectprocess_codefrompo_headers_interface
selectprocess_codefrompo_lines_interface
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrlstate=sa5q9gfvj_111&id=224031.1 6/11
23/03/2017 Document224031.1
pleasedothefollowing:
RuntheprogramPurchasingInterfaceErrorsReport
chooseparameter:PO_DOCS_OPEN_INTERFACE
Thereportwilllistalltheerrorsyouhaveduringimporting.Youcanfixthedata,thenresetprocess_code=Nullinboth
interfacetables,rerunthePurchasingDocumentOpenInterface.
updatepo_headers_interfacesetprocess_code=null
whereprocess_code='REJECTED'
updatepo_lines_interfacesetprocess_code=null
whereprocess_code='REJECTED'
Howarenewblankets/quotations,newitemsandnewsourcingrulesaddedatthesametime?
MakesuretosetthefollowingparameterswhenrunningPurchasing
DocumentsOpenInterface:
CreateorUpdateItem=Yes
CreateSourcingRules=Yes
ReleaseGenerationMethod=AutomaticRelease
AutomaticRelease/Review
ReleaseUsingAutoCreate
Youneedtopopulatethefollowingminimuminformationintheinterface
tables:
PO_HEADERS_INTERFACE
INTERFACE_HEADER_ID=po_headers_interface_s.nextval
ACTION='ORIGINAL'
ORG_IDOperatingunitorganization_id
DOCUMENT_TYPE_CODE='BLANKET'or'QUOTAITON'
VENDOR_ID
VENDOR_SITE_CODE
VENDOR_SITE_ID
EFFECTIVE_DATE
EXPIRATION_DATE
VENDOR_DOC_NUM
LOAD_SOURCING_RULES_FLAG
PO_LINES_INTERFACE
INTERFACE_LINE_IDpo_lines_interface_s.nextval
INTERFACE_HEADER_IDsamevalueasinthepo_headers_interface.
ACTION='ORIGINAL'
ITEM
ITEM_DESCRIPTION
UNIT_PRICE
UNIT_OF_MEASURE
EFFECTIVE_DATE
EXPIRATION_DATE
TEMPLATE_IDorTEMPLATE_NAME
SOURCING_RULE_NAMEifnotpopulate,thesystemdefaultsthe
followingvalue:
'PURCH_OPEN_INTERFACE'||to_char(sourcing_rule_id))
Howisexistinglineinformationupdatedinthepo_lines_alltableforBlanketorQuotation.
Hereistheexampleforchangingunit_priceandexpiration_datefortheexistingblanketline.
needtopopulatethefollowingminimuminformationintheinterface
tables:
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrlstate=sa5q9gfvj_111&id=224031.1 7/11
23/03/2017 Document224031.1
PO_HEADERS_INTERFACE
INTERFACE_HEADER_ID=po_headers_interface_s.nextval
ACTION='UPDATE'
ORG_ID
DOCUMENT_TYPE_CODE='BLANKET'or'QUOTAITON'
VENDOR_ID
VENDOR_SITE_CODE
VENDOR_SITE_ID
PO_HEADER_IDorDOCUMENT_NUM
EFFECTIVE_DATE
EXPIRATION_DATE
VENDOR_DOC_NUMforblanket,itshouldbeVENDOR_ORDER_NUM
inpo_headers_alltable
forquotation,itshouldbeQUOTE_VENDOR_QUOTE_NUMBER
inthepo_headers_alltable
VENDOR_DOC_NUMisnotarequiredfieldtocreateanew
documentortoupdateanexistingdocument.
But,ifpopulateditwillbevalidatedandwillbeusedtoidentifyanexistingdocument.
PO_LINES_INTERFACE
INTERFACE_LINE_ID=po_lines_interface_s.nextval
INTERFACE_HEADER_IDsamevalueasinthepo_headers_interface.
ACTION='UPDATE'
ORG_ID
PO_LINE_IDorLINE_NUM
PO_HEADER_IDorDOCUMENT_NUM
ITEM
ITEM_DESCRIPTIONmakesuretheitemdescriptionispopulatedright.
UNIT_PRICEifyouwanttochange
UNIT_OF_MEASURE
EXPIRATION_DATEifyouwanttochangehastobe<=EXPIRATION_DATE
intheheader.
Howarenewlinesaddedtoanexistingblanketandquotation?
Needtopopulatethefollowingminimuminformationintheinterfacetables:
PO_HEADERS_INTERFACE
INTERFACE_HEADER_ID=po_headers_interface_s.nextval
ACTION='UPDATE'
ORG_ID
DOCUMENT_TYPE_CODE='BLANKET'or'QUOTAITON'
VENDOR_ID
VENDOR_SITE_CODE
VENDOR_SITE_ID
PO_HEADER_IDorDOCUMENT_NUMtheexistingblanket/quotationnumber
EFFECTIVE_DATEtheexistingblanketstart_date
EXPIRATION_DATEtheexistingblanketend_date
VENDOR_DOC_NUM=ifitisblanket,itshouldbeVENDOR_ORDER_NUM
oftheexistingblanket
ifitisquotation,itshouldbeQUOTE_VENDOR_QUOTE_NUMBER
oftheexistingquotation.
VENDOR_DOC_NUMisnotarequiredfieldtocreateanew
documentortoupdateanexistingdocument.
But,ifpopulateditwillbevalidatedandwillbeused
toidentifyanexistingdocument.
PO_LINES_INTERFACE
INTERFACE_LINE_IDpo_lines_interface_s.nextval
INTERFACE_HEADER_IDsamevalueasinthepo_headers_interface.
ACTION='ADD'
PO_HEADER_IDorDOCUMENT_NUMtheexistingblanket/quotationnumber
ITEM_IDorITEM
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrlstate=sa5q9gfvj_111&id=224031.1 8/11
23/03/2017 Document224031.1
UNIT_PRICE
UNIT_OF_MEASURE
EFFECTIVE_DATE
EXPIRATION_DATE
Howisquantitypopulatedinpo_lines_interface?
Ifshipment_numpopulatedinthepo_lines_interface,thenthequantityneedstobepopulated.Thesystemconsidersthelineas
pricebreak.
Ifitdoesnotpopulateshipment_numinthepo_lines_interface,thenquantityshouldbenull(sinceitisblanketorquotation).
Otherwisewillgetthefollowingerror:
PO_INTERFACE_ERRORS
Someerrorsaddressedinreportare:
UNIQUE_IDDETAILIDERROR_MESSAGEERROR_TEXT
61614623724PO_PDOI_COLUMN_NOT_NULLColumnQUANTITYshouldnotbe
NULL.
Howisanexistingblanketorquotationreplaced?
1)Itlooksforthedocumentsthathavethesamevendordocumentnumberandvendor_id
(vendor_order_numforblanket,quote_vendor_quote_numberforquotation)
asthereplacementdocuments(olddocuments).
2)Amongthosedocumentswithmatchingvendordocumentnumbersandvendor_id,
itlooksfortheolddocumentwitheffectivedateandexpirationdate
thatarethesameas,oroutsidetheeffectivitydatesofnewdocument
(effectivitydatesindicatedintheheaderinterface).
3)Itinvalidatestheolddocumentsbysettingtheirexpirationdates
(end_date)toeffective_date1
(theeffectivedateindicatedintheheaderinterface,minusone)
andcreatesnewdocumentwiththenewinformation(newponumber,po_header_id)
andtheeffectivitydatesindicatedintheheaderinterface.
needtopopulatethefollowingminimuminformationintheinterfacetables:
PO_HEADERS_INTERFACE
INTERFACE_HEADER_ID=po_headers_interface_s.nextval
ACTION='REPLACE'
ORG_ID
DOCUMENT_TYPE_CODE='BLANKET'or'QUOTAITON'
VENDOR_ID
VENDOR_SITE_CODE
VENDOR_SITE_ID
EFFECTIVE_DATEstart_datefortheblanket/quotationyouwantto
replace
EXPIRATION_DATEend_datefortheblanket/quotationyouwanttoreplace
VENDOR_DOC_NUMforblanket,itshouldbeVENDOR_ORDER_NUMoftheblanketyouwanttoreplace
forquotation,itshouldbeQUOTE_VENDOR_QUOTE_NUMBER
ofthequotationyouwanttoreplace
VENDOR_DOC_NUMisnotarequiredfieldtocreateanew
documentortoupdateanexistingdocument.
But,ifpopulateditwillbevalidatedandwillbeused
toidentifyanexistingdocument.
PO_LINES_INTERFACE
INTERFACE_LINE_IDpo_lines_interface_s.nextval
INTERFACE_HEADER_IDsamevalueasinthepo_headers_interface.
ACTION='REPLACE'
ITEM_IDorITEM
UNIT_PRICE
UNIT_OF_MEASURE
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrlstate=sa5q9gfvj_111&id=224031.1 9/11
23/03/2017 Document224031.1
EFFECTIVE_DATEitshouldbe>=start_dateoftheblanket/quotationyouwanttoreplace
EXPIRATION_DATEitshouldbe<=end_dateoftheblanket/quotationyouwanttoreplace
Howarethedefaultrulesapplied?
Defaultsdonotoverridevaluesthatyoupopulateintheinterfacetables.
Defaultvaluesthatarenolongeractiveorvalidarenotused.
Isthereanexamplescripttoloadnewblanket,newitem,newsourcingrule?
insertintopo_headers_interface
(interface_header_id,
action,
org_id,
document_type_code,
vendor_id,
vendor_site_code,
vendor_site_id,
effective_date,
expiration_date,
Vendor_doc_num,
load_sourcing_rules_flag)
values
(po_headers_interface_s.nextval,
'ORIGINAL',
204,
'BLANKET',
21,
'SANTACLARA',
41,
'01JAN2001',
'01JAN2002',
'VENDOR02',
'Y')
insertintopo_lines_interface
(interface_line_id,
interface_header_id,
action,
item,
item_description,
unit_price,
unit_of_measure,
effective_date,
expiration_date,
template_name,
sourcing_rule_name)
values
(po_lines_interface_s.nextval,
po_headers_interface_s.currval,
'ORIGINAL',
'BB54888',
'BB54888Description',
10,
'Each',
'01JAN2001',
'01JAN2002',
'PurchasedItem',
'SourcingRuleBB54888')
Howisdatadeletedfromtheinterfacetablesafterithasbeenloaded?
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrlstate=sa5q9gfvj_111&id=224031.1 10/11
23/03/2017 Document224031.1
Afterloadingthedatafromtheinterfacetablesintothesystemsuccessfully,thedataisnotbeingremoved(cleaned)fromthe
interfaces.
Theywillhaveprocess_code='ACCEPT'intheinterfacetables.
Toremovetheprocesseddatafromtheinterface,aconcurrentprogramisavailable.Theprogramnameis:purge
purchasingopeninterfaceprocesseddata(POXPOIPR)
Runthisprogramwithparamenterpurgeaccepteddata=Yes
Thentheprocess_code='ACCEPTED'recordswillberemovedfromtheinterfacetables.
Whentryingtoupdateblanketpurchaseagreement(Amountlimit)usinginterfacePO_HEADERS_INTERFACE
concurrentcompletedsuccessfullywithprocess_codeREJECTEDandnothinginPO_INTERFACE_ERRORS
theconcurrentcompletesuccessfully.WhyweareunabletoUpdateAmountlimitusingPDOI?
Whatyouareseeinghereisthenormalfunctionality.
Usercannot"UPDATE"theexpiration_date,amountlimitandamountagreedcolumnsinpo_headers_all.Andusercannot
"UPDATE"mostoftheDFFsinpo_lines_all.
ThisisconfirmedbyDev.inBug4352823.
Didn'tfindwhatyouarelookingfor?
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrlstate=sa5q9gfvj_111&id=224031.1 11/11