<?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 Problem in creating goods movement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-goods-movement/m-p/1900405#M376029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to write a batch program to receive a large amount of stock into the inventory. But for those batch managed materials, with a batch class assigned to it, I find no way to input the batch characteristics during goods receipt. &lt;/P&gt;&lt;P&gt;Does anyone know any FMs can help? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 27 Jan 2007 01:31:22 GMT</pubDate>
    <dc:creator>former_member220801</dc:creator>
    <dc:date>2007-01-27T01:31:22Z</dc:date>
    <item>
      <title>Problem in creating goods movement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-goods-movement/m-p/1900405#M376029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to write a batch program to receive a large amount of stock into the inventory. But for those batch managed materials, with a batch class assigned to it, I find no way to input the batch characteristics during goods receipt. &lt;/P&gt;&lt;P&gt;Does anyone know any FMs can help? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jan 2007 01:31:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-goods-movement/m-p/1900405#M376029</guid>
      <dc:creator>former_member220801</dc:creator>
      <dc:date>2007-01-27T01:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in creating goods movement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-goods-movement/m-p/1900406#M376030</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;U can try to use the BAPI BAPI_BATCH_CREATE or fm VB_CREATE_BATCH to create the batch before calling the BAPI BAPI_GOODSMVT_CREATE for goods movement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jan 2007 01:50:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-goods-movement/m-p/1900406#M376030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-27T01:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in creating goods movement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-goods-movement/m-p/1900407#M376031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I can't just call BAP_BATCH_CREATE and then BAPI_GOODSMVT_CREATE. I got an error from the BAPI_RETURN "The characteristic values for the batch are incomplete".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, I have assigned a customer batch class to the materials, in which there are some tailor made batch characteristics needed to input. I found no way to assign those batch characteristics in either BAP_BATCH_CREATE or  BAPI_GOODSMVT_CREATE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jan 2007 02:45:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-goods-movement/m-p/1900407#M376031</guid>
      <dc:creator>former_member220801</dc:creator>
      <dc:date>2007-01-27T02:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in creating goods movement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-goods-movement/m-p/1900408#M376032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Seed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can implement one badi 'MB_MIGO_BADI' and during post u can have the following code for updating the batch charastritics....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION ZPO_BADI_UPDATE_YIELD.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     REFERENCE(MAT) TYPE  MATNR
*"     REFERENCE(BATCH) TYPE  CHARG_D
*"     REFERENCE(ROUTE) TYPE  ZATWRT
*"----------------------------------------------------------------------
  DATA:
          cuobj TYPE cuobj_bm,
          i_objtable TYPE STANDARD TABLE OF ty_objtable WITH HEADER LINE,
          i_allocvaluesnum TYPE STANDARD TABLE OF ty_allocnum WITH HEADER LINE,
          i_allocvalueschar TYPE STANDARD TABLE OF ty_allocchar WITH HEADER LINE,
          i_allocvaluescurr TYPE STANDARD TABLE OF ty_alloccurr WITH HEADER LINE,
          wa_route TYPE atwrt,
          atinn type atinn,
          return TYPE TABLE OF bapiret2 WITH HEADER LINE.

  SELECT cuobj_bm FROM mch1
  INTO cuobj
  WHERE matnr = mat AND
        charg = batch.
  ENDSELECT.
*
  CALL FUNCTION 'BAPI_OBJCL_GET_OBJECT_OF_KEY'
    EXPORTING
      clobjectkeyin = cuobj
    IMPORTING
      objectname    = i_objtable-object
      objecttable   = i_objtable-objecttable
      classtype     = i_objtable-classtype
    TABLES
      return        = return.



  i_objtable-classnum = 'Z_GSI_CLASS'.


  CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
    EXPORTING
      objectkey        = i_objtable-object
      objecttable      = i_objtable-objecttable
      classnum         = i_objtable-classnum
      classtype        = i_objtable-classtype
      unvaluated_chars = 'X'
    TABLES
      allocvaluesnum   = i_allocvaluesnum
      allocvalueschar  = i_allocvalueschar
      allocvaluescurr  = i_allocvaluescurr
      return           = return.

*  READ TABLE i_allocvalueschar WITH KEY charact = 'ZACTUAL_DIE' BINARY SEARCH.
*  IF sy-subrc EQ 0.
*    i_allocvalueschar-value_char = value.
*    i_allocvalueschar-value_neutral = value.
*
*    MODIFY i_allocvalueschar INDEX sy-tabix .
*  ELSE.
*    i_allocvalueschar-charact = 'ZACTUAL_DIE'.
*    i_allocvalueschar-value_char = value.
*    APPEND i_allocvalueschar.
*  ENDIF.
*
*  READ TABLE i_allocvalueschar WITH KEY charact = 'ZDATE_CODE' BINARY SEARCH.
*  IF sy-subrc EQ 0.
*    i_allocvalueschar-value_char = datecode.
*    i_allocvalueschar-value_neutral = datecode.
*
*    MODIFY i_allocvalueschar INDEX sy-tabix .
*  ELSE.
*    i_allocvalueschar-charact = 'ZDATE_CODE'.
*    i_allocvalueschar-value_char = datecode.
*    i_allocvalueschar-CHARACT_DESCR = 'Date Code'.
*    APPEND i_allocvalueschar.
*  ENDIF.
*
loop at route into wa_route.
    READ TABLE i_allocvalueschar WITH KEY charact = 'ZROUTING_RULE' BINARY SEARCH.
  IF sy-subrc EQ 0.
    i_allocvalueschar-value_char = wa_route.
    i_allocvalueschar-value_neutral = wa_route.

    append i_allocvalueschar  .
  ELSE.
    i_allocvalueschar-charact = 'ZROUTING_RULE'.
    i_allocvalueschar-value_char = wa_route.
    i_allocvalueschar-CHARACT_DESCR = 'ROUTING_RULE'.
    APPEND i_allocvalueschar.
  ENDIF.
endloop.


  REFRESH return.

  CALL FUNCTION 'BAPI_OBJCL_CHANGE'
    EXPORTING
      objectkey          = i_objtable-object
      objecttable        = i_objtable-objecttable
      classnum           = i_objtable-classnum
      classtype          = i_objtable-classtype
    TABLES
      allocvaluesnumnew  = i_allocvaluesnum
      allocvaluescharnew = i_allocvalueschar
      allocvaluescurrnew = i_allocvaluescurr
      return             = return.

  READ TABLE return WITH KEY type = 'E' BINARY SEARCH.
  IF sy-subrc EQ 0.
*PERFORM add_message TABLES i_idoc_status.
  ELSE.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      wait   = 'X'.
  ENDIF.





ENDFUNCTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 17:15:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-goods-movement/m-p/1900408#M376032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T17:15:46Z</dc:date>
    </item>
  </channel>
</rss>

