<?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: Method Parameter problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-problem/m-p/10192643#M1824119</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;the formal method parameter should be of type TAB_VBRP, and XVBRP[] should be passed as actual parameter in method call, i believe, if wha you are trying to pass is the table "body".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Janis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Mar 2014 13:25:21 GMT</pubDate>
    <dc:creator>Private_Member_7726</dc:creator>
    <dc:date>2014-03-21T13:25:21Z</dc:date>
    <item>
      <title>Method Parameter problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-problem/m-p/10192639#M1824115</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'm trying to use an Enhancement spot in LV60UF0V (Include of RV_INVOICE_POST function) and I facing the follow problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to copy a value in a field on xvbrp to another field in the same internal table. The point is that I don't know how to declarate the parameter in&amp;nbsp; the Method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've trying without sucess so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use&amp;nbsp; VBRPVB (same declaration in the function) and I got this dump: ""VBRP" is neither specified under "TABLES" nor is it defined as an internal table."&lt;/P&gt;&lt;P&gt;Use a table type ref to VBRPVB, VBRP_TAB and I got this dump: "XVBRP" is not type-compatible with formal parameter "VBRP".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The XBRPVB is standard so I cannot change it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not used to OO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Andréa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 12:42:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-problem/m-p/10192639#M1824115</guid>
      <dc:creator>deiamolina</dc:creator>
      <dc:date>2014-03-21T12:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Method Parameter problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-problem/m-p/10192640#M1824116</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;For the Error ""VBRP" is neither specified under "TABLES" nor is it defined as an internal table."", Please search for Table Type and assign it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the Error ""XVBRP" is not type-compatible with formal parameter "VBRP".",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These two structures are not same. XVBRP has additional fields which tells whether the entry is updated or inserted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, use move-corresponding VBRP to XVBRP to move these values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Peri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 12:58:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-problem/m-p/10192640#M1824116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-21T12:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Method Parameter problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-problem/m-p/10192641#M1824117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrea,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use TAB_VBRP instead of any other type. Assign the table of type TAB_VBRP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 13:07:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-problem/m-p/10192641#M1824117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-21T13:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Method Parameter problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-problem/m-p/10192642#M1824118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can you post ur code?? maybe there is problem there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 13:19:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-problem/m-p/10192642#M1824118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-21T13:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Method Parameter problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-problem/m-p/10192643#M1824119</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;the formal method parameter should be of type TAB_VBRP, and XVBRP[] should be passed as actual parameter in method call, i believe, if wha you are trying to pass is the table "body".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Janis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 13:25:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-problem/m-p/10192643#M1824119</guid>
      <dc:creator>Private_Member_7726</dc:creator>
      <dc:date>2014-03-21T13:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Method Parameter problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-problem/m-p/10192644#M1824120</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;&lt;/P&gt;&lt;P&gt;I guess that I was not clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/416303" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/416324" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/416320" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&lt;A __default_attr="811333" __jive_macro_name="user" class="jive_macro_user jive_macro" data-orig-content="Jānis B" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/SPAN&gt;&amp;nbsp; and&amp;nbsp; &lt;A __default_attr="280670" __jive_macro_name="user" class="jive_macro_user jive_macro" data-orig-content="Sachin Luthra" href="https://community.sap.com/"&gt;&lt;/A&gt; I changed to TAB_VBRP. Still not working.Atually I got the message that you can sse in the first screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="127221" __jive_macro_name="user" class="jive_macro_user jive_macro" data-orig-content="periyathai muniappan" href="https://community.sap.com/" modifiedtitle="true" title="periyathai muniappan"&gt;&lt;/A&gt; I tried Table type: VBRP_TAB and I tried to use VBRPVB that is exactly the same declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="168196" __jive_macro_name="user" class="jive_macro_user jive_macro" data-orig-content="Miguel Alvear" href="https://community.sap.com/" modifiedtitle="true" title="Miguel Alvear"&gt;&lt;/A&gt; - Here it goes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/651/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 14:16:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-problem/m-p/10192644#M1824120</guid>
      <dc:creator>deiamolina</dc:creator>
      <dc:date>2014-03-21T14:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Method Parameter problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-problem/m-p/10192645#M1824121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrea,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;FIELD-SYMBOLS &lt;/SPAN&gt;&amp;lt;fs_xvbrp&amp;gt; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;VBRP_TAB.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;ASSIGN &lt;/SPAN&gt;xvbrp[] &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&amp;lt;fs_xvbrp&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S55"&gt;CALL METHOD ZREBATE-&amp;gt;SAVE_ZZREBATE_VF01 CHANGING vbrp = &amp;lt;fs_xvbrp&amp;gt;.&lt;/SPAN&gt;&lt;/P&gt;



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;When you change &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif;"&gt;&amp;lt;fs_xvbrp&amp;gt;&lt;/SPAN&gt; also xvbrp change.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;-------------------------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In alternative to field-symbols need to activate the flag on parameter VBRP:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/416292" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Angelo.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 14:47:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-problem/m-p/10192645#M1824121</guid>
      <dc:creator>former_member302911</dc:creator>
      <dc:date>2014-03-21T14:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Method Parameter problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-problem/m-p/10192646#M1824122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Andrea, long time no see &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/651/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was curious about why your solution didn't work, so I've recreated your problem in my system. Everything activated just fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA object TYPE REF TO ZTESTE_BADI_DEF. "generical badi implementation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET BADI object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL BADI object-&amp;gt;teste&lt;/P&gt;&lt;P&gt;&amp;nbsp; CHANGING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vbrp = xvbrp[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VBRP_TAB is a table type for VBRPVB, which has the same reference from function module's XVBRP parameter. No need to create field-symbols for any of this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my example, TESTE is an interface method, and it has VBRP as a changing parameter associated with VBRP_TAB. You must use [] for XVBRP, as function module tables comes with headerlines, and your changing parameter won't have one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you really sure you've activated your custom BADI interfaces before activating the enhancement? Sometimes when trying a lot of things we might get confused.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps, see ya!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 14:53:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-problem/m-p/10192646#M1824122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-21T14:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Method Parameter problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-problem/m-p/10192647#M1824123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="258648" __jive_macro_name="user" class="jive_macro_user jive_macro" data-orig-content="Mauricio Cruz" href="https://community.sap.com/"&gt;&lt;/A&gt;, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex-mentor ainda mentorando &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote jiveImage" src="https://community.sap.com/651/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a million. It's working properly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the same associate type that you suggested (&lt;SPAN style="color: #333333; font-size: 11.818181991577148px;"&gt;VBRP_TAB&lt;/SPAN&gt;), used as parameter the table [] and not the work area and activated all Enhancement, just in case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I don't know if I forgot to activated some objective or it was the parameter or associate type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, &lt;/P&gt;&lt;P&gt;One more time thanks.&lt;/P&gt;&lt;P&gt;Glad to see you around here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Andréa Molina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 15:15:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-parameter-problem/m-p/10192647#M1824123</guid>
      <dc:creator>deiamolina</dc:creator>
      <dc:date>2014-03-21T15:15:09Z</dc:date>
    </item>
  </channel>
</rss>

