Addiing 'lsmng' field in bapi_goodsmvt_create

Hi Buddies,
i want to update lsmng field through bapi_goodsmvt_create, but colud not find that field in bapi, please tell me how add this field in bapi. my sap versin is 4.7
Response is awiated.

see my post reply
http://scn.sap.com/message/13649968

Similar Messages

  • How to populate cusotom fields using BAPI_GOODSMVT_CREATE  for MIGO

    Hi,
    I was to update custom field using BAPI_GOODSMVT_CREATE for MIGO and store it is MSEG table.
    Please tell me how to proceed.
    Moderator message: last warning, if you continue to post the same thread again, I will submit your user ID for deletion. See my comments in your previous posts.
    Edited by: Thomas Zloch on Jul 14, 2011 4:38 PM

    Hi ANID,
    Thanks for the reply.
    I have checked in the documention of the bapi and no communication structure regarding to the bapi is there so i am not able to figure out where to add the custom field so that it can be added in the MKPF table.
    Regads
    Dipak

  • Some fields in BAPI_GOODSMVT_CREATE

    Hi Abapers,
    I am usiing BAPI_GOODSMVT_CREATE for the MIGO transaction for creating material document.
    With movement type '101' and MVT_IND = 'B'.
    In this am not able to find out some fields like ' 1. Activate Print (XNAPR) , 2.Quantity in delivery note (LSMNG) , 3. unit of measure (LSMEH).
    Please let me know how to get these field.
    Thanks & Regards,
    Simha S

    hi shakya
    check this thread.
    Re: About BAPI_GOODSMVT_CREATE
    Set parameter is used to set the values of screenfields like checkboxes,
    when u set it as X means u r ticking a checkbox
    Anyways i dont think this has anything to do with ur requirement. I guess so!!
    кu03B1ятu03B9к
    Edited by: kartik tarla on Jan 22, 2009 9:31 AM
    Edited by: kartik tarla on Jan 22, 2009 9:34 AM

  • Field in BAPI_GOODSMVT_CREATE

    Hi ,
    I am using BAPI_GOODSMVT_CREATE for creating GRN , In transcation MIGO , at line item level there is a field which does not exist in GOODSMVT_ITEM table.Please suggest me how to populate the field which does not exist in BAPI_GOODSMVT_CREATE.
    Regards
    Edited by: Subhash Karidhal on Mar 5, 2008 6:06 AM

    Hi,
    I guess you are trying to tell that you need to populate fields which are added in the item table through Append structure.If that is the case then all you need is to populate the "extensionin" field in the tables tab of the FM "BAPI_GOODSMVT_CREATE",here you need to specify the name of the include structure and its values.Hope this helps.
    Regards,
    Kiran
    Edited by: Kiran NN on Mar 5, 2008 6:35 AM

  • 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.

  • Quantity withdrawn field in BAPI_GOODSMVT_CREATE

    When i use BAPI_GOODSMVT_CREATE to post with movement type 261 for transaction MB1A in a custom program with sel screen process order,material,batch no and qty, quantity withdrawn field is not updating.(This field is in process order COR3 Transaction).
    if i do full quantity its working fine,whenever i do partial qty, it should be updated in quantity withdrawn field.
    Any one has input please let me know
    Thanks
    Suresh

    code is '03'.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
               EXPORTING
                 goodsmvt_header         = ls_goodsmvt_header
                 goodsmvt_code           = '03'
    *           TESTRUN                 = ' '
    *           GOODSMVT_REF_EWM        =
               IMPORTING
                 goodsmvt_headret        = ls_goodsmvt_headret
                 materialdocument        = lv_mblnr
                 matdocumentyear         = lv_mjahr
               TABLES
                 goodsmvt_item           = lt_goodsmvt_item
    *           GOODSMVT_SERIALNUMBER   =
                 return                  = lt_return
    *           GOODSMVT_SERV_PART_DATA =
    *           EXTENSIONIN             =

  • Fields in BAPI_GOODSMVT_CREATE

    Hi
    can anybody tell me..the impact of following fields ..i mean what this fields  actually needed for?
    ver_gr_gi_slip
    gr_rcpt
    while passing them to BAPI_GOODSMVT_CREATE.

    Here in my program..
    I am passing
    ver_gr_gi_slip = 2
    gr_rcpt= x.
    If  i change  this  values... will it be effected  in goods receipt for particular line item?

  • How to include z-fields into BAPI_GOODSMVT_CREATE

    Hi,
    In MIGO transaction, we have aded some fields on external tabs.
    These fields are mandatory fields
    The data of these fields will be stored in a Z-table when we save the MIGO.
    We have used BADI s to do this. It is working fine.
    Now, I want to post some data using MIGO tansaction. I want to use BAPI_GOODSMVT_CREATE to post tha data.
    How can I include my newly added fields in this BAPI ?
    Can u plz write the solutions?
    Thanks

    Hi,
    Go through the FM documentation of BAPI_GOODSMVT_CREATE, this gives some information how to populate the custom fields.
    Table parameter : EXTENSIONIN
    And check the BADI:  MB_BAPI_GOODSMVT_CREATE which is used to populate the custom fields for the material document.
    I think you also require to implement this badi in your case.
    You also need to extend the tables with the custom fields
    With regards,
    Dwarakanath.S

  • Field to MIGO cert.enclosed in the BAPI BAPI_GOODSMVT_CREATE

    Hi All,
    I am doing Good Receipt for Purchase Order.
    In MIGO we have Cert.enclosed (Quality) value Yes or No.
    I want to insert the Cert.enclosed (Quality) using BAPI BAPI_GOODSMVT_CREATE.
    Please let me know which field in BAPI_GOODSMVT_CREATE, I can insert the Cert.enclosed (Quality) value.
    Thanks in Advance.
    Debopriya G

    Please take a look at SAP KBA- 0001718791. Kindly mark if helpful.
    SAP Knowledge Base Article
    Symptom
    There is no import parameter in BAPI_GOODSMVT_CREATE that you can use to confirm the QM certificate.
    Environment
    SAP Release Independent
    Reproducing the Issue
    1. In T-code SE37, execute the function module BAPI_GOODSMVT_CREATE
    2. In the import tab and tables tab, check all the parameters, there is no place to enter the QM certificate (COA)
    Cause
    Missing functionality in BAPI_GOODSMVT_CREATE
    Resolution
    Please use BDC (batch input) for MB** transactions (MB01, MB0A, MB1A, MB1B, MB1C, etc.) instead.
    Keywords
    QCERT_MIGO-ANSWER, QBCK_QM_GR_CHECK
    Header Data
    Product
    This document is not restricted to a product or product version
    References
    This document refers to:
    CSS SAP Notes
    1718791 - Certificate of Analysis (COA) in BAPI_GOODSMVT_CREATE
    Version 1 Validity: 05/15/2012 - active Language English
    Released On 02/12/2013 02:32:24
    Release Status Released to Customer
    Component MM-IM-GF-BAPI BAPIs for Goods Movements
    QM-CA Quality Certificates
    Priority Normal
    Category How To
    304122 MIGO: Batch input and CATT not supported
    Other Components

  • 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

  • Adding field in standard report

    Hi,
    I have copied the standard table RM07MLBD(T-code MB5B) into Z-Report.  Now, i have to add a field LSMNG into the list output of the report.
    How to do that.?
    Plz help.!

    Thanks Max.I am not aware of this.
    But what if the required fields are not available in the standard prog then I think we have to check for either enhancement spots or copy the standard prog.Thanks again for making us aware of this INCLUDE and its functionality
    Mohit,
    RM07MLBD_CUST_FIELDS is already having LSMNG fields which needs to be uncommented.Fyi,documentation of this include is as follows
    * This include contains the structure for additional fields for report
    * RM07MLBD ( transaction MB5B )
    * the following fields are not shown in the list of report
    * RM07MLBD
    * If you want to insert some of these fields in the list of the
    * hidden fields delete the '*' in the type definition.
    Thanks,
    K.Kiran.

  • Adding Custom Fields to Communication Structure of 2LIS_02_ITM (MCEKPO)

    Hi
    I have a question about addiing additional fields (KO_PPRCTR) into MCEKPO and enabling it as part of 'true' DELTA.
    The question is then:
    Does the fact that we have this Custom field from EKPO added to MCEKPO would cause DELTA to be triggered automatically each time this field would change? (irrespective of whether a Standard field in MCEKPO has also changed or not).
    Thanks
    BC

    Hi Blues,
    According to the sap online document about data source 2LIS_02_ITM http://help.sap.com/saphelp_sm32/helpdata/en/58/f6383fdb800804e10000000a114084/frameset.htm
    "if you change a purchasing document, the system only takes into consideration the data that is relevant for extraction. The system therefore only executes a delta update for this DataSource if changes are made to purchasing document header data or item data that has a corresponding field in the DataSource."
    which means only changes to standard fields of the datasource will trigger a delta update.
    But who knows, Stefan's answer may be right. Practice is the sole criterion for testing truth, so why not have a test?
    Additionally, you could also check the famous blog article about this topic by Roberto Negro:
    /people/sap.user72/blog/2005/02/14/logistic-cockpit--when-you-need-more--first-option-enhance-it
    Hope it helps.
    Regards,
    Qing

  • Delivery Note Quantity in BAPI

    Dear Gurus,
    I am working in SAP-AFS 6.2 and using BAPI ( /AFS/BAPI_GOODSMVT_CREATE )  for Z-Development of Goods Recepit of RM and FG.
    This BAPI I am using for Goods Receipt against Production Order, Purchase Order( Including Subcontracting Purchase Order).
    I am not able to find the feild for "Delivery Note Quantity" in that BAPI , Can any one help me out ?
    Regards
    Siddharth

    >
    Kishore Kumar Chiluka wrote:
    > Hi
    >
    > This field is not avialbal in the BAPI.
    > LSMNG - Quantity in Unit of Measure from Delivery Note
    >
    > Why do you require this data, i think SAP has not provided this field as you will be receiving this data
    > from interface and the delivery note qty is equal to Qty in unit of entry.
    >
    > Try finding out some enhancement point in this BAPI - hope it will be helpful but i am not sure how we can use that...
    >
    >
    > Thanks & Regards
    >
    > Kishore
    Is it really ok if the LSMNG field is left blank in the MIGO through BAPI_GOODSMVT_CREATE? I mean does it affect any other transaction?
    pk

  • Update field LSMNG in MIGO transaction using bapi bapi_goodsmvt_create

    Hi ,
       I am using bapi bapi_goodsmvt_create  for creating goods receipt against purchase order in which I have to update field LSMNG i.e. Del. Note Qty. But this field is not there in BAPI input parameters/table fields.
    How i can update this field using the same bapi
    Thanks and regards
    Deepak Sharma

    Hi,
       Can I update this field using BAPI bapi_goodsmvt_create.
    thanks
    Deepak

  • 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

Maybe you are looking for