<?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 BAPI call in Smartform - errors in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-call-in-smartform-errors/m-p/1589409#M265432</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;my requirement is, in SD - quotation some items has 'override prices', i need to display both prices 'actaul i.e after override price' and original i.e. before override price in smartform output. For this i am simulating BAPI to get the original item price with BAPI FM 'BAPI_SALESORDER_SIMULATE'.i have written a stand alone report program, which is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here my problem is when i am calling this BAPI in a smart form which is attached to 'std quotation i.e VA22/VA23' output type, the BAPI FM is not retrieving any values. The reason is both quotation and sales order uses the same program 'SAPMV45A'. when BAPI is called from 'quotation output-smartform' the internal structures ( like XVBAP, YVBAP etc.,) are already filled with values, Some validations on these structures forcing to return empty tables in BAPI call.moreover BAPI is not returning any error.&lt;/P&gt;&lt;P&gt;I have tried options like 1. PERFORM xxxx in program 2. Submit program XXXXX, nothing is working.&lt;/P&gt;&lt;P&gt;Even i tried FM 'GN_INVOICE_CREATE' to calculate the item price. This is also not working with quotation output type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas in getting the item price for the given line item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Sep 2006 23:49:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-18T23:49:34Z</dc:date>
    <item>
      <title>BAPI call in Smartform - errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-call-in-smartform-errors/m-p/1589409#M265432</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;my requirement is, in SD - quotation some items has 'override prices', i need to display both prices 'actaul i.e after override price' and original i.e. before override price in smartform output. For this i am simulating BAPI to get the original item price with BAPI FM 'BAPI_SALESORDER_SIMULATE'.i have written a stand alone report program, which is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here my problem is when i am calling this BAPI in a smart form which is attached to 'std quotation i.e VA22/VA23' output type, the BAPI FM is not retrieving any values. The reason is both quotation and sales order uses the same program 'SAPMV45A'. when BAPI is called from 'quotation output-smartform' the internal structures ( like XVBAP, YVBAP etc.,) are already filled with values, Some validations on these structures forcing to return empty tables in BAPI call.moreover BAPI is not returning any error.&lt;/P&gt;&lt;P&gt;I have tried options like 1. PERFORM xxxx in program 2. Submit program XXXXX, nothing is working.&lt;/P&gt;&lt;P&gt;Even i tried FM 'GN_INVOICE_CREATE' to calculate the item price. This is also not working with quotation output type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas in getting the item price for the given line item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 23:49:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-call-in-smartform-errors/m-p/1589409#M265432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T23:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI call in Smartform - errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-call-in-smartform-errors/m-p/1589410#M265433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try RV_ITEM_PRICE* function modules&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 02:15:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-call-in-smartform-errors/m-p/1589410#M265433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T02:15:03Z</dc:date>
    </item>
  </channel>
</rss>

