<?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_INTERNALORDER_CREATE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-internalorder-create/m-p/1730039#M317922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer, but I'm not trying to add a new field to the order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASTKZ is a standart field from AUFK I were O want to input value "X" with this BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;description of field EXTENSIONIN is to use n user defined fields in table AUFK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jan 2007 16:38:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-05T16:38:25Z</dc:date>
    <item>
      <title>BAPI_INTERNALORDER_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-internalorder-create/m-p/1730037#M317920</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 need to create internal orders, but field COAS-ASTKZ must be filled with an 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don´t find this field, or a similar one, in import parameters or talbes of BAPI_INTERNALORDER_CREATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2006 15:21:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-internalorder-create/m-p/1730037#M317920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-29T15:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_INTERNALORDER_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-internalorder-create/m-p/1730038#M317921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pedro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that you have to use the &amp;lt;b&amp;gt;EXTENSIONIN&amp;lt;/b&amp;gt; parameter. Within the BAPI you will find the following coding after creating the order:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*--------------- handle customer extension CI_AUFK --------------------
* move fields from Extension to COAS
  PERFORM map_user_fields TABLES extensionin
                          CHANGING coas.  " contains new order&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here is the coding of the FORM routine (NOTE: coding from ECC 5.0):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  MAP_USER_FIELDS
*&amp;amp;---------------------------------------------------------------------*
*      --&amp;gt;PT_EXTENSIONIN
*      &amp;lt;--PS_COAS  including CI_AUFK
*----------------------------------------------------------------------*
FORM map_user_fields TABLES   pt_extensionin STRUCTURE bapiparex
                     CHANGING ps_coas STRUCTURE coas.

  DATA: ld_strlen TYPE i,
        ld_lines TYPE i,
        ls_bapi_te_aufk LIKE bapi_te_aufk.

* any table entries imported?
  READ TABLE pt_extensionin INDEX 1.
  CHECK sy-subrc = 0.

* only one table entry allowed
  DESCRIBE TABLE pt_extensionin LINES ld_lines.
  IF ld_lines &amp;gt; 1.
    EXIT.
  ENDIF.

* map data
  LOOP AT pt_extensionin.
    CASE pt_extensionin-structure.
      WHEN 'BAPI_TE_AUFK'.
*       map extension to coas fields
* &amp;gt;&amp;gt; UNICODE
*        DESCRIBE FIELD pt_extensionin-structure LENGTH ld_strlen.
        DESCRIBE FIELD pt_extensionin-structure
                       LENGTH ld_strlen IN CHARACTER MODE.
* &amp;lt;&amp;lt; UNICODE
        MOVE pt_extensionin+ld_strlen TO ls_bapi_te_aufk.
        CATCH SYSTEM-EXCEPTIONS conversion_errors = 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;lt;b&amp;gt;          MOVE-CORRESPONDING ls_bapi_te_aufk TO ps_coas.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;        ENDCATCH.
      WHEN OTHERS.
*       ignore others and do nothing
    ENDCASE.
  ENDLOOP.

ENDFORM.                               " MAP_USER_FIELDS&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structure BAPI_TE_AUFK has the following structure:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ORDERID	(type AUFNR)
.INCLUDE	CI_AUFK&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, you have to create &amp;lt;b&amp;gt;CI-include CI_AUFK&amp;lt;/b&amp;gt; and add the required field ASTKZ.&lt;/P&gt;&lt;P&gt;Since I am not that experienced with CI-includes please talk to an FI-consultant whether there may be any side-effects when creating the CI-include (check the where-used-list).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Dec 2006 06:47:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-internalorder-create/m-p/1730038#M317921</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-12-31T06:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_INTERNALORDER_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-internalorder-create/m-p/1730039#M317922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer, but I'm not trying to add a new field to the order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASTKZ is a standart field from AUFK I were O want to input value "X" with this BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;description of field EXTENSIONIN is to use n user defined fields in table AUFK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 16:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-internalorder-create/m-p/1730039#M317922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-05T16:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_INTERNALORDER_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-internalorder-create/m-p/1730040#M317923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pedro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried to use &amp;lt;b&amp;gt;BAPI_INTERNALORDER_SAVEREPLICA&amp;lt;/b&amp;gt; instead of BAPI_INTERNALORDER_CREATE? The IMPORTING parameter &amp;lt;b&amp;gt;MASTERDATA &amp;lt;/b&amp;gt;contains field &amp;lt;b&amp;gt;STATISTICAL&amp;lt;/b&amp;gt; which likely corresponds to COAS-ASTKZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 08:48:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-internalorder-create/m-p/1730040#M317923</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-01-08T08:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_INTERNALORDER_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-internalorder-create/m-p/1730041#M317924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the cctr_posted IS not INITIAL, it default to 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the BAPI_INTERNALORDER_CREATE&lt;/P&gt;&lt;P&gt;line 107&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF ( NOT i_master_data-cctr_posted IS INITIAL ).&lt;/P&gt;&lt;P&gt;    orext-astkz = 'X'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rg&lt;/P&gt;&lt;P&gt;j&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 02:18:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-internalorder-create/m-p/1730041#M317924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-25T02:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_INTERNALORDER_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-internalorder-create/m-p/1730042#M317925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pedro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; there is a way you can do it. you copy BAPI_INTERNALORDER_CREATE to ZXX_BAPI_INTERNALORDER_CREATE,(you can copy function group completely)&lt;/P&gt;&lt;P&gt;then copy import parameter:bapi2075_7 to zxx_bapi2075_7. &lt;/P&gt;&lt;P&gt;In structure zxx_bapi2075_7 , you add a new field: ASTKZ-&amp;amp;#26377;&amp;amp;#20851;&amp;amp;#32479;&amp;amp;#35745;&amp;amp;#35746;&amp;amp;#21333;&amp;amp;#26631;&amp;amp;#24535;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ZXX_BAPI_INTERNALORDER_CREATE program . line 142. (before 'call function 'KAUF_ORDER_STORE' '  ) add following code:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;store user fields in buffer&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;begin of 'add by huang huibin &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  coas-astkz = i_master_data-astkz.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;end of 'add by huang huibin&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 02:33:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-internalorder-create/m-p/1730042#M317925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T02:33:25Z</dc:date>
    </item>
  </channel>
</rss>

