2012 Aug 30 8:40 AM
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
2012 Aug 30 9:50 AM
2012 Aug 30 10:35 AM
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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |