「マスター品目を持つ購買依頼の作成」
購入する製品ハブにマスター品目がある場合があります。 購買依頼リソースを使用して、これらのマスター品目を参照する購買依頼を作成できます。
POST標準処理を使用して、未完了ステータスの購買依頼を作成できます。 次に、submitRequisitionカスタム処理を使用して、承認のために未完了の購買依頼を発行します。
これらのシナリオについて簡単に説明します。
-
マスター品目を持つ購買依頼を作成します。
このシナリオの一般的なプロセス・フローを次に示します:
- 組織の製品マネージャは、リスト価格ありまたはなしのOracle Fusion Product Information Managementで購買可能マスター品目を構成します。
- 組織で品目を構成した後、これらの品目を使用して購買依頼を作成できます。
マスター品目を含む購買依頼の作成
組織に、定価がUS$1107.86の標準デスクトップ品目があるとします。 品目の番号はAS54888で、オーダーを履行するサプライヤはCV_SuppA00と識別されています。
この品目を使用して購買依頼を作成するには:
- 品目番号とプライマリ単位を識別します。
- オプションで、品目IDを識別します。
- このURLでPOST操作を実行し、リクエスト本文に次の詳細を指定します:
- 品目番号および単位で転記します。
"Item": "AS54888", "UOM": "Each"
- 品目IDおよび単位コードで転記します。
"ItemId": 149, "UOMCode": "Ea"
価格と品目カテゴリ、摘要は、Product Information Managementから購買依頼明細にデフォルト設定されます。
- 品目番号および単位で転記します。
-
さらに、次のことも可能です。
- 包括購買契約参照または購買契約参照を指定できます。
- 購買依頼ヘッダー、明細および配分に付加フレックスフィールドを追加できます。
ノート:
品目のプライマリ単位と異なる単位で品目をリクエストする場合、または製品情報管理で品目に定価がない場合、価格および通貨を指定する必要があります。
URLの例
次のリソースURL形式を使用します:
POST
/fscmRestApi/resources/11.13.18.05/purchaseRequisitionscURLコマンド
curl -u username:password -X POST -H "Content-Type:application/vnd.vision.adf.resourceitem+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/purchaseRequisitions"
リクエストの例
JSON形式のリクエスト本文の例を次に示します:
{
"RequisitioningBU": "Vision Operations",
"PreparerEmail": "John.Wick@oracle.com",
"ExternallyManagedFlag": false,
"Description": "Requisition with Master Item",
"lines":[
{
"LineNumber":1,
"LineTypeCode": "Goods",
"Item":"AS54888",
"UOM":"Each",
"Quantity":1,
"Supplier": "CV_SuppA00",
"SupplierSite": "CVSuppA00Site01",
"RequestedDeliveryDate": "2021-09-03",
"DestinationType": "Expense",
"RequesterEmail": "John.Wick@oracle.com",
"DestinationOrganizationCode": "V1",
"DeliverToLocationCode": "V1- New York City",
"distributions":[
{
"DistributionNumber":1,
"Quantity":1
}
]
}
]
}
レスポンスの例
JSON形式の応答本文の例を次に示します。
{
"RequisitionHeaderId": 300100546441808,
"Requisition": "10505856",
"RequisitioningBUId": 204,
"RequisitioningBU": "Vision Operations",
"PreparerId": 300100178696854,
"Preparer": "SSPUSER05",
"PreparerEmail": "John.Wick@oracle.com",
"Description": "Requisition with Master Item",
"Justification": null,
"DocumentStatus": "Incomplete",
"DocumentStatusCode": "INCOMPLETE",
"SubmissionDate": null,
"ApprovedDate": null,
"FunctionalCurrencyCode": null,
"SoldToLegalEntityId": null,
"SoldToLegalEntity": null,
"FundsStatus": null,
"FundsStatusCode": null,
"InterfaceSourceCode": null,
"InterfaceSourceLineId": null,
"EmergencyPONumber": null,
"ModifyingApproverId": null,
"ModifyingApprover": null,
"ModifyingApproverEmail": null,
"OverridingApproverId": null,
"OverridingApprover": null,
"OverridingApproverEmail": null,
"FundsOverrideApproverId": null,
"FundsOverrideApprover": null,
"FundsOverrideApproverEmail": null,
"ApprovedById": null,
"ApprovedByEmail": null,
"BudgetaryControlEnabledFlag": null,
"EmergencyRequisitionFlag": null,
"ExternallyManagedFlag": false,
"InternalTransferFlag": false,
"FundsChkFailWarnFlag": false,
"CreationDate": "2021-08-19T03:50:46+00:00",
"LastUpdateDate": "2021-08-19T03:50:46.991+00:00",
"CreatedBy": "John.Wick",
"LastUpdatedBy": "John.Wick",
"ActiveRequisitionFlag": false,
"SourceApplicationCode": null,
"RejectedById": null,
"RejectedByDisplayName": null,
"RejectedReason": null,
"lines": [
{
"RequisitionHeaderId": 300100546441808,
"RequisitionLineId": 300100546441809,
"LineNumber": 1,
"SmartFormId": null,
"SmartFormName": null,
"LineTypeId": 1,
"LineTypeCode": "Goods",
"RequisitionLineSource": "REST_INTEGRATION",
"CategoryId": 91,
"CategoryName": "Finished Goods_91",
"ItemDescription": "Standard Desktop",
"ItemId": 149,
"Item": "AS54888",
"ItemRevision": null,
"Quantity": 1,
"SecondaryQuantity": null,
"UnitPrice": 1107.86,
"CurrencyCode": "USD",
"Currency": "US Dollar",
"UOMCode": "Ea",
"UOM": "Each",
"SecondaryUOMCode": null,
"SecondaryUOM": null,
"ConversionRateType": null,
"ConversionRateDate": null,
"ConversionRate": null,
"Price": 1107.86,
"LineStatus": "INCOMPLETE",
"LineStatusDisplayValue": null,
"Amount": null,
"CurrencyAmount": null,
"UrgentFlag": null,
"NegotiatedByPreparerFlag": null,
"NegotiationRequiredFlag": null,
"SourceAgreementTypeCode": null,
"SourceAgreementType": null,
"SourceAgreementHeaderId": null,
"SourceAgreement": null,
"SourceAgreementLineId": null,
"SourceAgreementLineNumber": null,
"UNNumberId": null,
"UNNumber": null,
"HazardClassId": null,
"HazardClass": null,
"HazardClassCode": null,
"UNSPSCCode": null,
"ManufacturerName": null,
"ManufacturerPartNumber": null,
"BPAPriceUserOverrideFlag": null,
"NewSupplierFlag": null,
"SupplierId": 230,
"Supplier": "CV_SuppA00",
"SupplierSiteId": 5232,
"SupplierSite": "CVSuppA00Site01",
"SupplierContactId": null,
"SupplierContact": null,
"SupplierContactEmail": null,
"SupplierContactPhone": null,
"SupplierContactFax": null,
"SuggestedSupplier": null,
"SuggestedSupplierSite": null,
"SuggestedSupplierContact": null,
"SuggestedSupplierContactPhone": null,
"SuggestedSupplierContactFax": null,
"SuggestedSupplierContactEmail": null,
"SupplierItemNumber": null,
"RequesterId": 300100178696854,
"Requester": "SSPUSER05",
"RequesterEmail": "John.Wick@oracle.com",
"SuggestedBuyerId": null,
"SuggestedBuyer": null,
"SuggestedBuyerEmail": null,
"ModifiedByBuyerId": null,
"ModifiedByBuyer": null,
"AssignedBuyerId": null,
"AssignedBuyer": null,
"AssignedBuyerDisplayName": null,
"AssignedBuyerEmail": null,
"RequestedDeliveryDate": "2021-09-03",
"DestinationTypeCode": "EXPENSE",
"DestinationType": "Expense",
"DestinationOrganizationId": 204,
"DestinationOrganizationCode": "V1",
"DestinationOrganization": "Vision Operations",
"DestinationSubinventory": null,
"OneTimeLocationFlag": false,
"DeliverToLocationId": 204,
"DeliverToLocationCode": "V1- New York City",
"DeliverToAddress": "90 Fifth Avenue, New York,NY 10022-3422, New York, United States",
"FormattedDeliverToAddress": "90 Fifth Avenue<BR>New York,NY 10022-3422<BR>New York<BR>United States",
"NoteToBuyer": null,
"NoteToReceiver": null,
"NoteToSupplier": null,
"POAutomationFailedReasonCode": null,
"POAutomationFailedReason": null,
"POHeaderId": null,
"POLineId": null,
"PurchaseOrder": null,
"POBuyerId": null,
"BuyerOnPurchaseOrder": null,
"SupplierOnPurchaseOrder": null,
"ProcurementBUId": null,
"ProcurementBU": null,
"SourceTypeCode": "EXTERNAL",
"SourceType": null,
"SourceOrganizationId": null,
"SourceOrganization": null,
"SourceSubinventory": null,
"TransferOrderHeaderId": null,
"TransferOrder": null,
"TransferOrderLineId": null,
"NegotiationHeaderId": null,
"Negotiation": null,
"NegotiationLineNumber": null,
"ResponseNumber": null,
"ResponseLineNumber": null,
"OnNegotiationFlag": null,
"WorkOrderId": null,
"WorkOrder": null,
"WorkOrderOperationId": null,
"WorkOrderOperationSequence": null,
"WorkOrderProduct": null,
"WorkOrderSubType": null,
"BackToBackFlag": null,
"ConfiguredItemFlag": false,
"DeliverToCustomerId": null,
"DeliverToCustomer": null,
"DeliverToCustomerLocationId": null,
"RequestedShipDate": null,
"SalesOrderLineNumber": null,
"SalesOrder": null,
"SalesOrderScheduleNumber": null,
"ShipToCustomerId": null,
"ShipToCustomer": null,
"ServiceLevelCode": null,
"ServiceLevel": null,
"ModeOfTransportCode": null,
"ModeOfTransport": null,
"CarrierId": null,
"Carrier": null,
"CreatedBy": "John.Wick",
"CreationDate": "2021-08-19T03:50:46.122+00:00",
"LastUpdatedBy": "John.Wick",
"LastUpdateDate": "2021-08-19T03:50:47.001+00:00",
"LastSubmittedDate": null,
"LastApprovalDate": null,
"OriginalSubmittedDate": null,
"OriginalApprovalDate": null,
"CancelDate": null,
"CancelReason": null,
"RequisitionLineGroup": "LINES_REQUIRING_ATTENTION",
"LineImageURL": null,
"SupplierItemAuxiliaryId": null,
"DisableAutosourceFlag": false,
"DeliverToOneTimeAddress": null,
"LineTypeOrderTypeLookupCode": "QUANTITY",
"ReturnedByBuyerId": null,
"ReturnedByBuyerDisplayName": null,
"ReturnReason": null,
"distributions": [
{
"RequisitionDistributionId": 300100546441810,
"RequisitionLineId": 300100546441809,
"Quantity": 1,
"DistributionNumber": 1,
"ChargeAccountId": null,
"ChargeAccount": null,
"CurrencyAmount": null,
"CurrencyNonrecoverableExclusiveTax": null,
"CurrencyRecoverableExclusiveTax": null,
"ChartOfAccountId": 101,
"UserAccountOverrideFlag": false,
"links": [
. . .
]
}
],
"links": [
. . .
]
}
],
"links": [
. . .
]
}