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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    void
     
    void
    setClient(String client)
     
    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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SapFunctionInputFileGeneratorTask

      public SapFunctionInputFileGeneratorTask()
  • Method Details

    • init

      public void init() throws org.apache.tools.ant.BuildException
      Overrides:
      init in class org.apache.tools.ant.Task
      Throws:
      org.apache.tools.ant.BuildException
    • execute

      public void execute() throws org.apache.tools.ant.BuildException
      Overrides:
      execute in class org.apache.tools.ant.Task
      Throws:
      org.apache.tools.ant.BuildException
    • setUser

      public void setUser(String user)
    • setPassword

      public void setPassword(String password)
    • setClient

      public void setClient(String client)
    • setSysnr

      public void setSysnr(String sysnr)
    • setHost

      public void setHost(String host)
    • setLanguage

      public void setLanguage(String language)
    • setBapi

      public void setBapi(String bapi)
    • setOutputDir

      public void setOutputDir(File outputDir)