<?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 BAPI: BAPI_GOODSMVT_CREATE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-bapi-goodsmvt-create/m-p/6374619#M1402433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But  which problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Nov 2009 14:39:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-18T14:39:57Z</dc:date>
    <item>
      <title>Problem with BAPI: BAPI_GOODSMVT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-bapi-goodsmvt-create/m-p/6374616#M1402430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with the use of this BAPI: &lt;STRONG&gt;BAPI_GOODSMVT_CREATE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that i have this code sample in the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT tg_posicion INTO sl_posicion.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT tl_lotes INTO sl_lotes.&lt;/P&gt;&lt;P&gt;      sg_goodsmvt_header-pstng_date = sg_cabecera-budat.&lt;/P&gt;&lt;P&gt;      sg_goodsmvt_header-doc_date   = sg_cabecera-bedat.&lt;/P&gt;&lt;P&gt;      sg_goodsmvt_header-header_txt = sg_cabecera-bktxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;begin cba 14012009&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      sg_goodsmvt_header-ver_gr_gi_slip = '1'.&lt;/P&gt;&lt;P&gt;      sg_goodsmvt_header-ver_gr_gi_slipx = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;end   cba 14012009&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      sg_goodsmvt_code-gm_code = '01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      REFRESH gt_goodsmvt_item.&lt;/P&gt;&lt;P&gt;      CLEAR   gs_goodsmvt_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      gs_goodsmvt_item-material      = sl_posicion-matnr.&lt;/P&gt;&lt;P&gt;      gs_goodsmvt_item-plant         = sl_posicion-werks.&lt;/P&gt;&lt;P&gt;      gs_goodsmvt_item-stge_loc      = sl_posicion-lgort.&lt;/P&gt;&lt;P&gt;      gs_goodsmvt_item-batch         = sl_lotes-lote.&lt;/P&gt;&lt;P&gt;      gs_goodsmvt_item-move_type     = '101'.&lt;/P&gt;&lt;P&gt;      gs_goodsmvt_item-vendor        = sg_cabecera-lifnr.&lt;/P&gt;&lt;P&gt;      gs_goodsmvt_item-entry_qnt     = sl_posicion-conv.&lt;/P&gt;&lt;P&gt;      gs_goodsmvt_item-entry_uom_iso = vl_isocode.&lt;/P&gt;&lt;P&gt;      gs_goodsmvt_item-po_number     = sg_cabecera-ebeln.&lt;/P&gt;&lt;P&gt;      gs_goodsmvt_item-po_item       = sl_posicion-ebelp.&lt;/P&gt;&lt;P&gt;      gs_goodsmvt_item-mvt_ind       = 'B'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      APPEND gs_goodsmvt_item TO gt_goodsmvt_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_GOODSMVT_CREATE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          goodsmvt_header  = sg_goodsmvt_header&lt;/P&gt;&lt;P&gt;          goodsmvt_code    = sg_goodsmvt_code&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          goodsmvt_headret = gs_goodsmvt_headret&lt;/P&gt;&lt;P&gt;          materialdocument = gs_materialdocument&lt;/P&gt;&lt;P&gt;          matdocumentyear  = gs_matdocumentyear&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          goodsmvt_item    = gt_goodsmvt_item&lt;/P&gt;&lt;P&gt;          return           = gt_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far, so good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that when i loop at the table tg_position when i want to process the second position, in the ME23N, this item, appears in the purchase order historial but in the first position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already debugg the program and in the parameter:&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;gs_goodsmvt_item-po_item       = sl_posicion-ebelp.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;when process the second position, it goes with a '00020'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does any one know why is this happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if any one knows...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Juan Quezada Calderon&lt;/P&gt;&lt;P&gt;ABAP Consultant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 15:42:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-bapi-goodsmvt-create/m-p/6374616#M1402430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-17T15:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI: BAPI_GOODSMVT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-bapi-goodsmvt-create/m-p/6374617#M1402431</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;Try with this.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'CONVERSION_EXIT_ALPHA_OUTPUT'
      exporting
        input  = gs_goodsmvt_item-po_item
      importing
        output = gs_goodsmvt_item-po_item.

Now you call your : CALL FUNCTION 'BAPI_GOODSMVT_CREATE'.

finally call this:

 call function 'BAPI_TRANSACTION_COMMIT'
      exporting
        wait = 'X'.

    &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it not surve your purpose revert back to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Anil Kumar Reddy on Nov 17, 2009 5:06 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 16:06:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-bapi-goodsmvt-create/m-p/6374617#M1402431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-17T16:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI: BAPI_GOODSMVT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-bapi-goodsmvt-create/m-p/6374618#M1402432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i did what you recommend me in the previous post, but the same problem still persist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you know what could it be...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still try to figure it out.&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;Juan Quezada&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 14:33:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-bapi-goodsmvt-create/m-p/6374618#M1402432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T14:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI: BAPI_GOODSMVT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-bapi-goodsmvt-create/m-p/6374619#M1402433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But  which problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 14:39:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-bapi-goodsmvt-create/m-p/6374619#M1402433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T14:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI: BAPI_GOODSMVT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-bapi-goodsmvt-create/m-p/6374620#M1402434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that when i loop at the table tg_position when i want to process the second position, in the ME23N, this item, appears in the purchase order historial but in the first position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already debugg the program and in the parameter:&lt;/P&gt;&lt;P&gt;gs_goodsmvt_item-po_item = sl_posicion-ebelp.&lt;/P&gt;&lt;P&gt;when process the second position, it goes with a '00020'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does any one know why is this happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if any one knows...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 14:04:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-bapi-goodsmvt-create/m-p/6374620#M1402434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-19T14:04:00Z</dc:date>
    </item>
  </channel>
</rss>

