<?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: error in report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-report/m-p/4008674#M957664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giri,&lt;/P&gt;&lt;P&gt;  Try to send the partner number with leading zeroes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jun 2008 16:09:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-10T16:09:54Z</dc:date>
    <item>
      <title>error in report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-report/m-p/4008673#M957663</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;why this code is not working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting error message in return table like &lt;STRONG&gt;Please enter Sold to party or ship to party.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data: zinq_head like BAPISDHD1 occurs 0 with header line,
      zbapiret like bapiret2 occurs 0 with header line,
      zinq_partner like BAPIPARNR occurs 0 with header line.

      zinq_head-DOC_TYPE = 'ZIN'.
      zinq_head-SALES_ORG = 'SD01'.
      zinq_head-DISTR_CHAN = '01'.
      zinq_head-DIVISION = '01'.
      append zinq_head.

      zinq_partner-PARTN_ROLE = 'SP'.
      zinq_partner-PARTN_NUMB = '22'.
      append zinq_partner.

CALL FUNCTION 'BAPI_INQUIRY_CREATEFROMDATA2'
  EXPORTING
*   SALESDOCUMENTIN               =
    INQUIRY_HEADER_IN             = ZINQ_HEAD
*   INQUIRY_HEADER_INX            =
*   SENDER                        =
*   BINARY_RELATIONSHIPTYPE       =
*   INT_NUMBER_ASSIGNMENT         =
*   BEHAVE_WHEN_ERROR             =
*   LOGIC_SWITCH                  =
*   TESTRUN                       =
*   CONVERT                       = ' '
* IMPORTING
*   SALESDOCUMENT                 =
  TABLES
   RETURN                        = ZBAPIRET
   INQUIRY_PARTNERS              = zinq_partner
          .

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
*   WAIT          =
* IMPORTING
*   RETURN        =
          .

write: 'Successfully updated'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i provide same values with se37 tcode in BAPI then its working fine.&lt;/P&gt;&lt;P&gt;i believe i am missing any conversion exits or any other field to provide in bapi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 16:07:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-report/m-p/4008673#M957663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T16:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: error in report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-report/m-p/4008674#M957664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giri,&lt;/P&gt;&lt;P&gt;  Try to send the partner number with leading zeroes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 16:09:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-report/m-p/4008674#M957664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T16:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: error in report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-report/m-p/4008675#M957665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then also same error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;E   |VP                  |112   |Please enter sold-to party or ship-to party&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 16:12:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-report/m-p/4008675#M957665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T16:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: error in report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-report/m-p/4008676#M957666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like your partner number 0000000022 and you are trying to pass zinq_partner-PARTN_NUMB = '22'. &lt;/P&gt;&lt;P&gt;Pad leading zeros to that field and than pass to the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the FM CONVERSION_EXIT_ALPHA_INPUT to get the partner number in the internal format (in this case, with leading zero).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 16:15:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-report/m-p/4008676#M957666</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-06-10T16:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: error in report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-report/m-p/4008677#M957667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;still same problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in error message the parameters variable has "SALES_HEADER_IN" for that error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 16:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-report/m-p/4008677#M957667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T16:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: error in report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-report/m-p/4008678#M957668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;send the partner role as AG instead of SP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 16:23:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-report/m-p/4008678#M957668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T16:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: error in report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-report/m-p/4008679#M957669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with AG it is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why not with SP sold to party for the customer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please explain this, What is difference between AG and SP so i can close the thread......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 16:26:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-report/m-p/4008679#M957669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T16:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: error in report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-report/m-p/4008680#M957670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   There is something called internal and external format for some fields in SAP.&lt;/P&gt;&lt;P&gt;For the Partner Function Field, &lt;/P&gt;&lt;P&gt;the external representation for sold to party is SP and Internally it is stored as AG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly for ship to party External representation is SH and internally it is WE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you ran it in the SE37 the system took care of the conversion from external to internal.&lt;/P&gt;&lt;P&gt;But when you write your program, you have to explicitly pass 'AG' for sold to party.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to see the effect for yourself,&lt;/P&gt;&lt;P&gt;you can convert the Partner function from external to internal format and vice versa, you can use the following FMs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_PARVW_INPUT&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_PARVW_OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi Kanth Talagana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 16:45:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-report/m-p/4008680#M957670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T16:45:41Z</dc:date>
    </item>
  </channel>
</rss>

