<?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 function module parameters declare BOR Object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-parameters-declare-bor-object/m-p/6347222#M1398374</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont know if this is even logical... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a function module which will be used in my  program..&lt;/P&gt;&lt;P&gt;Can I create an object of BOR object type say 'Sales Order'  and pass it as an export parameter in Function Module..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e i will pass the obj key and obj type as import..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to instantiate that Sales Order.. and pass the whole Sales oRder as export/tables  parameter..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know swc_object_create is supposed to create an object but as i can see it only has the handle.. and it is of type swc_object..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i want to export  the whole Instance .. so that i can call the methods of the object  in my original program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Nov 2009 09:38:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-08T09:38:42Z</dc:date>
    <item>
      <title>function module parameters declare BOR Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-parameters-declare-bor-object/m-p/6347222#M1398374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont know if this is even logical... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a function module which will be used in my  program..&lt;/P&gt;&lt;P&gt;Can I create an object of BOR object type say 'Sales Order'  and pass it as an export parameter in Function Module..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e i will pass the obj key and obj type as import..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to instantiate that Sales Order.. and pass the whole Sales oRder as export/tables  parameter..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know swc_object_create is supposed to create an object but as i can see it only has the handle.. and it is of type swc_object..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i want to export  the whole Instance .. so that i can call the methods of the object  in my original program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Nov 2009 09:38:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-parameters-declare-bor-object/m-p/6347222#M1398374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-08T09:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: function module parameters declare BOR Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-parameters-declare-bor-object/m-p/6347223#M1398375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly it is possible hence your question does have a solution. I am sure that its possible from my experience with Workflow where, one a Work Item comes and sits in the inbox, the instance of the BOR Object remains with Work Item even when you log off and log in.&lt;/P&gt;&lt;P&gt;Try using fm:-&lt;/P&gt;&lt;P&gt;1)  call function 'SWC_ELEMENT_CREATE'&lt;/P&gt;&lt;P&gt;2)  call function 'SWC_ELEMENT_SET'&lt;/P&gt;&lt;P&gt;3)  call function 'SWC_ELEMENT_GET'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel you can create a container, and set and element with required value and later get it when required.&lt;/P&gt;&lt;P&gt;Includes &amp;lt;OBJECT&amp;gt;, &amp;lt;cntn01&amp;gt; and &amp;lt;cntn02&amp;gt; and &amp;lt;cntn03&amp;gt; can prove helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Nov 2009 10:43:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-parameters-declare-bor-object/m-p/6347223#M1398375</guid>
      <dc:creator>raviprakash</dc:creator>
      <dc:date>2009-11-08T10:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: function module parameters declare BOR Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-parameters-declare-bor-object/m-p/6347224#M1398376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly it is possible hence your question does have a solution. I am sure that its possible from my experience with Workflow where, one a Work Item comes and sits in the inbox, the instance of the BOR Object remains with Work Item even when you log off and log in.&lt;/P&gt;&lt;P&gt;Try using fm:-&lt;/P&gt;&lt;P&gt;1)  call function 'SWC_ELEMENT_CREATE'&lt;/P&gt;&lt;P&gt;2)  call function 'SWC_ELEMENT_SET'&lt;/P&gt;&lt;P&gt;3)  call function 'SWC_ELEMENT_GET'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel you can create a container, and set and element with required value and later get it when required.&lt;/P&gt;&lt;P&gt;Includes &amp;lt;OBJECT&amp;gt;, &amp;lt;cntn01&amp;gt; and &amp;lt;cntn02&amp;gt; and &amp;lt;cntn03&amp;gt; can prove helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Nov 2009 10:43:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-parameters-declare-bor-object/m-p/6347224#M1398376</guid>
      <dc:creator>raviprakash</dc:creator>
      <dc:date>2009-11-08T10:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: function module parameters declare BOR Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-parameters-declare-bor-object/m-p/6347225#M1398377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi ,&lt;/P&gt;&lt;P&gt;I simplified my requirement but my actual requirement is with workflows...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a scenario in workflow where,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Activity step to fill internal table with sales order numbers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.loop at sales order numbers internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.Activity Step to Instantiate  based on order numbers &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Activity Step to Edit these sales orders&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5.end the loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the above logic in workflows i have separate Activity step for instantiation..What I am thinking of is to instantiate the sales orders and fill the instances in the internal table in Step 1 instead of just order numbers..In the BOR method/F.M  of Step 1 I need to export the Instance of the Sales Orders (this is my actual question/problem, how do i instantiate while coding??swc_object_create, creates only a ref to object ...If I am able to create the object what should the type be in export /tables parameter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way i can remove the loop and offer parallel processing (from miscellaneous tab in activity step) and send multiple Edit workitems to user  at Once instead of one after the other..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me also know how you would handle the above situation, i am very new to workflows and BOR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Nov 2009 12:44:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-parameters-declare-bor-object/m-p/6347225#M1398377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-08T12:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: function module parameters declare BOR Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-parameters-declare-bor-object/m-p/6347226#M1398378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) You do one thing, create a container which contains a table of the BOR object for Sales Order.&lt;/P&gt;&lt;P&gt;2) In your step one, you create a WF task which takes input the table you declared and also imports it back.&lt;/P&gt;&lt;P&gt;3) In this new TASK  you code using the 3 Function Modules i  told in beginning and fill your container&lt;/P&gt;&lt;P&gt;    with various instances of your Sales order numbers. &lt;/P&gt;&lt;P&gt;4) Finally it shall be available directly to your WF via the Task-Workflow interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many regards,&lt;/P&gt;&lt;P&gt;Ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Nov 2009 13:13:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-parameters-declare-bor-object/m-p/6347226#M1398378</guid>
      <dc:creator>raviprakash</dc:creator>
      <dc:date>2009-11-08T13:13:02Z</dc:date>
    </item>
  </channel>
</rss>

