Update control error - BAPI_GOODSMVT_CREATE

Hi Folks,
while trying to post a GR using BAPI_GOODSMVT_CREATE, i am getting an error.
E M7 226 Update control of movement type is incorrect (entry 101 X X)
can someone let me know why and whts the solution to post the GR using this bapi.
thanks a ton
Raj

Check this sample code for BAPI.
See if you are passing every informatino accordingly -
Sample Code for BAPI_GOODSMVT_CREATE
Populate header data
Posting date
x_goodsmvt_hdr-pstng_date = <deldate>.
Document date
x_goodsmvt_hdr-doc_date = <doc_date>.
User Name
x_goodsmvt_hdr-pr_uname = <ernam>.
User Name
x_goodsmvt_hdr-ref_doc_no = <PO/Delivery No).
Bill of lading
x_goodsmvt_hdr-bill_of_lading =<BOL>.
Populate item data
Purchase order number
i_goodsmvt_item-po_number = ebeln.
Line item number
i_goodsmvt_item-po_item = ebelp.
Plant
i_goodsmvt_item-plant = werks.
Movement type
i_goodsmvt_item-move_type =movtype.
Movement indicator
i_goodsmvt_item-mvt_ind = mvt_ind.
GR quantity
if p_movtype = c_101.
i_goodsmvt_item-entry_qnt = menge.
else.
i_goodsmvt_item-entry_qnt = menge * -1.
endif.
GR UOM
i_goodsmvt_item-entry_uom = meins.
Storage location
i_goodsmvt_item-stge_loc = lgort.
Production date
i_goodsmvt_item-prod_date = doc_date.
Delivery completion indicator
i_goodsmvt_item-no_more_gr = c_x.
Movement Reason
if p_movtype = c_122.
i_goodsmvt_item-move_reas = c_12.
endif.
endloop.
For each PO create a GR document
if not i_goodsmvt_item[] is initial.
call function 'TRANSACTION_BEGIN'
importing
transaction_id = l_trans_id.
call function 'BAPI_GOODSMVT_CREATE'
exporting
goodsmvt_header = x_goodsmvt_hdr
goodsmvt_code = x_mvt_code
importing
materialdocument = l_mat_doc
matdocumentyear = l_mat_doc_year
tables
goodsmvt_item = i_goodsmvt_item
return = i_bapireturn.
endif.

Similar Messages

  • Movement type 122 Error while GI" Update control of movement type is incorr

    Hai Gurus,
             I am having an errow when doing a GI thru movement type 122. i am getting this error message " Update control of movement type is incorrect (entry 122 X X)" Can any one help me how to fix this.
    I did this transaction using MIGO_GI and selecting Goods issued and other as the options with 122 as movement type.
    warm regards.
    mahesh.

    Hi
    Mov type 122 is return to vendor if the qualtiy of Goods  is Poor / Quality
    Regatds
    AKM

  • Error in GR Update control of movement type is incorrcet (entry 101 _ _ _ B

    PO is created using Non-stock matreial and while doing good receipt of this PO user is getting error "Update control of movement type is incorrcet (entry 101 _ _ _ B). Message No. M7226.
    Plesae help.....

    Hi,
    check following link
    [M7226 Update control of movement type is incorrect (entry 101 _ _ _ B);
    [http://www.sapfans.com/forums/viewtopic.php?f=3&t=297261]
    Regards
    Kailas Ugale

  • 671 - movement type - Error update control

    Hi,
    I have created ew movement type Z71 with reference to 671 movement type for return sto delivery.
    We have removed the movement type category 01 from Z71 mvt type, due to this we are not able to do the PGR for return sto deliveries.
    While doing PRG system showing error: Update control of movement type is incorrect (entry Z71 X X _ L ).
    We have removed that mot.type category for the purpose of updating the RG23D register in Depot, it has been suggested by SAP only. But i don't know the link b/w update control and movement type category.
    Please let me know if these is any config for movement type control related.
    Thanks&Regards
    Lakshmikanth

    Hi All,
    This is a bug in SAP
    SAP has replied with Pilot note. They have given one pilot note to us.
    We are going to implimenting in J1IG program for updating the RG23D register with reference to negative post goods issue(material document which is having 671 movement type).
    The Pilot note number is 1300928. You can find more details in this note.
    We will get back tou you after testing this note.
    Regards
    Lakshmikanth

  • Update control terminated error

    Hi
    When I am doing PGI, system is not updating the posting status. It is still "Not yet started" and when I click on "document flow", system is giving a message as "Update control terminated".
    Kindly let me know how to solve this issue.
    One more request to Mr. LAKSHMIPATI and Mr.Ramanath Raja to give me their mobile number or mail id ,if permissible in the forum.

    Dear PP,
    Instead of trying for nothing, I suggest to consult BASIS-Admin/ ABAPer for earliest resolution.
    You may find, several threads, where such issues are discussed, few transactions were provided, still no silution. check with:
    Re: ABAP run time error
    update terminated
    VK33
    You may get the Transaction: SM13 or SM14; but its hard to analyse the error and work-upon them.
    Let the Job-Expet, do their Job.
    Best Regards,
    Amit

  • Update control of movement type is incorrect

    while planning for a material with mrp type pd and strategy group as 20(make to order) i created a customer requirement against which after running mrp the tran md04 showed purchase req for a particular material which was released by me and converted into purchase order by me.
    but when I wanted to do goods receipt against the po generated it is giving me this error in tranc migo.
    ERROR IS     "update control of movement type is incorrect entry (101 X X e b _ v)
    the performance assist screen shows this
    Update control of movement type is incorrect (entry 101 X X E B _ V)
    Message no. M7226
    Diagnosis
    The system could not find entry 101 X X E B _ V in any of the movement type control tables.
    Procedure
    Cancel current processing.
    Contact your system administrator.
    Action to be taken by the system administrator
    Check in Customizing for Inventory Management under Copy, Change Movement Types whether the entry is contained in the Update control view for the movement type.
    If the entry is missing, proceed as follows:
    For standard movement types, this means that the given process is not supported using the present data combination. Do not create any entries without prior arrangement with your SAP consultant. Otherwise, incorrect postings may result.
    For customer-defined movement types (beginning with 9, X, Y, or Z), this may mean that they have not been fully defined. Delete the movement type and re-create it by copying a standard movement type.

    Hi
    Check the T code OMJJ for the defining the MVt type also check the error is coming for MVT type 101 then check with mvt type 101 in t code OMJJ and check the updation control there.
    also consult your MM consultant for this error
    Regards
    Anupam Sharma

  • Update control of movement type incorrect

    Dear all,
    I have run a complete sales cycle from sales order creation to excise invoice generation. However, I have not done the PGI since in our case it is done after the billing. The materials have been dispatched and excise invoice submitted.
    Now, when I am doing PGI it is throwing an error "Update control of movement type incorrect (entry 601 _ X Q L _ V) ". I analysed and found that I have wrongly filled the Requirement Type in the sales order and corresponding entry is missing in OMJJ.
    1- I tried to add this entry but in vain. There is no 'New entry' or 'Copy as' button and hence i could not add..
    2- So, I tried the other alternative i.e. reversing all the documents and changing the RqTy in order. But that can't be done since excise has been sent.
    Is there any other way by which I can do the PGI or atleast capture the goods movement in the system and also update all the relevant documents?
    Plz guide.
    Thanks
    SAPshed

    To do the PGI / PGR , you have to cancel the Excise Invoice through J1IIN and then the Billing Document.Only after this , you can do the PGR or PGI.
    Best Regards,
    Ankur

  • Update termination error in IW32 because of requisition flag change

    Has anyone worked on IW32 to change the requisition flag of a work order from never to immediate. I tried doing this using BAPI_ALM_ORDER_MAINTAIN. It works fine for work order having operation control key same for every operation. But if this control key changes for any operation, then the update termination error occurs and hence the requisition flag change does not happen.
    Thanks in Advance

    Excise invoice is generated in the back ground on creation of the Invoice
    Have you tried by changing the configuration so as the sytem not to generate excise invoice automatically in the background?  If so, were you able to save the billing document successfully?
    G. Lakshmipathi

  • OMJJ update Control

    I am trying to add the X for the REC in the field in OMJJ for mvmt type 651.  My problem that I am trying to correct is I have a return sales order that is returning free of charge item and I am receiving the error message that 651 X L update control of movement tyep is incorrect.  My problem is that I can not locate where to allow this change in OMJJ as the area to add the X in update Control/WM Movement under REC is greyed out.  When I select the line item and go to the magnifying glass it is all greyed out as well...  Where can I make this change?  I have searched the forum and can not locate the answer.   We are on ECC 6.0...

    Hi Sai
    Thanks for responding....the value updation in also greyed out....
    When I go to Update control/WM Movement types
    I have 651  No Indicator for value; indictor selected for Qta; no S  Mvt is L  Rec is Blank
    I have another line with 651 Val indicator selected Qua indicator selected, no S Mvmt L
    You can not change the Mvtm Ind receipt ind value updating or quantity updating in client 100 it is greyed out...that is my problem
    Where can I change this?

  • Update control of movement type incorrect (entry Z31 X X _ L )

    Hi gurus,
    Business reporting  requirment to used  M T 301,  currently we using MT641 fr plant to plnt (stock in transit) transfer .
    now we have to replace 641.
    i)Kindly advice???
    I have  create Z31 copy  of MT 301 but shown  below error at PGI.
    ii)Update control of movement type incorrect (entry Z31 X X _ L )
        Error Message No E M7 226
    how to remove this error?
    thanks in advance.
    sapsd25

    Hi G. LakshmipathiLaxmipati guru,
    thanks for the prompt response.
    T code VAL01n & VL02n is alreday.
    Is their any MT similar to 301 use for stock transfer with DO & Excise
    Thanks
    SAPSD25

  • Update Vault error message

    Aperture is not letting me update my vaults. I am receiving update vault error messages when trying to back up to Vaults. I have three backup Vaults on external firewire drives, formatted Mac HFS+ (not MS-DOS) and not partitioned. My Aperture library is also on a dedicated external drive. I get the same message for all three vaults, so this seems to be an Aperture problem, not a disk problem. The error messages refer to NEF (raw) image files that do not exist in my Library (or anywhere else, for that matter). Message reads:
    update vault error:
    The following error occured:
    Couldn't create/Volumes/LaCie/ApertureV2.apvault/Library/....
    Any insights would be appreciated.

    James Bouret's problem is fixed -- or maybe not.
    From my blog: +We traced the problem to "something bad" about the folder or its contents that was being reported. By opening the library and the vault with control-click Show Package Contents and navigating down, it was possible to trash the folder. Not only did the vault update complete once that was done, but it worked many, many times faster than before. The bad news is that I think this is due to a bad spot on the disk, indicating a drive that is on its way out. If you have vault problems: back up carefully and consider that you may have a bad disk.+
    A bad spot on the disk may also be the reason that Johnny Cappuccino could fix his problem by modifying the image. That will have rewritten the sidecar files, a process that usually involves creating a new temporary file and then atomically deleting the old file and renaming the new one. So the new file is shiny and good and the bad spot is ready for use by another hapless program.

  • Update Control message while processing VL10*

    When processing VL10A or VL10B in 'Background' a random 'Update Control' message will break on the screen. Pressing F3 will Esc this 'break' and continue with the process. I am unable to determine why this error is breaking on the screen and which orders are not getting deliveries created. Has anyone come across this before? and how did you resolve/fix the error? I am unable to find a OSS Note on this.
    Thank you Janelle

    Does this message has a class and a number (e.g. V2 100)? If so, you could set up a watchpoint in debugger for it and see where it appears...

  • VL10* Update Control message breaks

    When processing VL10A or VL10B in 'Background' a random 'Update Control' message will break on the screen. Pressing F3 will Esc this 'break' and continue with the process.  I am unable to determine why this error is breaking on the screen and which orders are not getting deliveries created.  Has anyone come across this before?  and how did you resolve/fix the error?  I am unable to find a OSS Note on this.
    Thank you Janelle

    Does this message has a class and a number (e.g. V2 100)? If so, you could set up a watchpoint in debugger for it and see where it appears...

  • RMMR1MRS-When run in background cause update failure errors looking

    hi,
          RMMR1MRS report when run in background cause update failure errors .
    There are few  below reason for the error log.
    1.  for the PO invoice already generated -  (its right if already invoice generated. should not happen again)
    2.  In  MIGO,  entire  quantity has been reversed  and also invoice generated with zero value - ( its right , should not happen invoice again )
    3. Particular PO line item deleted -  (its right if the PO line item deleted. ERS settlement not require)
    For the all above reason, the update error occurs.  But the mean time  the program  "RMMR1MRS"  should not through the update error log. 
    Note: The job was not terminated due to this update error and also no harm because of the error log
    can you please help on this update failure why it occurs.

    Have you found a solution already? If so, please, share it with the community and close this thread.

  • I started my update for ios 5.1for iPhone 4s and cancelled it have way through now it says it's downloaded but really it's not the update is still there and when I try to update it it says unable to install update : an error occurred installing iOS 5.1  ?

    I started my update for ios 5.1for iPhone 4s and cancelled it have way through now it says it's downloaded but really it's not the update is still there and when I try to update it it says unable to install update : an error occurred installing iOS 5.1  ?

    See Here... Unable to Update or Restore...
    http://support.apple.com/kb/HT1808

Maybe you are looking for