<?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_GOODSMVT_CREATE for 415Q transfer posting in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-for-415q-transfer-posting/m-p/4353351#M1036586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, it's 9:30 at night and I managed to figure it out so I thought the least I could do is to post it to the group here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this code, PWA_MAIN is my main work area and lwa_items has the structure asked for in BAPI_GOODSMVT_CREATE.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  lwa_items-move_mat    =
  lwa_items-material    = pwa_main-matnr.
  lwa_items-move_plant  =
  lwa_items-plant       = pwa_main-werks.
  lwa_items-move_stloc  =
  lwa_items-stge_loc    = pwa_main-lgort.
  lwa_items-move_batch  =
  lwa_items-batch       = pwa_main-charg.
  lwa_items-move_type   = '415'.
  lwa_items-spec_stock  = c_q.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The key is knowing how to populate the WBS elements.  In this case, I have the "old" or "from" WBS as PAPSPNR1 and the "new" or "to" WBS as PAPSPNR2.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
lwa_items-wbs_elem = papspnr2. lwa_items-val_wbs_elem = papspnr1.
lwa_items-entry_qnt = pwa_main-verme.
lwa_items-entry_uom = pwa_main-meins.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;We use a combination of T333 and T320 to determine the storage type and storage bin.  (stge_type_pc, stge_bin_pc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incidently, I tried using XSTOB = 'X' which added a 416 movement record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend playing with it in SE37 and creating test variants until you get it right before trying to add the call to your program!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Aug 2008 01:43:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-27T01:43:17Z</dc:date>
    <item>
      <title>BAPI_GOODSMVT_CREATE for 415Q transfer posting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-for-415q-transfer-posting/m-p/4353350#M1036585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone comment on using this BAPI for a 415 movement type?  I am able to post a 411 and a 412 which achieves the same net effect when I want to move stock from one WBS element to another.&lt;/P&gt;&lt;P&gt;However, our WM system requires a single transfer order as if we posted 415Q via transaction MB1B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for suggestions or code snippets if you have them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;Ray Mannion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 00:06:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-for-415q-transfer-posting/m-p/4353350#M1036585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T00:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_GOODSMVT_CREATE for 415Q transfer posting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-for-415q-transfer-posting/m-p/4353351#M1036586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, it's 9:30 at night and I managed to figure it out so I thought the least I could do is to post it to the group here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this code, PWA_MAIN is my main work area and lwa_items has the structure asked for in BAPI_GOODSMVT_CREATE.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  lwa_items-move_mat    =
  lwa_items-material    = pwa_main-matnr.
  lwa_items-move_plant  =
  lwa_items-plant       = pwa_main-werks.
  lwa_items-move_stloc  =
  lwa_items-stge_loc    = pwa_main-lgort.
  lwa_items-move_batch  =
  lwa_items-batch       = pwa_main-charg.
  lwa_items-move_type   = '415'.
  lwa_items-spec_stock  = c_q.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The key is knowing how to populate the WBS elements.  In this case, I have the "old" or "from" WBS as PAPSPNR1 and the "new" or "to" WBS as PAPSPNR2.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
lwa_items-wbs_elem = papspnr2. lwa_items-val_wbs_elem = papspnr1.
lwa_items-entry_qnt = pwa_main-verme.
lwa_items-entry_uom = pwa_main-meins.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;We use a combination of T333 and T320 to determine the storage type and storage bin.  (stge_type_pc, stge_bin_pc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incidently, I tried using XSTOB = 'X' which added a 416 movement record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend playing with it in SE37 and creating test variants until you get it right before trying to add the call to your program!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 01:43:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-for-415q-transfer-posting/m-p/4353351#M1036586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T01:43:17Z</dc:date>
    </item>
  </channel>
</rss>

