<?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 for Goods Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-goods-issue/m-p/2991214#M706486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a check with table: t158b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE * FROM T158B WHERE TCODE = &amp;lt;tcode&amp;gt;&lt;/P&gt;&lt;P&gt;                               AND   BWART = &amp;lt;movement type&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When this is failing the following error message is raised.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Nov 2007 02:48:03 GMT</pubDate>
    <dc:creator>JoffyJohn</dc:creator>
    <dc:date>2007-11-07T02:48:03Z</dc:date>
    <item>
      <title>BAPI for Goods Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-goods-issue/m-p/2991213#M706485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on an interface where I need to do &amp;lt;b&amp;gt;goods Issue&amp;lt;/b&amp;gt; and for this I have written the following code, but my return statement is returning this error" &amp;lt;b&amp;gt;Goods movement not possible with mvmt type 201&amp;lt;/b&amp;gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of it_input_file occurs 0,&lt;/P&gt;&lt;P&gt;        matnr(18),&lt;/P&gt;&lt;P&gt;        werks(4),&lt;/P&gt;&lt;P&gt;        uoe_qty(13),  &lt;/P&gt;&lt;P&gt;        amount(13),&lt;/P&gt;&lt;P&gt;        st_loc(4),&lt;/P&gt;&lt;P&gt;        batch(10),&lt;/P&gt;&lt;P&gt;        account(10),&lt;/P&gt;&lt;P&gt;        uoe_uom(3),   &lt;/P&gt;&lt;P&gt;     end of it_input_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  v_semfile = p_ifname.&lt;/P&gt;&lt;P&gt;  refresh it_input_file.&lt;/P&gt;&lt;P&gt;  call function 'WS_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = v_semfile&lt;/P&gt;&lt;P&gt;      filetype                = 'DAT'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                = it_input_file&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      conversion_error        = 1&lt;/P&gt;&lt;P&gt;      file_open_error         = 2&lt;/P&gt;&lt;P&gt;      file_read_error         = 3&lt;/P&gt;&lt;P&gt;      invalid_type            = 4&lt;/P&gt;&lt;P&gt;      no_batch                = 5&lt;/P&gt;&lt;P&gt;      unknown_error           = 6&lt;/P&gt;&lt;P&gt;      invalid_table_width     = 7&lt;/P&gt;&lt;P&gt;      gui_refuse_filetransfer = 8&lt;/P&gt;&lt;P&gt;      customer_error          = 9&lt;/P&gt;&lt;P&gt;      others                  = 10.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  move: syst-datum to v_doc_date,&lt;/P&gt;&lt;P&gt;        syst-datum to v_pos_date.&lt;/P&gt;&lt;P&gt;  loop at it_input_file.&lt;/P&gt;&lt;P&gt;    move: v_doc_date          to GOODSMVT_HEADER-DOC_DATE,&lt;/P&gt;&lt;P&gt;          v_pos_date          to GOODSMVT_HEADER-pstng_date,&lt;/P&gt;&lt;P&gt;          syst-uname          to GOODSMVT_HEADER-pr_uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    move: '05' to GOODSMVT_CODE-GM_CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    move: it_input_file-matnr    to GOODSMVT_ITEM-material,&lt;/P&gt;&lt;P&gt;          it_input_file-werks    to GOODSMVT_ITEM-plant,&lt;/P&gt;&lt;P&gt;          it_input_file-st_loc   to GOODSMVT_ITEM-stge_loc,&lt;/P&gt;&lt;P&gt;          it_input_file-batch    to GOODSMVT_ITEM-batch,&lt;/P&gt;&lt;P&gt;          it_input_file-uoe_qty  to GOODSMVT_ITEM-entry_qnt,&lt;/P&gt;&lt;P&gt;          it_input_file-uoe_uom  to GOODSMVT_ITEM-entry_uom,&lt;/P&gt;&lt;P&gt;          it_input_file-amount    to GOODSMVT_ITEM-AMOUNT_LC,&lt;/P&gt;&lt;P&gt;          ' '                     to GOODSMVT_ITEM-MVT_IND,&lt;/P&gt;&lt;P&gt;          'X'                     to GOODSMVT_ITEM-NO_MORE_GR,     &lt;/P&gt;&lt;P&gt;      move: c_mov_type2             to GOODSMVT_ITEM-move_type,&lt;/P&gt;&lt;P&gt;          &lt;/P&gt;&lt;P&gt;    append goodsmvt_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;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         = GOODSMVT_ITEM&lt;/P&gt;&lt;P&gt;        RETURN                = RETURN&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          RETURN = return2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rajeev  Gupta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rajeev  Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 00:52:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-goods-issue/m-p/2991213#M706485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-07T00:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for Goods Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-goods-issue/m-p/2991214#M706486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a check with table: t158b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE * FROM T158B WHERE TCODE = &amp;lt;tcode&amp;gt;&lt;/P&gt;&lt;P&gt;                               AND   BWART = &amp;lt;movement type&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When this is failing the following error message is raised.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 02:48:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-goods-issue/m-p/2991214#M706486</guid>
      <dc:creator>JoffyJohn</dc:creator>
      <dc:date>2007-11-07T02:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for Goods Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-goods-issue/m-p/2991215#M706487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey thanks for the reply john, actually I am new to ABAP can you please explain me in detail, I mean how will it work in my case. I will really appreciate your time and efforts. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnaks&lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 03:51:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-goods-issue/m-p/2991215#M706487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-07T03:51:54Z</dc:date>
    </item>
  </channel>
</rss>

