FM scripts - header level 0
Posted: Mon Apr 23, 2018 1:55 pm
When calling function modules (FM scripts) sometimes no data for header line is really needed or it is defaulted by configuration (on EI_Script_FM).
Yet, EasyInput requires header line (level 0) for each Function Script call. Thus the user has to pass at least one parameter on the header level!
Correct
Incorrect (missing level 0)
Furthermore for Automatic Level/Order functionality to work (automatic assignement of data rows to document levels) some header data has to be put on the data worksheet.
See the examples below:
Correct
Incorrect (level 0 does not contain any values on start, thus EI cannot assign the line to level 0 = the header)
Note that a dirty solution to the incorrect example above would be to put any string (e.g. "X") in the returned document column before calling the script. Than EI would assign the header row to level 0.
Yet, EasyInput requires header line (level 0) for each Function Script call. Thus the user has to pass at least one parameter on the header level!
Correct
Code: Select all
Header Line
Level Comp Code Material Quantity
0 0001
1 23456789 12
Incorrect (missing level 0)
Code: Select all
Level Material Quantity
1 23456789 12
Furthermore for Automatic Level/Order functionality to work (automatic assignement of data rows to document levels) some header data has to be put on the data worksheet.
See the examples below:
Correct
Code: Select all
Header Line
Level Ret.doc.number Comp Code Material Quantity
0 0001
1 23456789 12
Code: Select all
Header Line
Level Ret.doc.number Material Quantity
1 23456789 12