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,

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

  • 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

  • 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 billing document creation upon saving credit memo request.

    Hi,
    I have a requirment where in :
    When a Credit Memo Request is created(va01) and upon saving the credit memo request an automatic billing document needs to be genereated i.e Credit Memo.
    How can this be achieved.
    Thanks

    Hi Keni
    If a Credit Memo Request is created and after saving the Credit Memo Request  , automatic billing should happen means you should maintain a new sub-routine and assign in the copy control VTFA . In that sub-routine maintain a logic that once the Credit Memo Request is saved automatic billing should happen
    Regards
    Srinath

  • 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

  • Check list for automatic accounting document creation

    Sir,
    I have created a new depot [ STO process ]
    After that I tested SOP in development server, and could successfully create sales order, delivery, billing, accounting document.
    Accounting document was automatically created at the time of VF01.
    But in production server, after billing document, I have to manually release the document for accounting.
    I checked following conditions.
    1] " Posting block" is unchecked in billing document type
    2] Account Assignment is maintianed in VKOA
    3] Account Assgn Grp is maintained in customer master and material master.
    What could be possible reason, why accounting document does not generate automatically. For all previous depots created it is generated automatically in production.
    Would appreciate reply
    Regards
    Trupti

    Dear,
            I think you do the check mark on posting block. I have check this scenario and it is work.
            In STO process, There is no requirement to create accounting document because STO is process of company inter transfer process. and in this scenario, accounting document should not be generated and invoice create as a perform invoice.
           Hope will help.
    Regards,
    Sandip

  • Automatic material master creation

    Using BAPI_MATERIAL_GET_ALL I transfer the data of a template material to a new material and create it using BAPI_MATERIAL_SAVEDATA.
    all works great EXCEPT...
    The Inspection Setup Data is not transferred from the template material.
    This Inspection Setup Data is entered in under the QM tab but can anybody suggest a solution as to how this data can be transferred automatically?
    Thanks for your help, Mark

    Hi Mark,
    Use BAPI 'BAPI_MATINSPCTRL_SAVEREPLICA' to achieve this. I have attached a little program I have whipped up to modify the Average Inspection Duration field. It's pretty straight forward.
    Hope this helps.
    Cheers,
    Pat.
    PS. Kindly assign Points to the posts you find helpful.
    *& Report  YPAT_QM_LOAD                                                *
    REPORT  ypat_qm_load.
    DATA: tbl_inspection TYPE TABLE OF bapi1001004_qmat WITH HEADER LINE,
          return         TYPE TABLE OF bapiret2         WITH HEADER LINE,
          st_qmat        TYPE qmat,
          st_inspection  TYPE bapi1001004_qmat.
    DATA: BEGIN OF tbl_data OCCURS 0,
            art    TYPE qpart,
            matnr  TYPE matnr,
            werks  TYPE werks_d,
            mpdau  TYPE qmpdau,
          END OF tbl_data.
    PARAMETERS: p_infile LIKE ibipparms-path OBLIGATORY
                DEFAULT 'C:'.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_infile.
      CALL FUNCTION 'F4_FILENAME'
        IMPORTING
          file_name = p_infile.
    START-OF-SELECTION.
      PERFORM get_file.
      PERFORM build_bapi_table.
    END-OF-SELECTION.
      PERFORM call_bapi.
    *&      Form  get_file
    FORM get_file .
      DATA: l_filename TYPE string.
      l_filename = p_infile.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = l_filename
          filetype                = 'ASC'
          has_field_separator     = 'X'
        TABLES
          data_tab                = tbl_data
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.
    ENDFORM.                    " get_file
    *&      Form  build_bapi_table
    FORM build_bapi_table .
      REFRESH tbl_inspection.
      LOOP AT tbl_data.
        CLEAR: st_qmat,
               st_inspection.
        SELECT SINGLE *
               INTO st_qmat
               FROM qmat
               WHERE art   = tbl_data-art   AND
                     matnr = tbl_data-matnr AND
                     werks = tbl_data-werks.
        CALL FUNCTION 'MAP2E_QMAT_TO_BAPI1001004_QMAT'
          EXPORTING
            qmat             = st_qmat
          CHANGING
            bapi1001004_qmat = st_inspection.
        CLEAR tbl_inspection.
        tbl_inspection = st_inspection.
        tbl_inspection-function          = '004'.          "Change
        tbl_inspection-ave_insp_duration = tbl_data-mpdau. "New Ave Insp Dur
        APPEND tbl_inspection.
      ENDLOOP.
    ENDFORM.                    " build_bapi_table
    *&      Form  call_bapi
    FORM call_bapi .
      CALL FUNCTION 'BAPI_MATINSPCTRL_SAVEREPLICA'
        TABLES
          return         = return[]
          inspectionctrl = tbl_inspection[].
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    ENDFORM.                    " call_bapi

  • Message for Material Document Generated

    Hello Friends,
    On creation of Production Order, we do picking of components thru CO27. After completion of this Pick, though goods movements ( mvt type 261 ) are successful we are not able to see the message stating material document number in status bar ( left bottom part of the screen ) as we get it in other cases/transactions. Are we missing any parameter settings pertaining to these kind of messages and T-code CO27. Kindly advice.
    Regards
    mahesh

    Dear Ram
    you are right. Since it is a mass transaction, it does create multiple documents ( probably my user never exploited the potential of this transaction and used it for single order only ). I tried it for multiple orders (3 Nos ) and results were as expected ( 2 documents got created ). But I didn't understand the system's logic of material document creation here, as it is observed that for one component it has created only one document for 3 different orders ( same batch nos) where as for other component it has created 2 documents for 2 different orders even though batch nos are same. All the components are consumed from same Storage location. I checked and compared both the documents but didn't find anything noticable. Any idea, what it could be?
    regards
    mahesh
    P.S. : Mangal, Thanks for your inputs too.

  • Automatic TO creation and confirmation for a Material document

    Hi Dear All,
    i am new to MM andWM.
    I have to customization for auto transfer orders and confirmations for material documents what ever created with 101 movement type in Inventory Management. I have down configuration like below.
    SPRO->Logistics Execution->Warehouse Management->Activities->Transfers-> Set Up Autom. TO Creation for TRs / Posting Change Notices
    Double click on ‘control data ‘tab
    Hear for my warehouse I given input like   Auto TO = ‘1’,
                                                                             AddId = ‘select check box’.
    And in ‘Assign control’ tab for 101 movement type I have given input like below.
    Automatic TO = ‘1’.
    TO item can be confirmed immed. = ‘tick checkbox’
    Propose Confirmation = ‘tick checkbox’.
    Foreground/Backgrnd = ‘D’.
    After creating of Material document I am executing report RLAUTA10 in SE38.When I execute this report system showing message like ‘TO processing finished: TR total:   17, TO created:    0, Errors:   17’.
    If I check header details of transfer requirements in LB03, i am not seeing ‘Tick Mark’ in Auto TO Creation field.
    Can any one tell me what the mistake i have down or if i need to do any further configuration. Please help me regarding this concern?
    Thanks in Advance..

    Dear Steve,
    Thanks a lot for giving reply with what I need to do, but I am unable to see result.
    I have down configuration like below even though system not processing Auto TO creation. Can you explain me if I have down any mistake below.
    Click on ‘Assign’ button,
    Press on ‘New entries’
    WhN = ‘900’
    Reference Movement Type = ‘101’
    Movement indicator = ‘B’
    Movement type for Whse Mgmt = ‘101’
    TR create Transfer Requirement = ‘X’
    Immed.TO Creation
    Mail confirmation for background processing = ‘01’.
    GR date = ‘2’

  • Delay in TO creation from TR created thru' material document

    Hi Friends,
    We are experiencing fluctuating delay in TO creation with respect to TR, generated through material document (GR against process order, IM movement type 101 - F). We have set automatic TO creation in background ("A") in customising in WM> interface> IM-->define movement type.
    Material document posting is done thruough custom transaction thru' BAPI_GOODSMVT_CREATE.
    Can you please help to find out possible reasons?
    Thanks in advance,
    Sudhir

    Dear All,
    Thanks for your replys and suggestions. Still I haven't found any root cause for this problem. But develpoed a background job which serches open TR's for source storage type 901 and convert them into TO's. This job runs every minute. So if any TR remains open, it get converted into TO within max. 1 min. Anyway search is still on on other related issue to find out the cause. Many Thanks for suggestions again

  • Create TO from material document automatically

    Hi Experts,
    I'd like to ask for a solution about Create TO from material document automatically.
    Business Scenario:
    Normally, user will create TO from material document by LT06, then confirm it by LT12. If there is no stock on the shelf at the time when user confirms it, user will put quantity zero when confirmation by LT12, then user will create a new TO according to same material document.
    Requirement:
    According to scenario above, if there is no stock on the shelf, user wants to create a TO from material document automatically when he confirms the first TO.
    here I'd like to ask if there is any solution on it?
    We tried to use user exit: EXIT_SAPLL03T_002, and call transaction in it.
    but result is: first TO is not confirmed with zero quantity yet, so new TO can not be created.
    Please tell if there is any other solution, many thanks.
    Best Regards,
    H.B

    Hi
    To my understanding at the first time when TO is created for the material document and stock is not available using the available user exit in TO confirmation u can forcibly confirm the TO but for the second time TO creation and confirmation there wont be any trigger point( as bcz we have config to create TO immediately ony when mat doc is created) so for that u need to schedule a job for creation and confirm of TO's for the open mat documents.
    Regards
    Amarnatha

  • Creation of Material Documents With Mvt Type

    On Performing Post Goods Issue (PGI) in one Plant in case of Plant to Plant Dispatches, there should be Inbound delivery created for already created Purchase Order (PO). In addition after creation of inbound delivery, there should be material document created with 103 movement. This Material document is triggered when the inbound delivery is saved. Once Warehouse processes are finished, then Post Goods Receipt (PGR) happens, so 101 Movement Type happens for Purchase Order. PGR document should trigger one more material document with 104 movements; this document is reversal for material document with 103 movement type.
    can any one suggest to enhance SAP for this?
    Moderator message : Requirements dumping is not allowed, show the work you have already done. Thread locked.
    Edited by: Vinod Kumar on Oct 21, 2011 5:18 PM

    Hi Nitin,
    Before creating the Service type of product, you have to define the Base category for Service type product. Generally the category for service will be created under the R3 hierarchy R3PRODSTYPE. You can create this category using the TCode:
    COMM_HIERARCHY. Here you have to select the product type as Service and have to assign the set types to the category.
    You can create a service product using the transaction : COMMPR01 -> Click on Service ICON -> Select the Category for Service Type. Then fill in the details for Service Product description, Service ID(Based on number range settings for products), Language.
    Also fill other details like Base Unit of measure, Pricing condition for different sales areas for the service product.
    Since you are using CRM7.0, you can do all these activities using a POWER USER role.
    For more information about Set types and hierarchies please refer the following help link:
    http://help.sap.com/saphelp_crm70/helpdata/EN/46/57672501a208e7e10000000a114a6b/frameset.htm
    Hope this helps!
    Regards,
    Chethan

  • BAPI for creation of material documents/movements

    Hi Everebody:
    I need some help regarding to bapis for the creation of mateial documents and/or movements. I have been trying to implement bapi BAPI_GOODSMVT_CREATE, but this bapi does not have (import) the posting time in document, which is very important for my porpuse.
    So, I would appretiate a lot any information anybody could give about any bapi I could use to create material documents or material movements but incluidng the posting time in document (field MKPF-OIB_BLTIME).
    Regards

    You can check MB_CREATE_GOODS_MOVEMENT which has mkpf as inporting parameter.

  • Creation of material Documents for RMPM adjustments using BAPI

    Hi
    can any one help me Creation of material Documents for RMPM adjustments using BAPI...
    i should be grateful to you...
    advance thank you
    with regards
    venkat

    You can check MB_CREATE_GOODS_MOVEMENT which has mkpf as inporting parameter.

Maybe you are looking for

  • Unable to cast object of type 'Microsoft.VisualStudio.TestTools.UITesting.UITestControl' to type 'Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinComboBox'.

    Hi, I used to cast the UITestControl to WinComboBox in CodedUI Test and it throws the Invalid Cast Exception Here is my code snippet: in this code, CalcButtonNew() method return UITestControl object and i am trying to cast it to WinComboBox. Thanks i

  • Cross-Certification for Non-Windows Clients

    Still trying to get more information on getting my SHA256 root CA certificate signed by my SHA1 root CA (temporarily), and having non-Windows entities recognize that: Creating Cross-Certification between two root CA's within the same organization (on

  • Profile for an Org Unit.

    Hi Team, Is it possible to maintain Profile (PD) for an Org Unit. I would like to maintain location preference for at Org Unit Level. In this process I would like to maintain that for each Org Unit Level. The standard functionality doesnt support for

  • Daily data entry Transaction log

    SAP : ECC 6.0 DB : DB2 OS : LINUX 64 Issue : Management need Daily Data entry transaction summary 1. Comp. code 2. Plant code 3. Module 4. User 5. Transaction code 6. Entries entered (count only) 7. Approved if any (count only) 8. . Time spent on thi

  • Radius & wireless & IP address

    Hello, I''d like to use a Radius to dynamically authenticate wireless users, but I'd know if it's possible to assign dinamically address to the wireless port, when accesing to the RADIUS, or validaing it to avoid wireless clients of changing their IP