<?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 BAPI_PRODORDCONF_GET_HDR_PROP with partial quantity in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-get-hdr-prop-with-partial-quantity/m-p/350510#M6837</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I did find a lot of questions around this BADI and even to the same topic of partial quantaties, but no real answer. So:&lt;/P&gt;&lt;P&gt;I want to use&lt;/P&gt;&lt;P&gt;BAPI_PRODORDCONF_GET_HDR_PROP&lt;BR /&gt;and &lt;BR /&gt;BAPI_PRODORDCONF_CREATE_HDR&lt;/P&gt;&lt;P&gt;for goods receipt and backflush evey time a palett of our product is finished. The problem is that BAPI_PRODORDCONF_GET_HDR_PROP always proposes the complet rest of the prduction order and not the quantaties in relation to the amount I enter for yield. &lt;BR /&gt;Because we also use the batch determination strategies it is not done by just recalculating the amounts for the GI.&lt;/P&gt;&lt;P&gt;I tried changing the settings in OPK4 but that did only change the behaviour of CO15.&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Horst&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2017 15:10:51 GMT</pubDate>
    <dc:creator>former_member315919</dc:creator>
    <dc:date>2017-01-25T15:10:51Z</dc:date>
    <item>
      <title>BAPI_PRODORDCONF_GET_HDR_PROP with partial quantity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-get-hdr-prop-with-partial-quantity/m-p/350510#M6837</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I did find a lot of questions around this BADI and even to the same topic of partial quantaties, but no real answer. So:&lt;/P&gt;&lt;P&gt;I want to use&lt;/P&gt;&lt;P&gt;BAPI_PRODORDCONF_GET_HDR_PROP&lt;BR /&gt;and &lt;BR /&gt;BAPI_PRODORDCONF_CREATE_HDR&lt;/P&gt;&lt;P&gt;for goods receipt and backflush evey time a palett of our product is finished. The problem is that BAPI_PRODORDCONF_GET_HDR_PROP always proposes the complet rest of the prduction order and not the quantaties in relation to the amount I enter for yield. &lt;BR /&gt;Because we also use the batch determination strategies it is not done by just recalculating the amounts for the GI.&lt;/P&gt;&lt;P&gt;I tried changing the settings in OPK4 but that did only change the behaviour of CO15.&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Horst&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 15:10:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-get-hdr-prop-with-partial-quantity/m-p/350510#M6837</guid>
      <dc:creator>former_member315919</dc:creator>
      <dc:date>2017-01-25T15:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PRODORDCONF_GET_HDR_PROP with partial quantity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-get-hdr-prop-with-partial-quantity/m-p/350511#M6838</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I did find the answer myself. &lt;/P&gt;&lt;P&gt;BAPI_PRODORDCONF_GET_HDR_PROP and  BAPI_PRODORDCONF_CREATE_HDR&lt;/P&gt;&lt;P&gt;is not designed for partial yield. So, it does not work with these BAPIs.&lt;/P&gt;&lt;P&gt;What does work is this:&lt;/P&gt;&lt;P&gt;
 lv_aktyp_p = 'H'.&lt;BR /&gt;
 lv_autyp_qm = '10'.&lt;BR /&gt;
&lt;BR /&gt;
* check if confirmation is generally possible&lt;BR /&gt;
 CALL FUNCTION 'CO_RU_CONFIRMATION_PREPARE'&lt;BR /&gt;
 EXPORTING&lt;BR /&gt;
 aktyp_imp = lv_aktyp_p&lt;BR /&gt;
 aufnr_imp = lv_aufnr&lt;BR /&gt;
 autyp_imp = lv_autyp_qm&lt;BR /&gt;
 no_dialog_flag = 'X'&lt;BR /&gt;
 IMPORTING&lt;BR /&gt;
 afrud_exp = ls_afrud&lt;BR /&gt;
 afvgd_exp = ls_afvgd&lt;BR /&gt;
 aktyp_exp = lv_aktyp_s&lt;BR /&gt;
 caufvd_exp = ls_caufvd&lt;BR /&gt;
 EXCEPTIONS&lt;BR /&gt;
 order_already_locked = 01&lt;BR /&gt;
 new_status_not_possible = 02&lt;BR /&gt;
 interrupt_by_user = 03&lt;BR /&gt;
 OTHERS = 08.&lt;BR /&gt;
&lt;BR /&gt;
* confirmation is possible&lt;BR /&gt;
 IF sy-subrc = 0.&lt;BR /&gt;
&lt;BR /&gt;
* set quantaties, units of measure and text&lt;BR /&gt;
 ls_afrud-lmnga = sl_lqua-einme.&lt;BR /&gt;
 ls_afrud-gmein = sl_lqua-meins.&lt;BR /&gt;
 ls_afrud-meinh = sl_lqua-meins.&lt;BR /&gt;
 ls_afrud-ltxa1 = sl_lqua-lenum.&lt;BR /&gt;
&lt;BR /&gt;
 MOVE ls_afrud TO ls_afrud_tmp.&lt;BR /&gt;
&lt;BR /&gt;
* check confirmation data&lt;BR /&gt;
 CALL FUNCTION 'CO_RU_CONFIRMATION_CHECK'&lt;BR /&gt;
 EXPORTING&lt;BR /&gt;
 afrud_in = ls_afrud_tmp&lt;BR /&gt;
 aktyp_in = lv_aktyp_s&lt;BR /&gt;
 caufvd_in = ls_caufvd&lt;BR /&gt;
 IMPORTING&lt;BR /&gt;
 afrud_exp = ls_afrud&lt;BR /&gt;
 TABLES&lt;BR /&gt;
 namtab = lt_ftab.&lt;BR /&gt;
&lt;BR /&gt;
* Change confirmation data&lt;BR /&gt;
 CALL FUNCTION 'CO_RU_EDIT_CONF'&lt;BR /&gt;
 EXPORTING&lt;BR /&gt;
 afrud_imp = ls_afrud&lt;BR /&gt;
 afvgd_imp = ls_afvgd&lt;BR /&gt;
 aktyp_imp = lv_aktyp_s&lt;BR /&gt;
 caufvd_imp = ls_caufvd&lt;BR /&gt;
 coruf_imp = ls_coruf&lt;BR /&gt;
 IMPORTING&lt;BR /&gt;
 afrud_exp = ls_afrud&lt;BR /&gt;
 aktyp_exp = lv_aktyp_s.&lt;BR /&gt;&lt;BR /&gt;
 CALL FUNCTION 'CO_RU_BT_AFRU_BT_GET'&lt;BR /&gt;
 TABLES&lt;BR /&gt;
 afru_tab = lt_afrubtab&lt;BR /&gt;
 EXCEPTIONS&lt;BR /&gt;
 no_entry = 01.&lt;BR /&gt;
&lt;BR /&gt;
 CALL FUNCTION 'CO_RU_CONFIRMATION_ADD'&lt;BR /&gt;
 EXPORTING&lt;BR /&gt;
 afrud_in = ls_afrud&lt;BR /&gt;
 afvgd_in = ls_afvgd&lt;BR /&gt;
 aktyp_in = 'H'&lt;BR /&gt;
 aktyp_pic_in = 'V'&lt;BR /&gt;
 caufvd_in = ls_caufvd&lt;BR /&gt;
 IMPORTING&lt;BR /&gt;
 caufvd_out = ls_caufvd&lt;BR /&gt;
 TABLES&lt;BR /&gt;
 afrud_tab = lt_afrudtab.&lt;BR /&gt;
&lt;BR /&gt;
 CALL FUNCTION 'CO_RU_CONFIRMATION_POST'&lt;BR /&gt;
 EXPORTING&lt;BR /&gt;
 cprot_flg = 'X'&lt;BR /&gt;
 ext_flg = lv_kreuz&lt;BR /&gt;
 gprot_flg = space&lt;BR /&gt;
 no_back_flush_flg = ''&lt;BR /&gt;
 no_goods_receipt_flg = ''&lt;BR /&gt;
 trans_typ = 'H'&lt;BR /&gt;
 EXCEPTIONS&lt;BR /&gt;
 posting_error = 1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;So far, this works for me. I'm happy about any suggestion to make this coding better.&lt;/P&gt;&lt;P&gt;Horst&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 15:38:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-get-hdr-prop-with-partial-quantity/m-p/350511#M6838</guid>
      <dc:creator>former_member315919</dc:creator>
      <dc:date>2017-02-06T15:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PRODORDCONF_GET_HDR_PROP with partial quantity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-get-hdr-prop-with-partial-quantity/m-p/350512#M6839</link>
      <description>&lt;P&gt;I would use BAPI_PRODORDCONF_GET_TT_PROP and then similar to what you did, change the quantity information on the GOODSMOVEMENTS table and then use BAPI_PRODORDCONF_CREATE_TT to do your confirmation and goods movement. Follow that up with the BAPI_TRANSACTION_COMMIT to commit to the database. &lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 20:45:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-get-hdr-prop-with-partial-quantity/m-p/350512#M6839</guid>
      <dc:creator>raghug</dc:creator>
      <dc:date>2017-02-06T20:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PRODORDCONF_GET_HDR_PROP with partial quantity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-get-hdr-prop-with-partial-quantity/m-p/350513#M6840</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Well, did you read my initial post? The problem is the batch determination for back flushing is based on wrong quantaties. If you don't need that functionality than you can just recalculate the proprosed quantaties, that's right. &lt;/P&gt;&lt;P&gt;Horst&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 08:13:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-get-hdr-prop-with-partial-quantity/m-p/350513#M6840</guid>
      <dc:creator>former_member315919</dc:creator>
      <dc:date>2017-02-08T08:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PRODORDCONF_GET_HDR_PROP with partial quantity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-get-hdr-prop-with-partial-quantity/m-p/350514#M6841</link>
      <description>&lt;P&gt;Ok, in that case, do exactly what I proposed and then when you call the BAPI_PRODORDCONF_CREATE_TT, blank out the batch and let it redetermine it.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 13:19:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodordconf-get-hdr-prop-with-partial-quantity/m-p/350514#M6841</guid>
      <dc:creator>raghug</dc:creator>
      <dc:date>2017-02-13T13:19:02Z</dc:date>
    </item>
  </channel>
</rss>

