<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Create object   -   class CL_SCMG_CASE_API in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-class-cl-scmg-case-api/m-p/6983854#M1492963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i don't know the class so its just a suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But since the class is called an API and the Paramete is ending ID i would assume its the ID of the object the API works on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POID - I would guess its something like Purchase Order ID or similar and the API probably has some way of a friend or other means to get hold of this object through the ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe check the Inheritance tree and the F1 Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;greetings&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jun 2010 09:38:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-09T09:38:44Z</dc:date>
    <item>
      <title>Create object   -   class CL_SCMG_CASE_API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-class-cl-scmg-case-api/m-p/6983853#M1492962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;I have to create one object corresponding to the class   CL_SCMG_CASE_API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trough the patern, I have the code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: RE_VALUE	Type	STRING,&lt;/P&gt;&lt;P&gt;     go_myrecord             TYPE REF TO CL_SCMG_CASE_API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;CREATE OBJECT GO_MYRECORD&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    IM_POID                  =          &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;***********HOW CAN I GET IT ? *************************&lt;/P&gt;&lt;P&gt;    IM_CASE_GUID             = 'FED30C4C107E8C1DE1000000AC1D4CB3'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IM_UPDATE_TASK           = IF_SRM=&amp;gt;FALSE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    .&lt;/P&gt;&lt;P&gt;CATCH CX_SRM_INITIALIZATION .&lt;/P&gt;&lt;P&gt;CATCH CX_SRM_POID .&lt;/P&gt;&lt;P&gt;CATCH CX_SRM_REGISTRATION_DATA .&lt;/P&gt;&lt;P&gt;CATCH CX_SRM_CONNECTION .&lt;/P&gt;&lt;P&gt;CATCH CX_SRM_SP_RECORD .&lt;/P&gt;&lt;P&gt;CATCH CX_SRM_GSP_BACK .&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody tell me what does it mean the IM_POID parameter and how can I get it ?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 14:42:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-class-cl-scmg-case-api/m-p/6983853#M1492962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-08T14:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create object   -   class CL_SCMG_CASE_API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-class-cl-scmg-case-api/m-p/6983854#M1492963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i don't know the class so its just a suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But since the class is called an API and the Paramete is ending ID i would assume its the ID of the object the API works on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POID - I would guess its something like Purchase Order ID or similar and the API probably has some way of a friend or other means to get hold of this object through the ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe check the Inheritance tree and the F1 Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;greetings&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 09:38:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-class-cl-scmg-case-api/m-p/6983854#M1492963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-09T09:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create object   -   class CL_SCMG_CASE_API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-class-cl-scmg-case-api/m-p/6983855#M1492964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alejandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the Technical aspect of the Class, I can see that the constructor of the class is expecting the Mandatory parameter IM_POID which is a data type of interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IM_POID	Type Ref To	IF_SRM_POID	      	POID of Case&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not aware of the functional aspect of this. But I guess you need to create an local interface of the type mentioned. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samantak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 15:01:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-class-cl-scmg-case-api/m-p/6983855#M1492964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-09T15:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create object   -   class CL_SCMG_CASE_API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-class-cl-scmg-case-api/m-p/6983856#M1492965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not familiar with that class, but this parameter is an interface IF_SRM_POID. There is one public class implementing this interface, it is CL_SRM_POID. The constructor of this class takes no parameter so you might try:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
dota: go_myrecord             TYPE REF TO CL_SCMG_CASE_API,
         poid type ref to cl_srm_poid.

create object poid.
TRY.
  CREATE OBJECT GO_MYRECORD
   EXPORTING
     IM_POID                  =          poid
     IM_CASE_GUID             = 'FED30C4C107E8C1DE1000000AC1D4CB3'
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Note: this is just a guess, no guarantee at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Gerd Rother&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 16:09:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-class-cl-scmg-case-api/m-p/6983856#M1492965</guid>
      <dc:creator>gerd_rother</dc:creator>
      <dc:date>2010-06-09T16:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create object   -   class CL_SCMG_CASE_API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-class-cl-scmg-case-api/m-p/6983857#M1492966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all, I'm going to try to apply your suggestions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You were very kind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 23:43:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-class-cl-scmg-case-api/m-p/6983857#M1492966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-15T23:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create object   -   class CL_SCMG_CASE_API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-class-cl-scmg-case-api/m-p/6983858#M1492967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've recently replied to thread to same question. Maybe it was even you. This method has Instantiation set to Private (check tab Properties). It means that you can't directly call constructor. You have to use factory method which will create a object for your and it will return a reference. In this case it looks like you need to call static method IF_SCMG_CASE_API~OPEN_CASE. This a standard pattern in OO. It allows you change logic without changing API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jun 2010 00:49:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-class-cl-scmg-case-api/m-p/6983858#M1492967</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2010-06-16T00:49:34Z</dc:date>
    </item>
  </channel>
</rss>

