Badi or User exit to modify MSEG data during Goods issue

Hello,
I have a requirement to modify the field plant MSEG-WERKS while doing goods issue of outbound delivery via transactiona VL02N.
Can anybody suggest me which BADI or user exit should i use.I have searched the SDN and all the previous threads on this haven't yeild any solution for this.
I have tried with below listed Badis and enhancements which wont work.
Badi
===================
MB_DOCUMENT_BADI
MB_MIGO_BADI
LE_SHP_GOODSMOVEMENT
DELIVERY_PUBLISH
Enhancements
===============
MB_CF001
MBCF0005
Thanks and Regards,
Koustubh

Hi,
I am facing a similar issue of updating the MSEG-DMBTR field when Post Goods reciept is done in VL02n.
I hav tried to update the value in LE_SHP_GOODSMOVEMENT BADI and tried to modify the structure .
eg in this way
method IF_EX_LE_SHP_GOODSMOVEMENT~CHANGE_INPUT_HEADER_AND_ITEMS.
data: wa1 type LINE OF shp_imsegvb_t. "IMSEGVB.
DATA: flag TYPE c.
LOOP at CT_XIMSEG INTO wa1.
  wa1-dmbtr = '12345'.
MODIFY CT_XIMSEG FROM wa1.
" TRANSPORTING dmbtr.
flag = 'x'.
ENDLOOP.
endif.
endmethod.
The value gets updated in the structure but when the material document gets created then the table MSEG has the amount DMBTR field not changed.
Also, I tried doing the updation in the Function eXit : EXIT_SAPMM07M_001 by the method mentioned in different threads:
betweeb statemnet if  sy-tcode = 'VL02n'
FIELD-SYMBOLS: <DMBTR> TYPE any,
<DMBTR1> TYPE any.
ASSIGN '(SAPMM07M)MSEG-DMBTR' TO <DMBTR>.
assign (<DMBTR>) to <DMBTR1>.
But still on save of the material document in MSEG I cannot find the new DMBTR field value.
Kindly help me on this, urgently required. I have already gone through the number of threads in the forum, but no solution.

Similar Messages

  • BADI or User Exit for updating MSEG

    Hi,
       We are using ECC 6.0 and here is the scenario that we have to update custom fields into VBAP, LIPS and MSEG tables when these fields are entered on the sales order screen VA01,VA02.These field are added on this screen using Additional Data B screen.Also, These fields are there in VBAP and LIPS through Append Structure and MSEG through CI_COBL.Is there any BADI or USER EXIT for this.Thanks in Advance.
    Priya.

    Hi
    You can use exit ZXMBCU02 ( Function EXIT_SAPMM07M_001
    in SAP enhancement MBCF0002 ). Here also whtever changes you make to I_MSEG will be lost as MSEG is an importing parameter. You can do something like this.
    FIELD-SYMBOLS <F1> TYPE MSEG.
    DATA NAME(50) VALUE '(SAPMM07M)MSEG'.
    ASSIGN (NAME) TO <F1>.
    <F1>-KOSTL = 'XXXX'.
    ( In above example MSEG-KOSTL will be set as XXXX, you can change any of MSEG fields in above way. ).
    Cheers

  • BADI or User exit to update the data in a PO(ME22N or ME21N)

    Hi,
    I require a BADI or an user exit to update all the line items of a PO...
    Please let me know if there is a badi or user exit that triggers before the saving of the PO..and also updates the values of all the item data fields..
    Thanks in advance
    Regards
    Shiva

    Hi,
    we have checked above BADI;s but will not suffice the requirement;
    The requiement is
    While Creating PO(ME21N) and Changing PO(ME22N):
    When the user tries to Save the PO:
    All the line items should be accessible and can be editable.
    If the validation fails, error message should be displayed on
    the screen and user should be able to edit at that location.
    Please let me know if there is any other way or enhancement point for the same...
    Regards
    Shiva

  • User exit to modify likp-vsbed  during the creation of the delivery

    Hi ,
    I need to find an exit to modify LIKP-VSBED while I am trying to create a delivery(VL01N) from a sales order . I did not find any exits . Also when I referred to the OSS notes , I found this note elevant 396378 .  From the note I guess it is not possible to modify the above said field .
    Can anyone help me out with this .
    Regards ,
    Varun .
    Message was edited by:
            varun sonu

    Hi,
    In the include MV50AFZ1 check the following user exit
          FORM USEREXIT_MOVE_FIELD_TO_LIKP                              *
          This userexit can be used to move some fields into the        *
          delivery header workaerea LIKP.                               *
          This form is called, when a header is created                 *
          This form is called at the end of form LIKP_FUELLEN.          *
    FORM USEREXIT_MOVE_FIELD_TO_LIKP.
    Thanks,
    Naren

  • User exit or any other enhancements during good receipt

    Hi
    i am lookin for user exit or other enhancements during MIGO / goods receipt
    actually i want to generate internal serial no. with my own logic
    the system should take serial number with my own logic at the time of goods receipt .

    Hi,
    Plz find the below exits,
    Enhancement
    MBCFC004                                Maintenance of batch specifications for goods movements
    MBCFC003                                Maintenance of batch master data for goods movements
    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
    MBCF0002                                Customer function exit: Segment text in material doc. item
    MBCF0005                                Material document item for goods receipt/issue slip
    MBCF0006                                Customer function for WBS element
    MBCF0007                                Customer function exit: Updating a reservation
    Business Add-in
    MB_DOCUMENT_UPDATE                      BADI when updating material document: MSEG and MKPF
    MB_DOCUMENT_BADI                        BADIs when creating a material document
    MB_CIN_MM07MFB7_QTY                     Proposal of quantity from Excise invoice in GR
    MB_CIN_MM07MFB7                         BAdI for India Version exit in include MM07MFB7
    MB_CIN_LMBMBU04                         posting of gr
    Regards
    Ravi Ganji

  • User exit to triger after PGI (Post Goods Issue)..

    Hi,
    Can any one help me on this........... Plz .. Urjent...
    I want to make some operation after PGI and I want to find out the user exit to triger after PGI... I dont know How to find out that exact .. Can any one help me on this ...
    I want the User exit that triger after PGI...
    Regards,
    Raghunath.S

    Hello Sudha,
    Once the PGI ( Post Goods Issues ) over then I want to do some operation .. for that I want to find out the user exit where I can write some logic and process after the PGI...
    Can you help me on this Plzzzzzzzzzzzzz....

  • BADI or User-Exit for MSEG

    Hi,
    I'm looking for a BADI or User-Exit to modify a field in MSEG. This field is an IS-Oil component, but, I must modify this field when I make an outbound delivery.
    I have tried the BADI MB_DOCUMENT_BADI but the system short-dumb when I modify the field. "The program tried to assign a new value to a field even though it is protected against changes.".
    If you have any user-exit or BADI or any solution for this BADI please tell me.
    Regards
    Frédéric

    Hi
    You can use exit ZXMBCU02 ( Function EXIT_SAPMM07M_001
    in SAP enhancement MBCF0002 ). Here also whtever changes you make to I_MSEG will be lost as MSEG is an importing parameter. You can do something like this.
    FIELD-SYMBOLS <F1> TYPE MSEG.
    DATA NAME(50) VALUE '(SAPMM07M)MSEG'.
    ASSIGN (NAME) TO <F1>.
    <F1>-KOSTL = 'XXXX'.
    ( In above example MSEG-KOSTL will be set as XXXX, you can change any of MSEG fields in above way. ).
    Cheers

  • Badi or user exit for FTR_CREATE for modifying the Payment Details

    Hi,
    I need a Badi or user exit that will modify the internal table for the "Payment Details" in transaction FTR_CREATE. Basically, instead of using the default entries in the "Payment Details", data from a Z custom table will overwrite the "Payment details" or the internal table containing the "Payment details". This should create entries in the Transparent Table VTBZV with the values fron the Z custom table.
    I'm trying to implement the BADI FTR_TR_GENERIC but I cannot find where and how to modify the original "Payment Details" entries. Or if its even possible to do this.

    Hi Ravi,
    I was trying to do that but I am not sure were to start. I tried to modify the contents of PI_PROXY_TRANSACTION->A_TAB_CASHFLOW using MODIFY <itab> but an error occured when I tried to activate it saying that the Class/Interdace Attribute is read-only and cannot be modified. Is there a Method that I need to do in order to modify the Attribute? (I'm not that familiar yet with Classes and Methods though)
    Also, just to test, I manually changed the contents of two internal tables containing the "Payment Details" data during debug mode. But after the program has ended its run and finally saved the data, the Table VTBZV was not updated with the manual data I introduced. So I'm not sure if the Badi FTR_TR_GENERIC (which is I'm implementing) really allows the "Payment Details" to be modified or if I'm modifying the correct internal table(s).

  • BADI USER/EXIT for inserting cust. data after the Pruch. Requsitio is SAVED

    Hi all,
    Is there any  BADI or USER EXIT available for the transaction ME51N to save
    some customer data fields in a separta Z table , after the data is saved from the
    Purcahse requistion .
    I  have used the customer exit MEREQ001 for additing the customer filelds with TABLE CONTROL.
    I am not able to save the data from the table control . Any suggestion on this will be apprecitated  .
    Best Regards

    Hi,
      You have  to use 'EXIT_SAPLMEREQ_003' to import data from screen to your tables and use 'EXIT_SAPLMEREQ_001' to send data to screen.use the below code like below:
    EXIT_SAPLMEREQ_001:
    tables : ci_ebandb.
    data : i_mereq_item type mereq_item.
    if im_req_item is initial.
    clear: ci_ebandb.
    else.
    i_mereq_item = im_req_item->get_data( ).
    move-corresponding i_mereq_item to ci_ebandb.
    endif.
    EXIT_SAPLMEREQ_003
    data : i_mereq_item type mereq_item.
    if not im_req_item is initial.
    i_mereq_item = im_req_item->get_data( ).
    move-corresponding ci_ebandb to i_mereq_item .
    call method im_req_item->set_data( i_mereq_item ).
    endif.
    Also set the flag EX_CHANGED = 'X' to transafer the changes to database
    Regards,
    Himanshu

  • Badi or User exit for CJ20N..Milestone date

    HI...
    I have to access the field of CJ20N fieldname (LST_ACTDT) (Milestone date).I have to send the alert mail using that value.
    But i am unable to get the BADI or user exit to get that value.I am using the BADI  WORKBREAKDOWN_UPDATE. But not reaching to solution.
    Can anyone help me out..

    Hi Priyank,
    Instead of that you can directly use the BAPI -BAPI_PROJECT_GETINFO
    CALL FUNCTION 'BAPI_PROJECT_GETINFO'
    EXPORTING
    PROJECT_DEFINITION           =
       WITH_ACTIVITIES              = 'X'
       WITH_MILESTONES              = 'X'
       WITH_SUBTREE                 = 'X'
    IMPORTING
      E_PROJECT_DEFINITION         =
      RETURN                       =
    TABLES
       I_WBS_ELEMENT_TABLE          = " send the pspnr value by appending in the table i.e. IT_WBS_ELEMENT-PSPNR
      E_WBS_ELEMENT_TABLE          =
       E_WBS_MILESTONE_TABLE        = "catch this in a internal table
      E_WBS_HIERARCHIE_TABLE       =
      E_ACTIVITY_TABLE             =
      E_MESSAGE_TABLE              =
    If u wish to have details of wbs only..by entering WBS ELEMENT in I_WBS_ELEMENT_TABLE u have to give
    WITH_ACTIVITIES X
    WITH_MILESTONES X
    WITH_SUBTREE X
    then only u will get deatils of corresponding wbs via bapi BAPI_PROJECT_GETINFO.
    In the milestone internal table you will have all the dates.
    Please refer to the function module documentation for further details.

  • BADI/User Exit to capture DELETED DATE - MIRO/MIR7

    Hi Friends,
    Could anybody help me out in finding a BADI or User Exit (or some other means) so as to get the actual deleted date for the documents parked through MIRO/MIR7 ?
    (I have found a BTE to capture the deleted date for the documents parked through FB60/FV60.)
    Thanks in advance.
    Regards,
    Saravanan SR

    Hi Uday,
    User exits are:
    EXIT_SAPLMR1M_001 - MM08R002 - User exit for tolerance checks
    EXIT_SAPLMR1M_002 - LMR1M001  - User exits in Logistics Invoice Verification
    EXIT_SAPLMR1M_003 - LMR1M001  - User exits in Logistics Invoice Verification
    BADI's are:
    BADI_ENJ_ALT_ADR - Go to alternative vendor/customer data
    MR_CIN_LMR1MI2G_SEL - BAdi in LIV for determining line selection
    MR_CIN_LMR1MI2G - BAdI for India Version exit in include LMR1MI2G
    Regards,
    Sukhbold

  • Badi/ User Exit - to update item data on Post GR in MIGO

    Guyz,
    I have a requirement to update the value in ALAN1 , ALAN2 fields while posting GR in MIGO. And also I need to access the value of realted PO (ebeln) and line item(ebelp) and equipment number(or serial number) EQUNR filed ,while doing the coding for this enhanemnet.
    I was looking for Badi or User exit to meet the need. I have found a Badi MB_MIGO_ITEM_BADI, which I have implemented. I have put a break in the method and found that I can access all the value in the above mentioned field (IS_GOITEM, is the sturcture in the Badi signature) but one problem still persists.
    I can see only the last line item(ebelp), in IS_GOITEM, where I need to see all the line item, so that I can relate which Equnr is assigned to which Lineitem.
    Please tell me if you know any badi or user exit for this purpose.
    Regd,
    Anid 
    Points Guranteed
    Message was edited by:
            Anid

    Hi,
    we have checked above BADI;s but will not suffice the requirement;
    The requiement is
    While Creating PO(ME21N) and Changing PO(ME22N):
    When the user tries to Save the PO:
    All the line items should be accessible and can be editable.
    If the validation fails, error message should be displayed on
    the screen and user should be able to edit at that location.
    Please let me know if there is any other way or enhancement point for the same...
    Regards
    Shiva

  • Is there a user exit to modify PO line item level..

    Dear Friends,
    Is there a user exit to modify PO line item level..
    Ravi

    Hi...I'm not sure on any available customer exits for this purpose. However you can use the check function exit 'EXIT_SAPMM06E_012' of customer exit MM06E005 and using memory pointers you can change the item level data.
    The other option is to use BADI ME_PROCESS_PO_CUST's method PROCESS_ITEM to change the item level value. I would prefer the BADI rather than the customer exit.. Hope it works..
    Thanks,
    Jude

  • VA01 user-exit to modify net price of line item...

    Hello Experts,
    Is there a user-exit to modify the net price value of a line item upon 'ENTERING' in
    VA01 transaction?
    Hope you can help me guys. Thank you and take care!

    Hi,
    The user exits and badis for va01 tcode:
    Enhancement/ Business Add-in Description
    Enhancement
    V45L0001
    SD component supplier processing (customer enhancements)
    V45E0002
    Data transfer in procurement elements (PRreq., assembly)
    V45E0001
    Update the purchase order from the sales order
    V45A0004
    Copy packing proposal
    V45A0003
    Collector for customer function modulpool MV45A
    V45A0002
    Predefine sold-to party in sales document
    V45A0001
    Determine alternative articles for product selection
    SDTRM001
    Reschedule schedule lines without a new ATP check
    V60F0001
    SD Billing plan (customer enhancement) diff. to billing plan
    V46H0001
    SD Customer functions for resource-related billing
    V45W0001
    SD Service Management: Forward Contract Data to Item
    V45S0004
    Effectivity type in sales order
    V45S0003
    RP-relevance for incomplete configuration
    V45S0001
    Update sales document from configuration
    V45P0001
    SD customer function for cross-company code sales
    Business Add-in
    BADI_SD_SCH_GETWAGFZ
    Scheduling Agreement: Read WAGFZ from S073
    BADI_SD_V46H0001
    SD Customer functions for resource-related billing
    Pls. reward if useful...

  • BADI OR USER EXIT AT THE TIME OF SAVING THE TCODE MIGO TO UPDAT FIELD LSMNG

    Hello Guru,
    I am using BAPI  BAPI_GOODSMVT_CREATE for GRN creation it is working fine. But i want to update DELIVERY NOTE QUANTITY (LSMNG) at the time of GRN Creation . This field is not provided in the BAPI .
    What i had done i had applied BADI MB_MIGO_BADI to update this field but this badi does not call at the time of saving ( THIS BADI ONLY CALL WHEN WE ARE USING MIGO TCODE AND ON THE SCREEN WE ARE PRESSING ENTER) . so i am not able to update the field (LSMNG).
    So i need a badi of user exit which can updates this field at the time of saving.
    there are exit which are updating other fields at the time of saving but not this one .
    Why i need the badi or userexit which will update the field at the time of saving because when we are using bapi only those badi or user exit are called which are
    used at the time of Saving.
    Kindly suggest any solution.
    Thankyou
    With Regards
    Shantanu Modi

    Hi
    <b>Here is the sample code...</b>
    method if_ex_mb_migo_badi~post_document .
      data: ls_migo_badi_example type migo_badi_exampl,
            lt_migo_badi_example type table of migo_badi_exampl,
            ls_extdata type migo_badi_example_screen_field,
            ls_xmseg   type mseg.
      field-symbols: <gt_extdata> type migo_badi_example_screen_field.
    * Transaction MIGO will now post a material document.
    * Any errors here MUST be issued as A-message (better: X-message)
    * Copy data from material document into internal table
      loop at gt_extdata into ls_extdata.
        if g_cancel is initial.
          read table it_mseg into ls_xmseg
             with key line_id = ls_extdata-line_id.
        else.
          read table it_mseg into ls_xmseg
             with key smbln = ls_extdata-mblnr
                      smblp = ls_extdata-zeile
                      sjahr = ls_extdata-mjahr.
        endif.
        if sy-subrc is initial.
          move-corresponding ls_extdata to ls_migo_badi_example.
          move-corresponding ls_xmseg   to ls_migo_badi_example.
          append ls_migo_badi_example to lt_migo_badi_example.
        endif.
      endloop.
    * The data from external detail screen can be saved now:
      check gt_extdata is not initial.
      call function 'MIGO_BADI_EXAMPLE_UPATE_DATA' in update task
        tables
          it_migo_badi_example = lt_migo_badi_example.
    * The data from external header screen can be saved now:
      move-corresponding is_mkpf to gs_exdata_header.
      call function 'MIGO_BADI_EXAMPLE_UPDATE_HEAD' in update task
        exporting
          is_migo_badi_header_fields = gs_exdata_header.
    endmethod.                    "IF_EX_MB_MIGO_BADI~POST_DOCUMENT
    Hope this will help.
    Please reward suitable points.
    Regards
    - Atul

Maybe you are looking for