<?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: Transaction problem in using multiple bapis in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-problem-in-using-multiple-bapis/m-p/6775819#M1463809</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;Give the BAPI_TRANSACTION_COMMIT  after BAPI_PO_CHANGE and try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Mar 2010 06:01:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-30T06:01:55Z</dc:date>
    <item>
      <title>Transaction problem in using multiple bapis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-problem-in-using-multiple-bapis/m-p/6775814#M1463804</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 am trying to update/cancel  the Sales order  by giving the  reason of rejection .  I m using bapi_salesorder_change for this . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before that i need to delete respective po item . I am using BBP_PO_Delete for this . But as a whole this transaction wont be complete . &lt;/P&gt;&lt;P&gt;BBP_PO_Delete will directly set deletion indicatior in po item and then i can change So for reaon of rejection. But in case of error, still po item remaind deleted . I tried to set an indicatior through BAPI_PO_Change and then use  bapi_salesorder_change  . But its still saying that delete po item first . &lt;/P&gt;&lt;P&gt;what may be the correct approch . i am passing deletion indication as L in bapi_po_change .&lt;/P&gt;&lt;P&gt;how can i set delete indicator to po item and then update so item .&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Mar 2010 05:12:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-problem-in-using-multiple-bapis/m-p/6775814#M1463804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-30T05:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction problem in using multiple bapis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-problem-in-using-multiple-bapis/m-p/6775815#M1463805</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;Deletion Indicator should be D not L. Please pass the indicator as  D in BAPI_PO_CHANGE and try the sales order change.&lt;/P&gt;&lt;P&gt;This will work fine. Let me know still you face any problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Mar 2010 05:15:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-problem-in-using-multiple-bapis/m-p/6775815#M1463805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-30T05:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction problem in using multiple bapis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-problem-in-using-multiple-bapis/m-p/6775816#M1463806</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;Use FMs BAPI_TRANSACTION_COMMIT and BAPI_TRANSACTION_ROLLBACK in your program.&lt;/P&gt;&lt;P&gt;This will remove your transaction problem.&lt;/P&gt;&lt;P&gt;If you still have any doubts then revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Krathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Mar 2010 05:18:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-problem-in-using-multiple-bapis/m-p/6775816#M1463806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-30T05:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction problem in using multiple bapis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-problem-in-using-multiple-bapis/m-p/6775817#M1463807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;still not working . please check my inputs . for pO &lt;/P&gt;&lt;P&gt; POITEM-PO_ITEM           = PO_INPUT-PO_ITEM.&lt;/P&gt;&lt;P&gt; POITEM-DELETE_IND     = 'D'. &lt;/P&gt;&lt;P&gt;APPEND POITEM.&lt;/P&gt;&lt;P&gt;CLEAR POITEM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POITEMX-PO_ITEM                 = PO_INPUT-PO_ITEM.&lt;/P&gt;&lt;P&gt;      POITEMX-PO_ITEMX         = 'X'.&lt;/P&gt;&lt;P&gt;      POITEMX-DELETE_IND      = 'X'.&lt;/P&gt;&lt;P&gt;      APPEND POITEMX.&lt;/P&gt;&lt;P&gt;      CLEAR POITEMX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For So its ,  ORDER_ITEM-ITM_NUMBER = SO_INPUT-SALES_ORDER_ITEM_NO.&lt;/P&gt;&lt;P&gt;        ORDER_ITEM-REASON_REJ = SO_INPUT-REJ_REASON .&lt;/P&gt;&lt;P&gt;        APPEND ORDER_ITEM.&lt;/P&gt;&lt;P&gt;        CLEAR ORDER_ITEM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ORDER_ITEMX-ITM_NUMBER  = SO_INPUT-SALES_ORDER_ITEM_NO.&lt;/P&gt;&lt;P&gt;        ORDER_ITEMX-UPDATEFLAG = 'U'.&lt;/P&gt;&lt;P&gt;        ORDER_ITEMX-REASON_REJ ='X' .&lt;/P&gt;&lt;P&gt;        APPEND ORDER_ITEMX.&lt;/P&gt;&lt;P&gt;        CLEAR ORDER_ITEMX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'BAPI_PO_CHANGE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        PURCHASEORDER                =  PO_INPUT-PO_NUMBER&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POHEADER                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POHEADERX                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;       RETURN                       =  IT_RETURN&lt;/P&gt;&lt;P&gt;       POITEM                       =    POITEM&lt;/P&gt;&lt;P&gt;       POITEMX                      =    POITEMX        .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_SALESORDER_CHANGE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          SALESDOCUMENT               = IT_REL-VBELN&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ORDER_HEADER_IN             = ORDER_HEADER_IN&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     ORDER_HEADER_INX           =  ORDER_HEADER_INX&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          RETURN                      = IT_RETURN&lt;/P&gt;&lt;P&gt;         ORDER_ITEM_IN               = ORDER_ITEM&lt;/P&gt;&lt;P&gt;         ORDER_ITEM_INX              = ORDER_ITEMX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  please let me know if its correct . getting error as Delete purchase order 4500001321, item 00010&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Mar 2010 05:47:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-problem-in-using-multiple-bapis/m-p/6775817#M1463807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-30T05:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction problem in using multiple bapis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-problem-in-using-multiple-bapis/m-p/6775818#M1463808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BBP_PO_Delete is already have its internal commit, and so saving it . &lt;/P&gt;&lt;P&gt;if i put rollback after so updation is failed, still Po  will be saved and marked for deletion   .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Mar 2010 05:50:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-problem-in-using-multiple-bapis/m-p/6775818#M1463808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-30T05:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction problem in using multiple bapis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-problem-in-using-multiple-bapis/m-p/6775819#M1463809</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;Give the BAPI_TRANSACTION_COMMIT  after BAPI_PO_CHANGE and try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Mar 2010 06:01:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-problem-in-using-multiple-bapis/m-p/6775819#M1463809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-30T06:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction problem in using multiple bapis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-problem-in-using-multiple-bapis/m-p/6775820#M1463810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;since  i want it as  transaction, i need commit in the last .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Mar 2010 06:23:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-problem-in-using-multiple-bapis/m-p/6775820#M1463810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-30T06:23:36Z</dc:date>
    </item>
  </channel>
</rss>

