Previous Next JavaScript must be enabled to correctly display this content

## 4.2 OBRH Integration

During Bank Implementation, assuming OBRH is installed and configured as part of OBSCF installation.

For OBAPI and OBSCF integration using OBRH the following configurations need to be done.

1. Carry out all the steps mentioned inOBRH Integration Configurationsection in this document. The service provider for product OBSCF (Oracle Banking Supply Chain Finance) end-points configured in OBRH is “OBSCF”
2. After all the above steps are completed, user needs to execute some scripts for the host APIs that are to be consumed via OBRH. These are the scripts to pick the third party adapter implementation instead of the host specific implementations as well as to call the OBRH end-point for the configured interfaces. The scripts are available at the following location:

       /Installables/Modules/OBSCF/DIGX_FW_CONFIG_ALL_O.sql

   Note:

   ‘%ENTITY_ID%’ should be replaced with the entity identifier (For Example if the entity during implementation is OBDX_BU then ‘%ENTITY_ID%’ should be replaced by ‘OBDX_BU’).
3. The list of OBSCF APIs that are integrated with OBAPI using OBRH is as follows:

   OBRH Consumer Service Name | Transaction Name | Description
   --- | --- | ---
   `SCF_FINANCE_CHARGE` | View/Edit Invoice | Fetches the list of finance charges.
   `SCF_PURCHASE_ORDER_CREATE` | Purchase Order Creation | This API is used to create purchase orders.
   `SCF_PURCHASE_ORDER_UPDATE` | View Purchase Orders | This API is used to modify purchase order details.
   `SCF_PURCHASE_ORDER_ACCEPT` | Accept/Reject Purchase Order | This API is used to accept purchase orders.
   `SCF_PURCHASE_ORDER_REJECT` | Accept/Reject Purchase Order | This API is used to reject purchase orders.
   `SCF_PURCHASE_ORDER_CANCEL` | View Purchase Orders | This API is used to cancel purchase orders.
   `SCF_PURCHASE_ORDER_LIST` | View Purchase Orders | Fetches the list of purchase orders.
   `SCF_PURCHASE_ORDER_READ` | View Purchase Orders | Fetches purchase order details.
   `SCF_LINKED_PO_LIST` | View Finance Details | Fetches Purchase Orders linked to a finance.
   `SCF_PO_FINANCE_CREATE` | Request Finance | This API is used to request finance on purchase order(s).
   `SCF_FINANCE_LIMITS_LIST` | View Limits | Fetches the list of finance limits.
   `SCF_MAIN_LIST` | View Limits | Fetches the list of supply chain finance maintenances for a key.
   `SCF_PROGRAM_LIST` | View/Edit Program | Fetches the list of programs.
   `SCF_PROGRAM_READ` | Vide/Edit Program | Fetches program details.
   `SCF_PROGRAMPRODUCT_LIST` | Create Program | Fetches the list of Program products.
   `SCF_PROGRAMPRODUCT_READ` | Create Program | Fetches program product details.
   `SCF_PROGRAM_CREATE` | Create Program | Creates Program
   `SCF_PROGRAM_UPDATE` | Edit Program | Edit program details
   `SCF_LINKED_FINANCE_LIST` | View Invoice Details | Fetches finances linked to an invoice.
   `SCF_FINANCE_CREATE` | Request Finance | This API is used to request finance on invoice(s).
   `SCF_FINANCE_REPAYMENT` | Repay Finance | Initiates request to repay finance.
   `SCF_FINANCE_SETTLEMENT` | View Finance Details | Fetches finance settlement details
   `SCF_FINANCE_READ` | View Finance Details | Fetches finance details
   `SCF_FINANCE_LIST` | View Finance | Fetches list of finances
   `SCF_LINKED_INVOICE_LIST` | View Finance Details | Fetches invoices linked to a finance.
   `SCF_LINK_INVOICE_TO_PROGRAM` | Link Invoice To Program | Links Invoice(s) to Program
   `SCF_DISCOUNT_OFFER_CREATE` | Create Discount Offer | Creates Discount Offer
   `SCF_DISCOUNTOFFER_LIST` | View Discount Offer | Fetches list of discount offers
   `SCF_DISCOUNT_OFFER_READ` | View Discount Offer Details | Fetch discount offer details
   `SCF_LINKED_DISCOUNT_OFFERS` | View Receivables/Payables Details | Fetches list of offers linked to an invoice
   `SCF_CHARGE_CALCULATION` | Manage Receivables/Payables | Fetches applicable discount on an invoice

   This completes the entire configuration needed for consuming OBSCF APIs in OBAPI through OBRH.

4. In addition to the above, below script needs to be executed for successful creation of Discount Offer.

       insert into DIGX_FW_TAXONOMY_DATA_TYPE_MAP
       (ID,TYPE,DATATYPEID,MINLENGTH,MAXLENGTH,MANDATORY,ERRORCODE,LENGTH_ERROCODE,MANDATORY_ERRORCODE,
       CREATION_DATE,CREATED_BY,LAST_UPDATED_DATE,LAST_UPDATED_BY,OBJECT_VERSION_NUMBER)values

       ('com.ofss.digx.app.scf.dto.discountoffer.DiscountOfferRequestDTO.discountOffer.invoices.indicator',
       'CLASS','FREETEXT',null,null,'N',null,null,null,sysdate,'ofssuser',sysdate,'ofssuser',1);

Parent topic: Supply Chain Finance