<?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: Customer fields in BAPI for create internal order in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-fields-in-bapi-for-create-internal-order/m-p/4860565#M1136513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know if  MOVE ls_bapi_te_aufk TO ls_extension-valuepart1 will work. looks like you are also clearing order no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the ls_extension-valuepart1  first 12 character should be order no. if order no is smaller then append with spaces.&lt;/P&gt;&lt;P&gt;then 13 to 16 char should be value of your custom field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Nov 2008 04:18:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-27T04:18:44Z</dc:date>
    <item>
      <title>Customer fields in BAPI for create internal order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-fields-in-bapi-for-create-internal-order/m-p/4860564#M1136512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I had been created a user-defined field in structure CI_AUFK( the field name 'ZZTYPE', charater type and 4 length), now, I want to create internal order by BAPI 'BAPI_INTERNALORDER_CREATE', the problem is I cannot save the user-defined data ZZTYPE in database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The source code as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM create_io CHANGING c_succeed TYPE flag&lt;/P&gt;&lt;P&gt;                        c_order_id TYPE aufnr.&lt;/P&gt;&lt;P&gt;  DATA: ls_master_i TYPE bapi2075_7,&lt;/P&gt;&lt;P&gt;        ls_master_e TYPE bapi2075_2,&lt;/P&gt;&lt;P&gt;        l_order_id TYPE bapi2075_2-order,&lt;/P&gt;&lt;P&gt;        lt_rule TYPE STANDARD TABLE OF bapi2075_6 WITH HEADER LINE INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;        lt_return TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;        lt_extension TYPE STANDARD TABLE OF bapiparex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR c_succeed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_master_i-order_type = '0600'.&lt;/P&gt;&lt;P&gt;  ls_master_i-co_area = '1000'.&lt;/P&gt;&lt;P&gt;  ls_master_i-comp_code = '1000'.&lt;/P&gt;&lt;P&gt;  ls_master_i-bus_area = '1000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM get_extension USING lt_extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_INTERNALORDER_CREATE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_master_data = ls_master_i&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      e_master_data = ls_master_e&lt;/P&gt;&lt;P&gt;      orderid       = l_order_id&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      srules        = lt_rule&lt;/P&gt;&lt;P&gt;      return        = lt_return&lt;/P&gt;&lt;P&gt;      extensionin   = lt_extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    c_succeed = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT lt_return WHERE type EQ 'E'.&lt;/P&gt;&lt;P&gt;      c_succeed = ''.&lt;/P&gt;&lt;P&gt;      MESSAGE lt_return-message TYPE lt_return-type.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF c_succeed = 'X'.&lt;/P&gt;&lt;P&gt;    COMMIT WORK.&lt;/P&gt;&lt;P&gt;    c_order_id = l_order_id.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    ROLLBACK WORK.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_extension CHANGING ct_extention LIKE gt_extensionin.&lt;/P&gt;&lt;P&gt;  DATA: ls_ci_aufk TYPE STANDARD TABLE OF ci_aufk WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  DATA: ls_extension TYPE bapiparex,&lt;/P&gt;&lt;P&gt;        ls_bapi_te_aufk TYPE bapi_te_aufk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR ct_extention.&lt;/P&gt;&lt;P&gt;  CLEAR ls_bapi_te_aufk-orderid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_ci_aufk-zztype = 'tes4'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE-CORRESPONDING ls_ci_aufk TO ls_bapi_te_aufk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE 'BAPI_TE_AUFK' TO ls_extension-structure.&lt;/P&gt;&lt;P&gt;  MOVE ls_bapi_te_aufk TO ls_extension-valuepart1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND ls_extension TO ct_extention.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2008 07:52:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-fields-in-bapi-for-create-internal-order/m-p/4860564#M1136512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-25T07:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Customer fields in BAPI for create internal order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-fields-in-bapi-for-create-internal-order/m-p/4860565#M1136513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know if  MOVE ls_bapi_te_aufk TO ls_extension-valuepart1 will work. looks like you are also clearing order no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the ls_extension-valuepart1  first 12 character should be order no. if order no is smaller then append with spaces.&lt;/P&gt;&lt;P&gt;then 13 to 16 char should be value of your custom field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 04:18:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-fields-in-bapi-for-create-internal-order/m-p/4860565#M1136513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-27T04:18:44Z</dc:date>
    </item>
  </channel>
</rss>

