<?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: BAPI_PR_CHANGE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-pr-change/m-p/8520437#M1655710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, how to &lt;SPAN style="color: #333333; font-size: 12px;"&gt;Create a new BADI Implementation for ME_BAPI_PR_CUST&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;I try to create one. but when call bapi BAPI_PR_CHANGE,it don't get in the break-point.&lt;/P&gt;&lt;P&gt;can u help me? thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/670530" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/670531" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Mar 2015 08:25:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-03-24T08:25:33Z</dc:date>
    <item>
      <title>BAPI_PR_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-pr-change/m-p/8520429#M1655702</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;Im adding one customize Zfield in eban table under the structure ci_ebandb for customer fields. I add the same fields for structure ci_ebandbx as well as for BAPIUPDATE as component type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I search through the forum and pass in the values as suggested :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : lt_ext TYPE TABLE OF bapiparex,
       ls_ext TYPE bapiparex,
       ls_try TYPE bapi_te_mereqitem,
       lt_try TYPE TABLE OF bapi_te_mereqitem,
       ls_tryx TYPE bapi_te_mereqitemx,
       lt_tryx TYPE TABLE OF bapi_te_mereqitemx.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*Construct Changing Item
ls_try-preq_item = '00010'.
ls_try-zclmno = '700'.
MOVE 'BAPI_TE_MEREQITEM' TO ls_ext-structure.
MOVE ls_try to ls_ext-valuepart1.
APPEND ls_ext to lt_ext.

*Construct Changing Item Indicator
ls_tryx-preq_item = '00010'.
ls_tryx-zclmno = 'X'.
MOVE 'BAPI_TE_MEREQITEMX' TO ls_ext-structure.
MOVE ls_tryx to ls_ext-valuepart1.
APPEND ls_ext to lt_ext.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the bapi - BAPI_PR_CHANGE is not working, my Zfield is not updated, it is still blank , I was just wondering if I should pass in other value as well such as item or am I passing in a wrong way ?&lt;/P&gt;&lt;P&gt;I did use BAPI_TRANSACTION_COMMIT as well but it is still not updating. Seriously need help as I found several threads but none of them can solve my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 03:42:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-pr-change/m-p/8520429#M1655702</guid>
      <dc:creator>chin_yunonn</dc:creator>
      <dc:date>2012-01-19T03:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PR_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-pr-change/m-p/8520430#M1655703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to SCN.Did you gone through the documentation of that bapi.It is explained clearly what need to pass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: madhurao123 on Jan 19, 2012 10:56 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 05:26:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-pr-change/m-p/8520430#M1655703</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2012-01-19T05:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PR_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-pr-change/m-p/8520431#M1655704</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 am still new to abap, I have gone through the documentation that provided which I found in se37 -&amp;gt; function module documentation, however, that is not sufficient for me to identify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure the documentation you are referring to is more details. Could you please advice me where can I get that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I would appreciate if there is any solution for my case too. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 07:16:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-pr-change/m-p/8520431#M1655704</guid>
      <dc:creator>chin_yunonn</dc:creator>
      <dc:date>2012-01-19T07:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PR_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-pr-change/m-p/8520432#M1655705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please search properly before posting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="397231"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 07:26:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-pr-change/m-p/8520432#M1655705</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2012-01-19T07:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PR_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-pr-change/m-p/8520433#M1655706</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 have gone through that thread previously as well, if you noticed my code which i post, I am actually following them and the way of doing are similar. I tested around with se37 test sequence as well as a customize program to run with the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From one of the thread I found and study,  [&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="933058"&gt;&lt;/A&gt;; , (second last reply) I follow the way of doing as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However,I still have no luck on getting the BAPI to work, thats why im wondering if there are any additional things are required such as config or did I miss out anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 08:09:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-pr-change/m-p/8520433#M1655706</guid>
      <dc:creator>chin_yunonn</dc:creator>
      <dc:date>2012-01-19T08:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PR_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-pr-change/m-p/8520434#M1655707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does it throw any error message or something..? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide the detials of which fields are you passing to the BAPi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 08:18:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-pr-change/m-p/8520434#M1655707</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2012-01-19T08:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PR_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-pr-change/m-p/8520435#M1655708</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;Yes, I check with the bapi return as well, it actually return me 2 successful messages:&lt;/P&gt;&lt;P&gt;Purchase requisition XXXXXXXX changed&lt;/P&gt;&lt;P&gt;Instance XXXXXXXX of object type PurchaseRequisition has been changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed the ERDAT(Changed On) field is updated to today's date as well. That's why i think the normal field in eban table is working fine but not the customize field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im passing PR number, header and Item to the BAPI.&lt;/P&gt;&lt;P&gt;The header and Item are getting from BAPI_PR_GETDETAILS. I do a move corresponding to the structure of the 2 data which suit BAPI_PR_CHANGE. Currently the PR number im putting it manually. The indicator for ls_headerx because the BAPI requires it if I pass in the header. Im not too sure if the BAPI needs that but I tried it without passing header, it the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'BAPI_PR_GETDETAIL'
  EXPORTING
    number                      = lv_num
 IMPORTING
   PRHEADER                    = ls_header
 TABLES
   pritem                      = lt_item
    extensionout                = lt_ext
.
ls_headerx-PREQ_NO = 'X'.
ls_headerx-PR_TYPE = 'X'.
ls_headerx-GENERAL_RELEASE = 'X'.
ls_headerx-CREATE_IND = 'X'.
ls_headerx-ITEM_INTVL = 'X'.
ls_headerx-LAST_ITEM = 'X'.

LOOP AT lt_item INTO ls_item .
MOVE-CORRESPONDING ls_item to ls_new_item.
ENDLOOP.
APPEND ls_new_item to lt_new_item.

ls_new_itemx-preq_item = '00010'.
ls_new_itemx-PREQ_ITEMX = 'X'.
APPEND ls_new_itemx to lt_new_itemx.

CALL FUNCTION 'BAPI_PR_CHANGE'
  EXPORTING
    number                       = lv_num
   PRHEADER                     = ls_header
   PRHEADERX                    = ls_headerx 
 TABLES
   return                       = return
   PRITEM                       = lt_new_item
   PRITEMX                      = lt_new_itemx
   extensionin                  = lt_ext
          .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 08:33:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-pr-change/m-p/8520435#M1655708</guid>
      <dc:creator>chin_yunonn</dc:creator>
      <dc:date>2012-01-19T08:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PR_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-pr-change/m-p/8520436#M1655709</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 have solved myself. After some times of debugging and tuning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)I used BAPI_PR_GETDETAIL to get the PR data first (header and item).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)Call the BAPI_PR_CHANGE and pass in the following things:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*Construct Changing Item
ls_try-preq_item = '00010'.
ls_try-zclmno = '600'.
MOVE 'BAPI_TE_MEREQITEM' TO ls_ext-structure.
MOVE ls_try to ls_ext-valuepart1.
APPEND ls_ext to lt_ext.

*Construct Changing Item Indicator
ls_tryx-preq_item = '00010'.
ls_tryx-zclmno = 'X'.
MOVE 'BAPI_TE_MEREQITEMX' TO ls_ext-structure.
MOVE ls_tryx to ls_ext-valuepart1.
APPEND ls_ext to lt_ext.

CALL FUNCTION 'BAPI_PR_CHANGE'
  EXPORTING
    number                       = lv_num
   PRHEADER                     = ls_header
   PRHEADERX                    = ls_headerx
 TABLES
   return                       = return
   PRITEM                       = lt_new_item
   PRITEMX                      = lt_new_itemx
   extensionin                  = lt_ext
          .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Call BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4)Create a new BADI Implementation for ME_BAPI_PR_CUST, put in the code CH_STRUC = IM_CONTAINER for method MAP2I_EXTENSIONIN will do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5)Note &lt;span class="lia-unicode-emoji" title=":face_blowing_a_kiss:"&gt;😘&lt;/span&gt; My problem is that I receive the extension from BAPI_PR_GETDETAIL and append the data I want to update to the extension again. Once I comment it out, it work perfectly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: yunonn on Jan 20, 2012 4:33 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 01:59:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-pr-change/m-p/8520436#M1655709</guid>
      <dc:creator>chin_yunonn</dc:creator>
      <dc:date>2012-01-20T01:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PR_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-pr-change/m-p/8520437#M1655710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, how to &lt;SPAN style="color: #333333; font-size: 12px;"&gt;Create a new BADI Implementation for ME_BAPI_PR_CUST&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;I try to create one. but when call bapi BAPI_PR_CHANGE,it don't get in the break-point.&lt;/P&gt;&lt;P&gt;can u help me? thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/670530" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/670531" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 08:25:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-pr-change/m-p/8520437#M1655710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-03-24T08:25:33Z</dc:date>
    </item>
  </channel>
</rss>

