BOM verification before saving

Hi,
I need to do BOM adjustments with program code.  Because there is no way remove or update a BOM line with code, I have to copy the original BOM to another BOM making changes along the way.  When done I have to remove the original BOM and then save the new BOM with the same key item ID as the original BOM.  My problem is that if something goes awry and I can't save the updated BOM, there is no way to recover the original BOM.  Is there a way to test the integrity of the updated BOM without adding it to the BOM collection?
Thanks,
Mike

Adele,
Thanks for the suggestion.  I did use a transaction and it appears to have worked well.  While I was deleloping the code to do the BOM update, I had a few instances where it appeared to have rolled back when my code did something bad.  But what is the best way to really test it?  A BOM-to-BOM copy appears to be more tolarent than a BOM-to-PdO copy.  What is a good data way to test the a BOM-to-BOM copy.  Can I have the confidence that if my code encounters a situation I didn't acticipate, it will rollback?
Transactions appear to be problematic to test.
Thanks,
Mike

Similar Messages

  • Tcode FV50: How to find long text in FI Document line item Before Saving.

    Hi,
    How to find long text in FI Document line item.
    During Parking of the FI document through Tcode FV50 i m giving the some text in the long text not in the text field.
    I would like to validate the Long Text Before Saving in user exit "U300" under  the  "Sunstitution" .
    Please anybody can be help me out where exactly this long text is going to be stored or in which internal table or memory id.
    Please give me the answer as soon as possible .
    Note:- Read_Text function module is not useful. Because Read_text useful after saving document.

    Hi Amit,
    In application area FINANCIAL ACCOUNTING , go for node LINE ITEM. Here create a step & maintain the prerequisite as per your requirement & in the check you can mention the code or you can direct it to a custom program like ZFI_RGGBR000.
    Here while maintaining the check you will get structures BKPF & BSEG in which you will get the desired field you are looking for.
    Just try to explore in your system how the other validations are maintained.
    After you are done with all your code, you have to run the regeneration program RGUGBR00.
    Here utmost care should be taken while running regeneration program, you should select all the checkboxes in the selection screen except  GENERATE SETS, GEN SUBSTN ROUTNS IN ALL CLNTS  & TRACE PROG. GENERATE CALLS .
    Hope this make your doubt clear.
    Regards
    Abhii

  • How to read the status changed in crmd_order txn before saving it to DB.

    hello all,
    My requirement is to perform some checks after the user changes the status
    ( Before saving it to DB i need to do some checks )
    I could find the BADI and Fm's for checking conditions.
    My question is i need to check for a particular status change how do i trace that that particular status which i need to capture has been changed??
    i could see some FM's but it is only fetching the staus save in DB.
    how do i trace the status just after user changes before saving it to DB.
    it's an urgent requirement............pls help me on this..........
    pls get back to me if u want more  details.........
    Thanks,
    Shiva.

    Hello.
    Have you figured this out yet?  We are having the same problem.

  • ITunes 8 no longer asks for verification before downloading?  Why not?

    I recently downloaded and installed iTunes 8 on my new laptop, and one of the first things I noticed was that whenever I clicked to download a song, it happened immediately, without asking me if I was sure I wanted that particular song.
    I thought this was a good thing, until I slipped on my touchpad and ended up downloading a song I had absolutely no desire to have.
    So, my questions here are twofold--- 1, is there anyway to get rid of that song and get my money back? It's only a single song, but it's a single song that could be used elsewhere.
    And two: how do I toggle it so that iTunes asks for verification before downloading again? Apparently, I can't be trusted with my iTunes money otherwise...

    Check out the section named "How can I prevent accidental purchases?" in this page
    http://www.apple.com/support/itunes/store/buy_troubleshooting/
    edit - and you can reset the warnings, too
    http://support.apple.com/kb/HT1734
    Message was edited by: Katrina S.

  • Pop up Window before saving remembering the need (forcing) to fill required fields in a form

    Hi!
    I searched the "old" forum and have very good help from UVSAR but unfortunately I'm not able to access my message sent to that forum anymore.
    [I could never thank all the people who answered because I keep receiving "Your submission has triggered the spam filter and will not be accepted.""]
    I've have never use Java scripts in my life: I started about three days ago.
    1) I'm using Adobe Acrobat Pro X (Windows 7)
    2) I've created a form using Microsoft Word and save it as a pdf file.
    3) After I created a form using Acrobat Pro X;
    3.1.) This form it's not going to be submitted over Internet. It will be send by e-mail to some persons. They will receive it, fill in the form and send it back to me via e-mail. Note: I will save it with extended rights in order to allow to be read with acrobat reader (I'm the only one of the group having Professional edition).
    4) In that form I've created some text fields (for now it's just what I need - no radio buttons, dropdown
    menus, and so...)
    5) Choosed Properties and marked 7 fields as "required";
    6) Used a script I found in here: http://forums.adobe.com/thread/784322 (thank you for the authors of the thread)
    if (!event.target.valueAsString) {
    app.alert("My text My text", 3);
    7) This script allows me to remember people to fill that 7 specific fields (when using mouse or tab).
    8) So... What I really need? Here are the reasons for my request for help:
    8.1.) When people use the Acrobat Reader Save button (not a button I created inside the form) it will pop up an alert message. Users will receive a pop up window telling them they need to fill those fields before saving the form and send it back to me. Can someone share a script, please? Thanks in advance.
    8.2.) Is there a way to colorize the fileds that need to be filled? Again I only learned where to insert a java script yestaerday sou I'm not able to write one. I'm sorry for my newbie questions.
    8.3.) Last question: In one of the fields there will be an e-mail address. On the end of the form I want to create a button like "Send by e-mail" and When someone press that button the e-mail will be sent to the address that was written in the earlier specific field. How can I do this (link a button to an e-mail address in a specific field)? Can someone help me with a script or ideas? Hope I was clear.
    8.1.) UVSAR sent me the following code that works fine untill I save the document for the first time. Affter that he never shows me pop up window again.
    var isFilled = true;
    for (var i=0;i < this.numFields;i++){
    var f = this.getNthFieldName(i);
    if (this.getField(f).required && !this.getField(f).valueAsString) isFilled = false;
    if (!isFilled) app.alert("You must complete all the required fields");
    8.3.) With the help of UVSAR I used:
    var mailto = this.getField('emaddr').valueAsString;
    if (mailto!='') this.mailForm({ bUI:true, cTo:mailto, cSubject:"This is the subject", cMsg: "This is the body of
    the mail." });
    else app.alert("Cannot submit form until the email address field is completed");
    but gives me an error (Note: I named the filed with e-mail "emaddr")
    Once again Thank you so very very much to all the kind people who take their time to share knowledge...
    I'm not a native speaker, sorry for some errors
    Best regards
    AC

    Hi Winnie
    Unfortunately I have been sick and did not read the message before. I apologize.
    I have not received help beyond what is on the page. But when I get I tell you.
    I hope you can get answers. If you receive, I ask that you share with me.
    thank you very much
    best regards
    AC
    Date: Mon, 27 Feb 2012 09:33:10 -0700
    From: [email protected]
    To: [email protected]
    Subject: Pop up Window before saving remembering the need (forcing) to fill required fields in a form
        Re: Pop up Window before saving remembering the need (forcing) to fill required fields in a form
        created by Win_Form in Forms - View the full discussion
    Hi ACI wonder if you can share any responses on to your question above?I too have never used a script but, I have the same problems as you in regards to building a form. And wants to have the same 'protection' and message reminders for the end users. Any information, including a script and/or a contact email of experts you can share with me will help tremendously. Thank you so much in advance. Winnie
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4232307#4232307
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4232307#4232307. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Forms by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • System is allowing to do invoice verification before goods receipt.

    Dear Friends,
                         I need your help in following scenario, as my system is allowing to do invoice verification before goods receipt.
    To test these scenario.I have created one PO.  For this PO I done goods receipt. I done invoice verification by putting invoice date as past date, posting date system date means current date. I want to stop this as system is allowing invoicing verification to be done before goods receipt.
    Also, I tried after un-ticking GR based IV.
    Please suggest me the solution how to stop this. Please help this is urgent.
    With Best Regards,
    Rajesh

    Hi Rajesh,
    A)
    In goods-receipt-based (GR-based) invoice verification, the invoice relates not to the purchase order, but to individual deliveries. That is to say, the reference document for the invoice is not the PO but the delivery note or the goods receipt document.
    Whether you use this approach depends on your billing arrangement with the vendor. This method can be advantageous, for example, when you know the order will be fulfilled by means of many partial deliveries.
    Prerequisites
    Before you can use GR-based invoice verification, the following prerequisites must be satisfied:
    The indicator for GR-based invoice verification (GR-based IV) must be selected for the relevant item in the purchase order (item detail screen).
    <b>
    A goods receipt must occur before the invoice is entered in the system.</b>
    B) If you are carrying out invoice verification with reference to PO, system will not check for the GR. The entire PO amount can be posted.
    Hope this clarifies.
    Thanks,
    Viswanath

  • User Exits for transaction VF01 before saving the billing document

    Can any one say is there any user exit which exits before saving the billing document since i want to check the net value of the billing with the net value of sales order so that it should not go beyond the total amount specified in sales order.

    J_3RSINV
    SDVFX001  User exit header line in delivery to accounting
    SDVFX002  User exit for A/R line in transfer to accounting
    SDVFX003  User exit cash clearing in transfer to accounting
    SDVFX004  User exit G/L line in transfer to accounting
    SDVFX005  User exit reserves in transfer to accounting
    SDVFX006  User exit tax line in transfer to accounting
    SDVFX007  User exit: Billing plan during transfer to Accounting
    SDVFX008  User exit: Processing of transfer structures SD-FI
    SDVFX009  Billing doc. processing KIDONO (payment reference numbe
    SDVFX010  User exit item table for the customer lines
    SDVFX011  Userexit for the komkcv- and kompcv-structures
    V05I0001  User exits for billing index
    V05N0001  User Exits for Printing Billing Docs. using POR Procedu
    V60A0001  Customer functions in the billing document
    V60P0001  Data provision for additional fields for display in lis
    V61A0001  Customer enhancement: Pricing
    These are the Exits Available in the Package
    Jus try finding which will suffice ur Requirement.
    Regards,
    Mithun

  • Print Preview of PO before saving .

    Dear Experts ,
    Is it possible to view a print preview of a PO after  just checking the PO & before saving it ??
    If yes pls let me know how ?
    Regards
    Anis

    Hi Anis,
    yes, you can view a PO in print preview in ME21N before saving it but the following are pre-requisities:
    1 - There are valid messages defined for the PO - check by clicking on 'Messages' at the top of the screen. So long as there is a message defined, you can display, if not, add the output type that you would like to use (NEU for example).
    2 - The output type must be pointing correctly to a printer or valid e-mail address (for e-mail outputs)
    3 - You must have access to transaction ME9F in authorisations - although you are not navigating to ME9F, you will still need the access
    If these things are OK, click on print preview and you will get an image of what the printed document will look like.
    Rob

  • Net value of sales order before saving in VA01

    Hi there,
    I'm currently working with the transaction VOFM whereby i need to get the <b>net value</b> of the current sales order in order to compare with a deposit value which the customer has made.
    a condition type is activated whenever the net value is < the deposit which the customer makes,i.e when sy-subrc EQ 0.
    My problem is that the routine in VOFM(where i have added my code),is triggered before i save the order, hence all i get as net value is always 0.00. That routine is again triggered after i save as well, but it doesnt work as i expected even if i get the net value then.
    I have in fact used the routine USEREXIT_PRICING_PREPARE_TKOMP of include MV45AFZZ, where i could get the net value from the field XVBAK-NETWR <b>after saving the order</b>.
    i thought that now it gets the right value, it'l work as expected but the fact that the VOFM routine is triggered before saving(hence net value 0.00), the condition type doesn't change after i save.
    Hence, my condition type is not being applied properly because the condition type is being activated already when it get the net value 0.00.
    Can anyone please tell me if there is a way to get the net value before saving?
    Thanks for your help.
    Regards,
    Meenakshi

    Hi,
    I have in fact used export flag to memory in FORM USEREXIT_PRICING_PREPARE_TKOMP from which i get the net value after saving.
    In fact, i have figured out the problem but still cannot solve it.
    What happens i that the VOFM routine is triggered more than once, hoewever, the first time it is triggered, i still havent got that net value. In this pass, when the routine ends, sy-subrc eq 0. Upon the next pass to the VOFM routine, i set sy-subrc to 4(condition type not activated), however the result is wrong. The condition type is activated still.
    if i do the contrary, i.e set sy-subrc to 4 on the first pass to VOFM routine and then set sy-subrc to 0 second time(condition type needs be activated), the condition type is not activated.
    what i dont understand is why the VOFM routine is only keeping the initial value of sy-subrc?Any ideas?
    Also, am doing my validations and setting sy-subrc in the form kobev_900.
    Am not using the form kobed_900 at all. Does this make a difference?
    Also, how can i do the validation only when repricing was called form SAVE process?How do i put the condition?
    Thanks for the help.
    Meenakshi

  • Check on vendor email address change before saving PO

    Hi All,
        I need to check Is there any change in Vendor Email address in PO before
    saving. I am trying to find userexits.
    I found some like EXIT_SAPMM06E_012, But here I am not getting complete
    Vendor address...
    Req: I am maintaing multiple email address for Vendor at PO header level.
    Here is the path:  PO Header --> Address tab --> Click on Address Details
    --> Here we can maintain(Insert/ Delete/Change) multiple e mail address.
    So I need to check is there any change in email address before saving.
    Could you please any body help me on this....
    Thanks
    Rays

    Hello Rays,
    One base question,
    Are you going to check the vendor email address manually before saving the PO?
    The vendor address in the puchase order is copied from the vendor master so you can maintain email address (single or multiple) in the vendor master before creating the purchase order. At the time of purchase order creation/save, you can change the default email address and use this to trigger PO to vendor.
    By the way, user exit EXIT_SAPMM06E_012  (Check Customer-Specific Data Before Saving) is used for custom field not for SAP std field.
    Hope this helps.
    Arif Mansuri
    Reward the points if answer is helpful.

  • How do I add a validation prompt before saving a form?

    Hello
    I have a registration form for a family camp. The first page collects the personal information and the second page calculates a financial total. I don't have LifeCycle and designed this using Adobe X Pro. I use a third party data extractor tool for forms returned to move the typed information into Excel. The problem I'm running into is a lot of people don't scroll and complete the second page of the form before saving and submitting it. This results in incomplete information when we extract to Excel and more work for us to process the application.
    My thoughts are this could be partially remedied if the user received a prompt when they go to save the form or after a certain field was completed (perhaps clicking the "I agree" button) that asks them to double check to make sure they completed the second page. Similar to how if they try to type in letters in the phone number field they receive a message that they can only use numbers.
    The problem I'm having is I have no idea if we can create a prompt when someone goes to save the form, or if I can trigger a prompt for after someone completes a particular field and how to go about doing either? Does anyone have any suggestions on how I can accomplish this or where I can look to for some further help?
    Thanks!
    Neil
    PS Here's the form I'm working on - http://accwesterncamp.com/wp-content/uploads/2015/03/Western-Camp-Application-2015-Fillabl e.pdf

    Sorry for the link that turned bad above. Here's a functional one: http://accwesterncamp.com/wp-content/uploads/2014/10/Western-Camp-Application-2015-Fillabl e.pdf
    Ultimately I have decided against continuing to work with a PDF fillable. The functionality I ultimately wanted was too cumbersome. In doing additional research I came across Adobe Forms Central which is being decommissioned. In the FAQ section I found a recommendation for an online form design service called Cognito which I ultimately decided to go with. This service allows registrants to register multiple people, pretty robust form logic, and process payment all at one go. The cost is very small too. If you would like to see how the digitization and online processing of the form turned out you can see it here: http://accwesterncamp.com/registration/
    Thanks for all the help and recommendations in the forum though!

  • How to read header text in MM contract (ME31K/ME32K) before saving record?

    Hi All,
    In ME31K / ME32K (Contracts), before saving the contract I would like to check if the user has entered header text in the contract or not.
    I am using customer exit MM06E005.
    Can anybody help me with this?
    Thanks in advance.

    Try creating dummy text id which will be part of text determination procedure @ Customers sales text & document header text.
    else, maintain the SO10-text against this text ID. whenver user createds quotation this text will be defaulted irrespective of the cusotmer.
          then based on if user want to modify the text they have to enter manually in this text id. print this text in header.
    Regards,
    Reazuddin MD

  • How to validate the values inputted in Salestext view at MM02 before saving

    Hello All,
    Does anyone know what FM or user exit to use in order to validate the values inputted in Salestext view at MM02 transaction before saving it.
    Regards,
    Alfred

    Hello,
    Find the user exits if any after finding keep the break point in the exits and check that cursor is trigrring that exit or not. If it triggers check the value of the salestext exits in the exporting parameters or not.
    if exits then keep do the validations.
    UserExits MM02
    MGA00001            Material Master (Industry): Checks and Enhancements
    MGA00002            Material Master (Industry): Number Assignment
    MGA00003            Material Master (Industry and Retail): Number Display

  • Ho to Generate the Numeric Values Automatically before saving the records

    Hello to everybody,
    I have a data block naming “BILL” consisting of the following 3 field.
    1. Sr_No
    2. Bill_Amount
    3. Description
    This Data Block consist 10 records at a time.
    I want that whenever I insert records in the above data block.
    Serial No should automatically be generated.
    For this I have applied the following code in “WHEN-NEW-ITEM-INSTANCE” trigger.
    <CODE>
    SELECT NVL(MAX(Sr_No),0)+1 INTO :BILL.Sr_No FROM BILL;
    </CODE>
    Whenever I insert records in the BILL data block, the first row automatically generates the “Sr_No”, but when I move to the next record, (remember currently I have not saved the record), the same value which appeared in the previous record appears in the Sr_No field.
    For example, when I insert records for the first time in the BILL, the Sr_No field automatically generates value “1”, but when I move to the next record while not saving the first record the next row still generating value “1”, while it should be value “2” and so on.
    Note that I want that before saving the previous record when I move to the next row, the Sr_No should generate the next continuous value like in example.
    Please help me to solve out this problem.

    You have practically scratched you left ear with your right foot while jumping on the left foot :-)
    Seriously, you guys don't need to go to all this trouble.
    If you want a serial number incrementation, all you need to do is to either select the max value + 1 from the table or select the next value from a sequence in an PRE-INSERT trigger on block level, and that's it!!!!
    Tony

  • 3.6.8: I'm not able to edit the bookmark name before saving it.

    In any webpage on any tab:
    Cmd-d or click star twice.
    The Edit Bookmark dialog appears, with the Name field highlighted.
    My cursor doesn't change when placed over the highlighted Name field.
    If I click or double-click anyway, nothing changes.
    If I press Delete, the field contents are erased and I can type something in.
    The mouse still can't be used to move the cursor or highlight any characters in the field.
    I don't think I had this problem before 3.6.8.

    I'm not the only one with this issue: In https://support.mozilla.com/en-US/kb/Bookmarks?s=bookmark&as=s#threadId724632 --
    Anonymous writes:
    In the current version, 4.0b2pre, I am not able to edit the name of a bookmark before saving it. Hopefully a bug and not user error, I hate user error.
    Mon 12 of Jul, 2010 19:17 PST

Maybe you are looking for