<?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_SAG_CREATE Error 'Enter Net Price' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sag-create-error-enter-net-price/m-p/5863332#M1321939</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is check on the currency key on header level, so &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sag_header-CURRENCY = pr_waers&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; is necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Legend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: legend li on Jul 22, 2009 3:52 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jul 2009 07:51:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-22T07:51:45Z</dc:date>
    <item>
      <title>BAPI_SAG_CREATE Error 'Enter Net Price'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sag-create-error-enter-net-price/m-p/5863326#M1321933</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;&lt;/P&gt;&lt;P&gt;I'm creating Puchase Schedule Agreement using BAPI BAPI_SAG_CREATE, but encounted an error saying 'Enter Net Price' ME 083. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the SAG_RETURN, MESSAGE_V1 = 'Eneter Net Price', PARAMETER = 'HEADER'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried passing the field net_price, but still got that error. Also I tried passing field info_rec, didn't work either.&lt;/P&gt;&lt;P&gt;Seems the error is at header level, but I didn't find any field for net price in sag_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Legend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

* Header

  CLEAR sag_header.
  sag_header-vendor = pr_lifnr.
  sag_header-doc_type = pr_evart.
  sag_header-creat_date = pr_vedat.
  sag_header-purch_org = pr_ekorg.
  sag_header-pur_group = pr_ekgrp.
  sag_header-vper_start = pr_kdatb.
  sag_header-vper_end = pr_kdate.

* Headerx

  CLEAR sag_headerx.
  sag_headerx-vendor = 'X'.
  sag_headerx-doc_type = 'X'.
  sag_headerx-creat_date = 'X'.
  sag_headerx-purch_org = 'X'.
  sag_headerx-pur_group = 'X'.
  sag_headerx-vper_start = 'X'.
  sag_headerx-vper_end = 'X'.

LOOP at gt_rb1_item.
*   Item
    wa_item-item_no = l_item.
    wa_item-material = gt_rb1_item-matnr.
    wa_item-plant = gt_rb1_item-werks.
    wa_item-info_rec = ''.
    wa_item-target_qty = gt_rb1_item-menge.
    wa_item-po_unit = gt_rb1_item-meins.
    wa_item-item_cat = gt_rb1_item-pstyp.
    wa_item-firm_zone = gt_rb1_item-firm_zone.
    wa_item-rel_create_profile = gt_rb1_item-rel_create_profile.
    wa_item-est_price = gt_rb1_item-est_price.
    wa_item-conf_ctrl = '0004'.
    APPEND wa_item TO sag_item.
* ItemX
    wa_itemx-item_no = l_item.
    wa_itemx-item_nox = 'X'.
    wa_itemx-material = 'X'.
    wa_itemx-plant = 'X'.
    wa_itemx-info_rec = 'X'.
    wa_itemx-target_qty = 'X'.
    wa_itemx-po_unit = 'X'.
    wa_itemx-item_cat = 'X'.
    wa_itemx-firm_zone = 'X'.
    wa_itemx-rel_create_profile = 'X'.
    wa_itemx-est_price = 'X'.
    wa_itemx-conf_ctrl = 'X'.
    APPEND wa_itemx TO sag_itemx.
ENDLOOP.

* Call BAPI

  CALL FUNCTION 'BAPI_SAG_CREATE'
    EXPORTING
      header             = sag_header
      headerx            = sag_headerx
*          testrun            = 'X'
    IMPORTING
      purchasingdocument = sag_nbr
      exp_header         = sag_exp_header
    TABLES
      return             = sag_return
      item               = sag_item
      itemx              = sag_itemx
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 03:37:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sag-create-error-enter-net-price/m-p/5863326#M1321933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-22T03:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SAG_CREATE Error 'Enter Net Price'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sag-create-error-enter-net-price/m-p/5863327#M1321934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please Check whether Purchase Organization is passed properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;ShreeMohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 05:49:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sag-create-error-enter-net-price/m-p/5863327#M1321934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-22T05:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SAG_CREATE Error 'Enter Net Price'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sag-create-error-enter-net-price/m-p/5863328#M1321935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Purchase Org is already passed to header SAG_HEADER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Legend.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 05:58:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sag-create-error-enter-net-price/m-p/5863328#M1321935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-22T05:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SAG_CREATE Error 'Enter Net Price'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sag-create-error-enter-net-price/m-p/5863329#M1321936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is Net Price and weight greater than 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ShreeMohan Pugalia on Jul 22, 2009 8:05 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 06:04:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sag-create-error-enter-net-price/m-p/5863329#M1321936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-22T06:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SAG_CREATE Error 'Enter Net Price'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sag-create-error-enter-net-price/m-p/5863330#M1321937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;net_price is greater than 0, weight is not passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but after executing the bapi, in sag_item, the net_price is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Legend.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 06:15:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sag-create-error-enter-net-price/m-p/5863330#M1321937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-22T06:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SAG_CREATE Error 'Enter Net Price'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sag-create-error-enter-net-price/m-p/5863331#M1321938</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;Can you please describe in detail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 06:21:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sag-create-error-enter-net-price/m-p/5863331#M1321938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-22T06:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SAG_CREATE Error 'Enter Net Price'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sag-create-error-enter-net-price/m-p/5863332#M1321939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is check on the currency key on header level, so &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sag_header-CURRENCY = pr_waers&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; is necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Legend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: legend li on Jul 22, 2009 3:52 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 07:51:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sag-create-error-enter-net-price/m-p/5863332#M1321939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-22T07:51:45Z</dc:date>
    </item>
  </channel>
</rss>

