<?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_ISUMOVEIN_CREATEFROMDATA in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-isumovein-createfromdata/m-p/1599655#M269269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did anyone manage to get this BAPI to work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As import parameters the BAPI has only a PARTNER and a CONTRACTACCOUNT. But to do a MOVEIN, you also need an INSTALLATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the table parameters, there is a table TCONTRACTDATA with a field for the installation. But in the corresponding TCONTRACTDATAX the field installation is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use this field anyway. The BAPI returns an error message: define an installation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me to do a MOVEIN with this BAPI.&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;P&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Sep 2006 08:56:44 GMT</pubDate>
    <dc:creator>steven_dierick</dc:creator>
    <dc:date>2006-09-14T08:56:44Z</dc:date>
    <item>
      <title>BAPI_ISUMOVEIN_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-isumovein-createfromdata/m-p/1599655#M269269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did anyone manage to get this BAPI to work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As import parameters the BAPI has only a PARTNER and a CONTRACTACCOUNT. But to do a MOVEIN, you also need an INSTALLATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the table parameters, there is a table TCONTRACTDATA with a field for the installation. But in the corresponding TCONTRACTDATAX the field installation is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use this field anyway. The BAPI returns an error message: define an installation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me to do a MOVEIN with this BAPI.&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;P&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2006 08:56:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-isumovein-createfromdata/m-p/1599655#M269269</guid>
      <dc:creator>steven_dierick</dc:creator>
      <dc:date>2006-09-14T08:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ISUMOVEIN_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-isumovein-createfromdata/m-p/1599656#M269270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a test function module I developed.  As you will see, there is a flag to set the installation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FUNCTION zjs_create_movein_with_bapi.
*"----------------------------------------------------------------------
*"*"Local interface:
*"  IMPORTING
*"     REFERENCE(PARTNER) TYPE  BUT000-PARTNER
*"     REFERENCE(VKONT) TYPE  FKKVKP-VKONT OPTIONAL
*"     REFERENCE(ANLAGE) TYPE  EANL-ANLAGE
*"     REFERENCE(MIDATE) TYPE  EVER-EINZDAT DEFAULT SY-DATUM
*"     REFERENCE(REF_MIDOC) TYPE  EEIN-EINZBELEG OPTIONAL
*"  EXPORTING
*"     REFERENCE(MIDOC_NUMBER) TYPE  EEIN-EINZBELEG
*"  TABLES
*"      IT_MESSAGES STRUCTURE  BAPIRET2
*"----------------------------------------------------------------------


DATA:
  i_micontrol   TYPE bapiisumoveincr_c,
  i_miinputdata TYPE bapiisumoveincr_i,
  i_contract    TYPE bapiisucontract OCCURS 0 WITH HEADER LINE,
  i_contract_x  TYPE bapiisucontractx OCCURS 0 WITH HEADER LINE,
  cadata        TYPE bapiisuvkp,
  cadata_x      TYPE bapiisuvkpx,
  exten         TYPE bapiparex OCCURS 0 WITH HEADER LINE,
  w_msg         type bapiret2.


* If contract account number not imported, set flag to create CA. Either
* contract account or reference move in document must be imported.
  if vkont is initial.   "contract account not imported
    if ref_midoc is initial.   "reference MI doc not imported
      w_msg-type    = 'E'.
      w_msg-message = 'Must import vkont or ref_midoc.'.
      append w_msg  to it_messages.
      exit.
    else.
      i_micontrol-contractaccountcreate = 'X'.  "Create contract acct
    endif.
  else.   "set imported contract account
    i_miinputdata-cont_acct           = vkont.
  endif.
  i_micontrol-partnerstdaddradjustx = 'X'.
  i_miinputdata-moveindate          = midate.
  i_miinputdata-partner             = partner.
  i_miinputdata-acct_cat            = '01'.

* Set installation
  i_contract-installation = anlage.
  APPEND i_contract.
  i_contract_x-installation = 'X'.
  APPEND i_contract_x.

* This FM prepares the data structures for creating the Move In
  CALL FUNCTION 'ISU_MOVE_IN_BAPI_GET_DEFAULTS'
    EXPORTING
      x_refmidoc                    = ref_midoc
      moveincreatecontroldata       = i_micontrol
    TABLES
      treturn                       = it_messages
      tcontractdata                 = i_contract
      tcontractdatax                = i_contract_x
      extensionin                   = exten
    CHANGING
      moveincreateinputdata         = i_miinputdata
      contractaccountdata           = cadata
      contractaccountdatax          = cadata_x.

* Get out if function call unsuccessful.
  check sy-subrc = 0.

*Create Move In document
  CALL FUNCTION 'BAPI_ISUMOVEIN_CREATEFROMDATA'
    EXPORTING
      moveincreatecontroldata       = i_micontrol
      moveincreateinputdata         = i_miinputdata
      contractaccountdata           = cadata
      contractaccountdatax          = cadata_x
    IMPORTING
      moveindocnumber               = MIDOC_NUMBER
    TABLES
      treturn                       = it_messages
      tcontractdata                 = i_contract
      tcontractdatax                = i_contract_x
      extensionin                   = exten.

* Get out if function call unsuccessful.
  check sy-subrc = 0.

  CALL FUNCTION 'ABAP4_COMMIT_WORK'.

ENDFUNCTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 17:38:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-isumovein-createfromdata/m-p/1599656#M269270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T17:38:55Z</dc:date>
    </item>
  </channel>
</rss>

