<?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_BUS2054_CREATE_MULTI - Populating custom fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bus2054-create-multi-populating-custom-fields/m-p/8123816#M1618684</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;I am using BAPI_TRANSACTION_COMMIT after the BAPI call.&lt;/P&gt;&lt;P&gt;Its creating the WBS Element also, but only issue is it is not updating the custom fields values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kris.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Sep 2011 10:00:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-06T10:00:56Z</dc:date>
    <item>
      <title>BAPI_BUS2054_CREATE_MULTI - Populating custom fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bus2054-create-multi-populating-custom-fields/m-p/8123814#M1618682</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;I am using BAPI BAPI_BUS2054_CREATE_MULTI for creating WBS Elements.&lt;/P&gt;&lt;P&gt;We have 18 custom fields at WBS element level.&lt;/P&gt;&lt;P&gt;I am trying to populate the data for those 18 custom fields through EXTENSIONIN table parameter.  &lt;/P&gt;&lt;P&gt;I am passing BAPI_TE_WBS_ELEMENT to the structure name &amp;amp; values to VALUEPART1. But after the BAPI call,&lt;/P&gt;&lt;P&gt;its not creating any error or saving the data for WBS Element.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: i am passing WBS Element at starting position i.e., 0(24)  .  My custom fields starts from 25(3) position onwards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code how i am populating the data to the EXTENSIONIN tables.&lt;/P&gt;&lt;P&gt;data: lwa_extin       TYPE bapiparex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MOVE 'BAPI_TE_WBS_ELEMENT' TO lwa_extin-structure.&lt;/P&gt;&lt;P&gt;  lwa_extin-valuepart1+0(24) = wa_data-posid.&lt;/P&gt;&lt;P&gt;  lwa_extin-valuepart1+25(3) = '1'.&lt;/P&gt;&lt;P&gt;  lwa_extin-valuepart1+28(4) = 'BSUB'.&lt;/P&gt;&lt;P&gt;  lwa_extin-valuepart1+32(4) = 'CONT'.&lt;/P&gt;&lt;P&gt;  lwa_extin-valuepart1+36(3) = '132'.&lt;/P&gt;&lt;P&gt;  lwa_extin-valuepart1+39(6) = 'AUTH'.&lt;/P&gt;&lt;P&gt;  lwa_extin-valuepart1+45(6) = '301'.&lt;/P&gt;&lt;P&gt;  lwa_extin-valuepart1+51(26) = '1'.&lt;/P&gt;&lt;P&gt;  lwa_extin-valuepart1+77(5) = '1'.&lt;/P&gt;&lt;P&gt;  lwa_extin-valuepart1+82(21) = '1'.&lt;/P&gt;&lt;P&gt;  lwa_extin-valuepart1+103(11) = '1'.&lt;/P&gt;&lt;P&gt;  lwa_extin-valuepart1+114(15) = 'IL'.&lt;/P&gt;&lt;P&gt;  lwa_extin-valuepart1+129(50) = '1'.&lt;/P&gt;&lt;P&gt;  lwa_extin-valuepart1+179(50) = '1'.&lt;/P&gt;&lt;P&gt;  lwa_extin-valuepart1+229(11) = '1'.&lt;/P&gt;&lt;P&gt;  lwa_extin-valuepart2+0(10) = 'C'.&lt;/P&gt;&lt;P&gt;  lwa_extin-valuepart2+10(8) = sy-datum.&lt;/P&gt;&lt;P&gt;  lwa_extin-valuepart2+18(8) = sy-datum.&lt;/P&gt;&lt;P&gt;  lwa_extin-valuepart2+26(4) = '1'.&lt;/P&gt;&lt;P&gt; APPEND lwa_extin TO li_extin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_BUS2054_CREATE_MULTI'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_project_definition = lwa_pspid&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        it_wbs_element       = li_wbsele_data&lt;/P&gt;&lt;P&gt;        et_return            = li_return&lt;/P&gt;&lt;P&gt;        extensionin          = li_extin&lt;/P&gt;&lt;P&gt;        extensionout         = li_extout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me about this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kris.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 09:08:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bus2054-create-multi-populating-custom-fields/m-p/8123814#M1618682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-06T09:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_BUS2054_CREATE_MULTI - Populating custom fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bus2054-create-multi-populating-custom-fields/m-p/8123815#M1618683</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;Are you using &lt;STRONG&gt;'BAPI_TRANSACTION_COMMIT'&lt;/STRONG&gt; after BAPI call?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not then try to use as below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: lwa_extin TYPE bapiparex.

MOVE 'BAPI_TE_WBS_ELEMENT' TO lwa_extin-structure.
lwa_extin-valuepart1+0(24) = wa_data-posid.
lwa_extin-valuepart1+25(3) = '1'.
lwa_extin-valuepart1+28(4) = 'BSUB'.
lwa_extin-valuepart1+32(4) = 'CONT'.
lwa_extin-valuepart1+36(3) = '132'.
lwa_extin-valuepart1+39(6) = 'AUTH'.
lwa_extin-valuepart1+45(6) = '301'.
lwa_extin-valuepart1+51(26) = '1'.
lwa_extin-valuepart1+77(5) = '1'.
lwa_extin-valuepart1+82(21) = '1'.
lwa_extin-valuepart1+103(11) = '1'.
lwa_extin-valuepart1+114(15) = 'IL'.
lwa_extin-valuepart1+129(50) = '1'.
lwa_extin-valuepart1+179(50) = '1'.
lwa_extin-valuepart1+229(11) = '1'.
lwa_extin-valuepart2+0(10) = 'C'.
lwa_extin-valuepart2+10(8) = sy-datum.
lwa_extin-valuepart2+18(8) = sy-datum.
lwa_extin-valuepart2+26(4) = '1'.
APPEND lwa_extin TO li_extin.

CALL FUNCTION 'BAPI_BUS2054_CREATE_MULTI'
EXPORTING
i_project_definition = lwa_pspid
TABLES
it_wbs_element = li_wbsele_data
et_return = li_return
extensionin = li_extin
extensionout = li_extout.



CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
  EXPORTING
    WAIT = 'X'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 09:17:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bus2054-create-multi-populating-custom-fields/m-p/8123815#M1618683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-06T09:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_BUS2054_CREATE_MULTI - Populating custom fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bus2054-create-multi-populating-custom-fields/m-p/8123816#M1618684</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;I am using BAPI_TRANSACTION_COMMIT after the BAPI call.&lt;/P&gt;&lt;P&gt;Its creating the WBS Element also, but only issue is it is not updating the custom fields values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kris.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 10:00:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bus2054-create-multi-populating-custom-fields/m-p/8123816#M1618684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-06T10:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_BUS2054_CREATE_MULTI - Populating custom fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bus2054-create-multi-populating-custom-fields/m-p/8123817#M1618685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 13:14:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bus2054-create-multi-populating-custom-fields/m-p/8123817#M1618685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-21T13:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_BUS2054_CREATE_MULTI - Populating custom fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bus2054-create-multi-populating-custom-fields/m-p/8123818#M1618686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you implemented a BADI to process the extension structure within the BAPI?&lt;/P&gt;&lt;P&gt;The BADIs are mentioned in the function module documentation for the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Glen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 01:13:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bus2054-create-multi-populating-custom-fields/m-p/8123818#M1618686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-22T01:13:40Z</dc:date>
    </item>
  </channel>
</rss>

