Unexpected word "EXPORTING" in functional method call

Die Objektorientierung mit ABAP®: Vererbung, Dynamische Programmierung, GUI Controls (u.a. ALV im OO).

Unexpected word "EXPORTING" in functional method call

Postby Ahmed3073 » Tue May 15, 2012 9:23 am

Hi,

ich bekomme obige Fehlermeldung in folgender Konstellation und versteh nicht so recht wieso.

Klasse ZCL_DB_CONNECTOR_SPECIAL (erbt von ZCL_D_CONNECTOR_TEMPLATE)
Method get_conditions (Inhalt egal)

Klasse ZCL_APPLICATION
Attribut
Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
  1. mo_db_connector TYPE REF TO zcl_db_connector_template.
  2.  
GeSHi ©

Method load_conditions
Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
  1. me->get_db_connector( )->get_conditions(
  2.   exporting
  3.     i_customer_id = i_customer_id
  4.   importing
  5.     et_conditions = lt_conditions
  6. ).
  7.  
GeSHi ©

Method get_db_connector (returning zcl_db_connector_special)
Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
  1. ro_db_connector ?= me->mo_db_connector.
  2.  
GeSHi ©


Sobald die Methode get_conditions Importing- und Exporting-Parameter hat, kommt die Fehlermeldung. Bei nur Importing- und/oder Returning-Parameter funktionierts.

Hat da jemand ne Erklärung dafür? Der functional call ist ja eigentlich der get_db_connector und nicht der get_conditions.

Danke
Ahmed3073
.
.
 
Posts: 5
Joined: Tue Apr 03, 2012 3:17 pm

Re: Unexpected word "EXPORTING" in functional method call

Postby Ahmed3073 » Wed May 16, 2012 11:05 am

So unklar, oder hat niemand eine Erklärung dafür?
Ahmed3073
.
.
 
Posts: 5
Joined: Tue Apr 03, 2012 3:17 pm

Re: Unexpected word "EXPORTING" in functional method call

Postby Joachim5252 » Fri Jun 01, 2012 1:04 pm

Die beiden Methoden sollten getrennt aufgerufen werden, würde ich sagen.
me->get_db_connector( )
me->get_conditions(
exporting
i_customer_id = i_customer_id
importing
et_conditions = lt_conditions
).
Joachim5252
..
..
 
Posts: 99
Joined: Tue Sep 25, 2007 12:44 pm


Return to ABAP Objects®

Who is online

Users browsing this forum: No registered users and 2 guests