In
order to use the "GUI_UPLOAD" function the called function module
needs a connection to SAP GUI.
We suggest you use the -dialog option of the Call statement, e.g.
call ZGUIXT_CREATEORDER -dialog in.I_KTEXT="test" ...
The
RFC user needs to be a dialog user in this case.
There
are two alternative solutions:
(a)
for which a
dialog RFC user is required
In
your function, execute
Call 'SYSTEM_ATTACH_GUI'.
(b)
for which no
dialog user is necessary
Read
the file in the InputScript, for example using CopyText ... fromFile=...., and
pass the file content to the function module (table parameter).
|