The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

SAP::WAS::Iface - Perl extension for parsing and creating an Interface Object. The interface object would then be passed to the SAP::WAS::SOAP object to carry out the actual call, and return of values.

SYNOPSIS

  use SAP::WAS::Iface;
  $iface = new SAP::WAS::Iface( NAME =>"SAPWAS:ServiceName" );

  NAME is mandatory.

DESCRIPTION

This class is used to construct a valid interface object ( SAP::WAS::Iface.pm ). The constructor requires the parameter value pairs to be passed as hash key values ( see SYNOPSIS ). Generally you would not create one of these manually as it is far easier to use the "discovery" functionality of the SAP::WAS::SOAP->Iface() method. Tis takes the name of an existing WAS service, and returns a fully formed interface object.

Methods: new use SAP::WAS::Iface; $iface = new SAP::WAS::Iface( NAME =>"SAPWAS:ServiceName" );

Create a new Interface object.

Exported constants

  NONE

NAME

SAP::WAS::Tab - Perl extension for parsing and creating Tables to be added to an RFC Iface.

SYNOPSIS

  use SAP::WAS::Tab;
  $tab1 = new SAP::WAS::Tab( NAME => XYZ, VALUE => abc );

DESCRIPTION

This class is used to construct a valid Table object to be add to an interface object ( SAP::WAS::Iface.pm ). The constructor requires the parameter value pairs to be passed as hash key values ( see SYNOPSIS ).

Methods: new use SAP::WAS::Tab; $tab1 = new SAP::WAS::Tab( NAME => XYZ, ROWLENGTH => 1, DATA => [a, b, c, ..] );

rows @r = $tab1->rows( [ row1, row2, row3 .... ] ); optionally set and Give the current rows of a table.

rowcount $c = $tab1->rowcount(); return the current number of rows in a table object.

Exported constants

  NONE

NAME

SAP::WAS::Parms - Perl extension for parsing and creating an SAP parameter to be added to an RFC Interface.

SYNOPSIS

  use SAP::WAS::Parms;
  $imp1 = new SAP::WAS::Parms( NAME => XYZ,
             TYPE => chars, VALUE => abc );

DESCRIPTION

This class is used to construct a valid parameter to add to an interface object ( SAP::WAS::Iface.pm ). The constructor requires the parameter value pairs to be passed as hash key values ( see SYNOPSIS ).

Methods: new use SAP::WAS::Parms; $imp1 = new SAP::WAS::Parms( NAME => XYZ, TYPE => chars, VALUE => abc );

value $v = $imp1->value( [ val ] ); optionally set and Give the current value.

type $t = $imp1->type( [ type ] ); optionally set and Give the current value of type.

Exported constants

  NONE

NAME

SAP::WAS::Struc - Perl extension for parsing and creating a Structure definition. The resulting structure object is then used for SAP::WAS::Parms, and SAP::WAS::Tab objects to manipulate complex data elements.

SYNOPSIS

  use SAP::WAS::Struc;
  $struct = new SAP::WAS::Struc( NAME => XYZ, FIELDS => [......] );

DESCRIPTION

This class is used to construct a valid structure object - a structure object that would be used in an Export(Parms), Import(Parms), and Table(Tab) object ( SAP::WAS::Iface.pm ). The constructor requires the parameter value pairs to be passed as hash key values ( see SYNOPSIS ). The value of each field can either be accessed through $str->Fieldvalue(field1), or through the autoloaded method of the field name eg. $str->field1().

Methods: new use SAP::WAS::Struc; $str = new SAP::WAS::Struc( NAME => XYZ );

addField use SAP::WAS::Struc; $str = new SAP::WAS::Struc( NAME => XYZ ); $str->addField( NAME => field1, TYPE => chars ); add a new field into the structure object. The field is given a position counter of the number of the previous number of fields + 1. Name is mandatory, but type will be defaulted to chars if omitted.

deleteField use SAP::WAS::Struc; $str = new SAP::WAS::Struc( NAME => XYZ ); $str->addField( NAME => field1, TYPE => chars ); $str->deleteField('field1'); Allow fields to be deleted from a structure.

Name $name = $str->Name(); Get the name of the structure.

Fieldtype $ftype = $str->Fieldtype(field1, [ new field type ]); Set/Get the SAP WAS field type of a component field of the structure. This will force the overall value of the structure to be recalculated.

Fieldvalue $fvalue = $str->Fieldvalue(field1, [new component value]); Set/Get the value of a component field of the structure. This will force the overall value of the structure to be recalculated.

Field $fhashref = $str->Field(field1); Set/Get the value of a component field of the structure. This will force the overall value of the structure to be recalculated.

Fields @f = &$struct->Fields(); Return an array of the fields of a structure sorted in positional order.

Exported constants

  NONE

AUTHOR

Piers Harding, saprfc@kogut.demon.co.uk.

But Credit must go to all those that have helped.

SEE ALSO

perl(1), SAP::WAS::SOAP(3), SAP::WAS::Iface(3)