<?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: Error in posting goods receipt in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-posting-goods-receipt/m-p/2051941#M423118</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;Please check the code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Determine the movement type required for posting&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      PERFORM sub_determine_mvmntype CHANGING ls_item-move_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      APPEND ls_item TO lt_item.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Movement type is determined on the basis of the Movement Type, Sign of&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Delta quantity&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_GOODSMVT_CREATE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          goodsmvt_header = ls_header&lt;/P&gt;&lt;P&gt;          goodsmvt_code   = cf_code          "05&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          goodsmvt_item   = lt_item&lt;/P&gt;&lt;P&gt;          return          = lt_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_determine_mvmntype CHANGING pi_move_type TYPE bwart.&lt;/P&gt;&lt;P&gt;  IF gs_new-delme GT 0.      "Quantity difference is positive&lt;/P&gt;&lt;P&gt;    CASE gs_new-insmk.&lt;/P&gt;&lt;P&gt;      WHEN space.            "Unrestriced use&lt;/P&gt;&lt;P&gt;        pi_move_type = cf_921.   "921&lt;/P&gt;&lt;P&gt;      WHEN cf_check.         "X&lt;/P&gt;&lt;P&gt;        pi_move_type = cf_923.   "923&lt;/P&gt;&lt;P&gt;      WHEN cf_two.           "S&lt;/P&gt;&lt;P&gt;        pi_move_type = cf_925.   "925&lt;/P&gt;&lt;P&gt;      WHEN others.&lt;/P&gt;&lt;P&gt;        pi_move_type = space.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;  ELSEIF gs_new-delme LT 0.   "Quantity difference is negative&lt;/P&gt;&lt;P&gt;    CASE gs_new-insmk.&lt;/P&gt;&lt;P&gt;      WHEN space.            "Unrestriced use&lt;/P&gt;&lt;P&gt;        pi_move_type = cf_922.   "922&lt;/P&gt;&lt;P&gt;      WHEN cf_check.         "X&lt;/P&gt;&lt;P&gt;        pi_move_type = cf_924.   "924&lt;/P&gt;&lt;P&gt;      WHEN cf_two.           "S&lt;/P&gt;&lt;P&gt;        pi_move_type = cf_926.   "926&lt;/P&gt;&lt;P&gt;      WHEN others.&lt;/P&gt;&lt;P&gt;        pi_move_type = space.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kannaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Mar 2007 07:53:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-26T07:53:36Z</dc:date>
    <item>
      <title>Error in posting goods receipt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-posting-goods-receipt/m-p/2051940#M423117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting an error "Inadmissible movement type" when i am posting goods receipt for purchase orders using bapi "bapi_goodsmvt_create".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can goods receipt for  purchase orders of any movement type be posted using the bapi "bapi_goodsmvt_create' of movement type "&amp;lt;b&amp;gt;101&amp;lt;/b&amp;gt;".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2007 07:46:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-posting-goods-receipt/m-p/2051940#M423117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-26T07:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error in posting goods receipt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-posting-goods-receipt/m-p/2051941#M423118</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;Please check the code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Determine the movement type required for posting&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      PERFORM sub_determine_mvmntype CHANGING ls_item-move_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      APPEND ls_item TO lt_item.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Movement type is determined on the basis of the Movement Type, Sign of&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Delta quantity&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_GOODSMVT_CREATE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          goodsmvt_header = ls_header&lt;/P&gt;&lt;P&gt;          goodsmvt_code   = cf_code          "05&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          goodsmvt_item   = lt_item&lt;/P&gt;&lt;P&gt;          return          = lt_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_determine_mvmntype CHANGING pi_move_type TYPE bwart.&lt;/P&gt;&lt;P&gt;  IF gs_new-delme GT 0.      "Quantity difference is positive&lt;/P&gt;&lt;P&gt;    CASE gs_new-insmk.&lt;/P&gt;&lt;P&gt;      WHEN space.            "Unrestriced use&lt;/P&gt;&lt;P&gt;        pi_move_type = cf_921.   "921&lt;/P&gt;&lt;P&gt;      WHEN cf_check.         "X&lt;/P&gt;&lt;P&gt;        pi_move_type = cf_923.   "923&lt;/P&gt;&lt;P&gt;      WHEN cf_two.           "S&lt;/P&gt;&lt;P&gt;        pi_move_type = cf_925.   "925&lt;/P&gt;&lt;P&gt;      WHEN others.&lt;/P&gt;&lt;P&gt;        pi_move_type = space.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;  ELSEIF gs_new-delme LT 0.   "Quantity difference is negative&lt;/P&gt;&lt;P&gt;    CASE gs_new-insmk.&lt;/P&gt;&lt;P&gt;      WHEN space.            "Unrestriced use&lt;/P&gt;&lt;P&gt;        pi_move_type = cf_922.   "922&lt;/P&gt;&lt;P&gt;      WHEN cf_check.         "X&lt;/P&gt;&lt;P&gt;        pi_move_type = cf_924.   "924&lt;/P&gt;&lt;P&gt;      WHEN cf_two.           "S&lt;/P&gt;&lt;P&gt;        pi_move_type = cf_926.   "926&lt;/P&gt;&lt;P&gt;      WHEN others.&lt;/P&gt;&lt;P&gt;        pi_move_type = space.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kannaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2007 07:53:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-posting-goods-receipt/m-p/2051941#M423118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-26T07:53:36Z</dc:date>
    </item>
  </channel>
</rss>

