Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION...
-
Upload
trinhthien -
Category
Documents
-
view
289 -
download
8
Transcript of Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION...
![Page 1: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/1.jpg)
Copyright ADSOTECH Scandinavia Oy 2016
Winshuttle STUDIO 11
TRANSACTION Developer
Advanced Training 11
Copyright ADSOTECH Scandinavia Oy 2014
![Page 2: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/2.jpg)
Basic Training Advanced Training IIAdvanced Training I
Contents
2
Winshuttle Studio 11
TRANSACTION Developer
Basic Training
User Interface
Creating the First Script
Problem Investigation
Recording Modes
Reporting a Script Problem to ADSOTECH
Winshuttle Studio 11
TRANSACTION Developer
Advanced Training I
Multiline Recordings (Loops)
Read From SAP
Script Linking
Backup SAP Data
Data Validation
Winshuttle Studio 11
TRANSACTION Developer
Advanced Training II
Cell Based Mapping
Dynamic Recordings (Conditions)
Managing Long Texts (Read and Update)
Making Scripts Available for RUNNER Users
![Page 3: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/3.jpg)
Basic Training Advanced Training IIAdvanced Training I
Today’s Agenda
Multiline Recordings (Loops)
Read From SAP
Script Linking
Backup SAP Data
Data Validation
3
![Page 4: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/4.jpg)
Basic Training Advanced Training IIAdvanced Training I
4
Multiline functionality
![Page 5: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/5.jpg)
Basic Training Advanced Training IIAdvanced Training I
Multiline Transaction – FB50
5
Header
section
Line Item
section
![Page 6: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/6.jpg)
Basic Training Advanced Training IIAdvanced Training I
Inserting New Lines
• All line items to be created in exactly the same way
Use the same row in the SAP screen
• Look for buttons like Insert Line or Add Line
Other good options: Find Line, Position, Filter
• Often best to use the first row
Existing rows pushed down
Second or last row also possible
• Make it repeatable
Use buttons to free the same row again
6
![Page 7: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/7.jpg)
Basic Training Advanced Training IIAdvanced Training I
Inserting New Lines
7
1. Fill in the Header section first
2. Press Enter
3. Fill in 2-3 Line Items repeating
these steps:
a) Input data on the first row
b) Press Enter
c) Select the first row
d) Click Insert Row
4. Save the document
![Page 8: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/8.jpg)
Basic Training Advanced Training IIAdvanced Training I
Loop definition in the Mapper
8
Select the repeating set
of lines in the Mapper
![Page 9: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/9.jpg)
Basic Training Advanced Training IIAdvanced Training I
9
Indicate which Excel
column will contain the
”row type” identifier and
what the identifiers will
be for Header and Line
Items respectively.
Loop definition in the Mapper
Once correct lines
are selected, click
Create Loop.
![Page 10: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/10.jpg)
Basic Training Advanced Training IIAdvanced Training I
10
You can see
where the loop
has been set up.
Now you need to disable the
actions you recorded for the
other line item(s). You should
find exactly the same actions as
you have inside the loop. Look
just above and below the loop.
Loop definition in the Mapper
![Page 11: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/11.jpg)
Basic Training Advanced Training IIAdvanced Training I
11
Loop in ExcelDefine H and D in column A to indicate
which Excel row contains Header data
and which Line Item data.
![Page 12: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/12.jpg)
Basic Training Advanced Training IIAdvanced Training I
12
Loop in Excel – result log
![Page 13: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/13.jpg)
Basic Training Advanced Training IIAdvanced Training I
Multiline demo
13
• G/L posting in FB50
• How to record
• How to map
![Page 14: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/14.jpg)
Basic Training Advanced Training IIAdvanced Training I
Multiline Tips (1)
14
• First investigate the SAP transaction
• Look for Insert Line, Add Line, Find Line, Position, Filter
• Discover how to make the process repeatable
• Always add the line on the same physical screen row
• Use the first, second or last row
• Page Down can help as well
• Record minimum two line item entries
• Easier to find the repeating pattern when mapping
• Loop around one line item and its actions
• Disable the other item and its actions
![Page 15: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/15.jpg)
Basic Training Advanced Training IIAdvanced Training I
Multiline Tips (2)
15
• Changing existing items is more challenging
• Ability to locate the correct item depends on Tcode
• In some cases the only option is to use GUI Scripting
as recording mode to be able to use Index Based If
• Some scripts may be used to add only 1-3 line items
and never more
• Maybe more user friendly without loop
• Record and map 3 separate line items
• May need to use Skip Field Indicator or some
conditions in the script
![Page 16: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/16.jpg)
Basic Training Advanced Training IIAdvanced Training I
16
Read from SAP
![Page 17: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/17.jpg)
Basic Training Advanced Training IIAdvanced Training I
Read from SAP
17
• Download data from SAP fields
• No queries needed, script similar to upload
• Read only fields can be used
• Reading and uploading in one script or separate
• Depending on the case
![Page 18: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/18.jpg)
Basic Training Advanced Training IIAdvanced Training I
Read from SAP usage
18
• Material master modifications
• One script to read, another to upload (separate)
• HR pay change
• One script to read, another to upload, linked
• New values calculated by Excel formulas
• Creating PO
• One script to upload, reading a few fields
• Upload will generate data to 2 other fields
• Same script can read this generated data
![Page 19: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/19.jpg)
Basic Training Advanced Training IIAdvanced Training I
Read from SAP – In Mapper
19
Material Description is downloaded from SAP to Excel.
Material Number and others are uploaded from Excel to SAP.
![Page 20: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/20.jpg)
Basic Training Advanced Training IIAdvanced Training I
Read from SAP – In Excel
20
Column F downloaded from SAP, other columns uploaded to SAP
![Page 21: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/21.jpg)
Basic Training Advanced Training IIAdvanced Training I
Using read only fields
21
Read only fields need to be
activated separately.
View menu
Expert View
Disabled FieldsYou see a lot of
grey lines. Find
your field and
click on Enable
tick box. Then
you can map it.
Recommended to take off
Disabled Fields once
needed fields are selected.
![Page 22: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/22.jpg)
Basic Training Advanced Training IIAdvanced Training I
Demo
22
• Read from SAP using MM02
![Page 23: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/23.jpg)
Basic Training Advanced Training IIAdvanced Training I
23
Script linking
![Page 24: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/24.jpg)
Basic Training Advanced Training IIAdvanced Training I
Script linking = Chaining
24
• Execute multiple scripts automatically in a sequence
• Combine scripts to automate business processes
![Page 25: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/25.jpg)
Basic Training Advanced Training IIAdvanced Training I
25
MM01 ME11 ME21N
Script Linking = Chaining
One script always
operates in one SAP
transaction.
Another script can
operate in the same
transaction or in a
different one.
Link scripts together to run a bigger
portion of a business process.
Create an automated sequence of
those actions that you have the
necessary data for at one time.
![Page 26: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/26.jpg)
Basic Training Advanced Training IIAdvanced Training I
Add a script to the
chain.
You can choose to use
the Run Settings of the
first script for all in the
chain or each script to
use their own default
settings.
Script Linking = Chaining
26
To define a
script chain,
click on
Chain Scripts
in the Run
menu.
![Page 27: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/27.jpg)
Basic Training Advanced Training IIAdvanced Training I
Script Linking = Chaining
27
Make sure the chained scripts
are in the right order. You can
move them up or down in
the list by clicking the arrow
buttons. First script cannot
be moved as you are doing
this setup in that script.
![Page 28: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/28.jpg)
Basic Training Advanced Training IIAdvanced Training I
Script linking alternatives
• Each script uses separate Excel input file (this is not
possible on Central)
• Each script shares the same Excel input file
• Each script shares the same Excel input file but uses
different worksheets
• Different combinations of above if >2 scripts chained
• The right solution depends on your need
28
![Page 29: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/29.jpg)
Basic Training Advanced Training IIAdvanced Training I
DEMO
• MM02 using script linking
• First script only reads from SAP
• Second script updates using first script’s Excel as input
29
![Page 30: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/30.jpg)
Basic Training Advanced Training IIAdvanced Training I
30
Backup SAP Data
![Page 31: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/31.jpg)
Basic Training Advanced Training IIAdvanced Training I
Backup SAP data
31
• Automatic backup of the SAP data to be changed
• Same time as upload of new data
• New sheet in the Excel template
• Good for repeated updates
• Only for updates – not creation
• Requires Standard Mode
• Activate in the Run menu
![Page 32: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/32.jpg)
Basic Training Advanced Training IIAdvanced Training I
DEMO
• MM02 using Backup option
32
![Page 33: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/33.jpg)
Basic Training Advanced Training IIAdvanced Training I
33
Data Validation
![Page 34: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/34.jpg)
Basic Training Advanced Training IIAdvanced Training I
Data Validation
34
• Helps to ensure data is valid before actual upload
• Result: ”Success” or error message per row in Excel
• Enable the feature
• Map menu
• When enabled
• Use from Run menu
![Page 35: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/35.jpg)
Basic Training Advanced Training IIAdvanced Training I
Data Validation rules
35
• No data update on the last screen of recording
• Don’t go directly to Save after last update
• Press Back to get prompted to save
• Or navigate to different tab and then save
• Only a single commit (= save action) in script
• Most transactions have single commit
• PA30 has more – validation won’t work
![Page 36: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/36.jpg)
Basic Training Advanced Training IIAdvanced Training I
Data Validations limitations
36
• No GUI Scripting
• No linked scripts
• No multiple unnested loops
• Nested loops ok
• No logical validation
• Only checks data for individual SAP fields
• Checks header and line item fields separately
• In FICO document balance is not validated
![Page 37: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/37.jpg)
Basic Training Advanced Training IIAdvanced Training I
Data Simulation
37
• Available for specific transactions
• Validates data and simulates posting
• Catches document balance in FICO
• Simulate button in Run menu
• Allow Validation enabled in Map menu
• Requires Winshuttle Function Module in SAP
![Page 38: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/38.jpg)
Basic Training Advanced Training IIAdvanced Training I
DEMO
38
• Validation / Simulation using FB50
![Page 39: Winshuttle STUDIO 11 TRANSACTION Developer · PDF fileWinshuttle Studio 11 TRANSACTION Developer Advanced Training I Multiline Recordings (Loops) Read From SAP Script Linking ... MM01](https://reader034.fdocuments.us/reader034/viewer/2022042500/5aa103757f8b9a89178ed4dd/html5/thumbnails/39.jpg)
Basic Training Advanced Training IIAdvanced Training I
ADSOTECH Scandinavia OyPiispanportti 502240 EspooFinland+358 10 321 6260
Sales:Christer Mäkelä +358 10 321 [email protected] +358 40 900 9990
Support:[email protected] +358 10 321 6267
39
Contacts in the Nordics