<?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 Purchasing Contract bapi for rejection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/purchasing-contract-bapi-for-rejection/m-p/6170450#M1371587</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;Please I need to create a RFC to reject a Purchasing Contract  workflow, I´ve found just BAPI_CONTRACT_CHANGE bapi but it just works with contracts with material itens, it doesn´t work with contracts with service itens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;helpful answers will be awarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  DATA:
     wl_header TYPE bapimeoutheader,
     wl_headerx TYPE bapimeoutheaderx.

  wl_header-procstat = '08'.
  wl_headerx-procstat = 'X'.

  CALL FUNCTION 'BAPI_CONTRACT_CHANGE'
    EXPORTING
      purchasingdocument = i_ebeln
      header             = wl_header
      headerx            = wl_headerx
    TABLES
      return             = bapiret2.

  READ TABLE bapiret2 TRANSPORTING NO FIELDS
  WITH KEY type = 'E'.
  IF sy-subrc NE 0.

    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Sep 2009 21:31:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-28T21:31:11Z</dc:date>
    <item>
      <title>Purchasing Contract bapi for rejection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/purchasing-contract-bapi-for-rejection/m-p/6170450#M1371587</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;Please I need to create a RFC to reject a Purchasing Contract  workflow, I´ve found just BAPI_CONTRACT_CHANGE bapi but it just works with contracts with material itens, it doesn´t work with contracts with service itens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;helpful answers will be awarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  DATA:
     wl_header TYPE bapimeoutheader,
     wl_headerx TYPE bapimeoutheaderx.

  wl_header-procstat = '08'.
  wl_headerx-procstat = 'X'.

  CALL FUNCTION 'BAPI_CONTRACT_CHANGE'
    EXPORTING
      purchasingdocument = i_ebeln
      header             = wl_header
      headerx            = wl_headerx
    TABLES
      return             = bapiret2.

  READ TABLE bapiret2 TRANSPORTING NO FIELDS
  WITH KEY type = 'E'.
  IF sy-subrc NE 0.

    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2009 21:31:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/purchasing-contract-bapi-for-rejection/m-p/6170450#M1371587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-28T21:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Purchasing Contract bapi for rejection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/purchasing-contract-bapi-for-rejection/m-p/6170451#M1371588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have same requirement , Can you please send me the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My Email ID : &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:sivaji.kankanala@gmail.com"&gt;sivaji.kankanala@gmail.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sivaji.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 06:19:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/purchasing-contract-bapi-for-rejection/m-p/6170451#M1371588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-03T06:19:57Z</dc:date>
    </item>
  </channel>
</rss>

