Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

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

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


NAME

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


SYNOPSIS


  use SAP::BC::Iface;

  $iface = new SAP::BC::Iface( NAME =>"SAPBC:ServiceName" );

  NAME is mandatory.


DESCRIPTION

This class is used to construct a valid interface object ( SAP::BC::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::BC::XMLRFC->Iface() method. Tis takes the name of an existing BC service, and returns a fully formed interface object.

Methods: new use SAP::BC::Iface; $iface = new SAP::BC::Iface( NAME =>``SAPBC:ServiceName'' );

Create a new Interface object.


Exported constants


  NONE


NAME

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


SYNOPSIS


  use SAP::BC::Tab;

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


DESCRIPTION

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

Methods: new use SAP::BC::Tab; $tab1 = new SAP::BC::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::BC::Parms - Perl extension for parsing and creating an SAP parameter to be added to an RFC Interface.


SYNOPSIS


  use SAP::BC::Parms;

  $imp1 = new SAP::BC::Parms( NAME => XYZ,

             TYPE => chars, VALUE => abc );


DESCRIPTION

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

Methods: new use SAP::BC::Parms; $imp1 = new SAP::BC::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::BC::Struc - Perl extension for parsing and creating a Structure definition. The resulting structure object is then used for SAP::BC::Parms, and SAP::BC::Tab objects to manipulate complex data elements.


SYNOPSIS


  use SAP::BC::Struc;

  $struct = new SAP::BC::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::BC::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::BC::Struc; $str = new SAP::BC::Struc( NAME => XYZ );

addField use SAP::BC::Struc; $str = new SAP::BC::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::BC::Struc; $str = new SAP::BC::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 BC 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::BC(3), SAP::BC::XMLRFC(3), SAP::BC::Iface(3)

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy