xa system-link a powerful development tool denise luther [email protected]

35
XA System-Link A Powerful Development Tool Denise Luther [email protected]

Upload: alexia-joseph

Post on 01-Jan-2016

244 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

XA System-Link

A Powerful Development Tool

Denise [email protected]

Page 2: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

2-2

What is System-Link?

Bridge between XA and other systems Inquiry Maintenance

XML – Standard interface Other ERP systems Other platforms

Part of Power Architecture CSM, PM, OBPM, EPDM, MM… CO’s, PO’s, MO’s, Engineering…

Page 3: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

Why use System-Link

2-3

Replacement for offline loadAccess any object available in Power-Link Only certain files are available for offline loadSecondary objects can be accessedExtra fields defined by userNon-XA Primary objects can be accessedAdd, Change and Delete are supportedPower-Link edits are enforcedIncluding user defined edits

Page 4: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

Why use System-Link

2-4

System-Link handles:Database files and fieldsLogical fieldsBusiness rulesEditingUser ExitsSecurity

You also get Release TransparencyNo worries about release upgrades

Page 5: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

2-5

Methods to connect

System-Link Simulator Use for testing/troubleshooting

Directly to System-Link via LPI RPG/CL programs

To web server via XML Web pages – Java/HTML

Web Services Anything Microsoft-enabled Requires Enterprise Integrator

IBM’s WebSphere MQ Global enterprises Requires IBM products

Page 6: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

2-6

System-Link References

System-Link User Guide – Release 7.7 Download from Infor website

Documentation Product Manuals

Miscellaneous SYSL

System-Link Installation Instructions R7

Configuring WAS 5.0 Express on W2K for System-Link R7 (SH14777) Servlet

information

Page 7: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

2-7

Managing System-Link

Use Link Manager to manage System-Link processes

By environmentBy machine

Distribute server load across resources

Page 8: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

2-8

Managing System-Link

System-Link processes must be started Autostart System-Link

Options at environment level

Page 9: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

2-9

Managing System-Link

Link Manager Green circle means started Right click to start/stop/restart/Move

Page 10: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

2-10

Managing System-Link

Page 11: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

2-11

System-Link Simulator

URL points to your host server Make a desktop shortcut or

bookmark

Page 12: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

2-12

Using System-Link Simulator

Display PO’s for vendor 100 – Restricted List, navigate from Vendor object

Navigation/System-Link request Not required to create System-Link

requests but it makes the job easy

Page 13: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

2-13

System-Link REQUEST

Page 14: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

2-14

Paste from clipboard

Page 15: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

2-15

Variables

Page 16: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

2-16

Check the response

Page 17: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

2-17

Page 18: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

2-18

Make adjustments

Deleted e

Page 19: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

2-19

Request has errors – Check the response

Page 20: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

Update System-Link Command

Page 21: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

Requesting System-Link from Card File

Page 22: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

Copying a Create System-Link Command

Page 23: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

2-23

System-Link sessions

ODBCJOBR7/WRKODBCJOB command will allow you to manage System-Link jobs.

Page 24: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

2-24

System-Link sessions

IP address of auxiliary server will be System-Linksessions

View job log (Option 10) for troubleshooting

Errors from associated Integrator user exits will be in QSYSOPR message queue

Page 25: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

2-25

Local Program Interface

RPG program you call from anywhere PSVPSR1R in AMALIBx

Parameters for the XML to send and receive Inquiry – Request rows (view) or details

(cards) – Receive the results or error

Maintenance – Create records, Update an attribute

– Receive confirmation or error

Page 26: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

2-26

LPI Parameters

Parm Description Use Size Type

P#XREQ XML Request I 65,535 A

P#XRSP XML Response O 65,535 A

P#MRQR More records? *YES if more records to return

O 8 A

P#ERFD Internal Errors*YES if response contains errors

O 8 A

P#MSID External ErrorsPSX0122 – System-Link not startedPSX0130 – Response > 65K

O 7 A

Page 27: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

2-27

LPI sample

Available as a download SH14873

Illustrate one way of using System-Link with your RPG programs Send a request - Send XML request to LPI Parse the response - Receive and parse XML

response from LPI Create a report of PO’s for a vendor Only change required – Supply data for login

substitutions

Page 28: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

2-28

Writing your programs

Sample parsing program USRLPI1R is written generically Can be used for just about any object (use it

for yours) V5R4 New XML functions for parsing

%XML, XML-INTO, %HANDLER, XML-SAX

Sample print program calls the parser field-by-field You can use this technique in your programs There are other techniques

Page 29: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

2-29

<Response_sessionHandle='1a5f739:fc75bbe92b:_7aef‘_workHan

<QueryListResponse_name='queryList_PurchaseOrderGeneral‘_r

<DomainEntity_domainClass='com.mapics.pm.PurchaseOrder'

<Key><Property_path='order'>

<Value><![CDATA[P000349]]></Value></Property>

</Key><Property_path_='order'>

<Value><![CDATA[P000349]]></Value></Property><Property_path='vendor'>

<Value><![CDATA[100]]></Value></Property><Property_path='vendorName'>

<Value><![CDATA[Hi_Tech_Corp]]></Value></Property><Property_path='orderStatus'>

<Value><![CDATA[20]]></Value>

Starts a new record

Field values

Page 30: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

2-30

FetchNext

Don’t ask for too many records at once. You set the limit with MaxReturned

LPI tells you if there are more. ‘FetchNext’ is the way to get more.

Our sample programs shows you how. Create loop that processes until P#MRQR

= *NO

Page 31: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

Supplier Portal - Web application

2-31

Login information used to construct Login tag System-Link request to retrieve P.O. linesAuto content security determines what rows

Page 32: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

System-Link request returns rows

2-32

Page 33: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

Transactions

User actions on the web page are used to construct a System-Link request to create records in a custom transaction file.

Custom transaction file is a business object with Integrator user exits.

User exits are used to perform work on the host (update flags, dates, create attachments)

Integrator user exits execute if object is being maintained via PowerLink, System-Link or NetLink.

2-33

Page 34: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

Custom Forecast Object

Custom objects can be used with System-Link

2-34

Page 35: XA System-Link A Powerful Development Tool Denise Luther denise.luther@cistech.net

Thank You

Questions?

Denise [email protected]