<?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_po_change in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change/m-p/4369483#M1039757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry guys its prob with the authorizations, and settings in my server&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Sep 2008 04:37:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-08T04:37:06Z</dc:date>
    <item>
      <title>bapi_po_change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change/m-p/4369479#M1039753</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 updating the PO info based on the data from the flat file. that means I am uploading data from flat file and checking this data with the table data if there are any changed=s in the table data I am modifying it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that i am using BAPI_PO_CHANGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code is as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF ty_ekko,&lt;/P&gt;&lt;P&gt;         ebeln TYPE ebeln,&lt;/P&gt;&lt;P&gt;         ekorg TYPE ekorg,&lt;/P&gt;&lt;P&gt;         ekgrp TYPE bkgrp,&lt;/P&gt;&lt;P&gt;       END OF ty_ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : it_flatfile TYPE TABLE OF ty_ekko ,&lt;/P&gt;&lt;P&gt;       wa_flatfile TYPE ty_ekko,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       it_ekko1 TYPE TABLE OF ty_ekko,&lt;/P&gt;&lt;P&gt;       wa_ekko1 TYPE ty_ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :  v_file TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : wa_header TYPE  bapimepoheader,&lt;/P&gt;&lt;P&gt;       wa_headerx TYPE bapimepoheaderx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_return type table of bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : p_file  TYPE ibipparms-path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      file_name = p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE p_file TO v_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename            = v_file&lt;/P&gt;&lt;P&gt;      has_field_separator = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab            = it_flatfile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT it_flatfile IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT ebeln ekorg ekgrp&lt;/P&gt;&lt;P&gt;           FROM ekko&lt;/P&gt;&lt;P&gt;           INTO TABLE it_ekko1&lt;/P&gt;&lt;P&gt;           FOR ALL ENTRIES IN it_flatfile&lt;/P&gt;&lt;P&gt;          WHERE ebeln = it_flatfile-ebeln  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_flatfile INTO wa_flatfile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    READ TABLE it_ekko1 INTO wa_ekko1 WITH  KEY ebeln = wa_flatfile-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF wa_flatfile-ekorg NE wa_ekko1-ekorg OR&lt;/P&gt;&lt;P&gt;         wa_flatfile-ekgrp NE wa_ekko1-ekgrp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        wa_header-po_number = wa_flatfile-ebeln.&lt;/P&gt;&lt;P&gt;        wa_header-purch_org = wa_flatfile-ekorg.&lt;/P&gt;&lt;P&gt;        wa_header-pur_group = wa_flatfile-ekgrp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       wa_headerx-po_number = wa_flatfile-ebeln.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        wa_headerx-purch_org = 'X'.&lt;/P&gt;&lt;P&gt;        wa_headerx-pur_group = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&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                = wa_ekko1-ebeln&lt;/P&gt;&lt;P&gt;        poheader                     = wa_header&lt;/P&gt;&lt;P&gt;        poheaderx                    = wa_headerx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;P&gt;   RETURN                       = it_return&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              .&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;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the data is not being updated. I am having some errors in the return table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am updating only the header data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly help me in this issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 06:41:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change/m-p/4369479#M1039753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T06:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: bapi_po_change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change/m-p/4369480#M1039754</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;You might be sending only header data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i see from FM call that u hav sent only header data.&lt;/P&gt;&lt;P&gt;u didn't populate other tables .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say for ex POITEM and hav to populate POITEMX for which fields  u wanna change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rhea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 07:20:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change/m-p/4369480#M1039754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T07:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: bapi_po_change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change/m-p/4369481#M1039755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;also populate the itemdetails table POITEM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raju.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 07:50:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change/m-p/4369481#M1039755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T07:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: bapi_po_change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change/m-p/4369482#M1039756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there may be sevral reason behind this.from here hard to guess.first just check whether you have aurthorization to change PO ot not?than check Security (BC-SEC) which standas a firewall(A special server in computer networks that prevents unauthorized penetration (dialling in) of external people and/or the transfer of data that is not to be transferred.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more info carefully read Functionality in Detail from documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 07:55:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change/m-p/4369482#M1039756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T07:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: bapi_po_change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change/m-p/4369483#M1039757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry guys its prob with the authorizations, and settings in my server&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2008 04:37:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-change/m-p/4369483#M1039757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-08T04:37:06Z</dc:date>
    </item>
  </channel>
</rss>

