<?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: how make the values default for a table in BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-make-the-values-default-for-a-table-in-bapi/m-p/6767502#M1462698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try using below code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF PORANGE[] IS NOT INITIAL.
    LOOP AT PORANGE INTO wa_PORANGE.
          IF wa_PORANGE-PO_LOW IS NOT INITIAL.
           wa_PORANGE-SIGN = 'I'.
           wa_PORANGE-OPTION = 'BT'.
          MODIFY PORANGE FROM wa_PORANGE TRANSPORTING SIGN OPTION.
          ENDIF.
          CLEAR : wa_PORANGE.
     ENDLOOP.
ELSE.
             CLEAR PORANGE[].
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Apr 2010 05:04:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-01T05:04:47Z</dc:date>
    <item>
      <title>how make the values default for a table in BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-make-the-values-default-for-a-table-in-bapi/m-p/6767501#M1462697</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 had developed a Remote Function module to display all the Pending Purchase orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that i had declares PORANGE as input&lt;/P&gt;&lt;P&gt;In the table parameters i had declared PORANGE as &lt;/P&gt;&lt;P&gt;PORANGE	LIKE	 YMM_SC_BAPIEBELN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YMM_SC_BAPIEBELN  is a structure with fields as SIGN OPTION PO_LOW PO_HIGH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i need to male the values SIGN and OPTION as Default &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that i had coded as below but its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

IF PORANGE-PO_LOW IS NOT INITIAL.

PORANGE-SIGN = 'I'.
PORANGE-OPTION = 'BT'.


ELSE.
  CLEAR PORANGE[].
ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PORANGE[]  is having the values which i passed but PORANGE is not containig any values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest any solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 04:48:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-make-the-values-default-for-a-table-in-bapi/m-p/6767501#M1462697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-01T04:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: how make the values default for a table in BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-make-the-values-default-for-a-table-in-bapi/m-p/6767502#M1462698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try using below code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF PORANGE[] IS NOT INITIAL.
    LOOP AT PORANGE INTO wa_PORANGE.
          IF wa_PORANGE-PO_LOW IS NOT INITIAL.
           wa_PORANGE-SIGN = 'I'.
           wa_PORANGE-OPTION = 'BT'.
          MODIFY PORANGE FROM wa_PORANGE TRANSPORTING SIGN OPTION.
          ENDIF.
          CLEAR : wa_PORANGE.
     ENDLOOP.
ELSE.
             CLEAR PORANGE[].
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 05:04:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-make-the-values-default-for-a-table-in-bapi/m-p/6767502#M1462698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-01T05:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: how make the values default for a table in BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-make-the-values-default-for-a-table-in-bapi/m-p/6767503#M1462699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand the problem you have. But, if you want to pass a range as a parameter for a module function, you have two options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Declare your PORANGE as import parameter, and data type &lt;STRONG&gt;must be&lt;/STRONG&gt; TYPE TABLE of YMM_SC_BAPIEBELN. You can make a new Table Type for your YMM_SC_BAPIEBELN in SE11. Or&lt;/P&gt;&lt;P&gt;2. Declare your PORANGE as tables parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can use PORANGE in Select statements, as normally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Julio Almeida&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 05:18:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-make-the-values-default-for-a-table-in-bapi/m-p/6767503#M1462699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-01T05:18:37Z</dc:date>
    </item>
  </channel>
</rss>

