Welcome to SAP Central
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Exporting Values in ABAP Objects

Go down

Exporting Values in ABAP Objects  Empty Exporting Values in ABAP Objects

Post  Admin Sun Apr 08, 2012 9:38 pm

*&---------------------------------------------------------------------*
*& Report Z_02
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*

REPORT ZKRISH_OOPS_02.


*----------------------------------------------------------------------*
* CLASS c1 DEFINITION
*----------------------------------------------------------------------*
CLASS C1 DEFINITION.
PUBLIC SECTION.
METHODS: M1 IMPORTING A TYPE I.
ENDCLASS. "c1 DEFINITION
*----------------------------------------------------------------------*
* CLASS c1 IMPLEMENTATION
*----------------------------------------------------------------------*
CLASS C1 IMPLEMENTATION.
METHOD: M1.
WRITE: / A.
ENDMETHOD. "M1
ENDCLASS. "c1 IMPLEMENTATION



DATA: O1 TYPE REF TO C1.
START-OF-SELECTION.
CREATE OBJECT O1.
CALL METHOD O1->M1 EXPORTING a = 1010.

Admin
Admin

Posts : 92
Join date : 2012-01-26

https://mysaplab.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum