<?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: Allocation simulation by function module/BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/allocation-simulation-by-function-module-bapi/m-p/6109467#M1361914</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
...
* Get plants for distribution:
  call function 'WAUF_READ_DISPATCHERRULE'
    exporting
      im_key                    = ls_key
      im_pincr                  = 1
      im_sbeln                  = iv_sbeln
      im_prefetch_kna1          = 'X'
      im_prefetch_wrf1          = 'X'
      im_prefetch_material_data = 'X'
      im_material               = iv_material
      im_prefetch_wlk1          = space
    importing
      ex_svko                   = ls_svko
    tables
      ex_figr                   = lt_figr
      ex_filn                   = lt_filn
    exceptions
      ar_nicht_vorhanden        = 1
      ar_pos_nicht_selektierbar = 2
      clint_convert_error       = 3
      figr_existiert_nicht      = 4
      others                    = 5.
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The table &lt;STRONG&gt;lt_figr&lt;/STRONG&gt; contains the plants assigned in the allocation; this table can be changed (remove some plants which are not necessary).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
...
* Simulate allocation:
  call function 'WAUF_DETERMINE_QUANTITIES'
    exporting
      im_quantity_to_split           = lv_to_split
      im_alloc_tbl                   = lv_alloc_tbl        " Dummy
      im_alloc_tbl_item              = lv_alloc_tbl_item   " Dummy
      im_material                    = iv_material
      im_base_unit                   = 'CU'
      im_item_category               = 'ZB'
      im_quantity_simulation         = lv_quantity_simulation
      im_rounding                    = ls_svko-rundg
      im_split_remainder             = ls_svko-restv
      im_min_max_qty                 = lv_min_max_qty
    importing
      ex_quantity_splitted           = lv_quantity_splitted
    tables
      im_ex_stores                   = lt_filn
      im_ex_store_groups             = lt_figr
    exceptions
      quantity_simulation_invalid    = 1
      rounding_invalid               = 2
      split_remainder_invalid        = 3
      min_max_qty_invalid            = 4
      stores_storegroup_inconsistent = 5
      sum_quotas_initial             = 6
      call_functionmodul_round       = 7
      planned_qty_less_min_qty       = 8
      planned_qty_greater_max_qty    = 9
      arithmetic_errors              = 10
      others                         = 11.
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Dec 2009 13:15:43 GMT</pubDate>
    <dc:creator>Weiskopf</dc:creator>
    <dc:date>2009-12-16T13:15:43Z</dc:date>
    <item>
      <title>Allocation simulation by function module/BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/allocation-simulation-by-function-module-bapi/m-p/6109466#M1361913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to simulate an allocation (distribute quantities to plants) (SAP component &lt;STRONG&gt;LO-MDS-AL&lt;/STRONG&gt;). For this Iu2019m looking for an appropriated function module which I set the article &lt;/P&gt;&lt;P&gt;number, plants, the allocation rule and the quantity to be distributed to the plants,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result should only be simulated; no document should be created. &lt;/P&gt;&lt;P&gt;Which function module can I use for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Kurt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 16:11:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/allocation-simulation-by-function-module-bapi/m-p/6109466#M1361913</guid>
      <dc:creator>Weiskopf</dc:creator>
      <dc:date>2009-09-09T16:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Allocation simulation by function module/BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/allocation-simulation-by-function-module-bapi/m-p/6109467#M1361914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
...
* Get plants for distribution:
  call function 'WAUF_READ_DISPATCHERRULE'
    exporting
      im_key                    = ls_key
      im_pincr                  = 1
      im_sbeln                  = iv_sbeln
      im_prefetch_kna1          = 'X'
      im_prefetch_wrf1          = 'X'
      im_prefetch_material_data = 'X'
      im_material               = iv_material
      im_prefetch_wlk1          = space
    importing
      ex_svko                   = ls_svko
    tables
      ex_figr                   = lt_figr
      ex_filn                   = lt_filn
    exceptions
      ar_nicht_vorhanden        = 1
      ar_pos_nicht_selektierbar = 2
      clint_convert_error       = 3
      figr_existiert_nicht      = 4
      others                    = 5.
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The table &lt;STRONG&gt;lt_figr&lt;/STRONG&gt; contains the plants assigned in the allocation; this table can be changed (remove some plants which are not necessary).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
...
* Simulate allocation:
  call function 'WAUF_DETERMINE_QUANTITIES'
    exporting
      im_quantity_to_split           = lv_to_split
      im_alloc_tbl                   = lv_alloc_tbl        " Dummy
      im_alloc_tbl_item              = lv_alloc_tbl_item   " Dummy
      im_material                    = iv_material
      im_base_unit                   = 'CU'
      im_item_category               = 'ZB'
      im_quantity_simulation         = lv_quantity_simulation
      im_rounding                    = ls_svko-rundg
      im_split_remainder             = ls_svko-restv
      im_min_max_qty                 = lv_min_max_qty
    importing
      ex_quantity_splitted           = lv_quantity_splitted
    tables
      im_ex_stores                   = lt_filn
      im_ex_store_groups             = lt_figr
    exceptions
      quantity_simulation_invalid    = 1
      rounding_invalid               = 2
      split_remainder_invalid        = 3
      min_max_qty_invalid            = 4
      stores_storegroup_inconsistent = 5
      sum_quotas_initial             = 6
      call_functionmodul_round       = 7
      planned_qty_less_min_qty       = 8
      planned_qty_greater_max_qty    = 9
      arithmetic_errors              = 10
      others                         = 11.
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 13:15:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/allocation-simulation-by-function-module-bapi/m-p/6109467#M1361914</guid>
      <dc:creator>Weiskopf</dc:creator>
      <dc:date>2009-12-16T13:15:43Z</dc:date>
    </item>
  </channel>
</rss>

