Sei sulla pagina 1di 1

METHOD constructor.

"Validate key and populate key attribute


SELECT SINGLE bname INTO username FROM usr01
WHERE bname = i_username.
IF sy-subrc NE 0.
RAISE EXCEPTION TYPE cx_bo_instance_not_found.
ENDIF.
"Populate LPOR
m_lpor-catid = 'CL'.
m_lpor-typeid = 'ZCL_USER'.
m_lpor-instid = username.
ENDMETHOD.
Listing 16.7 CONSTRUCTOR

Potrebbero piacerti anche