<?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: I need help checking if a bapi works . in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-checking-if-a-bapi-works/m-p/704095#M32188</link>
    <description>&lt;P&gt;Rachid - the answer to your question is actually spelled out in the detailed documention of the function module where it states:&lt;/P&gt;&lt;H3&gt;Further information&lt;/H3&gt;&lt;P&gt;The method                                                                                                                       can only perform your function if no error messages were generated in the &lt;EM&gt;Return&lt;/EM&gt; table. This is the case if the header      data and all the items were processed successfully.&lt;/P&gt;&lt;P&gt;Transaction                                                                                                                      control is not implemented. The calling program therefore has to execute the &lt;STRONG&gt;Commit Work&lt;/STRONG&gt; itself after this method has been    successfully invoked (in other words, if no errors were reported in the &lt;EM&gt;Return&lt;/EM&gt; parameter).&lt;/P&gt;&lt;P&gt;----------&lt;/P&gt;&lt;P&gt;This information is just a click away in SE37 where it says "Function Module Documentation"&lt;/P&gt;</description>
    <pubDate>Fri, 19 Oct 2018 14:03:02 GMT</pubDate>
    <dc:creator>BaerbelWinkler</dc:creator>
    <dc:date>2018-10-19T14:03:02Z</dc:date>
    <item>
      <title>I need help checking if a bapi works .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-checking-if-a-bapi-works/m-p/704093#M32186</link>
      <description>&lt;P&gt;I am using bapi_goodsmvt_create and I don't know if I execute it if it works because it's not creating new movements .&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Here is my code:&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;
data lv_return type table of bapiret2 .
  data :it_goodsmvt_item type table of bapi2017_gm_item_create,
        wa_goodsmvt_item type bapi2017_gm_item_create.
data: ls_goodsmvt_header  TYPE BAPI2017_GM_HEAD_01 .
data ls_zgo_lgort type zgo_mes_lgort .
data ls_zgo_resb type zgo_mes_resb .



ls_goodsmvt_header-pstng_date = sy-datum.
ls_goodsmvt_header-pr_uname = sy-uname.



wa_goodsmvt_item-move_type = 'Z61' .

wa_goodsmvt_item-stge_loc  = ls_zgo_lgort-lgort .

wa_goodsmvt_item-item_text = ls_zgo_resb-maktx.

wa_goodsmvt_item-orderid  = aufnr . "Input parameter of the function module

wa_goodsmvt_item-entry_qnt = quantity . "Input parameter of the FM

wa_goodsmvt_item-RESERV_NO = ls_zgo_resb-rsnum .

wa_goodsmvt_item-RES_ITEM  = ls_zgo_resb-rspos .

wa_goodsmvt_item-material  = ls_zgo_resb-matnr .

append wa_goodsmvt_item to it_goodsmvt_item.





  call function 'BAPI_GOODSMVT_CREATE'

    exporting

      goodsmvt_header = ls_goodsmvt_header

      goodsmvt_code   = '01'

*     TESTRUN         = ' '

*     GOODSMVT_REF_EWM              =

*     GOODSMVT_PRINT_CTRL           =

* IMPORTING

*     GOODSMVT_HEADRET              =

*     MATERIALDOCUMENT              =

*     MATDOCUMENTYEAR =

    tables

      goodsmvt_item   = it_goodsmvt_item

*     GOODSMVT_SERIALNUMBER         =

      return          = lv_return

*     GOODSMVT_SERV_PART_DATA       =

*     EXTENSIONIN     =

*     GOODSMVT_ITEM_CWM             =

    .&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Oct 2018 12:18:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-checking-if-a-bapi-works/m-p/704093#M32186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-10-19T12:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: I need help checking if a bapi works .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-checking-if-a-bapi-works/m-p/704094#M32187</link>
      <description>&lt;P&gt;Try calling the function module BAPI_TRANSACTION_COMMIT after your BAPI.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 12:39:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-checking-if-a-bapi-works/m-p/704094#M32187</guid>
      <dc:creator>keremkoseoglu</dc:creator>
      <dc:date>2018-10-19T12:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: I need help checking if a bapi works .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-checking-if-a-bapi-works/m-p/704095#M32188</link>
      <description>&lt;P&gt;Rachid - the answer to your question is actually spelled out in the detailed documention of the function module where it states:&lt;/P&gt;&lt;H3&gt;Further information&lt;/H3&gt;&lt;P&gt;The method                                                                                                                       can only perform your function if no error messages were generated in the &lt;EM&gt;Return&lt;/EM&gt; table. This is the case if the header      data and all the items were processed successfully.&lt;/P&gt;&lt;P&gt;Transaction                                                                                                                      control is not implemented. The calling program therefore has to execute the &lt;STRONG&gt;Commit Work&lt;/STRONG&gt; itself after this method has been    successfully invoked (in other words, if no errors were reported in the &lt;EM&gt;Return&lt;/EM&gt; parameter).&lt;/P&gt;&lt;P&gt;----------&lt;/P&gt;&lt;P&gt;This information is just a click away in SE37 where it says "Function Module Documentation"&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 14:03:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-checking-if-a-bapi-works/m-p/704095#M32188</guid>
      <dc:creator>BaerbelWinkler</dc:creator>
      <dc:date>2018-10-19T14:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: I need help checking if a bapi works .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-checking-if-a-bapi-works/m-p/704096#M32189</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Welcome to the SAP Community and thank you for coming for answers! I was able to find the answer to your question, as the same question occurred in the community before. See the answers that were already offered here or see &lt;A href="https://www.google.co.il/search?q=BAPI_GOODSMVT_CREATE&amp;amp;oq=BAPI_GOODSMVT_CREATE&amp;amp;aqs=chrome..69i57&amp;amp;sourceid=chrome&amp;amp;ie=UTF-8"&gt;this&lt;/A&gt;. If you haven’t tried this yet, I recommend searching in the community next time before you ask a question again. If you need further assistance feel free to reach out  to moderators(at)sap(dot)com.&lt;/P&gt;&lt;P&gt;Best regards, &lt;/P&gt;&lt;P&gt;Iftah,&lt;/P&gt;&lt;P&gt;SAP Community moderator&lt;/P&gt;</description>
      <pubDate>Sat, 20 Oct 2018 19:40:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-checking-if-a-bapi-works/m-p/704096#M32189</guid>
      <dc:creator>iftah_peretz</dc:creator>
      <dc:date>2018-10-20T19:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: I need help checking if a bapi works .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-checking-if-a-bapi-works/m-p/704097#M32190</link>
      <description>&lt;P&gt;Some beginner rules for BAPI&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Read their documentation (from a transaction such as SE37, SE80 or BAPI or in &lt;A href="https://help.sap.com/viewer/search?q=call%20BAPI%20abap"&gt;online help&lt;/A&gt;)&lt;/LI&gt;&lt;LI&gt;Check RETURN parameter for error messages&lt;/LI&gt;&lt;LI&gt;Commit/Rollback with FM BAPI_TRANSACTION* &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Rules for the forum&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;use search tool (also google or sap launchpad)&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://www.sap.com/community/resources/rules-of-engagement.html"&gt;Rules of Engagement&lt;/A&gt;, etc.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 22 Oct 2018 07:18:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-checking-if-a-bapi-works/m-p/704097#M32190</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2018-10-22T07:18:32Z</dc:date>
    </item>
  </channel>
</rss>

