<?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: Problem with Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/3267394#M780881</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dont writ bapi_transactin_commit inside the badi, we should not commit inside a user exit or badi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jan 2008 22:26:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-09T22:26:56Z</dc:date>
    <item>
      <title>Problem with Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/3267393#M780880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;im calling a fm(SD_DELIVERY_UPDATE_PICKING_1) to update the picking quantity during delivery creation wn ever sto is saved,inside a badi(LE_SHP_DELIVERY_PROC).Now the controll is not comming out of the code.&lt;/P&gt;&lt;P&gt;method IF_EX_LE_SHP_DELIVERY_PROC~SAVE_AND_PUBLISH_DOCUMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data: wa_lips type lips,&lt;/P&gt;&lt;P&gt;       it_lips TYPE TABLE OF lips,&lt;/P&gt;&lt;P&gt;       wa_likp TYPE likp,&lt;/P&gt;&lt;P&gt;       it_likp TYPE TABLE OF likp,&lt;/P&gt;&lt;P&gt;       wa_komdlgn type komdlgn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; it_lips[] = it_xlips[].&lt;/P&gt;&lt;P&gt; it_likp[] = it_xlikp[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table it_lips into wa_lips index 1.&lt;/P&gt;&lt;P&gt;read table it_likp into wa_likp index 1.&lt;/P&gt;&lt;P&gt;*********************************************&lt;/P&gt;&lt;P&gt;data:wa_VBKOK type  VBKOK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:wa_vbpok type vbpok,&lt;/P&gt;&lt;P&gt;     it_VBPOK TYPE TABLE OF VBPOK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_VBKOK-VBELN_VL  = wa_likp-vbeln.   "  0080001420&lt;/P&gt;&lt;P&gt;wa_VBKOK-VBTYP_VL  = wa_likp-vbtyp.   "  J&lt;/P&gt;&lt;P&gt;wa_VBKOK-KODAT     = wa_likp-kodat.   "  01/09/2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_VBPOK-VBELN_VL  = wa_lips-vbeln.    " 0080001420&lt;/P&gt;&lt;P&gt;wa_VBPOK-POSNR_VL  = wa_lips-posnr.    " 000010&lt;/P&gt;&lt;P&gt;wa_VBPOK-VBELN     = wa_lips-vgbel.    " 8200001248&lt;/P&gt;&lt;P&gt;wa_VBPOK-POSNN     = wa_lips-vgpos.     " 000010&lt;/P&gt;&lt;P&gt;wa_VBPOK-PIKMG     = wa_lips-lfimg.    " 1.000&lt;/P&gt;&lt;P&gt;wa_VBPOK-MATNR     = wa_lips-matnr.    " SC540206FUR2&lt;/P&gt;&lt;P&gt;wa_VBPOK-CHARG     = wa_lips-charg.    " 1000000009&lt;/P&gt;&lt;P&gt;wa_VBPOK-WERKS     = wa_lips-werks.    " 8380&lt;/P&gt;&lt;P&gt;append wa_vbpok to it_VBPOK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*if wa_VBPOK-PIKMG is INITIAL.&lt;/P&gt;&lt;P&gt;*if sy-tcode ne 'VL02N'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SD_DELIVERY_UPDATE_PICKING_1'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    VBKOK_WA                       = wa_VBKOK&lt;/P&gt;&lt;P&gt;    SYNCHRON                       = 'X'&lt;/P&gt;&lt;P&gt;    NO_MESSAGES_UPDATE_1           = ' '&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NICHT_SPERREN_1                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  AUFRUFER_T_1                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IF_ERROR_MESSAGES_SEND_1       = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IF_LATE_DELIVERY_UPD           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_SERNR_UPDATE                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    VBPOK_TAB                      = it_VBPOK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;*commit WORK.&lt;/P&gt;&lt;P&gt;*endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help to solve the issue.&lt;/P&gt;&lt;P&gt;points wikll be awarded surelly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the end of execution of fm, the controll is coming back to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_lips type lips,&lt;/P&gt;&lt;P&gt;       it_lips TYPE TABLE OF lips,&lt;/P&gt;&lt;P&gt;       wa_likp TYPE likp,&lt;/P&gt;&lt;P&gt;       it_likp TYPE TABLE OF likp,&lt;/P&gt;&lt;P&gt;       wa_komdlgn type komdlgn.            statemant.&lt;/P&gt;&lt;P&gt;and from there its not executing next time.i hv seen this in debug mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: SASIKANTH SM on Jan 9, 2008 8:32 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: SASIKANTH SM on Jan 9, 2008 8:33 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 15:01:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/3267393#M780880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T15:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/3267394#M780881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dont writ bapi_transactin_commit inside the badi, we should not commit inside a user exit or badi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 22:26:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module/m-p/3267394#M780881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T22:26:56Z</dc:date>
    </item>
  </channel>
</rss>

