<?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 How to pass values to a type ref data variable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-to-a-type-ref-data-variable/m-p/3012413#M711870</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 have a data statement like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:l_parameters type ref to /POSDW/IF_PARAMETER_READ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The interface '/POSDW/IF_PARAMETER_READ' has only one method called 'GET_VALUE'. I do not want to pass any values to actual parameter ' l_PARAMETERS' in the below mentioned function. But as the parameter is called by reference , the system is expecting a value in the parameter 'l_PARAMETERS' and it is giving a runtime error. This parameters consists of control record of idocs and it's value. How to pass parameters names and its value to this 'l_PARAMETERS'. Please advise. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            CALL FUNCTION '/POSDW/SEND_IDOC'&lt;/P&gt;&lt;P&gt;              EXPORTING&lt;/P&gt;&lt;P&gt;                i_retailstoreid = l_sndprn&lt;/P&gt;&lt;P&gt;                i_idoctype      = gc_idoctype&lt;/P&gt;&lt;P&gt;                i_messagetype   = gc_messagetype&lt;/P&gt;&lt;P&gt;                IT_TRANSACTIONS = ll_transaction&lt;/P&gt;&lt;P&gt;                IR_PARAMETERS  = l_PARAMETERS&lt;/P&gt;&lt;P&gt;              TABLES&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              it_edidd        = lt_edidd&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                CT_EDIDD        = lt_edidd&lt;/P&gt;&lt;P&gt;                et_objectlink   = et_objectlink[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;JC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 Nov 2007 05:36:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-11T05:36:54Z</dc:date>
    <item>
      <title>How to pass values to a type ref data variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-to-a-type-ref-data-variable/m-p/3012413#M711870</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 have a data statement like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:l_parameters type ref to /POSDW/IF_PARAMETER_READ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The interface '/POSDW/IF_PARAMETER_READ' has only one method called 'GET_VALUE'. I do not want to pass any values to actual parameter ' l_PARAMETERS' in the below mentioned function. But as the parameter is called by reference , the system is expecting a value in the parameter 'l_PARAMETERS' and it is giving a runtime error. This parameters consists of control record of idocs and it's value. How to pass parameters names and its value to this 'l_PARAMETERS'. Please advise. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            CALL FUNCTION '/POSDW/SEND_IDOC'&lt;/P&gt;&lt;P&gt;              EXPORTING&lt;/P&gt;&lt;P&gt;                i_retailstoreid = l_sndprn&lt;/P&gt;&lt;P&gt;                i_idoctype      = gc_idoctype&lt;/P&gt;&lt;P&gt;                i_messagetype   = gc_messagetype&lt;/P&gt;&lt;P&gt;                IT_TRANSACTIONS = ll_transaction&lt;/P&gt;&lt;P&gt;                IR_PARAMETERS  = l_PARAMETERS&lt;/P&gt;&lt;P&gt;              TABLES&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              it_edidd        = lt_edidd&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                CT_EDIDD        = lt_edidd&lt;/P&gt;&lt;P&gt;                et_objectlink   = et_objectlink[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;JC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Nov 2007 05:36:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-to-a-type-ref-data-variable/m-p/3012413#M711870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-11T05:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass values to a type ref data variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-to-a-type-ref-data-variable/m-p/3012414#M711871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello JC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the function module is expecting an instance (of TYPE REF TO /POSDW/IF_PARAMETER_READ) then there must be a class available which implements this interface.&lt;/P&gt;&lt;P&gt;Perhaps the CONSTRUCTOR of this class has an EXPORTING parameter DOCNUM (IDoc number).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the function module want to send an IDoc it needs the control record in addition to the data records. I guess the class might read the control record when it is intantiated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Nov 2007 19:48:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-values-to-a-type-ref-data-variable/m-p/3012414#M711871</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-11-11T19:48:01Z</dc:date>
    </item>
  </channel>
</rss>

