public class SapFunctionInputFileGeneratorTask
extends org.apache.tools.ant.Task
It generates a sample document that contains all the elements required to execute a BAPI. If you map your input file to the
generated example, then it will be possible to use DynamicBapiProducer
or DynamicRfcProducer
as your producer
without explicitly configuring any ExportParameter
or
ImportParameter
instances.
[BAPI_NAME]/INPUT
element[BAPI_NAME]/OUTPUT
element[BAPI_NAME]/INPUT/TABLES
element and also the
[BAPI_NAME]/OUTPUT/TABLES
element as tables could form both a an input and output parameter; how you can have
multiple rows for a table parameter should be obvious from the resulting XML.SapFunctionToXml
Constructor and Description |
---|
SapFunctionInputFileGeneratorTask() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
void |
init() |
void |
setBapi(java.lang.String bapi) |
void |
setClient(java.lang.String client) |
void |
setHost(java.lang.String host) |
void |
setLanguage(java.lang.String language) |
void |
setOutputDir(java.io.File outputDir) |
void |
setPassword(java.lang.String password) |
void |
setSysnr(java.lang.String sysnr) |
void |
setUser(java.lang.String user) |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void init() throws org.apache.tools.ant.BuildException
init
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
public void setUser(java.lang.String user)
public void setPassword(java.lang.String password)
public void setClient(java.lang.String client)
public void setSysnr(java.lang.String sysnr)
public void setHost(java.lang.String host)
public void setLanguage(java.lang.String language)
public void setBapi(java.lang.String bapi)
public void setOutputDir(java.io.File outputDir)
Copyright Adaptris