BAPI_GOODSMVT_CREATE Problem

Hi,
I am testing the BAPI_GOODSMVT_CREATE Function Module.
I have provided the values in the item table GOODSMVTITEM, the field MOVE_TYPE is '101'.
I am getting an error like this
Update control of movement type is incorrect(entry 101 X X)
Can anyone suggest what would be the problem.
Vijayanand.

Hi,
check this link.... u will get all help from this code..
http://sap4.com/wiki/index.php?title=BAPI_GOODSMVT_CREATE&printable=yes
<b>Reward points</b>
Regards

Similar Messages

  • BAPI_GOODSMVT_CREATE Problem with movement 161

    Hi Gurus,
    I have a problem with BAPI_GOODSMVT_CREATE and movement type 161. We used to put 161 as the movement type when referencing a PO with "Returns Item" marked. Movement was properly posted. But now I am facing the following issue, when trying to post 161 I have the message "No goods receipt possible for purchase order 4200000084 ...", If I use movement type 101 system will assume 161 and everything is OK, but I don't understand why I could use 161 before and now I can´t, this is happening with all my POs with "Returns Item" marked.
    I understand that I can just use 101, the problem is that this will require a change in a non-SAP system... that is why we prefer still using 161.
    Any help will be highly appreciatted.
    Thanks!

    Hi,
    Check this link;
    Re: BAPI_GOODSMVT_CREATE for movement type 161
    Regards

  • Call func 'BAPI_GOODSMVT_CREATE' problem

    hi
    ı have a trouble with 'BAPI_GOODSMVT_CREATE'
    in this code its giving error like this "Error in function
    Update control of movement type is incorrect (entry 301 X X _ Q)"
    ı give manually in migo it says ok
    FORM bapi.
    if sy-subrc <> 0.
      message id sy-msgid type sy-msgty number sy-msgno
              with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      exit.
    endif.
    gmhead-pr_uname = sy-uname.
    gmcode-gm_code = '04'.   "01 - MB01 - Goods Receipts for Purchase Order
    loop at gt_out.
      itab-move_type  = '301'.
      itab-mvt_ind    = 'Q'.
      itab-plant      = gt_out-werks.
      itab-material   = gt_out-maktx .
      itab-entry_qnt  = gt_out-erfmg.
      itab-move_stloc = gt_out-tlgort.
      itab-stge_loc   = gt_out-flgort.
      itab-BATCH      = gt_out-charg.
      itab-WBS_ELEM   = gt_out-wbs.
      itab-VAL_TYPE   = gt_out-charg.
      gmhead-pstng_date = gt_out-postd.
    gmhead-doc_date = gt_out-doc_d.
    *  itab-po_number  = pcitab-pur_doc.
    *  itab-po_item    = pcitab-po_item.
    *  concatenate pcitab-del_no pcitab-del_item into itab-item_text.
    *  itab-move_reas  = pcitab-scrap_reason.
      append itab.
    endloop.
    call function 'BAPI_GOODSMVT_CREATE'
      exporting
        goodsmvt_header             = gmhead
        goodsmvt_code               = gmcode
    *   TESTRUN                     = ' '
    IMPORTING
        goodsmvt_headret            = mthead
    *   MATERIALDOCUMENT            =
    *   MATDOCUMENTYEAR             =
      tables
        goodsmvt_item               = itab
    *   GOODSMVT_SERIALNUMBER       =
        return                      = errmsg
    clear errflag.
    loop at errmsg.
      if errmsg-type eq 'E'.
        write:/'Error in function', errmsg-message.
        errflag = 'X'.
      else.
        write:/ errmsg-message.
      endif.
    endloop.
    if errflag is initial.
      commit work and wait.
      if sy-subrc ne 0.
        write:/ 'Error in updating'.
        exit.
      else.
        write:/ mthead-mat_doc, mthead-doc_year.
    *    perform upd_sta.
      endif.
    endif.
    ENDFORM.

    problem resolved
    change wbs element with code is below
    all problems resolved
    itab-val_wbs_elem   = '00009001'.
    *numan p_wbs düzeltme
       itab-wbs_elem       = '00009001'.
       itab-spec_mvmt      = 'R'.
    *numanitab-val_wbs_elem -->itab-wbs_elem.
    *  itab-po_number  = pcitab-pur_doc.
    *  itab-po_item    = pcitab-po_item.
    *  concatenate pcitab-del_no pcitab-del_item into itab-item_text.
    *  itab-move_reas  = pcitab-scrap_reason.
    perform conversion_exit_abpsp_output
                       changing  :
                                   itab-val_wbs_elem.
        perform conversion_exit_abpsp_output
                       changing  :
                                  itab-wbs_elem.
    form conversion_exit_abpsp_output      using p_value.
      call function 'CONVERSION_EXIT_ABPSP_OUTPUT'
        exporting
          input  = p_value
        importing
          output = p_value.
    endform.                    " CONVERSION_EXIT

  • 'BAPI_GOODSMVT_CREATE' - problem in stock update

    Hi,
    I am using 'BAPI_GOODSMVT_CREATE' for 561 movement type.
    it is getting posted properly in MB1C.
    But i am not able to see it in MMBE - stocl overview.
    i am using 'BAPI_TRANSACTION_COMMIT' also.
    Can anyone tell me how to solve this.
    Vikki.

    Hi,
    Refer this
    http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm
    http://www.erpgenie.com/forum/viewtopic.php?f=1&t=10510
    http://www.sapfans.com/forums/viewtopic.php?p=925476&sid=415fd2798415f993930d39cf9b3a81fb

  • GOODS ISSUE BAPI_GOODSMVT_CREATE problem

    Hii Alll,
    BAPI_GOODSMVT_CREATE is not posting my document but its creating material document
    and doc year.
    n i hv tested in se37 same  prob .
    its not posting production  order

    hi
    good
    go through this below code and use the functionmodule accordingly,
    The following is an abap program making used of the BAPI function BAPI_GOODSMVT_CREATE to do Goods Receipts for Purchase Order after importing the data from an external system.
    BAPI TO Upload Inventory Data
    GMCODE Table T158G - 01 - MB01 - Goods Receipts for Purchase Order
                         02 - MB31 - Goods Receipts for Prod Order
                         03 - MB1A - Goods Issue
                         04 - MB1B - Transfer Posting
                         05 - MB1C - Enter Other Goods Receipt
                         06 - MB11
    Domain: KZBEW - Movement Indicator
         Goods movement w/o reference
    B - Goods movement for purchase order
    F - Goods movement for production order
    L - Goods movement for delivery note
    K - Goods movement for kanban requirement (WM - internal only)
    O - Subsequent adjustment of "material-provided" consumption
    W - Subsequent adjustment of proportion/product unit material
    report zbapi_goodsmovement.
    parameters: p-file like rlgrap-filename default
                                     'c:\sapdata\TEST.txt'.
    parameters: e-file like rlgrap-filename default
                                     'c:\sapdata\gdsmvterror.txt'.
    parameters: xpost like sy-datum default sy-datum.
    data: begin of gmhead.
            include structure bapi2017_gm_head_01.
    data: end of gmhead.
    data: begin of gmcode.
            include structure bapi2017_gm_code.
    data: end of gmcode.
    data: begin of mthead.
            include structure bapi2017_gm_head_ret.
    data: end of mthead.
    data: begin of itab occurs 100.
            include structure bapi2017_gm_item_create.
    data: end of itab.
    data: begin of errmsg occurs 10.
            include structure bapiret2.
    data: end of errmsg.
    data: wmenge like iseg-menge,
          errflag.
    data: begin of pcitab occurs 100,
            ext_doc(10),           "External Document Number
            mvt_type(3),           "Movement Type
            doc_date(8),           "Document Date
            post_date(8),          "Posting Date
            plant(4),              "Plant
            material(18),          "Material Number
            qty(13),               "Quantity
            recv_loc(4),           "Receiving Location
            issue_loc(4),          "Issuing Location
            pur_doc(10),           "Purchase Document No
            po_item(3),            "Purchase Document Item No
            del_no(10),            "Delivery Purchase Order Number
            del_item(3),           "Delivery Item
            prod_doc(10),          "Production Document No
            scrap_reason(10),      "Scrap Reason
            upd_sta(1),            "Update Status
          end of pcitab.
    call function 'WS_UPLOAD'
      exporting
        filename                      = p-file
        filetype                      = 'DAT'
    IMPORTING
      FILELENGTH                    =
      tables
        data_tab                      = pcitab
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
      OTHERS                        = 6
    if sy-subrc <> 0.
      message id sy-msgid type sy-msgty number sy-msgno
              with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      exit.
    endif.
    gmhead-pstng_date = sy-datum.
    gmhead-doc_date = sy-datum.
    gmhead-pr_uname = sy-uname.
    gmcode-gm_code = '01'.   "01 - MB01 - Goods Receipts for Purchase Order
    loop at pcitab.
      itab-move_type  = pcitab-mvt_type.
      itab-mvt_ind    = 'B'.
      itab-plant      = pcitab-plant.
      itab-material   = pcitab-material.
      itab-entry_qnt  = pcitab-qty.
      itab-move_stloc = pcitab-recv_loc.
      itab-stge_loc   = pcitab-issue_loc.
      itab-po_number  = pcitab-pur_doc.
      itab-po_item    = pcitab-po_item.
      concatenate pcitab-del_no pcitab-del_item into itab-item_text.
      itab-move_reas  = pcitab-scrap_reason.
      append itab.
    endloop.
    loop at itab.
      write:/ itab-material, itab-plant, itab-stge_loc,
              itab-move_type, itab-entry_qnt, itab-entry_uom,
              itab-entry_uom_iso, itab-po_number, itab-po_item,
                                                  pcitab-ext_doc.
    endloop.
    call function 'BAPI_GOODSMVT_CREATE'
      exporting
        goodsmvt_header             = gmhead
        goodsmvt_code               = gmcode
      TESTRUN                     = ' '
    IMPORTING
        goodsmvt_headret            = mthead
      MATERIALDOCUMENT            =
      MATDOCUMENTYEAR             =
      tables
        goodsmvt_item               = itab
      GOODSMVT_SERIALNUMBER       =
        return                      = errmsg
    clear errflag.
    loop at errmsg.
      if errmsg-type eq 'E'.
        write:/'Error in function', errmsg-message.
        errflag = 'X'.
      else.
        write:/ errmsg-message.
      endif.
    endloop.
    if errflag is initial.
      commit work and wait.
      if sy-subrc ne 0.
        write:/ 'Error in updating'.
        exit.
      else.
        write:/ mthead-mat_doc, mthead-doc_year.
        perform upd_sta.
      endif.
    endif.
          FORM UPD_STA                                                  *
    form upd_sta.
      loop at pcitab.
        pcitab-upd_sta = 'X'.
        modify pcitab.
      endloop.
      call function 'WS_DOWNLOAD'
        exporting
          filename                      = p-file
          filetype                      = 'DAT'
    IMPORTING
      FILELENGTH                    =
        tables
          data_tab                      = pcitab
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
      OTHERS                        = 6
    endform.
    *--- End of Program
    reward point if helpful.
    thanks
    mrutyun^

  • Hi all truble in goods movement

    hi all
    i want to create a new goodsmovement using bapi FM.  for that i use  "bapi_goodsmvt_create ".
    problem is thats when i am creating the goods movement by using txn mb11 it works and when the same data i pass to the fm in se37 it generates a problem that "Goods movement not possible with mvmt type 201". 
    will u plz help me.
    i have using this data:
    movement type 201
    plant 6101
    storage location 0001
    material 100-100
    quantity  1
    cost center 0000001000

    Hi,
    1) Don't forget to send GOODSMVT_CODE parameter
         GM_Code 01: Goods receipt for purchase order                       
         GM_Code 02: Goods receipt for production order                     
         <b>GM_Code 03: Goods issue </b>                                           
         GM_Code 04: Transfer posting                                       
         GM_Code 05: Other goods receipts                                   
         GM_Code 06: Reversal of goods movements                            
         GM_Code 07: Subsequent adjustment to a subcontract order           
    Regards.
    David

  • Problem in BAPI_GOODSMVT_CREATE

    Hi,
      I am using BAPI_GOODSMVT_CREATE  for creating GR against production order ,
    GOODSMVT_CODE  : 02
    MVT_IND  : F
    and other required data i have pass properly  like orde rnumber, material, quantity, UOM, serial number  also test RUN is space,  but after execute of RFC system issue the document number, but actual document not posted in the system, when i check that document number it is not present in the system means it is just doing as test run  but test rub field is blank.
    regards,
    zafar

    Hi,
      Problem solve, after the BAPI_GOODSMVT_CREATE  the other BAPI,   BAPI_TRANSACTION_COMMIT is required to be call i was testing in se37 with  BAPI_GOODSMVT_CREATE  only after create new bapi by adding of commit bapi  problem solve.
    regards,
    zafar

  • Problem with BAPI_GOODSMVT_CREATE and MAA

    Hi experts,
       I'm trying to GR a PO with MAA (Multiple Account Assingment) by using BAPI_GOODSMVT_CREATE.
       My problem is that, as is a return delivery,  BAPI is checking wether the reference doc, position and year have been populated for the MAA related positions.
       This is done in method CL_MMIM_MAA_2 --> MAA_ITEM_DUPLICATOR_BAPI. As ain't populating those fields, BAPI returns error message M7 465 and not EM document is created.
       But, when doing the same by using MIGO transaction, document is created as there is not validation for reference document, because MIGO is using method CL_MMIM_MAA_2 --> MAA_ITEM_DUPLICATOR_MIGO.
       I've ssearched fot SAP NOTES (1654305) and SCN posts, with no results.
      Can someone explain how to do a return delivery with MAA by using BAPI_GOODSMVT_CREATE?. Is there any way to avoid the validation when using the BAPI?.
    Thank you so much in advance.
    Regards,
    Carlos.

    Hi,
       I think the reason and the solution for the error M7 465 is well explained in the note:  1654305 - MAA2 error M7 599 during return delivery GR with BAPI
       If the note is applicable for you and still the problem is not solved with the note, you may cross check the changes mentioned in the note and you may raise an OSS ticket to SAP.
    Regards,
    AKPT

  • Problem in executing BAPI_GOODSMVT_CREATE

    Hello Experts,
    I have created STO. From STO  I have created an Inbound Delivery.Now I have to do PGR by using BAPI_GOODSMVT_CREATE.
    I am passing
      GOODSMVT_CODE  01
    GOODSMVT_ITEM
      Material
      Plant
      Storage Location
      Batch
      Move _Type - 109  (As mentioned by Functional)
      Entry_QNT
      Entry_UOM
      PO_Number
      PO_Item
      No_More_GR
      MVT_IND - B
      DELIV_NUMB_TO_SEARCH
      DELIV_ITEM_TO_SEARCH
    But error message getting populated in IT_RETURN
    E M7                   036 No goods receipt possible for purchase order 5700000855 00010
    Can anyone solve this problem??
    One more query is this the correct BAPI to do PGR via tcode VL32N??

    Hi please check this sample code. it creates goods movement using this BAPIits just that its a upload program. you can modify by your requirement.
    TYPE-POOLS: truxs.
    PARAMETERS: p_file TYPE  rlgrap-filename.
    TYPES: BEGIN OF t_datatab,
    col1(30)    TYPE c,
    col2(30)    TYPE c,
    col3(30)    TYPE c,
    col4(30)    TYPE c,
    col5(30)    TYPE c,
    col6(30)    TYPE c,
    col7(30)    TYPE c,
    col8(30)    TYPE c,
    col9(30)    TYPE c,
    col10(30)    TYPE c,
    col11(30)    TYPE c,
    END OF t_datatab.
    DATA: it_datatab type standard table of t_datatab,
    wa_datatab type t_datatab.
    DATA: it_raw TYPE truxs_t_text_data.
    * At selection screen
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
    field_name = 'P_FILE'
    IMPORTING
    file_name  = p_file.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
    *     I_FIELD_SEPERATOR        =
    i_line_header            =  'X'
    i_tab_raw_data           =  it_raw       " WORK TABLE
    i_filename               =  p_file
    TABLES
    i_tab_converted_data     = it_datatab[]    "ACTUAL DATA
    EXCEPTIONS
    conversion_failed        = 1
    OTHERS                   = 2.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    *** Create batch upload using BAPI_GOODSMVT_CREATE
    PERFORM CREATE_BATCH_UPLOAD.
    *&      Form  CREATE_BATCH_UPLOAD
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM CREATE_BATCH_UPLOAD .
    DATA : GT_GOODSMVT_HEADER  LIKE BAPI2017_GM_HEAD_01.
    DATA : GOODSMVT_ITEM  TYPE TABLE OF BAPI2017_GM_ITEM_CREATE,
    WA_GOODSMVT_ITEM TYPE BAPI2017_GM_ITEM_CREATE,
    *       L_RETURN LIKE BAPIRET2,
    RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    TYPES : BEGIN OF ITAB,
    MATNR TYPE MATNR,
    WERKS TYPE WERKS_D,
    CHARG TYPE CHARG_D,
    END OF ITAB.
    DATA : IT_ITAB TYPE STANDARD TABLE OF ITAB,
    WA_ITAB TYPE ITAB.
    DATA : MATERIALDOCUMENT TYPE BAPI2017_GM_HEAD_RET-MAT_DOC.
    *       MATDOCUMENTYEAR TYPE  BAPI2017_GM_HEAD_RET-DOC_YEAR.
    *DATA : GT_GOODSMVT_HEARRET LIKE BAPI2017_GM_HEAD_RET.
    DATA : V_LINES TYPE CHAR4,
    GOODSMVT_CODE TYPE BAPI2017_GM_CODE VALUE '04'.
    GT_GOODSMVT_HEADER-PSTNG_DATE = SY-DATUM.
    GT_GOODSMVT_HEADER-DOC_DATE   = SY-DATUM.
    LOOP AT IT_DATATAB INTO WA_DATATAB.
    WA_GOODSMVT_ITEM-MATERIAL = wa_datatab-col7.
    WA_GOODSMVT_ITEM-MOVE_BATCH = wa_datatab-col10.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    INPUT         = WA_GOODSMVT_ITEM-MOVE_BATCH
    IMPORTING
    OUTPUT        = WA_GOODSMVT_ITEM-MOVE_BATCH
    WA_GOODSMVT_ITEM-PLANT = wa_datatab-col4.
    WA_GOODSMVT_ITEM-STGE_LOC = wa_datatab-col5.
    WA_GOODSMVT_ITEM-BATCH = wa_datatab-col9.
    WA_GOODSMVT_ITEM-MOVE_TYPE = wa_datatab-col3.
    WA_GOODSMVT_ITEM-ENTRY_QNT = wa_datatab-col8.
    WA_GOODSMVT_ITEM-MOVE_STLOC = wa_datatab-col6.
    WA_GOODSMVT_ITEM-ITEM_TEXT = wa_datatab-col11.
    APPEND WA_GOODSMVT_ITEM TO GOODSMVT_ITEM.
    CLEAR WA_GOODSMVT_ITEM.
    ENDLOOP.
    select MATNR WERKS CHARG from MCHB into table it_itab for all entries in GOODSMVT_ITEM
    where matnr = GOODSMVT_ITEM-MATERIAL and
    charg = GOODSMVT_ITEM-MOVE_BATCH.          " GOODSMVT_ITEM-MOVE_BATCH.
    DESCRIBE TABLE GOODSMVT_ITEM LINES V_LINES.
    IF IT_ITAB[] IS  INITIAL.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
    EXPORTING
    GOODSMVT_HEADER               = GT_GOODSMVT_HEADER
    GOODSMVT_CODE                 = GOODSMVT_CODE
    *   TESTRUN                       = ' '
    *   GOODSMVT_REF_EWM              =
    IMPORTING
    *    GOODSMVT_HEADRET              = GT_GOODSMVT_HEARRET
    MATERIALDOCUMENT              = MATERIALDOCUMENT
    *    MATDOCUMENTYEAR               = MATDOCUMENTYEAR
    TABLES
    GOODSMVT_ITEM                 = GOODSMVT_ITEM
    *   GOODSMVT_SERIALNUMBER         =
    RETURN                        = RETURN
    *   GOODSMVT_SERV_PART_DATA       =
    *   EXTENSIONIN                   =
    IF RETURN[] IS INITIAL.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT          = 'X'
    *  IMPORTING
    *    RETURN        = l_return
    WRITE : TEXT-001 , MATERIALDOCUMENT.
    WRITE : TEXT-005 , V_LINES.
    ELSE.
    WRITE: TEXT-002 ,
    / RETURN-MESSAGE.
    ENDIF.
    ELSE.
    WRITE : TEXT-003.
    ULINE.
    Loop at it_itab into wa_itab.
    WRITE : TEXT-004 , wa_itab-matnr , wa_itab-charg.
    ENDLOOP.
    ENDIF.
    ENDFORM.                    " CREATE_BATCH_UPLOAD

  • Problem using BAPI--BAPI_GOODSMVT_CREATE

    Hi Gurus,
    I am trying to use the BAPI--BAPI_GOODSMVT_CREATE for performing goods reciepts but it is giving the Error "No stock posting possible for this material", When i try to use the MIGO for the same the posting is done. Can any one please suggest me what is the problem with the BAPI and how to correct it?
    Thanks in advance
    Anoop

    Hi Jurgen,
    I have done that still it is giving the same error, any other suggestions??
    Regards
    Anoop

  • BAPI_GOODSMVT_CREATE has problem

    &#32463;&#36807;&#22810;&#27425;&#27979;&#35797;&#22788;&#29702;&#65292;&#21457;&#29616;&#38382;&#39064;&#21457;&#29983;&#20043;&#31243;&#24207;&#26159;&#22788;&#29702;&#24211;&#23384;&#31227;&#36716;
    &#20043;BAPI&#21151;&#33021;&#31243;&#24207;BAPI_GOODSMVT_CREATE&#65292;&#20854;&#20013;&#22788;&#29702;&#28165;&#38500;
    &#25968;&#25454;&#30340;&#21151;&#33021;&#31243;&#24207;&#26159;&#20197;&#29289;&#26009;&#24322;&#21160;&#20923;&#32467;&#20043;&#27880;&#35760;&#12302;TCURM-MBEQU&#12303;
    &#26469;&#21028;&#23450;&#26159;&#21542;&#28165;&#38500;&#25968;&#25454;&#65292;&#32780;&#25105;&#20204;&#20351;&#29992;&#29289;&#26009;&#24310;&#36831;&#20923;&#32467;&#27880;&#35760;&#20026;’2’&#65292;
    &#22240;&#27492;&#24433;&#21709;&#28165;&#38500;&#27880;&#35760;&#12302;KZRFB&#12303;&#33509;&#36830;&#32493;&#25191;&#34892;&#21017;&#19981;&#20250;&#28165;&#38500;
    INTERNAL  TABLE IMCHB&#12289;IMCHA&#12289;IMCH1&#31561;&#65292;&#20197;&#33268;&#33509;&#31243;&#24207;
    &#26410;&#31163;&#24320;&#37325;&#22797;&#25191;&#34892;&#30456;&#21516;&#26009;&#21495;&#21450;&#25209;&#27425;&#31227;&#36716;&#36807;&#24080;&#65292;&#20013;&#38388;&#21448;&#21152;&#19978;&#25191;&#34892;
    MMPV&#20316;&#29289;&#26009;&#21306;&#38388;&#21464;&#21160;&#65292;&#23601;&#20250;&#36896;&#25104;&#21382;&#21490;&#36164;&#26009;MCHBH&#21450;MARDH
    &#22240;IMCHB&#31561;&#26410;&#28165;&#38500;&#20043;&#25968;&#25454;&#24102;&#20837;&#22788;&#29702;&#36896;&#25104;&#24322;&#24120;&#12290;(&#35831;&#21442;&#38405;&#38468;&#20214;)
    &#32463;&#26597;&#35810;&#30456;&#20851;&#36164;&#28304;&#21457;&#29616;&#27492;&#29289;&#26009;&#24322;&#21160;&#20923;&#32467;&#20043;&#27880;&#35760;&#12302;TCURM-MBEQU&#12303;
    &#26159;&#30001;T-CODE&#12302;OMJI&#12303;&#22788;&#29702;&#30340;&#65292;&#22312;&#27979;&#35797;&#29615;&#22659;&#23558;&#20854;&#25913;&#20026;&#19987;&#29992;&#20923;&#32467;&#65292;
    &#12302;TCURM-MBEQU&#12303;&#20026;&#31354;&#30333;&#65292;&#21017;&#28165;&#38500;&#27880;&#35760;&#12302;KZRFB&#12303;=’X’&#65292;
    &#32463;&#36807;&#27979;&#35797;&#38382;&#39064;&#19981;&#20877;&#21457;&#29983;&#12290;(&#35831;&#21442;&#38405;&#38468;&#20214;)
    &#19987;&#29992;&#20923;&#32467;&#19982;&#24310;&#36831;&#19987;&#29992;&#20923;&#32467;&#34429;&#28982;&#26377;&#35828;&#26126;&#20294;&#23454;&#21153;&#19978;&#26377;&#20309;&#24433;&#21709;?&#65292;
    &#21487;&#33021;&#39035;&#30740;&#31350;&#19968;&#19979;&#65292;&#26159;&#21542;&#33021;&#35831;SAP&#25552;&#20379;&#35299;&#20915;&#26041;&#26696;&#12290;

    Hi  Chuang,
    If you could please post it in English, Then we would be able to help you
    (i tried transalting but could not get your problem)
    Thanks & Regards
    Kishore

  • BAPI_GOODSMVT_CREATE for 305 got problem

    Hi all,
      We have a program, first to call BAPI_GOODSMVT_CREATE movement type=303, then execute BAPI_TRANSACTION_COMMIT. It's OK, but next, we call BAPI_GOODSMVT_CREATE using movement 305, the function return error message as following:PL Stock in transfer exceeded by 1 EAC : W78E58B-40 A23P, but open new session call mb1b is work. Don't know why 303 and 305 can't work together? Did anyone know how to solve this problem? Thanks!

    Hi Kate
    The problem you faced to has a simple solution. Before calling every BAPI which causes asynchronous updates insert 'SET UPDATE TASK LOCAL' statement. It turns on local update mode upto next COMMIT statement. That is, all the updates will take place synchronously in the same task and after next COMMIT .
    SET UPDATE TASK LOCAL.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
    COMMIT WORK.
    Try this & let me know.
    Regards,
    Pushkar

  • Problem with BAPI_GOODSMVT_CREATE to transfer stock

    Hi all,
    i met a problem when i use BAPI_GOODSMVT_CREATE to transfer stock from one stock to another stock (one step).
    parameters:
    Goodsmvt_code = '04'  " MB1B
    Material,Plant,Stge_loc,Batch,Move_type,move_plant,Move_stloc,Move_batch
    Matdoc_item,Serialno
    then execute the bapi. i get the successful result.
    but when i check the stock, nothing happened.
    i also check the table SER03. the material documents didn't generate.
    i use MB1B to do it directly. the material is transfered and the material documents also generated.
    can anyone tell me what's wrong and what should i do? thank you very much.

    Dear Dave,
    Actually the Bapi that you user is a Test Function , so it will not posted,just do simulation, you need to copy the FM to program then commit it, then it will post the document.
    Regards,
    w1n

  • Problem for 309 through BAPI_GOODSMVT_CREATE

    Hi all,
    I am using BAPI_GOODSMVT_CREATE for material to material transfer activity (309 - movement).
    The problem for me is for certain entries my source and destination sale order should be different, but evenif i provide different sales order in my final work area, the system is considering only source sale order and it is putting the same in destination sale order evenif we have provided destination sale order in our work area.
    may be it is standard functionality or since MB1B doesnt allow sale order change while posting a document.But the same thing can be done through MIGO.
    Can anybody suggest me the function module which allows this activity?
    Regards,
    Sunny

    I checked and found that, actual problem is not with this function module.
    Thanks,
    srinivas.

  • Problem with BAPI_GOODSMVT_CREATE not updating Reservation

    Hi,
    When i do a manual MB1A 'Goods issue' with reference to Work Order it is posting the goods issue and updating the RESB ,but when i do the same through the bapi code 03 Table i was not able to post the goods issue at all. am i missing a input field in the bapi .Plz help me out.
    My code.
    gf_goodsmvt_code-gm_code       = '03'. "GI
      gf_goodsmvt_header-pstng_date  = sy-datum.
      gf_goodsmvt_header-doc_date    = sy-datum.
      LOOP AT it_details INTO gf_details .
        MOVE :gf_details-matnr TO gf_goods-material,
              gf_details-werks TO gf_goods-plant,
              rm07m-lgort      TO gf_goods-stge_loc,
              gf_details-charg TO gf_goods-batch,
              rm07m-bwart      TO gf_goods-move_type.
          MOVE gf_details-issue_qty TO gf_goods-entry_qnt .
          MOVE gf_details-meins TO gf_goods-entry_uom.
       gf_goods-mvt_ind = 'F'.
        gf_goods-reserv_no = gf_details-rsnum.
        gf_goods-res_item = gf_details-posnr.
        gf_goods-res_type = gf_details-rsart.
        gf_goods-withdrawn = 'X'.
       gf_goods-orderid = rm07m-aufnr.
       gf_goods-order_itno = 1.
        APPEND gf_goods TO it_goodsmvt_item.
        CLEAR gf_goods.
      ENDLOOP.
      IF NOT it_goodsmvt_item[] IS INITIAL.
        CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
          EXPORTING
            goodsmvt_header             = gf_goodsmvt_header
            goodsmvt_code               = gf_goodsmvt_code
      TESTRUN                     = ' '
         IMPORTING
      GOODSMVT_HEADRET            =
           materialdocument            = g_mat_doc
      MATDOCUMENTYEAR             =
          TABLES
            goodsmvt_item               = it_goodsmvt_item
      GOODSMVT_SERIALNUMBER       = 'X'
            return                      = it_return.

    check below Threads :
    Issue related to EXIT statement
    and see the sample program :
    Structures for BAPI
    data: gdsmt_header   like bapi2017_gm_head_01.
    data: gdsmt_code like bapi2017_gm_code.
    data: gdsmt_headret like bapi2017_gm_head_ret.
    data: gdsmt_item like bapi2017_gm_item_create occurs 1 with header line.
    data: return like bapiret2 occurs 0.
    data: retmatdoc like bapi2017_gm_head_ret-mat_doc.
    Setup BAPI header data.
      gdsmt_header-pstng_date = sy-datum.
      gdsmt_header-doc_date = sy-datum.
      gdsmt_code-gm_code = '06'.                                " MB11
    Write 262 movement to table.
      clear gdsmt_item.
      move '262'         to gdsmt_item-move_type.
      move i_resb-matnr  to gdsmt_item-material.
      move p_bdmng      to gdsmt_item-entry_qnt.
      move i_resb-meins to gdsmt_item-entry_uom.
      move i_resb-werks to gdsmt_item-plant.
      move i_resb-lgort to gdsmt_item-stge_loc.
      move i_afko-aufnr to gdsmt_item-orderid.
      append gdsmt_item.
    Determine cost center
        move '0000041430' to gdsmt_item-costcenter.
      append gdsmt_item.
    Call goods movement BAPI
      call function 'BAPI_GOODSMVT_CREATE'
           exporting
                goodsmvt_header  = gdsmt_header
                goodsmvt_code    = gdsmt_code
           importing
                goodsmvt_headret = gdsmt_headret
                materialdocument = retmatdoc
           tables
                goodsmvt_item    = gdsmt_item
                return           = return.
    Reward Points if it is helpful
    Thanks
    Seshu

Maybe you are looking for

  • How do I edit a converted pdf into word document?

    i just converted a pdf to word and would like to edit it. How?

  • Resizing upgraded hard drive problem

    I purchased a T61p with a 160GB drive.  I used another computer with Acronis to copy my image to a larger 320GB drive.  It would not boot.  I read the information from the forum, used Pagagon to image the drive sector by sector with the new drive ins

  • DEP (virus) problem

    When I close iTunes, my Windows Vista gets really busy for a couple minutes.  Then I get "Data Execution Prevention shut down iTunes".  So, why is the computer having to shut program down after I click on close?  NOTE:  I just downloaded the app yest

  • Specific warning messages per compensation plan

    Hello, We ahve recently installed EHP5. We are now re-implementing Enterprise Compensation Management (ECM) with the new WebDynpro ABAP MSS iViews. The warning messages are displayed on the top of the compensation planing iViews. Even our own message

  • I need to know how to get a picture out of the iphone email

    i guess im a retard but i cant figure it out and i need to get this pic so i need help how do i get it off my iphone email thing