Modify quantity of an item in material document creation!

Hi all,
I want to change the quantity of an item in a material document, before the commit on the Database.
I was thninking in the following BAdi:
MBDOCUMENT_BADI_ 
MBMIGO_BADI_
However, I believe none of these can do what I whant...do You have any hint that could help me?
Thanks in advance
JEC

Hi,
Try this:
BAdI Definition    MB_BAPI_GOODSMVT_CREATE
Description        Enhancement BAPI_GOODSMVT_CREATE
Interface          IF_EX_MB_BAPI_GOODSMVT_CREATE
Regards,
MdZ

Similar Messages

  • User Exits / BADIs triggered during the Material document creation

    Hi Experts,
    Can anybody tell me the User Exits / BADIs /Possibilities that can be triggered during the Material Document Creation which can be used to update the Equipment Master User Statuses.
    Thanks,
    Sangeeta.

    Hey Sangeeta,
      Try these User Exit's
    MGA00001  Material Master (Industry): Checks and Enhancements
    MGA00002  Material Master (Industry): Number Assignment
    MGA00003  Material Master (Industry and Retail): Number Display
    Using Enhancement MGA00001 (Function Exit : EXIT_SAPLMGMU_001 ) you can validate & Change your Material Document Number.
    Badi's
    BADI_EAN_SYSTEMATIC
    BADI_GTIN_VARIANT
    BADI_MAT_F_SPEC_SEL
    BADI_MATERIAL_CHECK
    BADI_MATERIAL_OD
    BADI_MATERIAL_OD
    BADI_MATERIAL_REF
    BADI_MATNR_CHECK_PVS
    BADI_MM_MATNR
    BADI_MM_MATNR
    CDT_CHECK_MATERIAL
    MG_MASS_NEWSEG
    MG_MASS_NEWSEG
    WRF_DISCONT_FACT_E
    Note: This is for transaction code MM01, MM02 & MM03.
    Regards,
    Saravanan M

  • Excise duty for some line item of material document is not posted

    Dear CIN Exerts,
    In my Scenario user is Posting Excise invoice for every GR (105) by J1IEX to generate Excise invoice.
    In some Past cases, if there are more then one line item in a GR then Excise value for some material is not showing (May be that time user not Did J1ID (Excise rate maintenance ).
    Now the problem is that we wants to post excise Duty for those material WRT  material document for whom it was not posted.
    Please let me know that how can we do so (excise posting against Material document) so that it get reflected (for those line items for which Excise deuty is not posted)   in MIGO > Document Display> Excise items tab .
    Regards,
    Ashutosh

    Excise posting is not recommended by sap for movements 103 or 105.
    Refer or search for SAP notes with subject CIN Limited functionalities.

  • How to get the number of Item in Material Document?

    Hi all.
    I'm using the BAPI_GOODSMVT_CREATE, and want to get the Item number in Material Document of every entry in the internal table. How can I do that?
    Thanks in advance.

    Hi YiNing
    You can use this code after calling BAPI.
          SELECT SINGLE mblnr
           INTO CORRESPONDING FIELDS OF wa_mkpf
           FROM mkpf
           WHERE mblnr = p_mblnr.
          IF sy-subrc EQ 0.
            EXIT.
          ELSE.
            CALL FUNCTION 'RZL_SLEEP'
              EXPORTING
                seconds        = 2
              EXCEPTIONS
                argument_error = 1
                OTHERS         = 2.
          ENDIF.
    *Check material document number is in table MKPF
      CHECK wa_mkpf-mblnr IS NOT INITIAL.
      REFRESH : i_mseg[],i_ser03[],i_objk[]..
      SELECT matnr charg vfdat erfmg erfme mblnr zeile
             INTO CORRESPONDING FIELDS OF TABLE i_mseg
             FROM mseg
             WHERE mblnr = wa_mkpf-mblnr.
    Here you will get  the item in material number (ZEILE).
    Regards,
    Mukesh Kumar

  • The question about max line item in material document

    Dear  sir:
    I want to excute CO27 for an FP . It will create material documents. The max line item is 100 in each material document. But I want to record 400 lines in a material document.  Is it possbile to change the number of max line in material document?   How could I do to change that ?   Thanks !!

    I know about 333 in case of physical inventory because the finacial document has a technical limitation of 3 digits for Fi document item number, which means the FI document cannot take more than 999 lines.
    In case of physical inventory a material document item can create up to 3 FI item lines. So the limit for physical inventory became 333.
    I dont know from where you have the 100 as limitation, but take the above said into consideration before you change anything.

  • Cancel single item from material document

    Hi. Let's say that on material document there are:
    MATNR 1 - 5 items
    MATNR 2 - 10 items
    I need to cancel only 1 item from MATNR 1. So after that operation document should be:
    MATNR 1 - 4 items
    MATNR 2 - 10 items
    In MBST transaction there is no possibility to do such thing. You can only calncel the whole line (in that case 'MATNR 1 - 5 items').
    Is there some possibility to customize MBST to fit my requirements? Or maybe there is some other transaction which give me opportunity to cancel only 1 item? Please give me some tip. Greetings. P

    Hi Piotr,
    MBST transaction has the possibitly of selecting the individual line items. By default all the line items are selected. Please deselect all line items & then select only line item & press enter. Finally save.
    Regards
    Chetan
    PS:Reward points if this helps.

  • Significance of item in material document

    Hi all,
    Plz tell me the sinificance of item in material doc(zeile) in buzei .
    rgds,
    Savita

    Hi YiNing
    You can use this code after calling BAPI.
          SELECT SINGLE mblnr
           INTO CORRESPONDING FIELDS OF wa_mkpf
           FROM mkpf
           WHERE mblnr = p_mblnr.
          IF sy-subrc EQ 0.
            EXIT.
          ELSE.
            CALL FUNCTION 'RZL_SLEEP'
              EXPORTING
                seconds        = 2
              EXCEPTIONS
                argument_error = 1
                OTHERS         = 2.
          ENDIF.
    *Check material document number is in table MKPF
      CHECK wa_mkpf-mblnr IS NOT INITIAL.
      REFRESH : i_mseg[],i_ser03[],i_objk[]..
      SELECT matnr charg vfdat erfmg erfme mblnr zeile
             INTO CORRESPONDING FIELDS OF TABLE i_mseg
             FROM mseg
             WHERE mblnr = wa_mkpf-mblnr.
    Here you will get  the item in material number (ZEILE).
    Regards,
    Mukesh Kumar

  • MIRO user exit  at material document creation

    I need to find out where or how material documents are created.  Right now we have one material document per day per invoice so a single document can have many payments made against it (if they are made in the same day).  What I need to do is change it so that each payment has its own material document.  If you have 3 payments against invoice 001 in the same day then you have three material documents against that invoice instead of just one.
    I am assuming this is done, or can be changed, in a user exit.  If not is this a configuration issue?
    Regards,
    Davis

    Here is the list of User Exits and BADIs for MIRO.
    Enhancement/ Business Add-in            Description
    Enhancement
    LMR1M001                                User exits in Logistics Invoice Verification
    LMR1M002                                Account grouping for GR/IR account maintenance
    LMR1M003                                Number assignment in Logistics Invoice Verification
    LMR1M004                                Logistics Invoice Verification: item text for follow-on docs
    LMR1M005                                Logistics Inv. Verification: Release Parked Doc. for Posting
    LMR1M006                                Logistics Invoice Verification: Process XML Invoice
    MRMH0001                                Logistics Invoice Verification: ERS procedure
    MRMH0002                                Logistics Invoice Verification: EDI inbound
    MRMH0003                                Logistics Invoice Verification: Revaluation/RAP
    MRMN0001                                Message output and creation: Logistics Invoice Verification
    Business Add-in
    INVOICE_UPDATE                          Business Add-In: Logistics Invoice Verification

  • Exclude items at billing document creation

    Hello everyone,
    Our team receive the follow user request: at the moment of billing document creation, exclude all itens from delivery where quantity is igual zero.
    What's the best approach, use user-exit at VF01 to exclude all itens with quantity=zero or try to find some customazing (SPRO) to do that?
    Are there someone that had the same problem or like that? Is it prossible to do that by customizing?
    Thanks!
    Flávio

    You should be able to do it using config. Follow the path
    Implementation Guide for R/3 Customizing (IMG)
    -->Sales and Distribution
       -->Billing
          -->Billing Documents
             -->Maintain Copying Control For Billing Documents
                -->Copying control: Delivery document to billing document
    Here select your source delivery type and the target invoice type. Then click on 'item'. Select the appropriate item categories and do a display. You can play with the settings there to exclude the items that you don't want in the invoice. If nothing from standard settings work for you, you can still use the 'copying requirements' field to enter your own requirement there.
    Srinivas

  • Cancel the material document creation process

    Hello Experts
    I am having the requirement where i have to check for some custom validations before posting the material document. If those validation fail, material document should not be created.
    i tried that by finding suitable user-exit or BADI for MIGO but it seems every user-exit or BADI gets fired after material document is created. What i am looking at is when we 'Check' the document it should also include our custom validations.
    I have implemented the similar scenario for PO creation.
    Thanks in advance
    Regards
    Rajeev

    It is a mess! when the delivery is reversed, the user should have used correct reversal date. Now you can't cancel the material document. Consult MM specialist to add the quantity in the past period and off-set the same in the current period.
    On a second thought, check with your accounting if you PGI in the current period as the reversal and new PGI happened in the current period, which off-sets the entry in accounting.If they are OK, then you need not bother about this.
    Regards,
    Edited by: Shiva Ram on Apr 7, 2011 11:56 AM

  • Automatic Material Document Creation

    Hi Friends,
    We have 2 plants One in SAP and other in Non-SAP, but we have setup a plant for Non-SAP plant in SAP.
    Now When I run MRP, system will create a Stock transport order for Non-SAP Plant (Receiving Plant) in SAP, then outbound delivery will be created in SAP plant (Supplying plant). Now the goods receipt will not be done in SAP for Non SAP plant, they use different system.
    Now the question is? Once they post the Goods receipt in Non-sap system, next minute it must be able to create material document is SAP for outbound delivery.
    Non-SAP team is ready to call the functional module form the SAP system, so please let me know which is the correct Functional module or suggest me which will be right way to post the goods receipt in SAP.
    Thanks in Advance,
    Chalaa,

    Hi Jolly,
    Thanks for your reply,
    I used the BAPI which you have mentioned, but I got the below mentioned error., Can you help me in correcting this.
    Update control of movement type is incorrect (entry 101 X X _ L)
    Regards,
    Venkat,

  • Expand items on a material document

    The system allows to post 100 items per material document and after that it create a new document. How can we have the system to allow more than 100 items per material document? Is there any configuration/developement?

    Dear,
    When a material document is posted, a corresponding FI document is generated. The number of the the FI document items can exceed the number of the material document taken as a basis in some cases by more than the double (for example, with an active material ledger). When the system tries to write more than 999 FI document items, a termination occurs.In order to prevent this, the number of the material document items is restricted to 100.
    In the exact specification of a statistic, 100 items were proven to be favorable in performance measurements.
    The number of the maximum items per document should be a customizable statistic.
    For details read OSS Note 172678.
    Hope clear to you.
    Regards,
    R.Brahmankar

  • How to find Material Document respect to incoming excise invoices?

    When stock is transfered from one plant to another,
    in sending plant, material document is created, with respect to this material document out bound delivery is created further out bound excise invoices.
    In receiving plant when the incoming stock reached the plant with incoming excise
    invoice, material document is created .
    how to find the this receiving plant material document with respect to incoming excise invoice.?
    how to get the receiving plant material documents with respect to sending plant material documents?

    when  the material is transferred from the one plant to another.
    before going to transfer the material.
    one material document is created
    with respect to multiple item  of material document delivery documents created.
    for every delivery one invoice is generated.
    when the stock is reached to plant with invoice
    with respect to this invoice one material document is created for quality check.
    I this case we may have multiple invoices may have the multiple material documents in receiving plant .
    how to find for which excise invoice it is creating material document in receiving plant?

  • Reservation in Material Document

    Hi all,
    I am facing with and issue related to Reservation.
    Problem Defination.
    In the Material document List for a particualar MAterial i am able to see the Reservation no.
    i.e a material has been issued against a reservation so material document is created and in mateiral document in reservation tab i am able to see the reservation no also.But when i am double clicking on that reservation ,it is taking me to display reservation where  i am getting message
    =================================================
    Reservation 0000022986 does not exist
    Message no. M7520
    Diagnosis
    The reservation you entered does not exist in the data base.
    Procedure
    Make sure your entries are correct.
    Choose the input help in the "Reservation" field to search for a reservation for a material or an account assignment.
    ============================
    It has to be noted that in the reservation tab in the material document .
    The requirement quantiy is " 0 "
    Withdrawal Quantity is " 0"
    Whereas the Material document which has been posted against the reservation is for 10 quantity.
    the requirement quantiy should have been 10 and withdrawal quantity should have been 10 because the reservation i have made is of 10 quantity.
    I have checked the reservation list ,the reservation is not there too.
    Please help me on this issue
    Thanks and Regards
    Shailesh

    Hi
    Can you provide me the information ,i.e how to restrict the user from deleting the reservation at Document level,
    Though i want to give him authorization of MB22 but i want to restrict him from deleting the reservation at document level.
    Is there any user exit
    regds
    shailesh

  • Some Material Documents Missing Partially

    Hello,
    We took Inventory Data INIT last yr. on 16.10.2008 & first DELTA was also taken on the same day after 5-6 hrs.
    Now the problem is that certain Material Documents are missing partially for 16.10.2008
    For eg. there are two line items against Material document ABC
    Mat. Doc    Posting Date      Movement Type       Storage Location     Qty in un. of entry     Amount in LC   Entry Date  Entry Time
    ABC             16.10.2008            101                             003                           25 Kg                             1000 INR  16.10.2008         10:30
    ABC             16.10.2008              ---        --          --         ---                  --                 --         --     500 INR 16.10.2008          10:30
    Second Line item agains which M. Type, Storage Location Y Qty. is blank, is missing in to BW. While the first line item is pulled into BW.
    Similar is the case with some other material Documents also. Also i believe these documents are missing only from INIT & first DELTA request only.
    Is there any way to identify the missing Material Documents??
    Thanks & Regards
    Shilpi Gupta

    Hi,
    Using 2LIS_03_* DataSources you are extracting the data, if you fill the setup tables properly, it won't miss any data. See the following threads.
    Treatment of historical full loads with Inventory cube
    Setting up material movement/inventory with limit locking time
    Thanks
    Reddy

Maybe you are looking for

  • MacBook Pro (mid 2012) turns on when lid is closed and MagSafe gets attached or detached.

    I own a mid-2012 Macbook Pro with the 15" high resolution screen add-on (it's the model that was released alongside the new retina versions). The processor is a 2.6 GHz Intel Core i7. I run OS X 10.8.4. I'd like to know if the following behavior is n

  • DVD does not work

    I have a Macbook Pro 15" 2.16 GHz (A1211) running OSX 10.4.11 which cannot see its own DVD drive. System Profiler says that the hardware is there, but if you load a disk, it spins and clicks and whirs for a while, and then unceremoniously ejects the

  • Album frames don't display properly: Since .MAC converted to MobileME help?

    ORIGINAL MESSAGE POSTED TO APPLE SUPPORT Ever since .MAC was recently down - and converted to Mobile Me - I have been having problems with my iWEB site: 1. Frames around Photo Albums no longer display (on mac or win web browsers) - On Windows Compute

  • Third party profiles results in color shifts

    Using LR on a calibrated iMac and printing to an Epson Pro 3800, I'm now getting easily noticeable color ***** in the printed output, when using 3rd party paper profiles (e.g. Hahnemuhle Fine Art Pearl or Pixel Genius Epson Exhibition Fiber profile),

  • How compare time in 15 minute increments?

    Using Flash 8 Pro AS2 Have an animation that needs to play once at first visit to site, no matter how many pages visited within site. Then start over when come back to site. I thought SharedObject would work for this. I got it to run once at site vis