Code: Alles auswählen.
mo_db_connector TYPE REF TO zcl_db_connector_template.
Code: Alles auswählen.
me->get_db_connector( )->get_conditions(
exporting
i_customer_id = i_customer_id
importing
et_conditions = lt_conditions
).
Code: Alles auswählen.
ro_db_connector ?= me->mo_db_connector.
http://help.sap.com/saphelp_nw70/helpdata/en/08/d27c03b81011d194f60000e8353423/frameset.htm hat geschrieben:Functional Methods
Functional methods are methods with any number of IMPORTING parameters and one RETURNING parameter.
This notation is currently supported:
· for the source field of the MOVE statement
· in arithmetic expressions of the COMPUTE statement
· in logical expressions
· in the CASE statement of the CASE control structure
· in the WHEN statement of the CASE control structure
· in the WHERE condition of the statements LOOP AT, DELETE and MODIFYfor internal tables
The functional method is entered instead of an operand. When the statement is executed, the method is called and the RETURNING parameter passed back is used as the operand.
Naja. Da muss ich Mclb etwas verteidigen.black_adept hat geschrieben:Mclb: Nicht meckern, sondern die Hilfe mal vollständig lesen zu functional calls.
Code: Alles auswählen.
ld_xyz = me->get_db_connector( )->get_conditions();
Code: Alles auswählen.
me->get_db_connector( )->get_conditions(
exporting
i_customer_id = i_customer_id
importing
et_conditions = lt_conditions
).
Code: Alles auswählen.
CALL METHOD ...
exporting
...
importing
...