<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1460728#M217496</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;Check in the Debug mode where the error gets set.&lt;/P&gt;&lt;P&gt;Then accordingly you can change what is passed to the BAPI. Or change the BAPI code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sameena&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: sameena attarwala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Jun 2006 07:34:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-21T07:34:20Z</dc:date>
    <item>
      <title>Bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1460727#M217495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;     Am calling a user defined BAPI in my report , its returning an error message before comitting the data.&lt;/P&gt;&lt;P&gt;need suggestion how to rectify the error , i mean wht r the things i need to check , do i need to check the parameters tht r passed to the user defined bapi ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user defined bapi code is :&lt;/P&gt;&lt;P&gt;CALL FUNCTION '/zkg/WB_ALLOCATION'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_material         = itab_display_matnr&lt;/P&gt;&lt;P&gt;      i_batch            = itab_display_charg1&lt;/P&gt;&lt;P&gt;      i_plant            = itab_display_werks&lt;/P&gt;&lt;P&gt;      i_alloc_flag       = p_all&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_LOCK_CHECK       = 1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      i_vbeln            = itab_display_vbeln&lt;/P&gt;&lt;P&gt;      i_posnr            = itab_display_posnr&lt;/P&gt;&lt;P&gt;      i_sloc             = itab_display_lgort&lt;/P&gt;&lt;P&gt;      i_clabs            = itab_display_clabs&lt;/P&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;     et_return           = w_bapiret2&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ET_DOC_INFO        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_COMPLETE         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;READ TABLE w_bapiret2 INTO wa_bapiret2 WITH KEY type = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;output the error message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CLEAR okcode.&lt;/P&gt;&lt;P&gt;    MESSAGE e100(pp) WITH wa_bapiret2-message.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              wait   = g_bwait&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              return = gt_bapiret2.&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;thxs,&lt;/P&gt;&lt;P&gt;vind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2006 07:30:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1460727#M217495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-21T07:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1460728#M217496</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;Check in the Debug mode where the error gets set.&lt;/P&gt;&lt;P&gt;Then accordingly you can change what is passed to the BAPI. Or change the BAPI code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sameena&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: sameena attarwala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2006 07:34:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1460728#M217496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-21T07:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1460729#M217497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the message that you are getting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2006 07:34:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1460729#M217497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-21T07:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1460730#M217498</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 suppose you need to check your BAPI. Put a break-point in your BAPI to check whether data input to BAPI is in appropriate format or not. This will also give you a clear picture of where the problem is occuring, I mean the code in your BAPI that is generating error. We will then be able to find the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Reema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2006 07:59:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1460730#M217498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-21T07:59:06Z</dc:date>
    </item>
  </channel>
</rss>

