<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2606965#M597613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the documentation of this BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jul 2007 09:19:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-24T09:19:31Z</dc:date>
    <item>
      <title>bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2606964#M597612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;   BAPI_MATPHYSINV_CREATE_MULT.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What for this function module and what parameter we are going to pass and what wil b the output&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 09:16:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2606964#M597612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T09:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2606965#M597613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the documentation of this BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 09:19:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2606965#M597613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T09:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2606966#M597614</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;FU BAPI_MATPHYSINV_CREATE_MULT                                                                                &lt;/P&gt;&lt;P&gt;____________________________________________________                                                                                &lt;/P&gt;&lt;P&gt;Short Text                                                                                &lt;/P&gt;&lt;P&gt;Create physical inventory document                                                                                &lt;/P&gt;&lt;P&gt;Functionality                                                                                &lt;/P&gt;&lt;P&gt;You can use the CreateMultiple method to create one or more physical     &lt;/P&gt;&lt;P&gt;    inventory documents.                                                                                &lt;/P&gt;&lt;P&gt;Notes                                                                                &lt;/P&gt;&lt;P&gt;The following authorization object is checked when this method is used:                                                                                &lt;/P&gt;&lt;P&gt;o   M_ISEG_WIB  plant authorization for physical inventory                                                                                &lt;/P&gt;&lt;P&gt;Transfer                                                                                &lt;/P&gt;&lt;P&gt;The header data of the physical inventory document is transferred with   &lt;/P&gt;&lt;P&gt;    the help of the 'head' structure. The data for the individual items is   &lt;/P&gt;&lt;P&gt;    imported in the 'Items' table. There is also a parameter called          &lt;/P&gt;&lt;P&gt;    MaxItems, which you can use to define the maximum number of items that   &lt;/P&gt;&lt;P&gt;    each physical inventory document contains.                                                                                &lt;/P&gt;&lt;P&gt;Confirmations                                                                                &lt;/P&gt;&lt;P&gt;Messages are returned in the Return parameter. The parameter             &lt;/P&gt;&lt;P&gt;    documentation shows the return codes and their meanings.                                                                                &lt;/P&gt;&lt;P&gt;Further information                                                                                &lt;/P&gt;&lt;P&gt;The method can only carry out your function if no error messages were    &lt;/P&gt;&lt;P&gt;    generated in the Return table. This is the case if the header data and   &lt;/P&gt;&lt;P&gt;    all the items were processed successfully.                                                                                &lt;/P&gt;&lt;P&gt;Transaction control is not implemented. The calling program therefore    &lt;/P&gt;&lt;P&gt;    has to execute the Commit Work itself after this method has been         &lt;/P&gt;&lt;P&gt;    successfully called (in other words, if no errors were reported in the   &lt;/P&gt;&lt;P&gt;    Return parameter).                                                                                &lt;/P&gt;&lt;P&gt;Parameters                                                                                &lt;/P&gt;&lt;P&gt;HEAD                                                                     &lt;/P&gt;&lt;P&gt;    MAXITEMS                                                                 &lt;/P&gt;&lt;P&gt;    ITEMS                                                                    &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;&lt;/P&gt;&lt;P&gt;Jogdand M B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 09:19:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2606966#M597614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T09:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2606967#M597615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 FU BAPI_MATPHYSINV_CREATE_MULT

 ____________________________________________________

 Short text

     Create Physical Inventory Document

 Functionality

     You can use the CreateMultiple method to create one or more physical
     inventory documents.

 Notes

     The following authorization object is checked when this method is used:

     o   M_ISEG_WIB  plant authorization for physical inventory

     Transfer

     The header data of the physical inventory document is transferred with
     the help of the 'head' structure. The data for the individual items is
     imported in the 'Items' table. There is also a parameter called
     MaxItems, which you can use to define the maximum number of items that
     each physical inventory document contains.

     Confirmations

     Messages are returned in the parameter return. The parameter
     documentation shows the return codes and their meanings.

 Further Information
     The method can only carry out your function if no error messages were
     generated in the "Return" table. This is the case if the header data and
     all the items were processed successfully.

     Transaction control is not implemented. The calling program therefore
     has to execute the 'Commit Work' itself after this method has been
     successfully invoked (i.e. if no errors were reported in the Return
     parameter).

 Parameter

     HEAD
     MAXITEMS
     ITEMS
     RETURN

 Exceptions

 Function group

     MB_BUS2028
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 09:20:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2606967#M597615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T09:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2606968#M597616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please go through the Function Module Documentation. It has been given clearly about the usage of the Fm and PARAMETERS to be passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 09:20:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2606968#M597616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T09:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2606969#M597617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Check the Tcodes MI01 to MI24 which are related to Physical Inventory creation

For most of the fun modules DOCUMENTATION is maintained
from MEnu see the doc of this fun module

BAPI_MATPHYSINV_CREATE_MULT
____________________________________________________
Short Text
Create physical inventory document

Functionality
You can use the CreateMultiple method to create one or more physical inventory documents.

Notes
The following authorization object is checked when this method is used:

M_ISEG_WIB plant authorization for physical inventory
Transfer

The header data of the physical inventory document is transferred with the help of the 'head' structure. The data for the individual items is imported in the 'Items' table. There is also a parameter called MaxItems, which you can use to define the maximum number of items that each physical inventory document contains.

Confirmations

Messages are returned in the Return parameter. The parameter documentation shows the return codes and their meanings.

Further information
The method can only perform your function if no error messages were generated in the Return table. This is the case if the header data and all the items were processed successfully.

Transaction control is not implemented. The calling program therefore has to execute the Commit Work itself after this method has been successfully invoked (in other words, if no errors were reported in the Return parameter).

Parameters
HEAD
MAXITEMS
ITEMS
RETURN

Exceptions
Function Group
MB_BUS2028&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepu.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 09:22:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2606969#M597617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T09:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2606970#M597618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if at all you want to know about any FM. go to &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;https://www.se37.com.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;srinivas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*&lt;STRONG&gt;reward for useful answers&lt;/STRONG&gt;*&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 09:24:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2606970#M597618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T09:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2606971#M597619</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;BAPI_MATPHYSINV_CREATE_MULT--&amp;gt;  Create Physical Inventory Document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; FUNCTION BAPI_MATPHYSINV_CREATE_MULT.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"       IMPORTING
*"             VALUE(HEAD) LIKE  BAPI_PHYSINV_CREATE_HEAD
*"                             STRUCTURE  BAPI_PHYSINV_CREATE_HEAD
*"             VALUE(MAXITEMS) LIKE  AM07M-MAXPO OPTIONAL
*"       TABLES
*"              ITEMS STRUCTURE  BAPI_PHYSINV_CREATE_ITEMS
*"              RETURN STRUCTURE  BAPIRET2
*"----------------------------------------------------------------------

DATA: T_IISEG LIKE STANDARD TABLE OF IISEG WITH HEADER LINE.
DATA: T_EISEG LIKE STANDARD TABLE OF EISEG WITH HEADER LINE.
DATA: T_SERIALNUMBERS LIKE STANDARD TABLE OF BAPI_PHYSINV_SERIALNUMBERS
                                                       WITH HEADER LINE.
DATA: S_IIKPF LIKE IIKPF.
DATA: L_ROW   LIKE BAPIRET2-ROW.

  CLEAR:   RETURN, T_IISEG, T_EISEG, S_IIKPF.
  REFRESH: RETURN, T_IISEG, T_EISEG.
  G_ERROR = FALSE.

* map items to internal structure
  LOOP AT ITEMS.
    L_ROW = SY-TABIX.
    CLEAR T_IISEG.
    CALL FUNCTION 'MAP2I_BAPI_CREATE_ITM_TO_IISEG'
         EXPORTING
              BAPI_PHYSINV_CREATE_ITEMS = ITEMS
         CHANGING
              IISEG                     = T_IISEG
         EXCEPTIONS
              ERROR_CONVERTING_KEYS     = 1
              OTHERS                    = 2.
    IF SY-SUBRC &amp;lt;&amp;gt; 0.
      G_ERROR = TRUE.
      PERFORM SY_MSG_TO_BAPIRET2 TABLES RETURN
                                  USING L_ROW
                                        SPACE.
    ENDIF.
    APPEND T_IISEG.
  ENDLOOP.

  IF G_ERROR = FALSE.
* map head to internal structure
    CALL FUNCTION 'MAP2I_BAPI_CREATE_HD_TO_IIKPF'
         EXPORTING
              BAPI_PHYSINV_CREATE_HEAD = HEAD
         CHANGING
              IIKPF                    = S_IIKPF.

* Aufruf des FB-Inventur
    PERFORM CALL_MB_PHYSICAL_INVENTORY TABLES T_IISEG
                                              T_EISEG
                                              RETURN
                                              T_SERIALNUMBERS
                                        USING S_IIKPF
                                              C_CREATE
                                              C_DO_CHECK
                                              MAXITEMS.
    IF G_ERROR = FALSE.
      PERFORM CALL_MB_PHYSICAL_INVENTORY TABLES T_IISEG
                                                T_EISEG
                                                RETURN
                                                T_SERIALNUMBERS
                                          USING S_IIKPF
                                                C_CREATE
                                                C_DO_POST
                                                MAXITEMS.
    ENDIF.
  ENDIF.
ENDFUNCTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpfull answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 09:35:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2606971#M597619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T09:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2606972#M597620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why have so many people just copied the documententation out of SAP?!  What's the point.  Someone has even copied the code...  The first answer telling you to look at the documentation is the correct one.  If you can't go to transaction SE37 and look at the FM to find out its parameters then you need more simple help than this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 09:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/2606972#M597620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T09:52:02Z</dc:date>
    </item>
  </channel>
</rss>

