<?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_0050_CREATE Custom fields update failure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-0050-create-custom-fields-update-failure/m-p/649765#M27901</link>
    <description>&lt;P&gt;Hi experts,&lt;/P&gt;
  &lt;P&gt;I am trying to update custom fields using BAPI_0050_CREATE but unable to update the fields in FMBL.&lt;/P&gt;
  &lt;P&gt;*** Create document&lt;BR /&gt; CALL FUNCTION 'BAPI_0050_CREATE'&lt;BR /&gt; EXPORTING&lt;BR /&gt; header_data = gs_header&lt;BR /&gt; testrun = ''&lt;BR /&gt; IMPORTING&lt;BR /&gt; documentnumber = gv_docno&lt;BR /&gt; TABLES&lt;BR /&gt; item_data = gt_idata&lt;BR /&gt; extension_in = gt_cfields&lt;BR /&gt; * period_data = gt_period_data&lt;BR /&gt; return = gt_return.&lt;BR /&gt; CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;BR /&gt; ENDIF.&lt;/P&gt;
  &lt;P&gt;Please help.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Jayasree&lt;/P&gt;</description>
    <pubDate>Tue, 20 Mar 2018 12:05:33 GMT</pubDate>
    <dc:creator>former_member206205</dc:creator>
    <dc:date>2018-03-20T12:05:33Z</dc:date>
    <item>
      <title>BAPI_0050_CREATE Custom fields update failure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-0050-create-custom-fields-update-failure/m-p/649765#M27901</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;
  &lt;P&gt;I am trying to update custom fields using BAPI_0050_CREATE but unable to update the fields in FMBL.&lt;/P&gt;
  &lt;P&gt;*** Create document&lt;BR /&gt; CALL FUNCTION 'BAPI_0050_CREATE'&lt;BR /&gt; EXPORTING&lt;BR /&gt; header_data = gs_header&lt;BR /&gt; testrun = ''&lt;BR /&gt; IMPORTING&lt;BR /&gt; documentnumber = gv_docno&lt;BR /&gt; TABLES&lt;BR /&gt; item_data = gt_idata&lt;BR /&gt; extension_in = gt_cfields&lt;BR /&gt; * period_data = gt_period_data&lt;BR /&gt; return = gt_return.&lt;BR /&gt; CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;BR /&gt; ENDIF.&lt;/P&gt;
  &lt;P&gt;Please help.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Jayasree&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 12:05:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-0050-create-custom-fields-update-failure/m-p/649765#M27901</guid>
      <dc:creator>former_member206205</dc:creator>
      <dc:date>2018-03-20T12:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_0050_CREATE Custom fields update failure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-0050-create-custom-fields-update-failure/m-p/649766#M27902</link>
      <description>&lt;P&gt;&lt;EM&gt;DOCNR is 10 characters, not 9 like '100000312'. &lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt;Better use an actual work area of type BAPI_TE_FMBH (or PFM_TE_FMBH in some case/version, check OSS notes for your current version) to move values to VALUEPART1 (Use MOVE statement or a method like cl_abap_container_utilities=&amp;gt;fill_container_c in an unicode system.)&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 12:22:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-0050-create-custom-fields-update-failure/m-p/649766#M27902</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2018-03-20T12:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_0050_CREATE Custom fields update failure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-0050-create-custom-fields-update-failure/m-p/649767#M27903</link>
      <description>&lt;P&gt;I can see the values while debugging but couldnt update in FMBL&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/123338-i-t-lines.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 12:56:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-0050-create-custom-fields-update-failure/m-p/649767#M27903</guid>
      <dc:creator>former_member206205</dc:creator>
      <dc:date>2018-03-20T12:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_0050_CREATE Custom fields update failure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-0050-create-custom-fields-update-failure/m-p/649768#M27904</link>
      <description>&lt;P&gt;I suppose that Business Function 'PSM_FM_BCS_CI_1' was activated, did you also implement BAdI 'FMBW_CUSTOMER'?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 13:50:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-0050-create-custom-fields-update-failure/m-p/649768#M27904</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2018-03-20T13:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_0050_CREATE Custom fields update failure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-0050-create-custom-fields-update-failure/m-p/649769#M27905</link>
      <description>&lt;P&gt;Thanks Raymond. I have tried FMBW_CUSTOMER before but couldn't help. &lt;/P&gt;
  &lt;P&gt;I have resolved by creating a new enhancement spot at LFMKUF05 in routine: read_extension_in. Updated the dumm_ext to 'X'.&lt;/P&gt;
  &lt;P&gt;Below code might helpful others.&lt;/P&gt;
  &lt;P&gt;ENHANCEMENT 1 ZMSCOA_READ_EXTENSION_IN1. "active version&lt;BR /&gt;FIELD-SYMBOLS: &amp;lt;ld_ext&amp;gt; TYPE flag.&lt;BR /&gt; LOOP AT u_t_extension_in.&lt;BR /&gt; CASE u_t_extension_in-structure.&lt;BR /&gt; WHEN 'BAPI_TE_FMBL'.&lt;BR /&gt; MOVE-CORRESPONDING u_t_extension_in TO l_f_parex_short.&lt;BR /&gt; CATCH SYSTEM-EXCEPTIONS conversion_errors = 1.&lt;BR /&gt; ASSIGN l_f_parex_short TO &amp;lt;bapi_struc_line&amp;gt; CASTING. "#EC ENHOK&lt;BR /&gt; MOVE &amp;lt;bapi_struc_line&amp;gt; TO l_f_te_fmbl.&lt;BR /&gt; * Copy customer fields in the line level&lt;BR /&gt; MOVE-CORRESPONDING l_f_te_fmbl TO l_f_customer_fields_line.&lt;BR /&gt; * By default, we keep the original input for a reversal.&lt;BR /&gt; * As fields are not known, the check is done for the whole include&lt;BR /&gt; IF NOT l_f_customer_fields_line IS INITIAL.&lt;BR /&gt; READ TABLE c_t_lines WITH KEY&lt;BR /&gt; docln = l_f_te_fmbl-item_num&lt;BR /&gt; rpmax = l_f_te_fmbl-rpmax ASSIGNING &amp;lt;l_f_line&amp;gt;.&lt;BR /&gt; IF sy-subrc EQ 0.&lt;BR /&gt; MOVE-CORRESPONDING l_f_customer_fields_line TO &amp;lt;l_f_line&amp;gt;.&lt;BR /&gt; IF &amp;lt;l_f_line&amp;gt;-zzregion IS NOT INITIAL or &amp;lt;l_f_line&amp;gt;-zzcosting IS NOT INITIAL.&lt;BR /&gt; ASSIGN COMPONENT 'DUMMY_EXT' OF STRUCTURE &amp;lt;l_f_line&amp;gt; to &amp;lt;ld_ext&amp;gt;.&lt;BR /&gt; &amp;lt;ld_ext&amp;gt; = 'X'.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDCATCH.&lt;BR /&gt; ENDCASE.&lt;BR /&gt; ENDLOOP.&lt;BR /&gt; ENDENHANCEMENT.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Jayasree&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 14:22:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-0050-create-custom-fields-update-failure/m-p/649769#M27905</guid>
      <dc:creator>former_member206205</dc:creator>
      <dc:date>2018-03-20T14:22:44Z</dc:date>
    </item>
  </channel>
</rss>

