<?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: will this code work (bapi) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/will-this-code-work-bapi/m-p/5254268#M1213811</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; You need a BAPI_TRANSACTION_COMMIT after the BAPI's successful return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt; Venu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Feb 2009 02:36:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-19T02:36:14Z</dc:date>
    <item>
      <title>will this code work (bapi)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/will-this-code-work-bapi/m-p/5254267#M1213810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is to delete the purchase requisitions line items if they are not converted to PO &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have used &lt;STRONG&gt;bapi_requisition_delete&lt;/STRONG&gt; to delete the pr &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my code will this work any inputs will be appreciated ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this inside an implicit enhancement in the FM &lt;STRONG&gt;FM_CO_ASS_INPUT_GET_PM&lt;/STRONG&gt; im matching the order number (AUFNR) and getting the pr and item no and (statu not equal to B it is not converted to PO)&lt;/P&gt;&lt;P&gt;im deleting using BAPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT banfn bnfpo FROM ebkn INTO TABLE it_ebkn
            WHERE aufnr EQ i_aufnr.
IF it_ebkn IS NOT INITIAL.
SELECT banfn bnfpo from eban INTO TABLE it_eban
    FOR ALL ENTRIES IN it_ebkn
  WHERE banfn eq it_ebkn-banfn
    AND statu NE 'B'.
ENDIF.

LOOP AT it_eban INTO wa_eban.
  MOVE: wa_eban-bnfpo TO it_del-PREQ_ITEM,
        'X'           TO it_del-DELETE_IND,
        'X'           TO it_del-CLOSED.
  APPEND it_del.
  CLEAR  it_del.


CALL FUNCTION 'BAPI_REQUISITION_DELETE'
  EXPORTING
    number                            = wa_eban-banfn
 tables
    requisition_items_to_delete       = it_del
   RETURN                            =  it_return
          .


CLEAR : wa_eban.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2009 02:06:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/will-this-code-work-bapi/m-p/5254267#M1213810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-19T02:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: will this code work (bapi)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/will-this-code-work-bapi/m-p/5254268#M1213811</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; You need a BAPI_TRANSACTION_COMMIT after the BAPI's successful return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt; Venu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2009 02:36:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/will-this-code-work-bapi/m-p/5254268#M1213811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-19T02:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: will this code work (bapi)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/will-this-code-work-bapi/m-p/5254269#M1213812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi venu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even if we delete something then also we should call bapi_transaction_commit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2009 02:48:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/will-this-code-work-bapi/m-p/5254269#M1213812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-19T02:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: will this code work (bapi)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/will-this-code-work-bapi/m-p/5254270#M1213813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes! the unit of work.. need to be commited..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2009 02:57:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/will-this-code-work-bapi/m-p/5254270#M1213813</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-02-19T02:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: will this code work (bapi)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/will-this-code-work-bapi/m-p/5254271#M1213814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;will the code work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2009 03:24:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/will-this-code-work-bapi/m-p/5254271#M1213814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-19T03:24:32Z</dc:date>
    </item>
  </channel>
</rss>

