Class SapFunctionInputFileGeneratorTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.adaptris.core.sap.jco3.rfc.dynamic.SapFunctionInputFileGeneratorTask
- All Implemented Interfaces:
Cloneable
public class SapFunctionInputFileGeneratorTask
extends org.apache.tools.ant.Task
Ant task that queries a given repository for a SAP Function.
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.
- Input parameters will always be a child of the
[BAPI_NAME]/INPUT
element - Output parameters will always be a child of the
[BAPI_NAME]/OUTPUT
element - Table parameters will be a child of the
[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. - CHANGING parameters are not currently supported.
- Every element has attribute information
- See Also:
-
SapFunctionToXml
-
Field Summary
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
void
init()
void
void
void
void
setLanguage
(String language) void
setOutputDir
(File outputDir) void
setPassword
(String password) void
void
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
SapFunctionInputFileGeneratorTask
public SapFunctionInputFileGeneratorTask()
-
-
Method Details
-
init
public void init() throws org.apache.tools.ant.BuildException- Overrides:
init
in classorg.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException
-
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
execute
in classorg.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException
-
setUser
-
setPassword
-
setClient
-
setSysnr
-
setHost
-
setLanguage
-
setBapi
-
setOutputDir
-