<?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_goodsmvt_create in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/2779011#M647732</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;check this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; call function 'ZMM_BAPI_GOODSMVT_CREATE'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      goodsmvt_header  = ih&lt;/P&gt;&lt;P&gt;      goodsmvt_code    = ic&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      goodsmvt_headret = egh&lt;/P&gt;&lt;P&gt;      materialdocument = emd&lt;/P&gt;&lt;P&gt;      matdocumentyear  = emy&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      goodsmvt_item    = tgi&lt;/P&gt;&lt;P&gt;      return           = tret.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not egh is initial.&lt;/P&gt;&lt;P&gt;    wai_tab3-mat_doc   = egh-mat_doc.&lt;/P&gt;&lt;P&gt;    wai_tab3-doc_year  = egh-doc_year.&lt;/P&gt;&lt;P&gt;    append wai_tab3 to i_tab3 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear wai_tab3.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    loop at tret.&lt;/P&gt;&lt;P&gt;      read table tret with key type = 'E'&lt;/P&gt;&lt;P&gt;                           message_v1 = tret-message_v1&lt;/P&gt;&lt;P&gt;                           row = flag.&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;       MOVE-CORRESPONDING tret TO return.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        move tret-type to it_display-type.&lt;/P&gt;&lt;P&gt;        move tret-number to it_display-number.&lt;/P&gt;&lt;P&gt;        move tret-message to it_display-message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a warpper bapi with commit  work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine for me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Alfred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2007 13:43:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-05T13:43:01Z</dc:date>
    <item>
      <title>bapi_goodsmvt_create</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/2779008#M647729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i'm unable to get the materialdocuemnt no from my code: can you any one help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE '04' TO GOODSMVT_CODE.&lt;/P&gt;&lt;P&gt;    MOVE SY-DATUM TO GOODSMVT_HEADER-PSTNG_DATE.&lt;/P&gt;&lt;P&gt;    MOVE SY-DATUM TO GOODSMVT_HEADER-DOC_DATE.&lt;/P&gt;&lt;P&gt;    item-MATERIAL = ITAB-MATNR.&lt;/P&gt;&lt;P&gt;    item-PLANT = PLANT.&lt;/P&gt;&lt;P&gt;    item-STGE_LOC = ITAB-LGORT.&lt;/P&gt;&lt;P&gt;    item-ENTRY_UOM = ITAB-MEINS.&lt;/P&gt;&lt;P&gt;    item-ENTRY_QNT  = ITAB-VERME.&lt;/P&gt;&lt;P&gt;    item-MOVE_TYPE = '919'.&lt;/P&gt;&lt;P&gt;     READ TABLE T_ADUMMY INDEX 1.&lt;/P&gt;&lt;P&gt;    item-MOVE_MAT  = T_ADUMMY-ADUMMY.&lt;/P&gt;&lt;P&gt;    item-MOVE_PLANT = PLANT.&lt;/P&gt;&lt;P&gt;    item-MOVE_STLOC = ITAB-LGORT.&lt;/P&gt;&lt;P&gt;    item-MOVE_REAS = ' '.&lt;/P&gt;&lt;P&gt;    item-MVT_IND = ' '.&lt;/P&gt;&lt;P&gt;    APPEND item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'&lt;/P&gt;&lt;P&gt;           EXPORTING&lt;/P&gt;&lt;P&gt;                GOODSMVT_HEADER       = GOODSMVT_HEADER&lt;/P&gt;&lt;P&gt;                GOODSMVT_CODE         = GOODSMVT_CODE&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        TESTRUN               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           IMPORTING&lt;/P&gt;&lt;P&gt;                GOODSMVT_HEADRET      = GOODSMVT_HEADRET&lt;/P&gt;&lt;P&gt;                MATERIALDOCUMENT      = MATERIALDOCUMENT&lt;/P&gt;&lt;P&gt;                MATDOCUMENTYEAR       = MATDOCUMENTYEAR&lt;/P&gt;&lt;P&gt;           TABLES&lt;/P&gt;&lt;P&gt;                GOODSMVT_ITEM         = item&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;               GOODSMVT_SERIALNUMBER = GOODSMVT_SERIALNUMBER&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                RETURN                = RETURN&lt;/P&gt;&lt;P&gt;                .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          WAIT    = 'X'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;         RETURN  =  RETURN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 13:36:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/2779008#M647729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T13:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: bapi_goodsmvt_create</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/2779009#M647730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will be in the field MATERIALDOCUMENT. If not then check the entries in the table RETURN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 13:39:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/2779009#M647730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T13:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: bapi_goodsmvt_create</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/2779010#M647731</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; Check the RETURN table .&lt;/P&gt;&lt;P&gt;You may have got some error or warning messages.&lt;/P&gt;&lt;P&gt;There you can find wxact reason for the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Viswanath Babu.P.D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 13:42:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/2779010#M647731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T13:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: bapi_goodsmvt_create</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/2779011#M647732</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;check this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; call function 'ZMM_BAPI_GOODSMVT_CREATE'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      goodsmvt_header  = ih&lt;/P&gt;&lt;P&gt;      goodsmvt_code    = ic&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      goodsmvt_headret = egh&lt;/P&gt;&lt;P&gt;      materialdocument = emd&lt;/P&gt;&lt;P&gt;      matdocumentyear  = emy&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      goodsmvt_item    = tgi&lt;/P&gt;&lt;P&gt;      return           = tret.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not egh is initial.&lt;/P&gt;&lt;P&gt;    wai_tab3-mat_doc   = egh-mat_doc.&lt;/P&gt;&lt;P&gt;    wai_tab3-doc_year  = egh-doc_year.&lt;/P&gt;&lt;P&gt;    append wai_tab3 to i_tab3 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear wai_tab3.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    loop at tret.&lt;/P&gt;&lt;P&gt;      read table tret with key type = 'E'&lt;/P&gt;&lt;P&gt;                           message_v1 = tret-message_v1&lt;/P&gt;&lt;P&gt;                           row = flag.&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;       MOVE-CORRESPONDING tret TO return.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        move tret-type to it_display-type.&lt;/P&gt;&lt;P&gt;        move tret-number to it_display-number.&lt;/P&gt;&lt;P&gt;        move tret-message to it_display-message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a warpper bapi with commit  work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine for me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Alfred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 13:43:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/2779011#M647732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T13:43:01Z</dc:date>
    </item>
  </channel>
</rss>

