Warning: Undefined variable $saptab in /customers/9/5/e/s4hd.com/httpd.www/sap/abap-statements/index.php on line 47
Warning: file_get_contents(/customers/9/5/e/s4hd.com/httpd.www/global/php/adxcode.txt): Failed to open stream: No such file or directory in /customers/9/5/e/s4hd.com/httpd.www/global/php/helpers.php on line 89
Get Example source ABAP code based on a different SAP table
Warning: Undefined variable $prev in /customers/9/5/e/s4hd.com/httpd.www/sap/abap-statements/index.php on line 63
• PARAMETER-TABLE CREATE OBJECT • EXCEPTION-TABLE CREATE OBJECT
CREATE OBJECT>, parameter_tables> Short Reference >
What does it do? The additions PARAMETER-TABLE> and EXCEPTION-TABLE> are used to pass actual parameters dynamically to the instance constructor or assign return codes to the non-class-based exceptions. These additions can only be used if the instantiated class is specified dynamically in name>. They use special internal tables ptab> and etab> to assign actual parameters to the input parameters of the instance constructor or return codes to the non-class-based exceptions. The syntax and semantics are the same as in the dynamic method calls using the statement CALL METHOD>>. The internal tables ptab> and etab> in particular must be defined with reference to the tables abap_parmbind_tab> and abap_excpbind_tab> from the type pool> ABAP>>.
ABAP_EXAMPLE_VX5 Dynamic creation of a Control Framework> (CFW) dialog box and dynamic passing of input parameters to the instance constructor of the global class CL_GUI_DIALOGBOX_CONTAINER >. The class is defined explicitly using the addition TYPE>>. ABEXA 00167 ABAP_EXAMPLE_END
ABAP_EXAMPLE_VX5 The following program section dynamically creates an object of a class SOME_CLASS> whose instance constructor expects a reference variable of the static type ANY_CLASS>. The program has correct syntax, but the object is created only in systems in which the classes also exist. ABEXA 00168 ABAP_EXAMPLE_END