Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Import and Export Parameters in a Method

0 Likes
3,024

Hi Experts,

i am new to ABAP and recently i have gone through one documnet of oops abap maintained by SDN.so,there iam unable to understand what is import export and changing parameters exactly..

when we should and shouldn't  use return parameters ..on oops abap...

Please give me reply.

Thanks in Advance,

Bindu.

Moderator message : Search for available information/Refer to SAP documentation.  Discussion locked.

Message was edited by: Vinod Kumar

Hi Experts,

i am new to ABAP and recently i have gone through one documnet of oops abap maintained by SDN.so,there iam unable to understand what is import export and changing parameters exactly..

when we should and shouldn't  use return parameters ..on oops abap...

Please give me reply.

Thanks in Advance,

Bindu.

Moderator message : Search for available information/Refer to SAP documentation.  Discussion locked.

Message was edited by: Vinod Kumar

2 REPLIES 2
Read only

0 Likes
1,527

i have searched...but didnt get understand completely.

Read only

0 Likes
1,527

Hi

In ABAP Objects, methods can have IMPORTING, EXPORTING, CHANGING and RETURNING parameters as well as EXCEPTIONS. All parameters can be passed by value or reference.

You can define a return code for methods using RETURNING. You can only do this for a single parameter, which additionally must be passed as a value. Also, you cannot then define EXPORTING and CHANGING parameters. You can define functional methods using the RETURNING parameter (explained in more detail below).

All input parameters (IMPORTING, CHANGING parameters) can be defined as optional parameters in the declaration using the OPTIONAL or DEFAULT additions. These parameters then do not necessarily have to be passed when the object is called. If you use the OPTIONAL addition, the parameter remains initialized according to type, whereas the DEFAULT addition allows you to enter a start value.                    

searching you will get more info based on your requirement.