<?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 EXTENSION in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-extension/m-p/4429960#M1051689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to use this bapi in an LSMW, and my pb is in the step of mapping, when i mapped BAPIPAREX-STRUCTURE with the structure (where i added my fields) CI_VIBDAO and  i mapped VALUEPART1  my value (123 for example) it doesn't work.&lt;/P&gt;&lt;P&gt;ANY IDEA?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Sep 2008 14:45:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-18T14:45:19Z</dc:date>
    <item>
      <title>BAPI EXTENSION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-extension/m-p/4429955#M1051684</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 want to add new fields to a bapi, for example BAPI_RE_AO_CREATE, how can i do that?&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="green" __jive_macro_name="color"&gt;
Example:
The fields are in z... (zzaltitude) in structure CI_VIBDAO which is found in table vibdao.
&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;
In this bapi there is an extention called EXTENSION_IN that i think i have to use, but i don't know how?
&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;
ANY IDEA??
&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mehdi,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2008 12:15:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-extension/m-p/4429955#M1051684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-18T12:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI EXTENSION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-extension/m-p/4429956#M1051685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt; You need to add the fields in this extension structure referred in BAPi using SE11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sudharshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2008 12:20:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-extension/m-p/4429956#M1051685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-18T12:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI EXTENSION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-extension/m-p/4429957#M1051686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The bapi's name BAPIPAREX and is like this:&lt;SPAN __default_attr="green" __jive_macro_name="color"&gt;
&lt;U&gt;Component&lt;/U&gt;                      &lt;U&gt;Type Component&lt;/U&gt;
STRUCTURE	|       TE_STRUC	    CHAR       30
VALUEPART1	|        VALUEPART	    CHAR	    240
VALUEPART2	|        VALUEPART	    CHAR	    240
VALUEPART3	|        VALUEPART  	    CHAR	    240
VALUEPART4	|       VALUEPART	    CHAR	    240
.....................                               &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt; 
Do i have to add the fields where i put points (.....) or under STRUCTURE?
&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mehdi,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2008 12:30:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-extension/m-p/4429957#M1051686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-18T12:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI EXTENSION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-extension/m-p/4429958#M1051687</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;&lt;/P&gt;&lt;P&gt;Check the below code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  lt_extension_in TYPE TABLE OF bapiparex,&lt;/P&gt;&lt;P&gt;  ls_extension_in TYPE bapiparex,&lt;/P&gt;&lt;P&gt;  ci_data      TYPE rebd_business_entity_ci.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;fill values for user fields&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ci_data-zzaltitude      = &amp;lt;Your Value&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;prepare BAPI-parameter&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ls_extension_in-structure = 'CI_DATA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;use instead:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL METHOD cl_abap_container_utilities=&amp;gt; fill_container_c&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    im_value     = ci_data&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    ex_container = ls_extension_in-valuepart1&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    OTHERS       = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND ls_extension_in TO lt_extension_in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use lt_extension_in in your BAPI Function Module..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Bujji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bujji on Sep 18, 2008 2:35 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2008 12:34:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-extension/m-p/4429958#M1051687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-18T12:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI EXTENSION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-extension/m-p/4429959#M1051688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically you need to add the custom fields in the structure CI_DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add. Data: Entry&lt;/P&gt;&lt;P&gt;Description&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Separate table parameters are used for transferring user fields for BAPIs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXTENSION_IN for the CREATE-BAPI and CHANGE-BAPI for changing user fields&lt;/P&gt;&lt;P&gt;EXTENSION_OUT for the GET_DETAIL and GET_LIST BAPIs for reading user fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The row type of the EXTENSION_IN and EXTENSION_OUT parameters is the DDIC structure BAPIPAREX. The values for the user fields need to be transferred as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the first STRUCTURE field, you need to transfer the CI_DATA character string. When processing the BAPI, the system uses this string to recognize user fields for basic data. The system supplies these user fields automatically without the customer being required to do any additional programming&lt;/P&gt;&lt;P&gt;In the VALUEPART1 field, transfer the values of all user fields based on length. If 240 characters are not sufficient, transfer the remaining data to the VALUEPART2 field, and so on as needed. The system regards the fields VALUEPART1 to VALUEPART4 as a character string with the length 960. The data is distributed over 4 fields for technical reasons only.&lt;/P&gt;&lt;P&gt;To enter basic data in the user fields, transfer one entry into the EXTENSION_IN table (with the value CI_DATA in the STRUCTURE field). Other entries are ignored at present. In a later release it will also be possible to supply data for customer-defined tables using BAPIs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following example shows the direct call of BAPIs with the transfer of user fields for the business entity. The example assumes that the CI include of the basic data table was extended for the business entity to include the fields ZZVALUE, ZZUNIT, and ZZAKTZEICHEN. ZZVALUE is of the type QUAN with 4 decimal places and ZZAKTZEICHEN of the type CHAR with the length 20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formatting parameter for CREATE and CHANGE BAPI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  lt_extension_in TYPE TABLE OF bapiparex,&lt;/P&gt;&lt;P&gt;  ls_extension_in TYPE bapiparex,&lt;/P&gt;&lt;P&gt;  ls_ci_data      TYPE rebd_business_entity_ci.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;fill values for user fields&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ls_ci_data-zzvalue      = '4711.1234'.&lt;/P&gt;&lt;P&gt;ls_ci_data-zzunit       = 'M2'.&lt;/P&gt;&lt;P&gt;ls_ci_data-zzaktzeichen = 'XY 987'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;prepare BAPI-parameter&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ls_extension_in-structure = 'CI_DATA'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;doesn't work with unicode:&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ls_extension_in-valuepart1 = ls_ci_data.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;use instead:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL METHOD cl_abap_container_utilities=&amp;gt; fill_container_c&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    im_value     = ls_ci_data&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    ex_container = ls_extension_in-valuepart1&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    OTHERS       = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND ls_extension_in TO lt_extension_in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;call BAPI&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'BAPI_RE_BE_CREATE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;     comp_code_ext               =&lt;/P&gt;&lt;P&gt;    business_entity_number_ext =&lt;/P&gt;&lt;P&gt;    ...&lt;/P&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;    extension_in               = lt_extension_in&lt;/P&gt;&lt;P&gt;     return                     =&lt;/P&gt;&lt;P&gt;    .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading of user fields using GET_DETAIL-BAPI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  lt_extension_out TYPE TABLE OF bapiparex,&lt;/P&gt;&lt;P&gt;  ls_extension_out TYPE bapiparex,&lt;/P&gt;&lt;P&gt;  ls_ci_data       TYPE rebd_business_entity_ci.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_RE_BE_GET_DETAIL'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;     compcode                   =&lt;/P&gt;&lt;P&gt;    businessentitynumber       =&lt;/P&gt;&lt;P&gt;    ...&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;     extension_out              = lt_extension_out&lt;/P&gt;&lt;P&gt;     return                     =&lt;/P&gt;&lt;P&gt;    .&lt;/P&gt;&lt;P&gt;READ TABLE lt_extension_out INTO ls_extension_out&lt;/P&gt;&lt;P&gt;           WITH KEY structure = 'CI_DATA'.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;doesn't work with unicode:&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ls_ci_data = ls_extension_out-valuepart1.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;use instead&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD cl_abap_container_utilities=&amp;gt; read_container_c&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      im_container = ls_extension_out-valuepart1&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;      ex_value     = ls_ci_data&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS       = 0.&lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SKJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2008 14:16:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-extension/m-p/4429959#M1051688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-18T14:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI EXTENSION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-extension/m-p/4429960#M1051689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to use this bapi in an LSMW, and my pb is in the step of mapping, when i mapped BAPIPAREX-STRUCTURE with the structure (where i added my fields) CI_VIBDAO and  i mapped VALUEPART1  my value (123 for example) it doesn't work.&lt;/P&gt;&lt;P&gt;ANY IDEA?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2008 14:45:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-extension/m-p/4429960#M1051689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-18T14:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI EXTENSION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-extension/m-p/4429961#M1051690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;ANY  IDEA ???&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 13:43:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-extension/m-p/4429961#M1051690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-19T13:43:52Z</dc:date>
    </item>
  </channel>
</rss>

