'BAPI_GOODSMVT_CREATE' --261

HI,
we are facing problem in using BAPI_GOODSMVT_CREATE
for the movement type 261.can anybody help
i.e. what are the parameters do we need to pass to BAPI
for a production order...can u pl. look at the code
and correct anything is required..
*----Header
s_goodsmvt_header-pstng_date = '20060422'.
s_goodsmvt_header-doc_date = sy-datum.
s_goodsmvt_header-pr_uname = sy-uname.
s_goodsmvt_header-ref_doc_no = '000710000426'.
*----Item
i_goodsmvt_item-material = 'IT00PA 744 001' .
i_goodsmvt_item-plant = '7101'.
i_goodsmvt_item-stge_loc = '0148'.
i_goodsmvt_item-move_type = '261'.
i_goodsmvt_item-mvt_ind = 'F'.
i_goodsmvt_item-stck_type = space .
i_goodsmvt_item-ENTRY_UOM = 'SHT'.
i_goodsmvt_item-entry_qnt = '0.100'.
i_goodsmvt_item-batch = 'TEST_BCD1'.
i_goodsmvt_ITEM-ORDERID = '000710000426'.
i_goodsmvt_ITEM-RESERV_NO = 4379.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
GOODSMVT_HEADER = s_goodsmvt_header
GOODSMVT_CODE = '03'
IMPORTING
GOODSMVT_HEADRE = x_goodsmvt_header
MATERIALDOCUMENT = V_DOC
MATDOCUMENTYEAR =
TABLES
GOODSMVT_ITEM = i_goodsmvt_item
GOODSMVT_SERIALNUMBER =
RETURN = i_return.
if sy-subrc = 0.
commit work and wait.
endif.
Thanks,
Seshagiri

Did you append the record to i_goodsmvt_item??
What is the error you are encountering??

Similar Messages

  • BAPI_GOODSMVT_CREATE goods issue for tmovement type  261 not updating costs

    GMHEAD-PSTNG_DATE =  SY-DATUM.
            GMHEAD-DOC_DATE   =  SY-DATUM.
            GMCODE-GM_CODE    =  '03'.   "03 - MB1A - Goods Issue
            GOODSMVT_ITEM-MOVE_TYPE   =   '261'.
            GOODSMVT_ITEM-ENTRY_QNT   =   '1'.
    I am using BAPI_GOODSMVT_CREATE for goods issue, instead of MB1A.
    it is updating the data correctly.
    The only issue i am having is that, it is not calculating the material costs.
    The actual costs for material cost from IW32 is $0.00
    I can see all the data updating correctly from MB02.
    Please let me know what might be the issue regarding costs.

    How did you solve it?

  • Error in  BAPI_GOODSMVT_CREATE with movement type *261'  after posting

    Hi All,
    After sucessfull posting of  BAPI_GOODSMVT_CREATE  with movement type *261' .
    After posting ,while checking In mb51 document exists for it but checking in mmbe stock not reduced from resisticted stock.
    Can you kindly tell the import parameter to be filled to over come this error.
    Thank you.
    Thanks,
    AMS

    Hi Himanshu/ Tejaswini Khante / Madhu,
    Thank you all for your kind reply.
    @Himanshu....I have tried with LWA_ITEM-STCK_TYPE = BLANK, Still it didnt work.
    @Tejaswini Khante ...I checked the MMBE tcode, all the stocks are in 'Unrestricted use' only. The quality inspection, reserved fields are all blank. The materials are not Batch managed.
    @Madhu...Yes, i discussed with the Functional, yet to find a possible solution.
    Thanks & Regards
    Rajesh

  • BAPI_GOODSMVT_CREATE for GM code 03 mov. 261

    Is there anybody who had experience on BAPI
    BAPI_GOODSMVT_CREATE in order to simulate transaction MB1A?
    GM code is 03 and movement type is 261.
    I'm looking for the bapi fields that have to be filled to simulate the behaviour of the above mentioned transaction. The GI context is a goods out using as reference a production order.
    Thanks in advance.
    F.

    Hello
    Try with this code.
      DATA: l_wa_hdin      TYPE bapi2017_gm_head_01,
            l_wa_pos       TYPE bapi2017_gm_item_create,
            l_wa_code      TYPE bapi2017_gm_code,
            l_wa_mbew      TYPE mbew,
            l_wa_uebrigmat TYPE z48m_uebrigmat,
            l_wa_matpr     TYPE z48m_price_set_mbew,
            l_wa_ret       TYPE bapiret2,
            l_wa_balmt     TYPE balmt,
            l_wa_msg       TYPE z48s_msg.
      DATA: l_it_pos   TYPE TABLE OF bapi2017_gm_item_create,
            l_it_ret   TYPE TABLE OF bapiret2,
            l_it_balmt TYPE TABLE OF balmt.
    l_wa_hdin-ver_gr_gi_slip  = va_ver_slip.                "sc88wa2
    l_wa_hdin-ver_gr_gi_slipx = co_xfeld.                   "sc88wa2
    CLEAR: l_wa_hdin-ver_gr_gi_slip.                        "sc88wa2
    l_wa_hdin-ver_gr_gi_slipx = co_xfeld.                   "sc88wa2
    wahdin-pstng_date = va_budat.
    wahdin-doc_date   = va_bldat.
    <b>l_wa_code-gm_code    = '03'.</b>
        CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
             EXPORTING
                  goodsmvt_header  = l_wa_hdin
                  goodsmvt_code    = l_wa_code
                  testrun          = pi_test
             IMPORTING
                  goodsmvt_headret = wa_hdout
             TABLES
                  goodsmvt_item    = l_it_pos
                  return           = l_it_ret.
    if useful reward.
    Vasanth

  • BAPI_GOODSMVT_CREATE (Type: 261) withdrawal qty not updated

    Dear All, <br />
    <br />
    I am calling <b>BAPI_GOODSMVT_CREATE</b> (Goods Issue: 261) to issue goods to production order. No error returned from the function and unrestricted use stocks are reduced as expected. The only problem I have is that the withdrawal quantity for that material is not updated. (increased) <br />
    <br />
    I also tried doing the same thing in <b>MIGO</b> : <b>Good Issue</b> / <b>Production Order</b> and found no such problem. Anyone know have any idea about this? tks in advance :D<br />
    <br />
    <pre class="jive-pre"><code class="jive-code jive-java">            l_input_item-spec_stock = <font color="navy">'E'</font>.
                l_input_item-val_sales_ord = g_kdauf.    &quot;Sales order no.
                l_input_item-val_s_ord_item = g_kdpos.    &quot;Sale Order Item
              l_input_sku-matdoc_itm      = l_line.
              l_input_sku-grid_value      = w_report-j_3asize.  &quot;Grid Value
              l_input_sku-stock_cat       = w_report-j_4kscat.   &quot;Stock Category
              APPEND l_input_sku.
              l_input_item-orderid        = g_aufnr. &quot;ORDER NUMBER
              l_input_item-move_type      = <font color="navy">'261'</font>. &quot;Movement Type
              l_input_item-material       = w_report-matnr. &quot;Material No.
              l_input_item-batch          = w_report-charg. &quot;Batch
              l_input_item-entry_qnt      = w_report-iss_menge. &quot;New Qty
              l_input_item-entry_uom      = w_report-meins.
              l_input_item-plant          = w_report-werks.    &quot;Plant
              l_input_item-stge_loc       = w_report-lgort.  &quot;Location
              l_input_item-quantity       = w_report-iss_menge.
              l_input_item-base_uom       = w_report-meins.
              APPEND l_input_item.
            CALL FUNCTION <font color="navy">'BAPI_GOODSMVT_CREATE'</font>
                   EXPORTING
                     goodsmvt_header               =   l_input_header
                     goodsmvt_code                 =   l_input_code             
          IMPORTING
                     goodsmvt_headret              =   l_output_header
                   TABLES
                     goodsmvt_item                 =   l_input_item
                     goodsmvt_serialnumber         =   l_input_serial
                     <font color="navy"><b>return</b></font>                        =   l_output_return
                     afs_goodsmvt_sku              =   l_input_sku
                 CALL FUNCTION <font color="navy">'BAPI_TRANSACTION_COMMIT'</font> (called if no error return)
    </code></pre><br />
    <p />
    <br />
    I wonder it's becuase I didn't pass <b>RSNUM</b> and <b>RSPOS</b> (Reservation no. and item no.). Since when I check the Material Doc genereated by BAPI and MIGO, there's no Reserve no. in the one from BAPI. However, I get <b>"Internal Error"</b> message when I add these 2 numbers.
    <br />
    <pre class="jive-pre"><code class="jive-code jive-java">     
              SELECT resb~rsnum
                     resb~rspos
                     resb~rsart
                INTO (g_rsnum, g_rspos, g_rsart)
                FROM resb JOIN afko ON resbrsnum = afkorsnum
                WHERE afko~aufnr = g_aufnr
                  AND resb~matnr = w_report-matnr.
              ENDSELECT.
              l_input_item-reserv_no      = g_rsnum.  "'0000000104'.  "Reserve No.
              l_input_item-res_item       = g_rspos.  "'0004'.  "Reserve Item No.                      
    </code></pre><br />

    Hi Sam,
    Thanks for your reply. Sorry for terrible format maybe it's because i was not posting with IE.
    In fact I called BAPI_TRANSACTION_COMMIT at the end. Unrestricted use stock reduced but withdrawal quantity was still not changed. That's the problem I have. Also I tried your method, still the same result.
    I wonder it's becuase I didn't pass RSNUM and RSPOS (Reservation no. and item no.). Since when I check the Material Doc genereated by BAPI and MIGO, there's no Reserve no. in the one from BAPI. However, I get "Internal Error" message when I add these 2 numbers.

  • BAPI_GOODSMVT_CREATE MVT "261", "101"

    Hi Everyone,
    II tried using BAPI_GOODSMVT_CREATE  for Postin outbound delivery. But it seems that this BAPI does not support Goods Issue for movement type '601' .  I got the error message 'Goods Movement not possible with mvmt type 601'.
    Does anybody know of any BAPI to posting outbound delivery?
    Thanks in advance
    Rajab
    Edited by: Rajabali Keasalar on Feb 16, 2009 3:44 PM

    Hi,
    i think 601 is not allowed. Look at the docu of the BAPI Field GM_CODE.
    Regards, Dieter
    Here the docu:
    DE GM_CODE
    Short Text
    Assign code to transaction for BAPI goods movement
    Definition
    Indicates the assignment of the code for the SAP transaction for BAPIs for goods movements.
    Dependencies
    With this method, the system does not support goods movements that are initiated by other application components. These include:
    Goods issue for delivery
    Completion confirmation in production
    Usage decision in QM
    Regards, Dieter
    Edited by: Dieter Gröhn on Feb 16, 2009 4:29 PM

  • BAPI_GOODSMVT_CREATE - Error while posting a Material Document

    Hi Experts,
    We are  trying to do the material document posting using the transaction "MB1C" manually in SAP. The movement type which we are using for the same is "261".  While doing this is, it is asking for a work order number and the Recipient number. We gave the Recipient Number as "123". Material document is created successfully.
    Again using the same transaction  "MB1C" , we are trying to do the reversal of the material document which we posted previously against another work order number for the same material and the serial number if the material is serialised and as well as for the non serialised material.
    Both this case, in SAP the material document is created succesfully. This is done manually in SAP.
    When we are trying to create the material document using the BAPI 'BAPI_GOODSMVT_CREATE', for the above scenario, posting the material document '261' movement type for one work order and the reversal for another work order '262' movement type for the same material (whether it is a serialised or non serialised) we are getting the eror as "RE Qty. transferred exceeded 1 PC: 50,003,695 C001 USED 1200".
    We are passing the following at the item level. MATERIAL Number, Plant, STGE_LOC, ENTRY_QNT, MOVE_TYPE, BATCH, ORDERID, RESERV_NO,  RES_ITEM, ACTIVITY, XSTOB for reversal.
    We are passing the GM_CODE as '05'.
    Please let us know what needs to be changed inorder to create the material document properly without getting errors.
    Thanks in Advance,
    Mohan.

    Hi,
    We fixed this issue by removing the reservation number of the material when we are trying to post the material document with the movement type "262".
    The reason for removing the reservation number for the movement type "262"
    The reservation number is getting created against a work order when we trying to create the work order in IW32. This reservation number is used for validating the stock while we are trying to consume and doing the reversal.
    SAP is allowing us to reverse the consumed quantities only based on the reservartion number and hence we got this error.
    To fix this error, if we are trying to reverse a particular material against a different work order for which it has been consumed previiously, remove the reservation number and item number and try posting the material document.
    Hope this solution will solve your issue:)
    Thanks and Regards,
    Mohan.

  • BAPI_GOODSMVT_CREATE - Error - RE Qty. transferred exceeded 1 PC

    Hi Experts,
    We are  trying to do the material document posting using the transaction "MB1C" manually in SAP. The movement type which we are using for the same is "261".  While doing this is, it is asking for a work order number and the Recipient number. We gave the Recipient Number as "123". Material document is created successfully.
    Again using the same transaction  "MB1C" , we are trying to do the reversal of the material document which we posted previously against another work order number for the same material and the serial number if the material is serialised and as well as for the non serialised material.
    Both the case is done manually in SAP, and the material document is created succesfully.
    When we are trying to create the material document using the BAPI 'BAPI_GOODSMVT_CREATE', for the above scenario, posting the material document '261' movement type for one work order and the reversal for another work order '262' movement type for the same material (whether it is a serialised or non serialised) we are getting the eror as "RE Qty. transferred exceeded 1 PC: 50,003,695 C001 USED 1200".
    We are passing the following at the item level. MATERIAL Number, Plant, STGE_LOC, ENTRY_QNT, MOVE_TYPE, BATCH, ORDERID, RESERV_NO,  RES_ITEM, ACTIVITY, XSTOB for reversal.
    We are passing the GM_CODE as '05'.
    Please let us know what needs to be changed inorder to create the material document properly without getting errors.
    It is urgent since we are at the production stage.
    Thanks in Advance,
    Mohan

    Hi Sagar,
    Thanks for your reply.
    We tried with the option what you have suggested. If we use the movement type 262 and if we remove the XSTOB flag, the material document is created for the movement type 261 and not for the reversal movement type 262. This is the standard behaviour of the BAPI.
    If we pass the movement type as 261 and the flag as 'X', it is throughing the same error as we were mentioning. If we use the movement type as 262 and the flag as 'X' still the same error is returned by the BAPI.
    We tried with the GM_CODE as well. Presently we are using '05' and we tried with '06' as well. Still we are getting the same issue.
    Please suggest some other options to fix this bug.
    Thanks,
    Mohan.

  • BAPI_GOODSMVT_CREATE with a movement type of 262

    hi:
    when  I do a goods movement using BAPI_GOODSMVT_CREATE with a movement type of 262. If I supply the reservation number it creates the material document with a movement type of 261 ignoring the 262 . why ?

    Hi,
    Check if GM_CODE in the import parameters is set to "06" for the reversal movement type. If not, please set it to 06.
    Regards,
    Sachin .

  • Goods Issue on Process Order with BAPI_GOODSMVT_CREATE

    Hi together,
    I want to post a goods issue on an process order (some of them are networks) but I have some problem with filling the structures.
    Could you please help me?
    Book material
        ls_bapi_head-pstng_date = ls_booking-budat.
        ls_bapi_head-doc_date   = sy-datum.
        ls_bapi_head-pr_uname   = sy-uname.
        ls_bapi_item-material   = ls_booking-idnrk.
        ls_bapi_item-plant      = p_werks.
        ls_bapi_item-stge_loc   = ls_booking-lgort.
        ls_bapi_item-entry_qnt  = ls_booking-dmeng.
        ls_bapi_item-entry_uom  = ls_booking-meins.
        ls_bapi_item-orderid    = ls_booking-aufnr.
        ls_bapi_item-mvt_ind    = gc_mvt_ind.
        IF ls_bapi_item-entry_qnt > 0.
          ls_bapi_item-move_type = '261'.
        ELSE.
          ls_bapi_item-move_type = '262'.
        ENDIF.
        APPEND ls_bapi_item TO lt_bapi_item.
        CLEAR: lt_bapi_ret, ls_bapi_item.
        CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
          EXPORTING
            goodsmvt_header  = ls_bapi_head
            goodsmvt_code    = '03'
            testrun          = p_test
          IMPORTING
            materialdocument = ls_mat_bel
          TABLES
            goodsmvt_item    = lt_bapi_item
            return           = lt_bapi_ret.

    Here send a example:
      DATA: RTR LIKE BAPIRET2.
      DATA: G_HEADER    LIKE BAPI2017_GM_HEAD_01,
            G_CODE      LIKE BAPI2017_GM_CODE,
            TESTRUN     LIKE BAPI2017_GM_GEN-TESTRUN,
            G_HEADRET   LIKE BAPI2017_GM_HEAD_RET,
            MATDOCUMENT TYPE BAPI2017_GM_HEAD_RET-MAT_DOC,
            MATYEAR     TYPE BAPI2017_GM_HEAD_RET-DOC_YEAR,
            G_ITEM      TYPE STANDARD TABLE OF BAPI2017_GM_ITEM_CREATE WITH HEADER LINE,
            RETURN      TYPE STANDARD TABLE OF BAPIRET2 WITH HEADER LINE.
    TOMO DATOS DE LA TABLA Z
      SELECT * FROM ZCOTT_ACT_VOLUM
               INTO CORRESPONDING FIELDS OF TABLE TI_VOLUMEN.
      CLEAR: RETURN. REFRESH: RETURN.
      CLEAR: WA_MJES.
      WA_MJES-ICONID = '@DH@'.
      WA_MJES-TYPE   = 'S'.
      WA_MJES-MSGTXT = 'Errores del Proceso Nro 2'.
      APPEND WA_MJES TO TI_MJES.
      LOOP AT TI_VOLUMEN INTO WA_VOL.
        CLEAR: G_HEADER, G_CODE, TESTRUN, G_HEADRET, MATDOCUMENT,
               MATYEAR, G_ITEM.
        REFRESH: G_ITEM.
        G_HEADER-PSTNG_DATE      = WA_VOL-BUDAT. " Fecha de contabilización en el documento
        G_HEADER-DOC_DATE      = WA_VOL-BLDAT. " Fecha de documento en documento
        G_HEADER-REF_DOC_NO      = 'REF NRO:'. " Número de documento de referencia
        G_HEADER-PR_UNAME      = SY-UNAME. " Nombre de usuario
        G_HEADER-HEADER_TXT      = WA_VOL-BKTXT. " Texto de cabecera de documento
        G_CODE  = '04'. " Traspaso
      Emisor
        G_ITEM-MATERIAL   = WA_VOL-DE_MATNR. " Nro de Material
        G_ITEM-PLANT      = WA_VOL-DE_WERKS. " Centro
        G_ITEM-STGE_LOC   = WA_VOL-DE_LGORT. " Almacen
        G_ITEM-MOVE_TYPE  = WA_VOL-BWART.    " Clase de Mov.
      G_ITEM-COSTCENTER = WA_VOL-KOSTL.    " Centro de Costo.
        G_ITEM-ENTRY_QNT      = WA_VOL-MENGE.    " Cantidad en unidad de medida de entrada
        G_ITEM-ENTRY_UOM      = WA_VOL-UNIT.     " Unidad de medida de entrada
        G_ITEM-ENTRY_UOM_ISO = WA_VOL-UNIT.  " Código ISO p.unidad de medida
        G_ITEM-BATCH         = WA_VOL-DE_LGORT. " Lote
      Receptor
        G_ITEM-MOVE_MAT   = WA_VOL-A_MATNR. " Nro de Material.
        G_ITEM-MOVE_PLANT = WA_VOL-A_WERKS. " Centro
        G_ITEM-MOVE_STLOC = WA_VOL-A_LGORT. " Almacen
        G_ITEM-MOVE_BATCH = WA_VOL-A_LGORT. " Lote
        APPEND G_ITEM.
        CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
          EXPORTING
            GOODSMVT_HEADER  = G_HEADER
            GOODSMVT_CODE    = G_CODE
            TESTRUN          = ' ' "TESTRUN
          IMPORTING
            GOODSMVT_HEADRET = G_HEADRET
            MATERIALDOCUMENT = MATDOCUMENT
            MATDOCUMENTYEAR  = MATYEAR
          TABLES
            GOODSMVT_ITEM    = G_ITEM
            RETURN           = RETURN.
        CLEAR: RTR.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            WAIT   = 'X'
          IMPORTING
            RETURN = RTR.
        LOOP AT RETURN.
          CLEAR: WA_MJES.
          WA_MJES-TYPE   = RETURN-TYPE.
          CASE WA_MJES-TYPE.
            WHEN 'S'.
              WA_MJES-ICONID = '@08@'.
            WHEN 'W'.
              WA_MJES-ICONID = '@09@'.
            WHEN 'E'.
              WA_MJES-ICONID = '@0A@'.
          ENDCASE.
          WA_MJES-MSGTXT = RETURN-MESSAGE.
          APPEND WA_MJES TO TI_MJES.
        ENDLOOP.
      ENDLOOP.

  • Error: RE Qty. transferred exceeded 1 PC in BAPI_GOODSMVT_CREATE

    Hi,
    We are doing a reversal for a work order using the movement type 'Z62' which is a customised movement type for a material from the syclo mobile. While doing the reversal, we are getting this error in the return table paramater of the BAPI "BAPI_GOODSMVT_CREATE".
    Example: The work order number is 2000001181, the material number is 50014360, movement type 'Z62', Quantity 1, GM_CODE is '05'. For this scenario we are getting the above error.
    We also tried with the following option as well with the BAPI_GOODSMVT_CREATE. Example: The work order number is 2000001181, the material number is 50014360, movement type '262', Quantity 1, GM_CODE is '03'. For this scenario we are getting the same error only. We are not able to post the material document succesfully through the BAPI call.
    When we create a material document for the above test case in SAP manually, we are able to post the material document for the movement type '262' as well as for 'Z62'.
    We are doing the reversal and not the cancel of the material document which is being posted already in SAP. We are sending the details of the material and the work order at the item table parameter and the GM_CODE as '05' at the header level. We tried with the GM_CODE '03' as well.
    For both GM_CODE we are getting the same error as "RE Qty. transferred exceeded 1 PC". The materials against which we are doing the reversal are already consumed in another work order. We want to reverse the consumed material with the new work order number. The work order number is alone is different but not the material number and the quantity.
    If we try to do the same with the BAPI: BAPI_GOODSMVT_CREATE we are facing issue.
    Please let us know the best way to pass the movement type 'Z62' which is similar to the movement type '262' in functioanlity in the backend in the BAPI to create the material document.
    Thanks,
    Mohan.

    Hi Max,
    The values which we are passing to the BAPI are as follows:
    *IS_GOODSMVT_HEADER*
                            PSTNG_DATE -- System Date from Mobile
                            DOC_DATE     -- Same
    IV_GOODSMVT_CODE
                            GM_CODE   --- '05'
    IT_GOODSMVT_ITEM
                             MATERIAL        --- 50014369
                             PLANT              --- 1200
                             STGE_LOC       --- C001
                             BATCH              --- USADO/NEUVO
                             MOVE_TYPE     --- 262 / Z62
                             ENTRY_QNT     --- 1
                             ENTRY_UOM     --- PC
                             ORDERID           --- 20001181
                             RESERV_NO     --- Material's  Reservation number
                             ACTIVITY          --- Task ID of the order
                             RES_ITEM          --- Material reservation item number
                             XSTOB -- This flag will be set to true 'X' if the movement type is '262' and blank for rest of the movement types
    We used the transaction 'MB1C' for posting the material document manually in SAP.
    IT_GOODSMVT_SERNO
                            MATDOC_ITM   
                            SERIALNO
                            UII
    These are the values which are being passed from the client to SAP. This BAPI is called when we do the goods issue (Consumption) in the mobile device.
    We tried with the GM_CODE - '03' as well. At this point of time also, we are getting the same error. We tried doing the material document posting for 'Z62' it is getting converted into '261' or '262' movement type in MIGO transaction in SAP. Because of this only, we changed the GM_CODE to '05'. In MB1C, we are able to post the material document with the movement type as such what we are passing from the client.
    Please let me know, if there is any change that needs to be done in the way we are calling the BAPI for posting the Material document.
    Thanks,
    Mohan.

  • Post GM with reference to Production Order using BAPI_GOODSMVT_CREATE

    Hi Experts,
    We need to post Goods Movement with reference to Production order. In brief, we have to get the functionality of MB1A done. I'm trying to use BAPI_GOODSMVT_CREATE, but its not reflecting the Documented Goods Movements in the Production Order.
    Here is the data i'm using:
    goodsmvt_header : posting date, document date
    goodsmvt_code : 03
    goodsmvt_item:
    material
    plant
    storage loc
    batch
    mov typ : 261
    ENTRY_QNT
    ENTRY_UOM
    ENTRY_UOM_ISO
    order id
    Sometimes it generates material doc and year in exporting parameter, and sometimes it gives message "Content of order zzzzzzz : yyyyyyy transferred to interface (IMSEG): xxxxxxx".
    But despite of this I cannot see the Documented Goods Movements reflecting in the Production Order.
    Can anyone help on this. Is there anything else to be passed or I'm missing any process ?

    Experts,
    I could get the postings done with BAPI_GOODSMVT_CREATE. I was executing BAPI_GOODSMVT_CREATE and then BAPI_TRANSACTION_COMMIT separately, thus the generated Material doc number was not getting posted. When I used the Test Sequence option from SE37 menu, it worked.

  • JCO Return Type error for BAPI_GOODSMVT_CREATE

    I'm working against a 4.6c instance using the BAPI_GOODSMVT_CREATE to do a 261 movement type.  When running through Xacute, I am getting the attached Return message:
    <RETURN>
    <item>
    <TYPE>E</TYPE>
    <ID>M3</ID>
    <NUMBER>351</NUMBER>
    <MESSAGE>Material not maintained in plant 0066</MESSAGE>
    <LOG_NO />
    <LOG_MSG_NO>000000</LOG_MSG_NO>
    <MESSAGE_V1 />
    <MESSAGE_V2>0066</MESSAGE_V2>
    <MESSAGE_V3 />
    <MESSAGE_V4 />
    <PARAMETER>GOODSMVT_ITEM</PARAMETER>
    <ROW>1</ROW>
    <FIELD />
    <SYSTEM>QAS150</SYSTEM>
    </item>
    </RETURN>
    I know for sure that this item is maintained in this plant as I can perform the 261 through SAP GUI and through ABAP.  Has anyone else run into this problem?  There is an OSS note (570790) for this BAPI, but I think this patch has already been applied.

    Hi Rick - thanks for your quick response.
    I'm fairly confident I have the right config as I can do other BAPIs without any problems.  I did check the material number as well; it is zero padded correctly - again I believe.
    I could be wrong.  I have someone looking into the patch in the OSS note.  Perhaps that is the answer.

  • Stock is shown as outstanding although 261 movement type has been performed

    Hi all,
    I was doing 261 movement type against production order without passing reservation number but the client said that if we do not pass reservation number stock is shown as outstanding against reservation leading to inaccurate results on MRP run etc....But this is not clear to me... Can anyone tell me that if I post 2 good issues one without passing reservation number and another passing reservation number how can I test the difference betwen two scenarios like what do I need to check after I pass the reservation number.. I did as client said but dont know why and what difference do I see in SAP..Any thing which I need to check in MMBE after passing the reservation or any other transcation...
    Please help me.....

    Hi Uday,
    This statement was clear but passing reservation has impact on reserved stock..I myself checked programitically ie I am calling BAPI_GOODSMVT_CREATE for doing 261 . I had 2 components for my production order..For 1 item I passed reservation number and for 2nd item I did not pass reservation in 2nd item..Then I checked the stocks in MMBE.. In both cases unrestricted stock is getting reduced but the reserved stock is getting reduced only in 1st case and not in 2nd case.
    My issue is for my  order type and plant all components is checked in OPK4..So I need to do 261 all components (backflush and non-backflush) ...Earlier I was replicating CO11N  programitically and I was able to pass goods movement data along with confirmation creation passing reservation number.My requirement was fulfilled but then suddenly we found that in 1 case this approach was failing and that was If i was doing 261 for a serialized component it gives me message 'Serial no obligatory materail cannot b updated' and in my case serialized components will be there..
    For  the above problem we are now doing 261 replicationg MIGO_GI and not CO11N where we can pass serial number also and reservation also .. But the problem with this approach is that we are not able to pass reservation number for backflushed items..If we pass reservation  no for backflush items I am getting the error 'For reservation xxx item xxx,goodsmvt not possible'..Not clear why SAP has some type of limitation in both the approaches..
    Where in I can d 261 for all components ( serialized or non serialized ) and also pass reservation number for both backflush and non backflush items..Can you suggest me an approach by which I can meet the desired functionality..
    It would be great if you can suggest some thing...As you have knowledge about the whole process you can surely help me by at least saying that if I do not pass reservation then how can I reduce the reserved stock by the 2nd approach or by saying that why SAP does not allow 261 from CO11N for serialized component...

  • Quantity withdrawn field in BAPI_GOODSMVT_CREATE

    When i use BAPI_GOODSMVT_CREATE to post with movement type 261 for transaction MB1A in a custom program with sel screen process order,material,batch no and qty, quantity withdrawn field is not updating.(This field is in process order COR3 Transaction).
    if i do full quantity its working fine,whenever i do partial qty, it should be updated in quantity withdrawn field.
    Any one has input please let me know
    Thanks
    Suresh

    code is '03'.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
               EXPORTING
                 goodsmvt_header         = ls_goodsmvt_header
                 goodsmvt_code           = '03'
    *           TESTRUN                 = ' '
    *           GOODSMVT_REF_EWM        =
               IMPORTING
                 goodsmvt_headret        = ls_goodsmvt_headret
                 materialdocument        = lv_mblnr
                 matdocumentyear         = lv_mjahr
               TABLES
                 goodsmvt_item           = lt_goodsmvt_item
    *           GOODSMVT_SERIALNUMBER   =
                 return                  = lt_return
    *           GOODSMVT_SERV_PART_DATA =
    *           EXTENSIONIN             =

Maybe you are looking for

  • Using Java.io Package in JSP

    Hi all, I want to use java.io package in a JSP and read one htm file. the program is giving me exception that the file say index.htm does not exists. I don't know how to solve this error. If any one can help me then it would be great. I don't want to

  • Hard Drive Backup software - any reccomendations?

    Hey guys, Just looking for some software to backup data really. I've got a few internal HD's and a couple external, I want to choose a few important folders that change all the time, and keep a regular backup of them on another drive. I know there's

  • Is CPU part of logic board in iBook?

    I'm having my logic board replaced on my iBook G3 by apple and I'm hoping the CPU is part of the logic board so I can maybe have it upgraded to a G4. Am I dreaming agian? thanks h

  • SP Exec with Execute as

    Hi, Is it possible to execute the Stored Procedure with another user like "Execute as " option ? Note: Pl not that we can use this option while creating SP, but my doubt only for while executing the SP. Syntax : Exec SPNAME Execute as user='Dhanapal'

  • Java for Playbook Browser and Coding

    I noticed the playbook browser java is not up to date. is there anything blackberry is doing to udate it. I need at least 1.6 to help do my work. s there any war i can write java class with my playbook? Its seems i dont move around with my home compu