BADI after Bills of material change.

hi friend,
I need the name of badi which is called after every change in bills of material for material.
i,e In the TCODE CS02, after changing the quantity and given save, i need to send mail to concerned users intimating them about the change.
I tried using the badi... BOM_UPDATE with the method...Change_at_save, but this method is called before the data is saved into database.
ls help me in solving this.
thank u in advance.....

Hi,
it's quite easy:
Use FM CHANGE_POINTERS_CREATE_DIRECT to write change pointers. You need to define a own Z-message with WE81 and activation in BD50, a field assignment in BD52 is not necessary. Fill the MATNR into objectid, so you know what to search. Maybe the complete MAST key makes also sense.
BP_EVENT_RAISE - look into the FM help to find the transaction to define own events. Just call this FM with MANDT, because events are cross-client - then your job can have a look, if the event was from correct (sy-mandt) client.
Job planning is periodic, but not by time. There is a special option for the events - just have a look, it's quite obvios in SM37, you just have ignored this line up to now.
In the job you select the new change pointer - if there is no change pointer, then wait and select again -> that is the delay for the booking of the transaction. Then you can access the BOM (maybe with a little bit waiting again).
Set the change pointer status = X (FM CHANGE_POINTERS_STATUS_WRITE), so that you don't read pointers twice.
Works good in most times - if you don't wait enough for one pointer, it will be handled with the next run a little bit later (weeks, if no one changes a BOM? You can schedule a daily job for this, too).
Regards,
Christian

Similar Messages

  • Bill of material change & Cost collector

    Dear All,
    In case of our client scenario,they are using REM with standard cost collector.
    But the frequency of changing the bill of material is more , So is It necessary to change all the time
    product cost collector.
    Please suggest.
    Thanks In advance
    Regards,
    Pravin

    Hi Pravin,
    Hope you are using REM with setting "Backflush with Standard Cost Estimate".
    If the BOM Components changes frequently, For settlement the Variance will be more.
    Planned Costs will be captured as per Std. Cost estimate, but the Actuals will very considerably.
    If it is OK, then there is no need re-run the Std. Cost Estimate regularly.
    Hence, your CO consultants role is crucial.
    Hope this helps..
    Regards,
    Siva

  • BADI after shoppingcart is created/changed

    Hi Guys,
       I need BADI which will trigger whenever shopping cart is created/changed successfully.  Could you please let me know if you know the BADI at this event.
    Regards,
    Ganesh

    Thanks Pradeep.
    But BADI BBP_DOC_CHANGE_BADI is get triggered after user entry and before saving the document to the database. But I need BADI after shopping cart is saved in DB. Same thing in case of shopping cart is creation.
    Regards.
    Ganesh

  • Change Sales order Quantity after Billing

    Hi experts
    I m having the doubt in the follw'g scenario :
    Like I have created sales order>Delivery>Billing and Excise invoice. Now after this sales process completion
    i can able to change the Qty in sales order after Billing . I want to know how to control this with Functional or tech
    or with basis people?
    I want ur valuable reply that would solve my problem.
    Regs.
    SR

    Hi
    SO qty field in CHANGE MODE. I want to display the same into
    ONLY DISPLAY MODE.
    This is not possible by standard configuration
    Check with your ABAPer for any userexit or enhancement
    After billing is over if the user adds another line item in the sales order in VA02 mode that too has to be controlled by user exit
    Regards
    Raja

  • IDOC after Material Change

    Hi all,
    I would like to send a IDOC after a material has changed.
    I have to send the complete material by IDOC, so not by the change pointers (TC BD21).
    Normally a user would change a material and then would start BD10 to send the material.
    I have found a user exit EXIT_SAPLMGMU_001 but a that point the material is not saved.
    How can I start BD10 after the material has been saved?
    Or does someone know another way to achieve this?
    Greetings Fred.

    Hi Frek ,
    If u r working ECC after saving the material (Please Check the code) . After this code create an  Enhance Spot . where u can call ur transaction .
    I hope it resolves ur problem .
    Rgds
    Sree M
    Edited by: Sree  Merugu on Apr 21, 2008 5:00 PM

  • Want to Find Table name of Show Differences Values from Change Log of Bills of Material

    Dear Experts,
    I Add and edit the data of Bills of Material Form in SAP B1.
    I know that with using change log i can find out the history
    to change that particular record.
    I also know that It Use AITT and ATT1 for History Data to be saved.
    but when i click on Show Differences button then it will display details history
    but i can't find out that table that data are display in Show Difference.
    I hope you all are understand my requirement.
    Thanks & Regards,
    Nishit Makadia

    Hi Nishit...
    There is no separate table for the History, it is a query driven report shown in the show in the change log.
    if you need to understand the change u need to check with the history tables....
    hope helpful
    regards
    Kennedy

  • RRB - DP90 - DMR Billing and Material reverse

    Hi Experts,
    Our client issued materials against a Service order and created Debit memo request and Billing document. For Some reasons (decided to send the materials after a month to the intended customer since the sames materials are required to some other customers as it is critical requirement)they want to reverse the materials back to stores by cancelling bill and DMR.
    1. We cancelled the billing document (VF02), set Reason for Rejection in DMR.
    2. We reversed the materials back to stores by MB11, 262 movement type.
    3. After a week, we issued the materials against the same Service order MB11,261.
    When we try to create DMR(DP90), System shows that "No data was changed".
    Am I doing right SAP steps for this scenario? Any help would be appreciable.
    Babu

    PeteA,
    Thanks for your response. After setting OLI Flag in RFR, system generates another DMR.
    I. Standard flow
    1. created a Service order with a material (10 qty)
    2. Issued materials against the Service order MB11, 261 Mvt.
    3. Generated DMR (DP90) w r t Service order
    4. Created a Billing document w r t the DMR
    II.Material reversed back to the stores
    5. Cancelled the Billing document
    6. Set RFR in the Sales document (DMR) item
    &&> I could generate a DMR here <&1&
    7. reversed the materials back to the stores MB11, 262 mvt. (10 qty)
    &&--> If I run DP90 here, system generates Credit memo request --&&
    8. After some time, I issued the materials against the same Service order (10 qty)
    &&> I am not able use the button To order in MB11 initial screen... the materials are not listed out as they have been issued in step 2. <&&
    9.   Created DMR (DP90) again w r t Service order
    10. Created another Billing Docuement w r t second DMR
    Is my flow correct?
    Is it necessary to create a Credit memo request (CMR) after reversing the material back to the stores (MB11,262 mvt)?
    I have confusion in the flow. What is the standard SAP best practice for this scenario?.Please help me out.
    Babu

  • Open order should be closed after billing

    Hi,
    I want to know after completion of complete process of sales, all the documents should be closed automatically, not allow to change in sales order, delivery, PGI & Billing document.
    Open order should be closed after billing
    Regards,
    Vijay Sanguri
    9324905500

    Hi
    Any order say order no 1000 contains material A and material B both 10 each
    Order delivered and billed and even payment has come
    Now no user should put the order in VA02 order no 1000 and change the quantities from 10 to 12 of both materials A and B
    how to control this
    OVAH t code message no V4--083 change from warning to error
    Mostly this is the message number or by testing you can find out the exact message number
    It is V4 type only available for customization in OVAH t code
    this will take care of qty change
    Now in VA02 mode material C should not be added along with material A and material B both 10 of each
    This has to be controlled by userexit
    Regards
    Raja

  • Set sales order status is complete after Billing document created

    Hi experts:
    Current
    Complete rule of item category 'TAN' is space.
    The Status will be set complete after Delivery  document is created.
    I want to change the rule to
    the status will be set complete after billing document is created.
    Han can I do it ??

    Go to VOV7, select the item category and execute.  There maintain "B" against the field "Completion Rule"
    thanks
    G. Lakshmipathi

  • How to Block Bill of material.

    Dear  Sirs,
    Following is the scenario.
    Some of our Bill of materials are Imported.  These BOM are exclusively procured to manufacture certain Finished Products.  
    I would like to know how these BOM can be blocked or  how i can block the issue of these BOM other than those fixed to manufacture Finished produces.
    FOR EXAMPLE  : FINISHED PRODUCT CODE   : FG1234
                                BILL OF MATERIAL              : RMXYZ
    The above BOM is exclusively imported to manufacture FG1234.  This BOM may be used to manufacture other Finished products also,  but this should be allowed to Issue only for FG1234.  How to configure or should we have to changes in maerial master.
    Thanks in advance.

    These BOM are exclusively procured to manufacture certain Finished Products.
    If you use MTO, then it is possible.
    The above BOM is exclusively imported to manufacture FG1234. This BOM may be used to manufacture other Finished products also, but this should be allowed to Issue only for FG1234. How to configure or should we have to changes in maerial master.
    If you are using  MTO Scenario, then you can achieve your requirement.
    If you are using MTS Scenario, Then create a separate material code for each BOM, So that You can avoid using the other production order.
    Edited by: Sundaresan . E. V on Mar 16, 2011 3:34 PM

  • WEB ADI INTEGRATOR FOR Bill of Material

    I am developing a WEB ADI integrator for Bill of material upload. The integrator will populate the data in a temporary table, validate it & write the error messages back to the table . On succesful validation the data will be sent to interface tables & then to base table.
    The integrator uses a procedure & sends data to the procedure. Procedure then loads data in temporary table & does the rest of work.
    To do this i need to know the following thinngs:
    1. How i can track the line no of Excel?
    2. How do I know that all data are loaded in temporaray table because the validation & rest of work will be done once all the rows of excel are transfered to temporaray table. i.e. How do i determine the End of File in Excel?
    3. How do i write error messages from the table to the excel in web adi?
    Any help will be appreciated. Please send me the sample scripts & web adi developer guide at [email protected],[email protected]

    If you check the XML that Web ADI generates to upload a document you will note that each row gets a row number. It would be a matter of being able to keep track of that number in your table so that when you are reporting the error back you can include that number in the message so the code in the Excel spreadsheet can assign it to the correct row.
    I would suggest trying to use even some of the basic validation mechanisms provided within Web ADI, as these will automatically return the error messages for bad data to the correct row in the spreadsheet.
    Web ADI will take the uploaded data, perform any validation check defined within meta-data then push the data to your Interface table. There are plenty of examples in th shipped code of product teams then using the Import phase of the upload to perform additional checks and then push the data further. But if you can utilize the existing Web ADI functionality. The data never ends up in the table in the first place to require any clean up on your part.

  • Error while deleting Bill of Material

    Dear Expert,
            when i am deleting complete Bill of Material for a plant, i am getting error as Engineering change mgmt called with data that could not be interpreted
    Message no. CC092 or some times Message CC 061with diffent message
    Diagnosis
    You have chosen an engineering change management function.
    As the function module was called with an incorrectly configured interface, the data could not be interpreted.
    if i ignore this error message & save it then it will delete whole BOM. But i unable to understand why this error getting. recently we have implemented EHP-3 also for FI Module & also implement SAP Note:1278790 to resolve for BOM creation error.
    Regards,
    Ishwar

    Hi,
    i think, u introduced "Engin. Change managemnt  "
    Plz check that one and revert me back
    Thanks
    jeetendra

  • Base unit of measure is cahnging after creation of material master

    Hi
    I have created a material with material type Raw material with BUM  "Ton" , after save the material, when iam checking the material with display mode, the BUM is changed into "EA",i dont know where the sustem picks the BUM as "EA", kindly suggest where i have to do the configuration settings.
    Thanks

    Hi,
    Have you created the New Material referencing from another material.
    Please check the following links for details. It should be able to answer your queries.
    [Re: can't able to change into alternate UOM]
    [Re: variable order unit]
    [Re: Base Unit of Measure]
    Hope it helps,
    Best regards
    Amit Bakshi
    Edited by: AMIT BAKSHI on Aug 4, 2011 12:44 PM

  • Trigger badi after giving data in custom tab of po item

    Hi,
    We have added custom tab in po item level, now we want to make those fields manditory
    for specific document type.We are using badi ME_PROCESS_PO_CUST .
    The message is getting triggered initially , but after giving data in the custom fields the badi
    is not getting triggered again.And triggers if we make changes to some other fields in po.
    So can we trigger the badi after giving data in custom tab ?
    I was trying something like this.
    method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM .
      DATA: l_if_header TYPE REF TO if_purchase_order_mm,
            ls_header TYPE mepoheader,
           ls_mepoitem TYPE mepoitem,
      l_if_header = im_item->get_header( ).
      ls_header   = l_if_header->get_data( ).
      CALL METHOD im_item->get_data
        RECEIVING
          re_data = ls_mepoitem.
    IF ls_header-bsart = 'BW'.
    if ls_mepoitem-ZZONAME IS INITIAL.
    MESSAGE 'Plz enter Operator name in custom data' TYPE 'E'.
    endif.
    endif.
    endmethod.
    Any pointers are welcome..

    Solved using exit EXIT_SAPMM06E_012
    This exit will trigger even after giving data in custom tab at po item level.

  • Explode Bill of Material on Purchase Order

    When we create a standard NB purchase order, we would like to explode a bill of material for the 1 finished goods material and create MRP requirements for the warranty materials on the BOM.  Basically, we want a requirement there so we can create a PO for these warranty materials.  We have looked at subcontracting, but we are not wanting to supply these materials to a subcontractor we just want to purchase them from a vendor and bring them into our inventory.
    We realize that we can explode the BOM if we start with a planned order.  However on alot of occasions we skip over the planned orders and purchase requisitions and manually create the PO.
    Does anyone know of a process to explode the BOM from the PO? or maybe a user exit on the PO that would allow us to do this.  
    We are currently on version SAP 4.6C.
    Thanks,
    Mark

    Hi James,
    As you rightly mentioned, the purpose of a BOM is to contain a list of materials. To create   
    a sales BOM. use T.code CS01.
    Here you give the usage as 5 - indicates sales and distribution as there can be production boms also with a different usage.
    After you enter inside give the components that make up your main material, say music system containing
    Itemcat          material               Qty  
    l               2 mt wires                2
    l               speaker                   2
    so on, then save it.
    For each of these you should have a material master created. For the main item ie., music system select the item category group as " ERLA " for header level pricing and
    " LUMF " for item level pricing.
    Maintain item category determinations in VOV4 as
    <b>For item category group ERLA</b>
    OR + ERLA                         -
    >  TAQ ( Header level pricing )
    OR + Norm +     + TAQ (higher level item cat ) -
    > TAE
    <b>For item category group LUMF</b>
    OR + LUMF                         -
    >  TAP ( Item level pricing )
    OR + Norm +     + TAP (higher level item cat ) -
    > TAN
    This will setup the scenario you wanted. Now when enter music system in sales order with "  1 " quantity it will explode as
    2 wires
    2 speaker
    as was the component quantity mentioned in CS01.
    Hope it helps. Please reward if useful.
    Thanks & Regards
    Sadhu Kishore

Maybe you are looking for

  • What is the the tag I can use in a custom conversion publish/print template for click box text?

    I have customized a conversion template to generate a storyboard but I can not find a tag to grab the text found in the click box text.  I am able to grab all text captions from text boxes.  HELP!

  • Which replacement CMOS battery do I buy for my HP G6 Series?

    I need to replace my CMOS battery. My laptop is a HP G6. When I search the product number it comes up as a G6-1b60us. The only new CMOS replacement batteries I see listed on eBay are for HP G6-2000. Will that CMOS battery work for my HP?  I see liste

  • C7 log problem

     When I go to my phone log I've found that although the setting is for keeping calls for 30 days everything disappears after 1 day. All was fine until last week and then out of blue it does not keep log more than 24h.

  • Retry "Bulk Load Post Process" batch

    Hi, First question, what is the actual use of the scheduled task "Bulk Load Post Process"? If I am not sending out email notification, nor LDAP syncing nor generating the password do I still need to run this task after performing a bulk load through

  • Is the form action will be called automatically if there is no SUBMIT

    Hi there, i have a JSP with form action set to an Action class. the form dont have any submits. when i call the JSP the action class and and ActionForm are fetching the data displaying it on the same JSP(as i required). i am new to struts. even after