Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Create object - class CL_SCMG_CASE_API

Former Member
0 Likes
471

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

1 REPLY 1
Read only

mvoros
Active Contributor
0 Likes
409

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