‎2010 Jun 08 3:57 PM
hi all,
I have to create one object corresponding to the class CL_SCMG_CASE_API.
Trough the patern, I have the code below.
DATA: RE_VALUE Type STRING,
go_myrecord TYPE REF TO CL_SCMG_CASE_API.
TRY.
CREATE OBJECT GO_MYRECORD
EXPORTING
IM_POID = <<<<<***********HOW CAN I GET IT ? *************************
IM_CASE_GUID = 'FED30C4C107E8C1DE1000000AC1D4CB3'
IM_UPDATE_TASK = IF_SRM=>FALSE
.
CATCH CX_SRM_INITIALIZATION .
CATCH CX_SRM_POID .
CATCH CX_SRM_REGISTRATION_DATA .
CATCH CX_SRM_CONNECTION .
CATCH CX_SRM_SP_RECORD .
CATCH CX_SRM_GSP_BACK .
ENDTRY.
Can somebody tell me what does it mean the IM_POID parameter and how can I get it ?
Thank you very much.
Regards
Alejandro
‎2010 Jun 09 2:51 AM
Hi,
You can't create instance of this class by calling constructor. That class is set to private instantiation only. You need to use a static factory method IF_SCMG_CASE_API~OPEN_CASE. This method returns a reference to object created for you.
Cheers