Using PeopleSoft File Layout (Third Party Administrator File Generation)



Similar documents
PeopleSoft Development: Overview of Application Engine and the Query Tool. Presented by: Judi Doolittle (Judi Hotsinpller) and Barbara Sandoval

PeopleSoft Compare Process

A database is a collection of data organised in a manner that allows access, retrieval, and use of that data.

StreamServe Persuasion SP4 StreamServe Connect for SAP - Business Processes

Web Intelligence User Guide

Legal Notes. Regarding Trademarks KYOCERA Document Solutions Inc.

Parameter Fields and Prompts. chapter

Advanced BIAR Participant Guide

Excel To Component Interface Utility

Add page numbers and headers and footers by using the gallery, or create a custom page number, header, or footer.

Basic Pivot Tables. To begin your pivot table, choose Data, Pivot Table and Pivot Chart Report. 1 of 18

School account creation guide

CPM release notes

Advanced Event Viewer Manual

Create a New Database in Access 2010

Handout: Creating Forms in Word 2010

SBCH Medicaid Verification System File Exchange

How Do I Upload Multiple Trucks?

Creating tables of contents and figures in Word 2013

Decision Support AITS University Administration. Web Intelligence Rich Client 4.1 User Guide

MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC

Microsoft Access Basics

Working with SmartArt

Advanced Presentation Features and Animation

User Manual for the SAP Business Objects BI Platform 4.1 System (BI Suite) CONTENTS

Oracle Open World How Can Oracle Business Intelligence Publisher Serve Your Reporting Needs? Presented by: Todd Kummer SpearMC Consulting

3 IDE (Integrated Development Environment)

Advanced Word for Windows

!"#"$%&'(()!!!"#$%&'())*"&+%

RA MODEL VISUALIZATION WITH MICROSOFT EXCEL 2013 AND GEPHI

Timeless Time and Expense Version 3.0. Copyright MAG Softwrx, Inc.

Creating Excel Link reports with efficient design

Introduction to Microsoft Access 2010

Introduction to Microsoft Access 2013

File Management Where did it go? Teachers College Summer Workshop

SonicWALL GMS Custom Reports

Excel basics. Before you begin. What you'll learn. Requirements. Estimated time to complete:

Downloading RIT Account Analysis Reports into Excel

Toad for Data Analysts, Tips n Tricks

Importing from Tab-Delimited Files

Introduction to the TI Connect 4.0 software...1. Using TI DeviceExplorer...7. Compatibility with graphing calculators...9

Before you may use any database in Limnor, you need to create a database connection for it. Select Project menu, select Databases:

Analyzing Excel Data Using Pivot Tables

Search help. More on Office.com: images templates

Introduction to Microsoft Excel 2010

Data Integrator. Samples. Handbook. Pervasive Software, Inc B Riata Trace Parkway Austin, Texas USA

ACCESS Importing and Exporting Data Files. Information Technology. MS Access 2007 Users Guide. IT Training & Development (818)

Lesson 07: MS ACCESS - Handout. Introduction to database (30 mins)

Creating Comic Life Images Using Microsoft Word, Clipart, and Irfanview.

NETWORK PRINT MONITOR User Guide

Infoview XIR3. User Guide. 1 of 20

Windows XP Managing Your Files


When a variable is assigned as a Process Initialization variable its value is provided at the beginning of the process.

Planning and Creating a Custom Database

DATA HANDLING: SETTING UP A DATABASE

Identity Finder Setup

INFOPATH FORMS FOR OUTLOOK, SHAREPOINT, OR THE WEB

Creating Database Tables in Microsoft SQL Server

How to Excel with CUFS Part 2 Excel 2010

March Module 3 Processing MOVES Output

How to test and debug an ASP.NET application

Designing and Implementing Forms 34

Microsoft Business Contact Manager Version 2.0 New to Product. Module 4: Importing and Exporting Data

IRA Pivot Table Review and Using Analyze to Modify Reports. For help,

Creating a New Search

Sample- for evaluation purposes only. Advanced Crystal Reports. TeachUcomp, Inc.

Tips on exporting your Oracle Apps reports to Excel. Introduction

Using SQL Server Management Studio

Microsoft Excel 2013: Using a Data Entry Form

Creating a Simple Macro

MyOra 3.5. User Guide. SQL Tool for Oracle. Kris Murthy

for Sage 100 ERP Business Insights Overview Document

Software Application Tutorial

4. The Third Stage In Designing A Database Is When We Analyze Our Tables More Closely And Create A Between Tables

Version 4.1 USER S MANUAL Technical Support (800)

Adobe Acrobat X Pro Creating & Working with PDF Documents

Home Loan Manager Pro 7.1

IBM WebSphere Adapter for PeopleSoft Enterprise Quick Start Tutorials

User Guide. Trade Finance Global. Reports Centre. October nordea.com/cm OR tradefinance Name of document 8/8 2015/V1

LongoMatch:The Digital Coach. User Guide

Nimsoft Monitor. cmdbgtw Guide. v1.0 series

Introduction Download and Install Mobile Application About Logging In Springboard Navigation List Pages...

Getting Started Guide

Data Archiving - Solutions, Challenges, Considerations & 3rd Party Tools. Putting Customer First

Intellect Platform - Tables and Templates Basic Document Management System - A101

Crystal Reports Payroll Exercise

Document Management Quick Reference Guide

Creating and Using Forms in SharePoint

Jet Data Manager 2012 User Guide

Getting Started with STATISTICA Enterprise Programming

Advanced Tornado TWENTYONE Advanced Tornado Accessing MySQL from Python LAB

Macros in Word & Excel

LEARNING RESOURCE CENTRE GUIDE TO OFFICE 365

RightFax FaxUtil. Quick reference guide to getting started. Note: This document applies to OpenText RightFax version 10.0

HRS 750: UDW+ Ad Hoc Reports Training 2015 Version 1.1

Password Memory 6 User s Guide

Mail Chimp Basics. Glossary

Getting started guide for installing printers and printing at UNIS

Microsoft Word 2011: Create a Table of Contents

Transcription:

Using PeopleSoft File Layout (Third Party Administrator File Generation) Judi Doolittle, OCP, Oracle ACE Natasha Garcia Sandia National Laboratories

What we will cover Writing Data to a Flat File Methods to Read and Write (Plain Text Files) Writing Files (Defined by a File Layout) Creating an App Engine (to Export Data to Flat File) Creating Multilevel File Layout PeopleCode for Multilevel File Layout Segments in File Layout N

Writing Data to a Flat File File Class Methods ReadLine (string) Wit WriteLine (string) ti WriteString (string) N

PeopleCode Example Local string &string; Local File &Myfile, &Myfile2; &MyFile = GetFile( test.txt txt, R ); R); &MyFile2 = GetFile( c:\temp\test2.txt, W, %FilePath_Absolute); If &MyFile.IsOpen Then While &Myfile.ReadLine(&string); &MyFile2.WriteLine(&string); End-While; End-If; &MyFile.Close(); &MyFile2.Close(); N

PeopleCode Example Local XmlDoc &inxmldoc /* load message to file */ &xmlfile = GetFile("IB_MSG_TEMP.xml", "W"); If &xmlfile.isopen Then &xmlstring = &inxmldoc.genformattedxmlstring(); &xmlfile.writestring(&xmlstring); &xmlfile.close(); End-If; N

Methods to Read and Write (Plain Text Files) WriteRecord- writes the contents of a record object to the file. You can use this to write one file record at a time and not have to instantiate and populate a rowset object. WriteRowset- writes the contents of a rowset object, rowset, to the output file associated with the file object that calls the method. Calling this method one time writes the entire contents of the rowset to the file. N

CreateRowset Local Rowset &rs_carry_desig; &rs_carry_desig = CreateRowset(Record.AV_DESIGNATION); N

CreateSQL Function Instantiates ti t a SQL object from the SQL class then it opens it on the sqlstring and/or input values. The sqlstring is the parameter that holds the SQL statement SQL errors will cause PeopleCode to terminate with an error MetaSQL %SelectAll is a way to select everything in a record Tip: Remember to wrap DateTime fields with %DateOut, %TimeOut, %DateIn, and %TimeIn N

PeopleCode Example Local Record &rec1; Local SQL &SQL; /*Create Instance of Record */ &rec1 = CreateRecord(record.tc_help_me_tbl); tc tbl); /*Create SQL object to populate rowset */ &SQL = CreateSQL( %selectall(:1), &rec1); N

Writing Files using File Layout Local File &MyFile; Local Record &rec1; Local SQL &SQL1; /*Create Instance of Record */ &rec1 = CreateRecord(record.tc_help_me_tbl); &MyFile = GetFile( c:\temp\help p_ me.txt, A, %FilePath_ Absolute); &MyFile.setFileLayout(FileLayout.help_me); /*Create SQL object to populate rowset */ &SQL1 = CreateSQL( %selectall(:1), &rec1); While &SQL1.Fetch(&rec1) &MyFile.WriteRecord(&rec1); End-While; &MyFile.Close(); N

Creating an App Engine (to Export Data to Flat File) Steps Application Designer, File, New, Application Engine Program Select Insert, Action Save the Program Change the Action type to PeopleCode Enter Code Save Run N

Steps for Creating a Multilevel File Layout 1. Create a View 2. Create a new file layout 3. Drop and drag the view into the layout 4. Use the toolbar arrows to determine hierarchy 5. Double-click the record name to set segment properties 6. Assign a unique file record ID to each record 7. Note: start position and length are set automatically 8. Click OK 9. Click Yes to increment the start position of all fields 10. Save the File J

Easiest Way to do File Layout Match to View Record SL_BEN_COBC_VW

File Layout one to one to View

File Record ID Identifies the record Can be used with fixed and CSV files ID must be included in your flat file Assigned at the file layout segment level

COBRA TPA (Third Party Administrator) File Layout Example

Creating Rowsets and File /***Create Rowset Instance***/ &sl_rowset = CreateRowset(Record.SL_BEN_COBC_VW); &sl_rowset2 = &sl_rowset.getrow(1).getrowset(1); /***Create File Instance***/ If &whereto = "local" Then &path = "c:\temp\"; Else /* Get Unix path for files */ SQLExec("Select sl_charval from sl_pr_parm_tbl where sl_keyval = 'PATH-PROD-UNIX'", &path); End-If; /* Filename */ &filename = &curdate "_CB_PAR_" &clientid ".txt"; /** Create an instance of the File - this will be opened in Write mode with an absolute path. Then associate it with the appropriate File Layout */ &COBRAFile = GetFile(&path th &filename, "W", %FilePath_Absolute); l t /*********** Filelayout ************************************/ &COBRAFile.SetFileLayout(FileLayout.SL_COB_PAR);

SQL Statements /* Create SQL object to retrieve values */ &SQL1 = CreateSQL("%selectall(:1)", &recl); &SQL2 = CreateSQL("%selectall(:1)", &rec2); &SQL3 = CreateSQL("%selectall(:1)", &rec3);

Looping the Level One Record /* Loop through the rowset to get the values and write the rowset to file */ While &SQL_HDR.Fetch(&recl) /*copy record to rowset */ &recl.copyfieldsto(&rowset1.getrow(1).sl_ben_cob_hdr); /* Write rowset to file */ &COBRAFile.WriteRowset(&rowset1); it R t(& t1) End-While; /* Fetch data from SL_BEN_COBP_VW */ While &SQL_PAR.Fetch(&rec2) &I = 1; /* Copy record to the rowset */ &rec2.copyfieldsto(&rowset2.getrow(&i).sl_ben_cobp_vw); &rowset2.insertrow(&i); &COBRAFile.WriteRowset(&rowset2); &I = &I + 1; End-While; While &SQL_TRL.Fetch(&rec3) /*copy record to rowset */ &rec3.copyfieldsto(&rowset3.getrow(1).sl_ben_cob_trl); /* Write rowset to file */ &COBRAFile.WriteRowset(&rowset3); End-While;

Segments Uses: Specify the action to take for rows of data Limit it fields on the file layout Identify File Layout

Indicate Action You need to send a flat file to another app Indicate Action Insert Update Delete Use Segment to indicate the action

Limit Fields Following provided from: PeopleSoft Integration Tools and Utilities, File Layout and Data Interchange section You have a file and you only want two fields from it One way is to update everything and then manually delete the unwanted data Or insert a segment name it the same as the table and insert only the two fields you want

Limit Fields Cont. You have data that changes or you need to insert new rows Create a single field named AUDIT_ACTION ACTION which will indicate if the record is new or changed Use PeopleCode to look for the field and value and process conditional logic

Identifying the File Layout Use a segment to identify the part of the file you want to import 999 Product /*use PRODUCT layout*/

Steps to work with a Segment Drag and drop your record into the file layout Select Insert Segment Record Name, Max Length, & File Record ID (if you have one) Place your cursor on the Segment Name Select Insert File Field or Insert Database Field Then arrange the Segments in the order you want

Stepping Through Inserting a Stepping Through Inserting a Segment

Creating a Child Segment Insert a Child Segment highlight record, select Insert, ChildSegment, and enter file record name

Putting it all together Putting it all together (real world example)

What we covered Writing Data to a Flat File Methods to Read and Write (Plain Text Files) Writing Files (Defined by a File Layout) Creating an App Engine (to Export Data to Flat File) Creating Multilevel File Layout PeopleCode for Multilevel File Layout Segments in File Layout N

Book Signing Time: 11:45 am to 12:45 pm Location: Bookstore

Download Presentation http://www.oraclepressbooks.com/downloads/

Questions jhotsin@sandia.gov Judi_doolittle@ioug.org nygarci@sandia.gov