ABAP USER CLASS
- class ZCMCL_USER definition
- public
- final
- create public .
- public section.
- METHODS CONSTRUCTOR importing
- value(USERNAME) type ZCM_DUS_USERNAME
- value(PASSWORD) type ZCM_DUS_PASSWORD.
- class-methods LOGIN
- importing
- value(USERNAME) type ZCM_DUS_USERNAME
- value(PASSWORD) type ZCM_DUS_PASSWORD
- returning
- value(STATUS) type ref to ZCMCL_USER .
ABAP - STATIC METHOD OF USER CLASS
- method LOGIN.
-
- CREATE OBJECT status
- EXPORTING
- username = username
- password = password.
-
- endmethod.
- method CONSTRCUTOR.
- "Copy the importing parameters to Class variables so that it could be used in other methods
- ENDMETHOD.
Thanks,
Sharath