Enhancing BAPI_GOODSMVT_CREATE

Hi All,
I have a requirement of updating MKPF-FRBNR, MSEG-EBELN, MSEG-ABLAD once BAPI_GOODSMVT_CREATE executed successfully, i.e., RETURN is initial.
I will modify the tables MKPF and MSEG in a FM which will be called IN UPDATE TASK.
Now, from where calling this FM will be good?
1. In BAPI_GOODSMVT_CREATE, at ENHANCEMENT-POINT bapi_goodsmvt_create_g7 SPOTS es_saplmb_bus2017 in ENHANCEMENT 2  MGV_GENERATED_SAPLMB_BUS2017 after CALL FUNCTION 'MATNR_BAPI_TABLES_CONVERSION' checking if RETURN is initial (In this case we need to create structure in SE11 to pass values in EXTENSIONIN to modify those fields).
2. In my code after calling BAPI_GOODSMVT_CREATE and checking if RETURN is initial
Kindly advise at earliest.
Regards,
Avijit

Why dont you fill these fileds beforehand in the corrsponding structures via enhancment as in case everythingis okie they will be updated automatically.
Nabheet

Similar Messages

  • 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

  • Enhance Bapi  BAPI_GOODSMVT_CREATE

    Hi ,
    I have a requierement to Enhance the standard function module IDOC_INPUT_MBGMCR to perform update to Ztable and to Perform validation to prevent duplicated record (this will handle in PI or need validation to be built within the function module) .
    I know the process how to enhance badi steps but i am not getting where should i put the code for update the Ztable.
    BAPI (Function module u2019BAPI_IDOC_INPUT1) which call subsequent FMs (u2018IDOC_INPUT_MBGMCRu2019 > u2018BAPI_GOODSMVT_CREATEu2019), further investigation is required if above standard function module BAPI_GOODSMVT_CREATE can be used and facilitate update the Z-table  where BAPI_GOODSMVT_CREATE is successfull.
    Then at which point i have to update the table.
    Moderator message: please choose more descriptive subject lines for your posts.
    Edited by: Thomas Zloch on Jul 8, 2011 9:31 AM
    Edited by: shilpi agarwal on Jul 8, 2011 9:37 AM

    I have replied to your question in [Enhance BADI|Enhance BADI;.  Have you tried to use the enhancement section/points available in BAPI_GOODSMVT_CREATE (after the subroutine call to MB_POST_GOODS_MOVEMENT).  Read the records in RETURN table after the sub-routine call to check whether the document is successfully posted.
    Regards, Vinod

  • How to enhance extra fields in BAPI_GOODSMVT_CREATE.

    Dear Sap Gurus,
    I am facing a problem . I am using standard bapi for MIGO transaction i.e. BAPI_GOODSMVT_CREATE . it is working fine. in our company, along with BADI, MIGO was modified with two extra tab viz. Waybill and ExchangeRate. Here we are maintaining some of  own developed fields . Plz guide me how can i modify this Bapi so that i can update these developed fields . The appropriate answers will be highly appreciated <removed by moderator>.
    Is there any alternative solution?
    NOTE : Currently Using ECC 5.0 SAP
    Thanks & Regards,
    Vijay
    Edited by: Thomas Zloch on Oct 19, 2010 5:43 PM

    Hello,
    1. Use structure BAPIPAREX for passing custom fields. (There are several blogs/posts on how to make use of this).
    2. In the BAPI i noticed there is a BAdI to populate these fields into your business tables.
    Call BAdI MB_BAPI_GOODSMVT_CREATE to fill own fields
        TRY.
            get badi lo_mb_bapi_GOODSMVT_CREATE.
          CATCH cx_badi_not_implemented.                    "#EC NO_HANDLER
        ENDTRY.
        TRY.
            call badi lo_mb_bapi_goodsmvt_create->extensionin_to_matdoc
              EXPORTING
                EXTENSION_IN = EXTENSIONIN[]
              CHANGING
                CS_IMKPF     = S_IMKPF
                CT_IMSEG     = T_IMSEG[]
                CT_RETURN    = return.
          CATCH cx_badi_initial_reference.                  "#EC NO_HANDLER
        ENDTRY.

  • 'BAPI_GOODSMVT_CREATE' takes more time for creating material document

    Hi Experts,
    I m using 'BAPI_GOODSMVT_CREATE' in my custom report, it takes more time for creating Material documents.
    Please let me know if there is any option to overcome this issue.
    Thanks in advance
    Regards,
    Leo

    Hi,
    please check if some of following OSS notes are not valid for your problem:
    [Note 838036 - AFS: Performance issues during GR with ref. to PO|https://service.sap.com/sap/support/notes/838036]
    [Note 391142 - Performance: Goods receipt for inbound delivery|https://service.sap.com/sap/support/notes/391142]
    [Note 1414418 - Goods receipt for customer returns: Various corrections|https://service.sap.com/sap/support/notes/1414418]
    The other idea is not to commit each call, but executing commit of packages e.g. after 1000 BAPI calls.
    But otherwise, I am afraid you can not do a lot about performance of standard BAPI. Maybe there is some customer enhancement which is taking too long inside the BAPI, but this has to be analysed by you. To analyse performance, just execute your program via tr. SE30.
    Regards
    Adrian

  • 'BAPI_GOODSMVT_CREATE' takes more time for creating material document for the 1st time

    Hi Experts,
    I am doing goods movement using BAPI_GOODSMVT_CREATE in my custom code.
    Then there is some functional configuration such that, material documents and TR and TO are getting created.
    Now I need to get TO and TR numbers from LTAK table passing material documnt number and year, which I got from above used BAPI.
    The problem I am facing is very strange.
    Only for the 1st time, I am not finding TR and TO values in LTAK table. And subsequent runs I get entries in LTAK in there is a wait time of 5 seconds after bapi call.
    I have found 'BAPI_GOODSMVT_CREATE' takes more time for creating material document with similar issue, but no solution or explanation.
    Note 838036 says something similar, but it seems obsolete.
    Kindly share your expertise and opinions.
    Thanks,
    Anil

    Hi,
    please check if some of following OSS notes are not valid for your problem:
    [Note 838036 - AFS: Performance issues during GR with ref. to PO|https://service.sap.com/sap/support/notes/838036]
    [Note 391142 - Performance: Goods receipt for inbound delivery|https://service.sap.com/sap/support/notes/391142]
    [Note 1414418 - Goods receipt for customer returns: Various corrections|https://service.sap.com/sap/support/notes/1414418]
    The other idea is not to commit each call, but executing commit of packages e.g. after 1000 BAPI calls.
    But otherwise, I am afraid you can not do a lot about performance of standard BAPI. Maybe there is some customer enhancement which is taking too long inside the BAPI, but this has to be analysed by you. To analyse performance, just execute your program via tr. SE30.
    Regards
    Adrian

  • BAPI_GOODSMVT_CREATE for GRN posting

    Hi Experts,
    I am using BAPI_GOODSMVT_CREATE for posting GRN against Purchase Order.
    I want to post Quantity in Delivery note(LSMNG) and Unit of Measure From Delivery Note(LSMEH) also.
    I used itab-QUANTITY = '1'.
    itab-BASE_UOM = 'L'.
    but it is not getting updated properly.
    I am getting document number and GRN has been done against Purchase Order using this BAPI.All other fields are properly getting updated except these 2 fields Qty in delivery note and unit of delivery note. Can i pass these 2 field values using this BAPI or do I need to use any other BAPI. Is there any BAPI for MIGO instead of MB01?
    Can any one help me to pass these values through BAPI
    Regards,
    Sam

    Hi,
    you can update LSMNG quantity using EXTENSIONIN structures of BAPI_GOODSMVT_CREATE.
    The steps are the following:
    Add LSMNG field in BAPI_TE_XMSEG structure create an appending structure (char field)
    By SE19 transaction create the Enhancement Spot starting from MB_GOODSMOVEMENT
    Define the Badi Implementation choosing MB_BAPI_GOODSMVT_CREATE Badi Definition implementing a new customer class.
    Remember to choose to copy the class with the source code of methods.
    In The method IF_EX_MB_Hi, you can update LSMNG quantity using EXTENSIONIN structures of BAPI_GOODSMVT_CREATE. The steps are the following: Add LSMNG field in BAPI_TE_XMSEG structure create an appending structure (char field) By SE19 transaction create the Enhancement Spot starting from MB_GOODSMOVEMENT Define the Badi Implementation choosing MB_BAPI_GOODSMVT_CREATE Badi Definition implementing a new customer class.
    Remember to choose to copy the class with the source code of methods.
    In the method IF_EX_MB_BAPI_GOODSMVT_CREATE~EXTENSIONIN_TO_MATDOC you will find the following source code:
      DATA:     c_lenstruc          TYPE i VALUE 30,    
       wa_bapi_mb_header   TYPE bapi_te_xmkpf,    
       wa_bapi_mb_item     TYPE bapi_te_xmseg,    
       wa_extension_in     TYPE bapiparex.  
       FIELD-SYMBOLS:               TYPE imseg.  
       CHECK NOT extension_in[] IS INITIAL.
      * Analyze IMSEG for document structure and assign LINE_IDs if necessary  
       CALL METHOD cl_mmim_line_id_manager=>analyze_mb_create    
              CHANGING       ct_imseg          = ct_imseg[]    
                 EXCEPTIONS       duplicate_line_id = 1      
                 OTHERS            = 2.  
      LOOP AT extension_in INTO wa_extension_in.    
         CASE wa_extension_in-structure.
    * extension of MKPF      
         WHEN 'BAPI_TE_XMKPF'.        
         MOVE wa_extension_in+c_lenstruc TO wa_bapi_mb_header.        
         MOVE-CORRESPONDING wa_bapi_mb_header TO cs_imkpf.
    * extension of MSEG      
        WHEN 'BAPI_TE_XMSEG'.        
        MOVE wa_extension_in+c_lenstruc TO wa_bapi_mb_item.        
        READ TABLE ct_imseg           WITH KEY line_id = wa_bapi_mb_item-matdoc_itm           ASSIGNING   <fs_imseg>.        
          IF sy-subrc EQ 0.          
             MOVE-CORRESPONDING wa_bapi_mb_item TO   <fs_imseg>.       
           ENDIF.   
         ENDCASE.  
        ENDLOOP.
    Then you have to call BAPI_GOODSMVT_CREATE using extensionin in the following way:
    * Fill   goodsmvt_header structures
      goodsmvt_header-........
    * Fill    goodsmvt_item-position
      Loop at it_position.
             goodsmvt_item-..........
              wf_line_id = wf_line_id + 1.
              goodsmvt_item-line_id = wf_line_id.
              APPEND goodsmvt_item.
            CLEAR extensionin.
            MOVE 'BAPI_TE_XMSEG'    TO extensionin-structure.
            MOVE wf_line_id+2(4)    TO extensionin-valuepart1+14(4).
            MOVE LSMNG              TO extensionin-valuepart1+18(16).
            APPEND extensionin.
    endloop.
            CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
            EXPORTING
              goodsmvt_header               = goodsmvt_header
              goodsmvt_code                 = goodsmvt_code
    *         TESTRUN                       = ' '
              goodsmvt_ref_ewm              = goodsmvt_ref_ewm
            IMPORTING
    *         GOODSMVT_HEADRET              =
              materialdocument              = materialdocument
              matdocumentyear               = matdocumentyear
            TABLES
              goodsmvt_item                 = goodsmvt_item
    *         GOODSMVT_SERIALNUMBER         =
              return                        = return
              extensionin                   = extensionin.
    Hope it helps
    Lorenzo

  • BAPI_GOODSMVT_CREATE-Goods receipt in with sd-delivery in another plant?

    Hello to all.
    I have a strange situation.
    We use the mentioned bapi to post goods-receipts.
    In this case we use  the movement type 101.
    Inside sap-standard , inside the migo, there is a possibility to do the same, online.
    And also, if a sd-delivery from another plant is present.
    The posting initiated by the migo is more complete as it fills the entire document flow properly.
    I would like to trigger exactly this behaviour in the background, via RFC-call.
    As I now use the BAPI_GOODSMVT_CREATE, the documentary told me, that this is not possible.
    How else can I achieve this ?
    Does anybody know the solution ?
    Will I have to do it via WS_DELIVERY_UPDATE_2 instead ?
    Best regards
    Robert.
    Edited by: Robert Dornfeld on Nov 11, 2011 12:04 PM

    Refer Note 424014 - BAPI: Goods receipt for the outbound delivery
    When you post a goods receipt for an outbound delivery (with reference to a stock transport order) with Bapi BAPI_GOODSMVT_CREATE, you must fill the following fields so that the purchase order as well as the delivery are updated correctly:
        GOODSMVT_ITEM-MOVE_TYPE (Movement type): generally movement type '101'
        GOODSMVT_ITEM-DELIV_NUMB (Delivery)
        GOODSMVT_ITEM-DELIV_ITEM (Delivery item)
        GOODSMVT_ITEM-PLANT      (Plant)
        GOODSMVT_ITEM-STGE_LOC   (Storage location)
        GOODSMVT_ITEM-ENTRY_QNT  (Quantity)
        GOODSMVT_ITEM-ENTRY_UOM  (Unit of measure)
        GOODSMVT_ITEM-PO_NUMBER  (Purchase order)
        GOODSMVT_ITEM-PO_ITEM    (Purch. order item)
        GOODSMVT_ITEM-MVT_IND    (Movement indicator) = 'B'
    Now the order history and the document flow of the delivery are updated. In order to use fields DELIV_NUMB and DELIV_ITEM, you must implement the enhancements of Note 356665.
    If the delivery note number / delivery (field MKPF-XBLNR) is supposed to be updated in the material document header, field GOODSMVT_HEADER-REF_DOC_NO must be filled with the delivery number when you call the Bapi BAPI_GOODSMVT_CREATE.
    The field should only be filled if the delivery number is unique.The delivery is transferred at item level (table GOODSMVT_ITEM, field DELIV_NUMB) so that different delivery numbers can occur in a material document.In this case, there is no unique delivery so that a blank field GOODSMVT_HEADER-REF_DOC_NO would be useful.

  • Lsmng in BAPI_GOODSMVT_CREATE

    Hi all,
    Where to fill field lsmng in migo while updating
    using the bapi BAPI_GOODSMVT_CREATE with movement type 105
    I have  searched the forum,  found similar questions but no correct answers for that questions
    Thanks,
    R K.

    We dont have a option to add this field to BAPI. Do it through by using Enhancement.
    Kanagaraja L

  • Enhancement in MIGO for Goods Movement

    Hi Gurus,
    I got a requirement to Create a 262 goods movement materials document with reference to a Sub-Contract GR for an account assigned Sub-Contract PO thru TCODE MIGO. The details are describe as follow:
    Once the 101/543 GR movement is carried out, a 262 movement type needs to be executed to reverse the consumption of the material against the service order and bring it back to the inventory (open stock). This movement needs to be triggered once MIGO ‘subcontractor goods receipt -101/543’ is committed (saved).
    When the 101/543 GR movement transaction MIGO is saved-
    1.     User exit needs to be invoked
    2.     Check if the GR is
    o     for an account assigned (EKPO- KNTTP Acct Assignment Cat =F) Sub-Contract PO (EKPO- PSTYP  Item Category L)
    o     AND the service order number (AUFNR) exists in ZXXXXXX (ZSUBCON_VALIDATION) table
    3.     Identify the line item material in the goods receipt document (First item /against movement type 101),
    4.     Identify the service order number (AUFNR) from ZSUBCON_VALIDATION table.
    5.     Call the goods issue (262) transaction via the BAPI using the material derived via step 3 and against the service order number derived via step 4. BAPI_GOODSMVT_CREATE  post goods movements

    Hi Matt,
    There are lots of Exits and BADI available in this transaction. See which suits you.
    Enhancement                                                                               
    MB_CF001                                Customer Function Exit in the Case of Updating a Mat. Doc.   
    MBCF0011                                Read from RESB and RKPF for print list in  MB26              
    MBCF0010                                Customer exit: Create reservation BAPI_RESERVATION_CREATE1   
    MBCF0009                                Filling the storage location field                           
    MBCF0007                                Customer function exit: Updating a reservation               
    MBCF0006                                Customer function for WBS element                            
    MBCF0005                                Material document item for goods receipt/issue slip          
    MBCF0002                                Customer function exit: Segment text in material doc. item                                                                               
    Business Add-in                                                                               
    MB_DOCUMENT_UPDATE                      BADI when updating material document: MSEG and MKPF          
    MB_DOC_BADI_INTERNAL                    BAdIs During Creation of a Material Document (SAP Internal)  
    MB_ME_CSGMT_BADI_SAP                    BAdI: Consignment Processing - Stock Transfer                
    MB_MIGO_BADI                            BAdI in MIGO for External Detail Subscreens                  
    MB_MIGO_ITEM_BADI                       BAdI in MIGO for Changing Item Data                          
    MB_PHYSINV_INTERNAL                     Connection: Core Inventory and Retail AddOn                  
    MB_QUAN_CHECK_BADI                      BAdI: Item Data at Time of Quantity Check                    
    MB_RESERVATION_BADI                     MB21/MB22: Check and Complete Dialog Data                    
    MB_RESERVATION_SCR                      Screen BAdI for Retrofit DFPS                                
    MB_RESERVATION_UPCHD                    BAdI for Creation and Changing of Manual Reservations        
    MB_RES_BAPI_CHANGE                      BAdI: Execution of Changes to Reservation Fields             
    MB_RES_BAPI_CREATE1                     BAdI: Adoption of Customer's Own Fields as Reserv. Fields    
    MB_RES_BAPI_DETAIL1                     BAdI: Display of Customer's Own Fields in Reservations       
    MB_STOR_LOC_BADI_GTS                    BADI to Check and Change Storage Location (GTS Fct. Only)    
    MB_DOCUMENT_BADI_SAP                    BADI for Creation and Changing of a Material Document        
    ARC_MM_EBAN_CHECK                       BAdI: Enhancement of Archivability Check (MM_EBAN)           
    ARC_MM_EBAN_PRECHECK                    BAdI: Enhancement of Archivability Check (MM_EBAN)           
    ARC_MM_EBAN_WRITE                       BAdI: Enhancement of Scope of Archiving (MM_EBAN)            
    ARC_MM_EINA_CHECK                       BAdI: Enhancement of Archivability Check (MM_EINA)           
    ARC_MM_EINA_WRITE                       BAdI: Enhancement of Scope of Archiving (MM_EINA)            
    ARC_MM_INVBEL_CHECK                     BAdI: Enhancement of Archivability Check (MM_INVBEL)         
    ARC_MM_INVBEL_WRITE                     BAdI: Enhancement of Scope of Archiving (MM_INVBEL)          
    ARC_MM_MATBEL_CHECK                     Prüfung ADD-ON-spezifischer Kriterien für MM_MATBEL          
    ARC_MM_MATBEL_WRITE                     Check Add-On-Specific Data for MM_MATBEL                     
    MB_CHECK_LINE_BADI                      BAdI: Check Line Before Copying to the Blocking Tables       
    MB_CIN_LMBMBU04                         posting of gr                                                
    MB_CIN_MM07MFB7                         BAdI for India Version exit in include MM07MFB7              
    MB_CIN_MM07MFB7_QTY                     Proposal of quantity from Excise invoice in GR               
    MB_DOCUMENT_BADI                        BAdIs During Creation of a Material Document                 
    Regards,
    Atish

  • Cannot use BAPI_GOODSMVT_CREATE in MB_DOCUMENT_BEFORE_UPDATE

    Hi experts,
    I need to do enhance to post additional 313 movement after post 962 movement.
    I picked up MB_DOCUMENT_BEFORE_UPDATE to be triggered after press save button and used BAPI_GOODSMVT_CREATE to post 313.
    The problem is BAPI_GOODSMVT_CREATE returned error 'Enter Plant'!.
    All parameters were already tested with SE37 and it worked great.
    I did a lot debugging and found that all MSEG data were mysteriously cleared after it run 'PERFORM fusszeile_wa_pruefen(sapmm07m) USING x.' in source code SAPLMBWL.
    After that, I tried a new way. I submitted my Z program ,which call BAPI_GOODSMVT_CREATE with exactly same parameter, in BADI and it returned error that material ... batch ... is already locked.
    I'm not sure that is it possible to post additional material document in this BADI(MB_DOCUMENT_BEFORE_UPDATE).
    Best regards,
    Amornpon

    Thanks for reply.
    I did create FM and called it in BADI but it gave the same result as I called BAPI directly from enhance program.
    and what do you mean 'NEW TASK'  Is that you mean call function in update task?
    I did try call function in update task but it didn't work.
    The problem is BAPI function returned that Mat XXX  Batch XXX is alreay locked by XXX and also cannot get created material doc number.

  • How to update j_1ipart1 j_1ipart2 by using bapi BAPI_GOODSMVT_CREATE

    i want to update records in j_1ipart1 , j_1ipart2 , rg1  as it gets updated when posting in MIGO with refer to excise incoice.
    i want to do the same  by using the bapi BAPI_GOODSMVT_CREATE.  Any one who can help me out , for what are the steps involved .
    thanks in advance

    Hi,
    Refer the following SAP notes.
    1. Note 485557 - BAPI_REQUISITION_CREATE: 'EXTENSIONIN' customer enhancements
    2. Note 584902 - BAPI_REQUISITION_CHANGE: ExtensionIn not connected
    3. Note 792132 - EBAN, EBKN: user-defined fields are not filled
    Regards,
    Harish

  • 'BAPI_GOODSMVT_CREATE'  for ExtensionIN in documentation tab no structures

    Hello Friends,
    I am doing GR posting with BAPI 'BAPI_GOODSMVT_CREATE' but i need to enhance this BAPI to add some custom field with the help of EXTENSIONIN... kindly help me if any one have already work on that.
    For this bapi in the documentation tab there are no axulliray structures given as i early worked with bapi_po_create1 where they provided the structure names in the bapi documentation based on that i filled all the necessary data.
    If you can send to some sample code it would be highly appreciate.
    Thanks.

    Hi,
    I think that SAP Note 143580 - Information on SD BAPIs and customer enhancement concept will help you
    Regards,
    Eduardo
    PD: I'm sorry, I forgot the SAP Note 700795 - Enhancement category of BAPI enhancement structures
    Edited by: E_Hinojosa on Nov 9, 2010 6:29 PM

  • Help in BAPI_GOODSMVT_CREATE

    Hi frnds,
    I m facing problem while calling bapi BAPI_GOODSMVT_CREATE in my badi , i m passing all the required parameter, and after that perform commit operation,
    but it is giving error message as follows,
    The function module MB_CREATE_GOODS_MOVEMENT is called up for the  
    second time. After it was called up the first time, the function   
    module MB_POST_GOODS_MOVEMENT was called, but a COMMIT WORK was not
    carried out in the calling program.                                
    As running the two function modules again would result in the      
    database being incorrectly updated, processing is terminated.      
    System Response Procedure Please ensure that a COMMIT WORK is set  
    after you call up the function module MB_POST_GOODS_MOVEMENT.      
    Thanks and Regards,
    Mahesh.

    Hi,
         iF you are working for IS-OIL Reqirement there is no BAPI will work as per  OSS note 607156.
    Please go thru
    17.02.2007 Page 1 of 4
    SAP Note Number 607156
    Goods movements in IS OIL: MB_CREATE_GOODS_MOVEMENT
    Note Language: English Version: 3 Validity: Valid from 23.01.2006
    Summary
    Symptom
    WARNING: This is an IS-OIL / IS-MINE-specific note. If you DON'T *
    have IS-OIL / IS-MINE installed on your system, this note does *
    not apply to you. If this note is applied and you do not have *
    IS-OIL / IS-MINE installed, you could cause serious damage to *
    your system. *
    This note provides information on how function module
    MB_CREATE_GOODS_MOVEMENT is used in IS-Oil systems in conjunction with
    IS-Oil materials (that is, those materials that carry a UoM group in the
    oil-specific view in the material master data, MARA-CMETH = 1 or 2).
    A ) In general, in the case of goods movements for IS-Oil materials, the
    additional quantities for these materials must be posted in parallel for
    every goods movement. The additional stock levels must also be updated
    using these quantity values.
    There are two possible ways to do this:
    a) The additional quantities and parameters are passed to
    function module MB_CREATE_GOODS_MOVEMENT through the following IS-Oil
    specific table parameters:
    T_MS1INT STRUCTURE MSEGO1 OPTIONAL
    T_MS2INT STRUCTURE MSEGO2 OPTIONAL
    b) The additional quantities are CALCULATED and posted through function
    module
    MB_CREATE_GOODS_MOVEMENT and processed using the default parameters
    that are determined for each line item that contains an IS-Oil material.
    In general, SAP does NOT support the second way (b) for calling function
    module MB_CREATE_GOODS_MOVEMENT. In the past there have been some
    exceptions to this to ensure seamless integration of important
    business processes used in the oil & gas industry.
    With 4.6C Service Pack 2, these exceptions are delivered as entries
    in an SAP table:
    Table TOIBCALC_INTRN is delivered with 8 entries that enable
    posting of IS-Oil material movements through function module
    MB_CREATE_GOODS_MOVEMENT, without passing the additional quantities
    (and parameters) through the interface of MB_CREATE_GOODS_MOVEMENT.
    The entries delivered with table TOIBCALC_INTRN are:
    PROG1 EVENT1 PROG2 EVENT2
    RM06ELLB POST_GOODS_ISSUE RM06ELLB ATUSER-COMMAND
    SAPLCOCI COCI_CONFIRM_MATERIAL_CONS
    SAPLCOCI COCI_CONFIRM_MATERIAL_PROD
    SAPLCOFW CO_FW_GOODS_MOVEMENTS_BY_AFFW
    17.02.2007 Page 2 of 4
    SAP Note Number 607156
    Goods movements in IS OIL: MB_CREATE_GOODS_MOVEMENT
    SAPLCORF CO_RU_GOODS_MOVEMENT
    SAPLWPUE POS_SALES_DOCUMENT_PROCESS
    SAPLWPUE POS_SALES_TURNOVER_PROCESS
    SAPMQEVA BUCHE_BESTAENDE
    NOCALC BLTIME_SET
    D X
    D X
    D X
    D X
    D X
    X X
    X X
    D X
    The call stack of a calling program is analyzed (PROG1, EVENT1, PROG2,
    EVENT2) and if it is found in the table as a valid entry, the
    additional quantities are calculated, either in the background
    (NOCALC = X) or whereby the classic dialog box appears on the screen
    (NOCALC = D). The posting time is either left unchanged
    (BLTIME_SET = INITIAL) or determined based on the logic that can be
    found in include OI_LMBWLFOI_HPM (BLTIME_SET = X).
    B) SAP core BAPI using function module MB_CREATE_GOODS_MOVEMENT:
    SAP has - so far - not enhanced all core BAPIs to enable the processing
    of additional industry solution specific (IS-OIL) data fields.
    (see SAP Note 365386 for important details).
    However, due to the fact that some core BAPIs use function module
    MB_CREATE_GOODS_MOVEMENT from different calling applilcations, the
    customer may observe that with one BAPI, postings for IS-Oil materials
    are possible, yet with another BAPI, the postings are rejected.
    Example:
    You can execute the BAPI BAPI_PRODORDCONF_CREATE_HDR using an IS-Oil
    material but not BAPI BAPI_GOODSMVT_CREATE.
    Since BAPI BAPI_PRODORDCONF_CREATE_HDR calls function module
    CO_RU_GOODS_MOVEMENT, which is contained in table TOIBCALC_INTRN,
    the posting is based on the default data and additional quantities
    are calculated. In this case, you have to set the conversion mode to
    'Background', otherwise a 'Dynpro not found' error causes a short dump
    (because the entry MOCALC is set to 'D' for dialog).
    As a result of this, the system has been designed to run as it does. In
    general, customers are advised to proceed as outlined in SAP Note 365386.
    On a case by case basis, customers can use table TOIBCALC_INTRN
    and either remove, change, or add entries to achieve consistent
    system behavior.
    17.02.2007 Page 3 of 4
    SAP Note Number 607156
    Goods movements in IS OIL: MB_CREATE_GOODS_MOVEMENT
    With note 736980, the announcement of a new BAPI GoodsMovementOil is made, and
    new BAPI methods are delivered which enable goods movement postings for IS-OIL
    materials.
    More Terms
    o General keywords: add-on, IS-Oil, industry solution,...
    o Problem-specific key words: BAPI, HPM, QCI, additional quantities
    Cause and Prerequisites
    Solution
    Although it is possible to post goods movements for IS-Oil materials (as
    above), SAP does not currently support any core
    BAPIs for posting goods movements with IS-Oil materials.
    Calculating additional quantities in the background is not seen as a
    a general solution.
    On a case by case basis, customers can use table TOIBCALC_INTRN
    and either remove, change, or add entries to achieve consistent
    system behavior.
    Header Data
    Release Status: Released for Customer
    Released on: 23.01.2006 13:26:07
    Priority: Recommendations/additional info
    Category: Consulting
    Main Component IS-OIL-DS-HPM Hydrocarbon Product Management
    Valid Releases
    Software Component Release From
    Release
    To Release and
    Subsequent
    IS-OIL 46C 46C 46C
    IS-OIL 472 472 472
    Related Notes
    17.02.2007 Page 4 of 4
    SAP Note Number 607156
    Goods movements in IS OIL: MB_CREATE_GOODS_MOVEMENT
    Number Short Text
    870106 IS-OIL TDP LI21 postings from WM to MM
    736980 Enhancement of BAPI GoodsMovement for IS OIL
    546569 FAQ : HPM - Hydrocarbon Product Management
    <b>Reward points</b>
    Regards

  • Incorrect SLED when posting Material Document using BAPI_GOODSMVT_CREATE

    Hi,
    I have an upload program that performs goods movement and creates material document for a given PO using BAPI_GOODSMVT_CREATE.
    the program passes the data from input file (through the parameter GOODSMVT_ITEM) including SLED, however, once the material document is posted, the SLED is still derived from batch input master and the BAPI does not use the one passed to it via GOODSMVT_ITEM.
    The requirement is that, the SLED provided in the input file should be the SLED of the Matdoc created, and not the SLED maintained in the Batch input master.
    Please advise.
    thanks,
    NC

    sorry to say that, but you should learn about the application, you cannot make the field empty, it is SAP design that the valuation type goes to the batch field in case of split valuation active wihtout having batch managment active.
    your wish is not possible with enhancements, and if , you would create inconsistencies and bigger problems in subsecuent processes.

Maybe you are looking for

  • Opening any image in Photoshop desaturates and darkens it

    Hello! For approx the last 2 months whilst using photoshop CS5 (which I have been since purchasing in Dec 11 without issues), I'll process and images as a TIFF or high res JPEG with an Adobe RGB 1998 colour profile in Lightroom 3 or Capture Pro 7, th

  • Error when log into sql developer as sysdba

    Hi iam able to loging in oracle 11g from command prompt as sysdba, the same when iam tried from sql developer with same credentials as sysdba its showing error invalid user or password. Could any one help me out o n ths pls?

  • QT no text trouble

    Hi fellas, I have been experiencing some sort of a difficulty with few applications, for example k3b and openoffice. I am not 100% sure with ooo but k3b is definetely qt app, so as you can see thete's no text anywhere, when I go with my myouse over a

  • Dyanamic select

    hello all, How can i write a dynamic select query for range of values? regards T

  • Screen wallpaper snapshot without desktop icons appearing in it?

    Greetings: I wish to create a screen snapshot for wallpaper without the desktop icons appearing in the shot. You see, on Tiger I use VirtueDesktop with MenuShade to create a wallpaper that uses fonts and won't display the menubar. However, Leopard re