sapdev logo background
sapdev logo sapdev logo
Comments

SAP OO OBS PROCEDURE 1 documentation, setup help and example usage



Return to SAP documentation index


INCLUDE
ARTICLE

Cannot Use Untyped Interface Parameters

In ABAP Objects, the TYPE addition is required for the interface parameters of procedures . The only procedures allowed in ABAP Objects are methods.

  • In ABAP Objects, the following statement causes an error message:


  • METHODS meth IMPORTING p1
    EXPORTING p2.
  • Correct syntax:


  • METHODS meth IMPORTING p1 TYPE ANY
    EXPORTING p2 TYPE ANY.
  • Cause:


  • In ABAP Objects, the interface parameters of parameters must always be explicitly typed. Use the TYPE ANY addition if you want an interface parameter to be completely generic.
    Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




    OO_OBS_PLUS_PAREN_1
    OO_OBS_PROVIDE_1




    comments powered by Disqus