<?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_GETDETAIL sample code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-getdetail-sample-code/m-p/3829960#M920982</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;FORM get_position_details USING&lt;/P&gt;&lt;P&gt;                            pi_bukrs TYPE ekko-bukrs&lt;/P&gt;&lt;P&gt;                            pi_lifnr TYPE ekko-lifnr&lt;/P&gt;&lt;P&gt;                            pi_ebeln TYPE ekko-ebeln&lt;/P&gt;&lt;P&gt;                            pi_zterm TYPE ekko-zterm&lt;/P&gt;&lt;P&gt;                            pi_bsart TYPE ekko-bsart&lt;/P&gt;&lt;P&gt;                            pi_date  TYPE d&lt;/P&gt;&lt;P&gt;                            pi_file   TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read informations of all order positions for one purchase order&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;    ls_poitem TYPE bapiekpo,&lt;/P&gt;&lt;P&gt;    ls_item_hist TYPE bapiekbe,&lt;/P&gt;&lt;P&gt;    lt_poitem TYPE STANDARD TABLE OF bapiekpo,&lt;/P&gt;&lt;P&gt;    lt_item_hist TYPE STANDARD TABLE OF bapiekbe,&lt;/P&gt;&lt;P&gt;    lt_item_total TYPE STANDARD TABLE OF bapiekbes,&lt;/P&gt;&lt;P&gt;    l_ebeln TYPE ekpo-ebeln,&lt;/P&gt;&lt;P&gt;    l_ebelp TYPE ekpo-ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_PO_GETDETAIL'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            purchaseorder          = pi_ebeln&lt;/P&gt;&lt;P&gt;            items                  = c_yes&lt;/P&gt;&lt;P&gt;            history                = c_yes&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            po_items               = lt_poitem&lt;/P&gt;&lt;P&gt;            po_item_history        = lt_item_hist&lt;/P&gt;&lt;P&gt;            po_item_history_totals = lt_item_total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check posting date, because the bapi list the complete&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;history of a delivery plan&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DELETE lt_item_hist WHERE pstng_date LT pi_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nicole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 May 2008 06:30:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-20T06:30:12Z</dc:date>
    <item>
      <title>BAPI_PO_GETDETAIL sample code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-getdetail-sample-code/m-p/3829959#M920981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts ,&lt;/P&gt;&lt;P&gt;Can anyone , gimme a samlpe code for using "BAPI_PO_GETDETAIL " .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance .&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Rajesh .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 06:26:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-getdetail-sample-code/m-p/3829959#M920981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T06:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_GETDETAIL sample code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-getdetail-sample-code/m-p/3829960#M920982</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;FORM get_position_details USING&lt;/P&gt;&lt;P&gt;                            pi_bukrs TYPE ekko-bukrs&lt;/P&gt;&lt;P&gt;                            pi_lifnr TYPE ekko-lifnr&lt;/P&gt;&lt;P&gt;                            pi_ebeln TYPE ekko-ebeln&lt;/P&gt;&lt;P&gt;                            pi_zterm TYPE ekko-zterm&lt;/P&gt;&lt;P&gt;                            pi_bsart TYPE ekko-bsart&lt;/P&gt;&lt;P&gt;                            pi_date  TYPE d&lt;/P&gt;&lt;P&gt;                            pi_file   TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read informations of all order positions for one purchase order&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;    ls_poitem TYPE bapiekpo,&lt;/P&gt;&lt;P&gt;    ls_item_hist TYPE bapiekbe,&lt;/P&gt;&lt;P&gt;    lt_poitem TYPE STANDARD TABLE OF bapiekpo,&lt;/P&gt;&lt;P&gt;    lt_item_hist TYPE STANDARD TABLE OF bapiekbe,&lt;/P&gt;&lt;P&gt;    lt_item_total TYPE STANDARD TABLE OF bapiekbes,&lt;/P&gt;&lt;P&gt;    l_ebeln TYPE ekpo-ebeln,&lt;/P&gt;&lt;P&gt;    l_ebelp TYPE ekpo-ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_PO_GETDETAIL'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            purchaseorder          = pi_ebeln&lt;/P&gt;&lt;P&gt;            items                  = c_yes&lt;/P&gt;&lt;P&gt;            history                = c_yes&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            po_items               = lt_poitem&lt;/P&gt;&lt;P&gt;            po_item_history        = lt_item_hist&lt;/P&gt;&lt;P&gt;            po_item_history_totals = lt_item_total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check posting date, because the bapi list the complete&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;history of a delivery plan&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DELETE lt_item_hist WHERE pstng_date LT pi_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nicole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 06:30:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-getdetail-sample-code/m-p/3829960#M920982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T06:30:12Z</dc:date>
    </item>
  </channel>
</rss>

