<?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: BDC for MFBF Component Backflush in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-mfbf-component-backflush/m-p/8163706#M1622541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Teju,&lt;/P&gt;&lt;P&gt;Actually there is a existing BDCprogram which is creating posting document for every material in the flatfile but our client wants to create only one posting document for whole flatfile and he don't want to create new rogram like BAPI he wants to change the existing BDC only is this ossible to achive this requirement through BDC?i'm already posted my code for BDC .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Aug 2011 04:29:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-08-19T04:29:02Z</dc:date>
    <item>
      <title>BDC for MFBF Component Backflush</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-mfbf-component-backflush/m-p/8163701#M1622536</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;i' have  developed a BDC program for MFBF Transaction  it is  posting seperate material document  for every material which is in our flatfile instead of that it should post  only one material document for all the material's in flatfile. and also please send me complete program for refrence if any?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message : Do not ask for sample program. Thread locked. &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Kumar on Jan 9, 2012 1:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 06:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-mfbf-component-backflush/m-p/8163701#M1622536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-18T06:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: BDC for MFBF Component Backflush</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-mfbf-component-backflush/m-p/8163702#M1622537</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;Please check below BAPI's for MFBF and after the read documents about these BAPI. &lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_REPMANCONF1_CREATE_MTS&lt;/P&gt;&lt;P&gt;BAPI_REPMANCONF_CREATE_MTS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 07:14:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-mfbf-component-backflush/m-p/8163702#M1622537</guid>
      <dc:creator>former_member212713</dc:creator>
      <dc:date>2011-08-18T07:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: BDC for MFBF Component Backflush</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-mfbf-component-backflush/m-p/8163703#M1622538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MUTLU,&lt;/P&gt;&lt;P&gt;Thanks for replay,  pl send me any program for reference i'm new to MFBF trasaction. this is my code&lt;/P&gt;&lt;P&gt;LOOP AT itab .&lt;/P&gt;&lt;P&gt;    CLEAR BDCDATA .&lt;/P&gt;&lt;P&gt;    REFRESH BDCDATA.&lt;/P&gt;&lt;P&gt;    clear messtab .refresh messtab .&lt;/P&gt;&lt;P&gt;    sr_no = sr_no + 1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPLBARM' '0800'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'RM61B-RB_KOMPO'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '=RBTYP'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'RM61B-RB_BAUGR'&lt;/P&gt;&lt;P&gt;                                  ''.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'RM61B-RB_KOMPO'&lt;/P&gt;&lt;P&gt;                                  'X'.&lt;/P&gt;&lt;P&gt;    CLEAR FVAL.&lt;/P&gt;&lt;P&gt;    CONCATENATE BUDAT&lt;EM&gt;6(2) '.' BUDAT&lt;/EM&gt;4(2) '.' BUDAT+0(4) INTO FVAL.&lt;/P&gt;&lt;P&gt;    PERFORM BDC_FIELD  USING 'RM61B-BUDAT' FVAL.&lt;/P&gt;&lt;P&gt;    CLEAR FVAL.&lt;/P&gt;&lt;P&gt;    CONCATENATE BLDAT&lt;EM&gt;6(2) '.' BLDAT&lt;/EM&gt;4(2) '.' BLDAT+0(4) INTO FVAL.&lt;/P&gt;&lt;P&gt;    PERFORM BDC_FIELD  USING 'RM61B-BLDAT' FVAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'RM61B-WERKS'&lt;/P&gt;&lt;P&gt;                                    P_WERKS.&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPLBARM' '0800'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '=ISTDA'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RM61B-RB_KOMPO'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'RM61B-MATNR'&lt;/P&gt;&lt;P&gt;                                  ITAB-PARMAT.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'RM61B-WERKS'&lt;/P&gt;&lt;P&gt;                                  P_WERKS.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'RM61B-BOM_OFF'&lt;/P&gt;&lt;P&gt;                                  'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPLCOWB' '0130'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '/00'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'COWB_COMP-MATNR(01)'&lt;/P&gt;&lt;P&gt;                                    ITAB-CHMAT.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'COWB_COMP-ERFMG_R(01)'&lt;/P&gt;&lt;P&gt;                                       ITAB-QTY.&lt;/P&gt;&lt;P&gt;      IF NOT ITAB-UNIT IS INITIAL.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'COWB_COMP-ERFME(01)'&lt;/P&gt;&lt;P&gt;                                       ITAB-UNIT.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'COWB_COMP-WERKS(01)'&lt;/P&gt;&lt;P&gt;                                       p_werks.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'COWB_COMP-LGORT(01)'&lt;/P&gt;&lt;P&gt;                                       ITAB-LGORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*IF ITAB-BATCH NE ' ' .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                 'COWB_COMP-ERFMG_R(01)'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   perform bdc_field       using 'COWB_COMP-CHARG(01)'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             itab-batch.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM MARD INTO MARD WHERE MATNR = ITAB-CHMAT AND&lt;/P&gt;&lt;P&gt;WERKS = p_werks AND LGORT = ITAB-LGORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPLCOWB' '0130'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '=WEIT'.&lt;/P&gt;&lt;P&gt;IF MARD-LABST = 0.&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPLMDBF' '0100'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '=TAKE'.&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPLBARM' '0171'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '=GOON'.&lt;/P&gt;&lt;P&gt; ELSEIF MARD-LABST LT ITAB-QTY.&lt;/P&gt;&lt;P&gt;     perform bdc_dynpro      using 'SAPLBARM' '0171'.&lt;/P&gt;&lt;P&gt;     perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '=GOON'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ELSEIF MARD-LABST GT ITAB-QTY.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 09:48:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-mfbf-component-backflush/m-p/8163703#M1622538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-18T09:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: BDC for MFBF Component Backflush</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-mfbf-component-backflush/m-p/8163704#M1622539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using BAPI in healthy for two months .&lt;/P&gt;&lt;P&gt;I think BAPI method more better then Batch Input method. You may spend time for BAPI. But your work must be more solid and  more correct. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Loop at itab.

  CALL FUNCTION 'BAPI_REPMANCONF1_CREATE_MTS'
       EXPORTING
            BFLUSHFLAGS   = GS_BFLUSHFLAGS
            BFLUSHDATAGEN = GS_BFLUSHDATAGEN
            BFLUSHDATAMTS = GS_BFLUSHDATAMTS
       IMPORTING
            CONFIRMATION  = GV_CONFIRMATION
            RETURN        = GS_RETURN.
* TABLES
*   SERIALNR            =    .
  IF NOT GV_CONFIRMATION IS INITIAL.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
         EXPORTING
              WAIT   = 'X'
         IMPORTING
              RETURN = GS_RETURN_COMMIT.
endif.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 11:52:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-mfbf-component-backflush/m-p/8163704#M1622539</guid>
      <dc:creator>former_member212713</dc:creator>
      <dc:date>2011-08-18T11:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: BDC for MFBF Component Backflush</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-mfbf-component-backflush/m-p/8163705#M1622540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Srinivas,&lt;/P&gt;&lt;P&gt;You can use the BAPI  BAPI_REPMANCONF1_CREATE_MTS and then COMMIT that and then you can use MB_CREATE_GOODS_MOVEMENT and MB_POST_GOODS_MOVEMENT and then do the COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using BAPI_REPMANCONF1_CREATE_MTS, you can do the component posting and while doing the goods movement, you can loop all the item Materials and then pass the CTCOD parameter with 'MFBF' value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 14:57:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-mfbf-component-backflush/m-p/8163705#M1622540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-18T14:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: BDC for MFBF Component Backflush</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-mfbf-component-backflush/m-p/8163706#M1622541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Teju,&lt;/P&gt;&lt;P&gt;Actually there is a existing BDCprogram which is creating posting document for every material in the flatfile but our client wants to create only one posting document for whole flatfile and he don't want to create new rogram like BAPI he wants to change the existing BDC only is this ossible to achive this requirement through BDC?i'm already posted my code for BDC .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 04:29:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-mfbf-component-backflush/m-p/8163706#M1622541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-19T04:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: BDC for MFBF Component Backflush</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-mfbf-component-backflush/m-p/8163707#M1622542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Melih, would you be so kind to give an example on how did u fill the structures for it to work ? There might be something that I'm missing because I only get a confirmation number, but no material movement and no error.&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ls_bflushflags-bckfltype      = '11'.

  ls_bflushdatagen-materialnr   = 'P02321801'.
  ls_bflushdatagen-prodplant    = '1100'.
  ls_bflushdatagen-prodversion  = '0001'.
  ls_bflushdatagen-postdate     = sy-datum.
  ls_bflushdatagen-docdate      = sy-datum.
  ls_bflushdatagen-backflquant  = '2.000'.

  ls_goodsmovements-material    = 'p02321801'.
  ls_goodsmovements-plant       = '1100'.
*ls_goodsmovements-stge_loc = 'mfg2'.
*ls_goodsmovements-batch = 'cpuassy05'.
  ls_goodsmovements-move_type   = '131'.
  ls_goodsmovements-base_uom    = 'BUC'.
  ls_goodsmovements-quantity    = '2.000'.

  APPEND ls_goodsmovements TO lt_goodsmovements.

  CALL FUNCTION 'BAPI_REPMANCONF1_CREATE_MTS'
    EXPORTING
      bflushflags    = ls_bflushflags
      bflushdatagen  = ls_bflushdatagen
    IMPORTING
      confirmation   = lv_confirmation
      return         = ls_return
    TABLES
      goodsmovements = lt_goodsmovements.

  IF NOT lv_confirmation IS INITIAL.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        wait   = 'X'
      IMPORTING
        return = ls_return.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I even tried to use FM "RM_BACKFLUSH_GO" and "RM_BACKFLUSH_CHECK_AO" but I still get the same result.&lt;/P&gt;&lt;P&gt;Can you help (or any of you guys :P) ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jan 2012 21:24:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-mfbf-component-backflush/m-p/8163707#M1622542</guid>
      <dc:creator>MariusStoica</dc:creator>
      <dc:date>2012-01-08T21:24:17Z</dc:date>
    </item>
  </channel>
</rss>

