EXPORTING
From Abap2Java
ABAP
The keyword EXPORTING defines that a certain parameter of a method or function module is exported. This means that the parameter value is sent back from the called method to the calling method.
"method definition: METHODS get_double IMPORTING iv_number TYPE INT4 EXPORTING ev_result TYPE INT4. "method implementation: METHOD get_double. WRITE ev_result. "will not always be initial! CLEAR ev_result. "recommended ev_result = iv_number + iv_number. ENDMETHOD. "method call: get_double( EXPORTING iv_number = 42 IMPORTING ev_result = lv_my_result ). "method call (alternative syntax): CALL METHOD get_double EXPORTING iv_number = 42 IMPORTING ev_result = lv_my_result.
The difference between an EXPORTING and an RETURNING parameter is that a method or function module can only have one returning, and any number of exporting parameters, and that the values of the exporting parameter is also passed from the calling method to the called method, not only back.
To define an exporting parameter, the keyword EXPORTING is used, while the keyword IMPORTING is used in the corresponding method call (see overview of parameter types).
Java
No direct translation.
Java does not support EXPORTING parameters, but only RETURNING parameters. Furthermore, Java does not support to have multiple exporting or returning parameters.

