{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":21557,"path":"integrate-applications/integration-hub/setup-pplsoftfin-spoke.md","title":"Set up the Oracle Peoplesoft Financial spoke","bundle":null,"doc_type":null,"release":"australia","body":"\n# Set up the Oracle Peoplesoft Financial spoke\n\nIntegrate the Oracle Peoplesoft Financial and ServiceNow instances, and authenticate the requests using the basic authentication.\n\n## Before you begin\n\n-   Request an Integration Hub subscription.\n-   Activate the Oracle Peoplesoft Financial spoke.\n-   Ensure that you have access to Oracle Peoplesoft Application Designer.\n-   Roles required: ServiceNow admin and Oracle Peoplesoft Financial System Admin.\n\n## Procedure\n\n1.  In the Application Designer, import the Oracle Peoplesoft Financial project.\n\n    1.  From the [ServiceNow® Store](https://store.servicenow.com/sn_appstore_store.do#!/store/application/6700409ddb1de4541e5c56a8dc961927) download the project file, SN\\_PS\\_FSCM\\_INTEGRATION.zip and save it in the required local folder.\n\n    2.  Import the Oracle Peoplesoft Financial project to the target environment that is, Oracle Peoplesoft Application Designer.\n\n    3.  Navigate to **Copy Project** &gt; **From File** and select the project file.\n\n        \\[Omitted image \"pplsoft-import-project.png\"\\] Alt text: Import the project file.\n\n    4.  Click **Copy** to copy the definition types.\n\n        \\[Omitted image \"pplsoft-copy-def-types.png\"\\] Alt text: Copy the definition types.\n\n    5.  Verify that the project has all the objects; Application packages, Records, Services, and Service Operations.\n\n    6.  Build the project by navigating to **Build** &gt; **Project**.\n\n    7.  Select **Create Tables**, **Create Views**, and **Execute and build script** options.\n\n        \\[Omitted image \"pplsoft-build-project.png\"\\] Alt text: Build project.\n\n        The required tables are created in the target Oracle Peoplesoft Financial database.\n\n2.  Enable the required web services on your Oracle Peoplesoft Financial instance.\n\n    1.  Log in to your Oracle Peoplesoft Financial instance as an System Admin.\n\n    2.  Navigate to **Navigator** &gt; **People Tools** &gt; **Integration Broker** &gt; **Web Services** &gt; **Provide Web Service**.\n\n    3.  In the Search Criteria, specify `sn_` for **Service Name** and click **Search**.\n\n        \\[Omitted image \"peoplesoft-webservices.png\"\\] Alt text: ServiceNow webservices.\n\n    4.  Select the check box against the required web services and click **Next**.\n\n        **Note:** Ensure that you select 24 ServiceNow web services.\n\n        |Service|Description|\n        |-------|-----------|\n        |SN\\_AP\\_INV\\_PYMNT\\_STATUS|AP Invoice Payment Status|\n        |SN\\_AP\\_INV\\_VOUCHER\\_ADD\\_WS|ServiceNow Voucher Add|\n        |SN\\_ASSET\\_LOAD\\_WS|Asset Load|\n        |SN\\_BILL\\_GET\\_INV|Get Invoice|\n        |SN\\_CREATE\\_VENDOR\\_CI|Create Vendor|\n        |SN\\_EXECUTEQUERY|ServiceNow - QAS|\n        |SN\\_GET\\_AP\\_INVOICE\\_DTL|AP Invoice Detail|\n        |SN\\_GET\\_ASR|Advance Shipment Receipt|\n        |SN\\_GET\\_ASSET|SN\\_GET\\_ASSET|\n        |SN\\_GET\\_BID\\_EVENT|ServiceNow Bid Event|\n        |SN\\_GET\\_CC|Get Const centres|\n        |SN\\_GET\\_CURRENCY\\_RATES|Get Currency Rates|\n        |SN\\_GET\\_GL\\_ACCOUNT|Get GI Accounts|\n        |SN\\_GET\\_GL\\_BALANCE|Ledger Data|\n        |SN\\_GET\\_GL\\_BU|Get GL BU|\n        |SN\\_GET\\_ITEM\\_MASTER|Item Master|\n        |SN\\_GET\\_POHDR|PO Header|\n        |SN\\_GET\\_POLN|Get PO Line|\n        |SN\\_GET\\_SHIPTO\\_LOCATIONS|Get Ship to Locations|\n        |SN\\_GET\\_SUPPLIERS|Get Suppliers/Vendors|\n        |SN\\_JOURNAL\\_LOAD|ServiceNow Journal Load|\n        |SN\\_MANAGE\\_PROCESSES|ServiceNow Process webservice|\n        |SN\\_PO\\_CANCEL|SN PO CANCEL|\n        |SN\\_RECPT\\_LOAD|Receipt frm SN|\n\n    5.  Under **Operations**, select the check box against the required web service and click **Next**.\n\n    6.  Click **View WSDL** to view the WSDL file and click **Next**.\n\n    7.  In **Specify Publishing Options**, click **Finish**.\n\n        Generated WSDL URL is displayed in this format: `<Base-URL>/<webservice-endpoint>.wsdl`\n\n    8.  Navigate to **Navigator** &gt; **People Tools** &gt; **Integration Broker** &gt; **Web Services** &gt; **CI-Based Services**.\n\n    9.  Perform the same steps that you had earlier performed for the webservices.\n\n        **Note:** Configure the webservices as per your requirement.\n\n3.  Provide the required permissions to the web services.\n\n    1.  Log in to your Oracle Peoplesoft Financial instance as a System Admin.\n\n    2.  Navigate to **Navigator** &gt; **People Tools** &gt; **Integration Broker** &gt; **Web Services** &gt; **Service Utilities** &gt; **Service Operation Permissions**.\n\n    3.  Select **Service** option, specify the service name in **Service**, and click **Search**.\n\n        \\[Omitted image \"peoplesoft-permission.png\"\\] Alt text: Permissions for the web services.\n\n    4.  Select the check box against the required web service and click **Set Security**.\n\n    5.  In **Web Service Access**, provide access as per your requirement and click **Save**.\n\n        \\[Omitted image \"peoplesoft-access.png\"\\] Alt text: Provide the required access.\n\n4.  Using SQL Developer or Data Mover in Oracle Peoplesoft Application Designer, connect to the database and run these scripts to ensure that the journal entry, SN\\_ACCT\\_ENTRY is built.\n\n    ```\n    SET DEFINE OFF;\n    \n    Insert into PS_SOURCE_TBL (SETID,SOURCE,EFFDT,EFF_STATUS,DESCR,JRNL_BALANCE_OPTN,JRNL_EDIT_ERR_OPTN,JRNL_AMT_ERR_OPTN,JRNL_DT_ERR_OPTN,JRNL_DT_ERR_OPTN2,CONTROL_TOTAL_OPTN,CURRENCY_BAL_OPTN,EXCHANGE_RATE_OPTN,BASE_CUR_ADJ_OPTN,JRNL_FOREIGN_OPTN,POST_ZERO_SW,JRNL_APPRVL_OPTN,BD_JRNL_APPR_OPTN,BUSPROCNAME,APPR_RULE_SET,BUSPROCNAME_BD,APPR_RULE_SET_BD,PHYSICAL_NATURE,DOC_TYPE_OPTN,DOC_TYPE) values ('SHARE','SN',to_date('01-JAN-00','DD-MON-RR'),'A','ServiceNow','R','R','R','D','D','R','D','D','D','D','N','D','D',' ',' ',' ',' ',' ','D',' ');\n    \n    ```\n\n    ```\n    Insert into PS_JRNLGEN_DEFN (SETID,ACCTG_DEF_NAME,DESCR,RECNAME,RECNAME_UPDATE,RECNAME_REFREC_KEY,FIELDNAME_ACCTDATE,FIELDNAME_MON_AMT,FIELDNAME_FRN_AMT,FIELDNAME_STAT_AMT,FIELDNAME_DESCR,FIELDNAME_JRNL_REF,FIELDNAME_OPEN_KEY,FIELDNAME_STLMT_DT,FIELDNAME_DT_STAMP,SYSTEM_SOURCE,BUDGET_AMT_TYPE,PNLNAME,DRILL_DOWN_OPTN,KK_SKIP,JGEN_KK_OPTN,KK_AMOUNT_TYPE,APPL_JRNL_ID_DFLT) values ('SHARE','SNOW_PSFT','ServiceNow Accounting Entries','SN_ACCT_ENTRY','SN_ACCT_ENTRY',' ','ACCOUNTING_DT','MONETARY_AMOUNT','FOREIGN_AMOUNT','STATISTIC_AMOUNT','LINE_DESCR',' ','JRNL_LN_REF','ACCOUNTING_DT','DTTM_STAMP','GOT','OT','JGEN_ACCTG_DRILL','Y','1','V','1',' ');\n    ```\n\n    ```\n    Insert into PS_JRNLGEN_DEFNV (SETID,ACCTG_DEF_NAME,FIELD_SEQUENCE,FIELDNAME,CHARTFIELD,CF_SUMMARIZE_OPT) values ('SHARE','SNOW_PSFT',1,'ACCOUNT','ACCOUNT','Y');\n    Insert into PS_JRNLGEN_DEFNV (SETID,ACCTG_DEF_NAME,FIELD_SEQUENCE,FIELDNAME,CHARTFIELD,CF_SUMMARIZE_OPT) values ('SHARE','SNOW_PSFT',2,'ALTACCT','ALTACCT','Y');\n    Insert into PS_JRNLGEN_DEFNV (SETID,ACCTG_DEF_NAME,FIELD_SEQUENCE,FIELDNAME,CHARTFIELD,CF_SUMMARIZE_OPT) values ('SHARE','SNOW_PSFT',3,'OPERATING_UNIT','OPERATING_UNIT','Y');\n    Insert into PS_JRNLGEN_DEFNV (SETID,ACCTG_DEF_NAME,FIELD_SEQUENCE,FIELDNAME,CHARTFIELD,CF_SUMMARIZE_OPT) values ('SHARE','SNOW_PSFT',4,'DEPTID','DEPTID','Y');\n    Insert into PS_JRNLGEN_DEFNV (SETID,ACCTG_DEF_NAME,FIELD_SEQUENCE,FIELDNAME,CHARTFIELD,CF_SUMMARIZE_OPT) values ('SHARE','SNOW_PSFT',5,'PRODUCT','PRODUCT','Y');\n    Insert into PS_JRNLGEN_DEFNV (SETID,ACCTG_DEF_NAME,FIELD_SEQUENCE,FIELDNAME,CHARTFIELD,CF_SUMMARIZE_OPT) values ('SHARE','SNOW_PSFT',6,'PROJECT_ID','PROJECT_ID','Y');\n    Insert into PS_JRNLGEN_DEFNV (SETID,ACCTG_DEF_NAME,FIELD_SEQUENCE,FIELDNAME,CHARTFIELD,CF_SUMMARIZE_OPT) values ('SHARE','SNOW_PSFT',7,'AFFILIATE','AFFILIATE','Y');\n    Insert into PS_JRNLGEN_DEFNV (SETID,ACCTG_DEF_NAME,FIELD_SEQUENCE,FIELDNAME,CHARTFIELD,CF_SUMMARIZE_OPT) values ('SHARE','SNOW_PSFT',8,'STATISTICS_CODE','STATISTICS_CODE','Y');\n    \n    ```\n\n    ```\n    Insert into PS_JRNLGEN_DEFMB (SETID,ACCTG_DEF_NAME,FIELD_SEQUENCE,FIELDNAME) values ('SHARE','SNOW_PSFT',1,'BUSINESS_UNIT');\n    Insert into PS_JRNLGEN_DEFMB (SETID,ACCTG_DEF_NAME,FIELD_SEQUENCE,FIELDNAME) values ('SHARE','SNOW_PSFT',2,'TRANSACTION_ID');\n    Insert into PS_JRNLGEN_DEFMB (SETID,ACCTG_DEF_NAME,FIELD_SEQUENCE,FIELDNAME) values ('SHARE','SNOW_PSFT',3,'LEDGER_GROUP');\n    Insert into PS_JRNLGEN_TGRP (SETID,ACCTG_DEF_NAME,FIELD_SEQUENCE,FIELDNAME,FIELD_VALUE1) values ('SHARE','SNOW_PSFT',1,'BUSINESS_UNIT',' ');\n    Insert into PS_JRNLGEN_TGRP (SETID,ACCTG_DEF_NAME,FIELD_SEQUENCE,FIELDNAME,FIELD_VALUE1) values ('SHARE','SNOW_PSFT',2,'TRANSACTION_ID',' ');\n    Insert into PS_JRNLGEN_APPL_ID (SETID,APPL_JRNL_ID,EFFDT,EFF_STATUS,DESCR,JOURNAL_ID_MASK,JRNL_DT_OPTN,JRNL_DT_ALT_OPTN,JOURNAL_DATE,STAY_IN_PERIOD,SOURCE,CURR_EFFDT_FLG,JRNL_DESCR,LINE_DESCR,TRANS_REF_NUM,JRNL_LN_REF,HOW_SPECIFY,ACCOUNT_SPECIFY,DEFAULT_SPECIFY,TREE_NAME,TREE_LEVEL,REVERSAL_CD,ENTRY_SYNC,BUS_UNIT_OPTN,DOC_TYPE) values ('SHARE','SNOW_PSFT',to_date('01-JAN-00','DD-MON-RR'),'A','ServiceNow Journal Template','SN','A','BF',null,'N','SN','J','ServiceNow External Journals','ServiceNow Journal Template',' ',' ','D','1','D',' ',' ','N','Y','A','GN-JG');\n    \n    ```\n\n    ```\n    Insert into PS_JRNLGEN_REQUEST(OPRID,RUN_CNTL_ID,REQUEST_NBR,PROCESS_FREQUENCY,PROCESS_STATUS,PROCESS_INSTANCE,PROCESS_ORIG,DTTM_STAMP_SEC,SETID,FROM_DT_OPTN,FROM_DT,TO_DT_OPTN,TO_DT,APPL_JRNL_ID,LEDGER_GROUP,BUSINESS_UNIT,ACCTG_DEF_NAME,JRNL_EDIT_OPTN,JRNL_BGTCHK_OPTN,JRNL_POST_OPTN,RTM_PRCS_FLG) values ('VP1','SN-PSFT',1,'A','C',200255,'P',to_timestamp('16-JUL-20 02.03.43.204000000 PM','DD-MON-RR HH.MI.SSXFF AM'),'SHARE','N',null,'C',null,'SNOW_PSFT','RECORDING',' ','SNOW_PSFT','Y','N','N',' ');\n    ```\n\n    ```\n    Insert into PS_PRCSRUNCNTL (OPRID,RUN_CNTL_ID,LANGUAGE_CD,LANGUAGE_OPTION) values ('VP1','SN-PSFT','ENG','O');\n    Insert into PS_PRCSRUNCNTL (OPRID,RUN_CNTL_ID,LANGUAGE_CD,LANGUAGE_OPTION) values ('VP1','SN_LOAD_1','ENG','O');\n    Insert into PS_PRCSRUNCNTL (OPRID,RUN_CNTL_ID,LANGUAGE_CD,LANGUAGE_OPTION) values ('VP1','SN_PSFT_AP_VOUCHER_BUILD','ENG','O');\n    \n    ```\n\n5.  Configure a connection record for the Oracle Peoplesoft Financial spoke.\n\n    1.  Log in to the ServiceNow instance as an admin.\n\n    2.  Navigate to **All** &gt; **Process Automation** &gt; **Flow Designer**\n\n    3.  Select the **Connections** tab.\n\n    4.  Locate the **Oracle\\_PeopleSoft** alias and click **View Details**.\n\n        **Note:** Don't click **Add Connection**.\n\n        \\[Omitted image \"orc-peoplesft-conn-template.png\"\\] Alt text: Oracle Peoplesoft spoke connection template alias\n\n    5.  Click **Configure**.\n\n        \\[Omitted image \"orc-pplesft-con-tempt-confg.png\"\\] Alt text: Oracle Peoplesoft spoke connection template configuration\n\n    6.  On the **Configure Connection**, fill in the fields.\n\n<table id=\"table_bb4_lrl_q1c\"><thead><tr><th>\n\nField\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nConnection Name\n\n</td><td>\n\nName to uniquely identify the connection.\n\n</td></tr><tr><td>\n\nConnection URL\n\n</td><td>\n\nBase URL obtained from the generated WSDL URL. **Note:** Remove the `<webservice-endpoint>.wsdl` part of the WSDL URL while specifying the Connection URL.\n\n</td></tr><tr><td>\n\nUser name\n\n</td><td>\n\nUser name of your Oracle Peoplesoft Financial account.\n\n</td></tr><tr><td>\n\nPassword\n\n</td><td>\n\nPassword of your Oracle Peoplesoft Financial account.\n\n</td></tr></tbody>\n</table>    7.  Click **Configure Connection**.\n\n6.  Provide Oracle Peoplesoft Financial credentials to use the Process Trigger action.\n\n    1.  Log in to the ServiceNow instance as an admin.\n\n    2.  Navigate to **Oracle Peoplesoft Credentials** &gt; **Oracle Peoplesoft Credentials**.\n\n    3.  Click **New**.\n\n    4.  On the form, enter the username and password of user with the required permissions.\n\n    5.  Click **Submit**.\n\n7.  Retrieve details of the daily suppliers up to the required date.\n\n    1.  Log in to the ServiceNow instance as an admin.\n\n    2.  Navigate to **PSFT Flow Execution** &gt; **PSFT Flow Executions**.\n\n    3.  Click **New**.\n\n    4.  Select the date up to which you want to retrieve the daily suppliers data in **Last Successfull Execution**.\n\n    5.  Click **Submit**.\n\n    Based on the trigger you have configured in the Polling Suppliers subflow, data is retrieved periodically. To view the data, navigate to **PSFT** &gt; **PSFT Data**.\n\n\n"}}