FM scripts - header level 0

EasyInput Frequently Asked Questions
Post Reply
moderator
Posts: 205
Joined: Wed Jun 22, 2016 7:45 pm

FM scripts - header level 0

Post by moderator »

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

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
Incorrect (level 0 does not contain any values on start, thus EI cannot assign the line to level 0 = the header)

Code: Select all

          Header           Line
Level     Ret.doc.number   Material   Quantity    
         	     
1                          23456789   12
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.

Post Reply