Delete just the component of BOM

Hello Experts
Here is the requirement. I want to delete BOM component and not the entire BOM.
Is there any FM which can be used to delete component by giving posnr, component number, etc......The BOM maintain with FLDELETE = X is not working for deleting the component. I guess, it is used only for flagging for deletion from a specific date (Valid_FROM) rather than deleting entirely.Any help with example source code is really appreciated.
Thanks

Hi, The example is as follows:
*Fill CSIN
  wgt_csin-aennr  = rmmg1-aennr.
  wgt_csin-matnr = mara-matnr.
  wgt_csin-stlan = '1'.
  wgt_csin-stlty = 'M'.              "Material BOM
  wgt_csin-werks = rc29n-werks.
  wgt_csin-stlnr = rc29n-stlnr.
  wgt_csin-trtyp = 'B'. "Update
*Fill STKOB
Read data for the existing BOM from table STKO and pass it to wgt_stkob.
Then also pass
wgt_stkob-vbkz = 'U'.
*Fill STPOB.
Read data from table STPO for the current BOM. Pass it to STPOB and pass VBKZ field as 'D'.
Then call the FM.
    CALL FUNCTION 'CSAI_BOM_MAINTAIN'
      EXPORTING
      FL_BOM_CREATE      = ' '
      FL_NEW_ITEM              = ' '
      FL_COMPLETE              = ' '
        ecsin                = wgt_csin
        estkob               = wgt_stkob
        estzub               = wgt_astzub
      FL_NO_CHANGE_DOC         = ' '
        fl_commit_and_wait   = 'X'
       fl_no_commit_work    = ' '
       fl_ale                   = ' '
      FL_DEFAULT_VALUES        = 'X'
      FL_NEW_ROMEN             = 'X'
      FL_RECURSIVE             = ' '
      FL_IMPLICIT_SUBITEM_DELETION       =
      IMPORTING
        fl_warning            = gv_fl_warning
      ASTKOB                =
      ASTZUB                = wgt_astzub
      TABLES
        t_stpob               = gt_stpob
        et_stpob              = gt_stpob
      T_STPUB                  =
      T_LTX_ITM                =
      T_LTX_BOM                =
      EXCEPTIONS
        error                 = 1
        OTHERS                = 2.
    IF sy-subrc <> 0.
rollback work.
endif.
Hope it will help u.
Please reward points for useful answer
Regards,
Himanshu.

Similar Messages

  • My new I5 uploaded doubleded all the songs from my library! Please, can somebody help me showing how can I delete just the songs that was doubled?

    Hi there everybody,
    My new Iphone 5 uploaded doubleded all the songs from my library! Please, can somebody help me showing how can I delete just the songs that was doubled?
    Some help will be greatly appreciate.
    Thanks much!

    When you say "account," do you mean your iTunes library, because your iTunes library is what is on your computer?  Your iTunes library does not have an email address.  An account that is related to iTunes is your Apple ID (which is an email address) and you use it as your user name to sign in to the iTunes Store, to make purchases.  Changing your Apple ID will not make songs disappear from your computer's iTunes library.
    If you had an Apple ID and used it to make song purchases from the iTunes Store, and then started using a different Apple ID, you should be able to re-download the songs purchased with the old Apple ID.  In iTunes, sign in to the iTunes Store using your OLD Apple ID (and password).  That may not be your current email address, but Apple uses it as your user name, so it does not matter.
    On the iTunes Store Home screen, click on Purchased under QUICK LINKS.  This takes you do the Purchased screen, where you can re-download previous song purchases (for that Apple ID) at no cost. 
    NOTE:  If those song purchases are from more than a few years ago, you may also need to authorize your computer to play (and sync) songs for your old Apple ID. 
    For songs that were not purchased from the iTunes Store, if they are also gone, you cannot get them back unless you have a backup (or they are still loaded on your old iPod).
    If that's not what you mean by "changed the email address on my account," please post back with more details.

  • Can I delete just the RAW of a RAW+JPEG image from iPad

    I just started using Photosmith 2 to integrate with Lightroom, and I think it will fit nicely in my workflow. I am importing images on the iPad with the Camera Connection Kit, sorting in Photosmith 2, and syncing with LIghtroom. The final step is to delete the imported RAW images from the iPad. However, there are some photos that I would like to keep on the iPad once they are sorted. Keeping the RAW image will take up too much room. If I shoot as RAW+JPEG is there a way (without using iPhoto) to delete just the RAW version? I read online that Image Capture should show both versions of the image, but it is only showing the JPEG. I am using Lion v 10.7.4.
    Thanks for any ideas.

    Bette Gardner wrote:
    I want to delete some older TM backups from my external drive to make room. It's filled up because I used TM with one computer, then added a laptop and TM started backing that up on the same external drive, then just got a new computer and TM started backing it up.
    So I have an external drive with older files associated with old machines. I want to save just one decent backup of the old computer on that external drive while continuing to backup my new computer on the same external drive.
    My question: because of the way that TM backs up incrementally, if I discard all except the "Latest" will I have a single complete backup of the old computer? or how do I achieve this?
    Hi, and welcome to the forums.
    No. That's an Alias to your latest backup. You'll want to keep the actual latest backup. But *DO NOT* delete (or change or move) anything of TM's via the Finder. You can hopelessly choke your Mac and corrupt your remaining backups.
    Use the procedure in item #12 of the Frequently Asked Questions *User Tip* at the top of this forum. It's rather tedious and time-consuming, as you must delete them one at a time, but anything else is a recipe for disaster.

  • How do I delete just the firefox bookmarks but not the the bookmarks toolbar icons

    I deleted my firefox bookmarks so I could import my gooogle bookmarks,but this also deleted my firefox bookmarks toolbar entries...it took me along time to put these in again.
    How do I delete just the firefox bookmarks but not the the bookmarks toolbar icons

    What kind of problems did you get after installing the extension?
    You can try to remove the history manually in the History Manager by doing a search for a colon.
    How many history items do you have to remove?
    If you only want to do this once or occasionally then you can consider to use this code:
    *http://kb.mozillazine.org/User:Dickvl/JavaScript_Error_Console#Expire_History_By_Days
    You will have to calculate the number of days that you want to keep to remove only history items from 2013 and older (365+31+28+26)
    You can open the Browser Console (Firefox/Tools > Web Developer).
    Paste the JavaScript code in the command line and press the Enter key to run the code.
    *Toggle the devtools.chrome.enabled pref on the <b>about:config</b> page to true to enable the command line
    *https://developer.mozilla.org/Tools/Browser_Console#Browser_Console_command_line
    <pre><nowiki>
    (function(){
    /* expire history by days, based upon bug 660646 comment 5/7 - [email protected] */
    var Cc = Components.classes, Ci = Components.interfaces;
    var his = Cc["@mozilla.org/browser/nav-history-service;1"].getService(Ci.nsIBrowserHistory);
    var prs = Cc["@mozilla.org/embedcomp/prompt-service;1"].getService(Ci.nsIPromptService);
    var day = 0, obj = new Object, txt = "Expire History"; obj.value = "90";
    if (prs.prompt(null,txt,"Days of history to keep",obj,null,{})){
    day = parseInt(obj.value);
    if(!isNaN(day)&&(day>0)){
    his.removeVisitsByTimeframe(0,(new Date().setHours(0,0,0,0) - day * 86400000) * 1000);
    }else{ prs.alert(null,txt,"Error Parsing Days: "+obj.value); }
    </nowiki></pre>
    If hat doesn't work then you may have a problem with the places.sqlite database file and you may have to reset places.sqlite.
    *Places Maintenance: https://addons.mozilla.org/firefox/addon/places-maintenance/
    You can move (copy/paste) history items that you want to keep to a bookmarks folder.
    See also:
    *Norwell History Tools: https://addons.mozilla.org/firefox/addon/norwell/

  • How can I delete apps on my cloud?  My kids added a bunch we do not need.  When i go to puchased apps, there is no option to delete, just the option download from the cloud.

    My kids added a bunch of apps we do not need.  When i go to puchased apps, there is no option to delete, just the option download from the cloud.

    You can't.  Items on the "cloud" are just a visual representation of your purchase history.    You can never delete them, as Apple uses this list to determine what Apps you have access to for free should you ever need to re-download them.
    You can hide Apps from that list trough iTunes on a computer though.
    iTunes Store: Hiding and unhiding purchases - Apple Support
    However, Apps do not take up space in your iCloud so no real need to delete them.

  • How do I delete just the first page of a document?

    A long time ago (2005) I made a document over 200 pages long - and now I need to edit it, specifically to delete the first (empty) page of the documet, so when I add a separate cover, the first page will be on the right, where it should be. I shall also need to edit/change the page numbering and TOC to match. It has been so long since I used Pages that I don't remember how to do this.
    I tried selecting the first page in the sidebar vertical list of the pages and hitting the Delete button (or using the menu option) but this seems to want to delete the entire document, not just the selected page.
    I know this sounds simple, but I can't figure out how to do it. Pages Help just says to delete the content, but there is no content on the page.

    Either you have a lot of Pages breaks which you can delete or you have aded a Pages break which you also can delete. Turn on the invisible characters View > Show Invisibles. You will see blue characters.

  • How do I delete just the old history (2013) and leave the rest

    I need to delete all my ancient history, but not the recent. Can't find any way to select by date.
    Win 7 Home Premium
    Ninian

    What kind of problems did you get after installing the extension?
    You can try to remove the history manually in the History Manager by doing a search for a colon.
    How many history items do you have to remove?
    If you only want to do this once or occasionally then you can consider to use this code:
    *http://kb.mozillazine.org/User:Dickvl/JavaScript_Error_Console#Expire_History_By_Days
    You will have to calculate the number of days that you want to keep to remove only history items from 2013 and older (365+31+28+26)
    You can open the Browser Console (Firefox/Tools > Web Developer).
    Paste the JavaScript code in the command line and press the Enter key to run the code.
    *Toggle the devtools.chrome.enabled pref on the <b>about:config</b> page to true to enable the command line
    *https://developer.mozilla.org/Tools/Browser_Console#Browser_Console_command_line
    <pre><nowiki>
    (function(){
    /* expire history by days, based upon bug 660646 comment 5/7 - [email protected] */
    var Cc = Components.classes, Ci = Components.interfaces;
    var his = Cc["@mozilla.org/browser/nav-history-service;1"].getService(Ci.nsIBrowserHistory);
    var prs = Cc["@mozilla.org/embedcomp/prompt-service;1"].getService(Ci.nsIPromptService);
    var day = 0, obj = new Object, txt = "Expire History"; obj.value = "90";
    if (prs.prompt(null,txt,"Days of history to keep",obj,null,{})){
    day = parseInt(obj.value);
    if(!isNaN(day)&&(day>0)){
    his.removeVisitsByTimeframe(0,(new Date().setHours(0,0,0,0) - day * 86400000) * 1000);
    }else{ prs.alert(null,txt,"Error Parsing Days: "+obj.value); }
    </nowiki></pre>
    If hat doesn't work then you may have a problem with the places.sqlite database file and you may have to reset places.sqlite.
    *Places Maintenance: https://addons.mozilla.org/firefox/addon/places-maintenance/
    You can move (copy/paste) history items that you want to keep to a bookmarks folder.
    See also:
    *Norwell History Tools: https://addons.mozilla.org/firefox/addon/norwell/

  • User exit to check the component in BOM

    Hi
    I am performing BOM change in SAP using change number.
    and this change number is maintained in the ztable with parent / child and required change details.
    When perform BOM Change using CS02, i need to compare this table and trigger error message.
    I mean if somebody is uing change number against a wrong material other than the material mentioned in the ztable.
    I want to trigger the error message
    can u pls tell me the appropriate user exit to use
    Regards
    DM

    Hi,
    I did a implementation on BADI : BOM_UPDATE.
    Here change number is available in DELTA_STPOB. But the problem is this badi is only triggered when save is pressed, so when a trigger an error message entire screen gets freezed.

  • How do I delete just one season of a tv show on iPad 2 running iOS 7?

    Hi, since upgrading to iOS 7, I've been having two problems with the video app. The first, and more minor problem is that if I tab out of the video app while watching a show, and then tab back in, it doesn't open to the show I was watching, but rather to the 'home page' of the video app, so that I need to navigate back to the episode I'm watching.
    The second, much more annoying issue, is that a can no longer seem to delete just one season of a tv show. If I go to the TV section of the video app, I can press the 'Edit' button and remove an entire tv show (all the seasons on my iPad). I can also go into a season and delete episodes individually by swiping left to right (though this seems to make my app crash back to the home screen - a third issue!). However, on the show's page in the video app (where all the downloaded seasons are listed) I can't find a way to delete just the one season. There is no 'Edit' button that I can see on the page, and swiping left to right does nothing.
    Any help on this (these) issue(s) would be much appreciated!

    Ok this is even harder than I first realised! If multiple seasons of one show are downloaded to the iPad and I click on the 'edit' button, the show with multiple seasons can't be deleted at all. No cross appears in the top left corner of the show's icon.

  • Identifier in BOMMAT03 to find if the component is add/delete/update?

    Hi all,
    Is there an Identifier in BOMMAT03 to find if the component is to be add/delete/update?
    Based on add/delete/update flg, i need to execute a MII transaction after the workflow is executed.
    Thanks,
    Shridhar

    Hello,
    I don't believe there is such identified for component. I think BOMMAT  just sends current BOM state and doesn't provide any info about previous object config.
    Regards,
    Konstantin Chernega

  • How do I delete just songs from the iPad?

    In an attempt to move my iTunes library, I have now gotten way out of whack with my music.  I deleted all songs from iTunes and re-imported (sacrificing my play counts, etc., but I didn't know what else to do), and that works, but it leaves my iPad in a state of confusion.  So I would like to remove all music from the iPad and just start over and re-sync, but I am having no luck with that.
    Here are things I've tried:
    Re-syncing after re-importing the library to iTunes.  After that, I can see a full list of songs on the iPad, but 80% of them are grayed out and not playable.
    Deleted all the iTunes library files (the itdb's, the itl's and the xml) so that when iTunes opened, it would give me the fresh screen and show no music.  Then I synced the iPad--it told me it was going to erase everything on the iPad b/c it was synced to a different library (presumably my old library), and I said okay, and it synced, and somehow there are still about 200 songs on there.  No idea how those songs "survived," but they did.
    I tried going to Settings -> General, and I see an option for "Reset All Settings", and right under it "Erase All Content and Settings," but inexplicably, there is no option for "Erase All Content and Leave the Settings Alone!"  I'm not sure why of those three things, they think the first two are important to users, and the last one isn't.
    Ideally I would not like to reset my iPad, as I don't want to lose all my app data and that kind of thing--anybody know an easy way just to wipe all song media from the iPad?  Thanks!

    Hello valsaladevi,
    Thank you for contributing to the Apple Support Communities.
    You can use these steps to delete songs from the Music app on your iPad:
    iPhone, iPad, or iPod touch
    Tap the Music app.
    Tap the Songs category.
    Swipe left over the song you want to delete.
    Tap Delete.
    From:
    How to delete content you've downloaded from the iTunes Store, App Store, iBooks Store, or Mac App Store - Apple Support
    Best Regards,
    Jeremy

  • I just downloaded the latest version of firefox (5.0). Can I delete all the older versions that are still on my drive? 2) When I call up some web sites sometimes the web site comes up 3 or 4 times...how do I stop this from happening?

    I just downloaded the latest version of firefox (5.0). Can I delete all the older versions that are still on my drive?
    When I call up some web sites sometimes the web site comes up 3 or 4 times...how do I stop this from happening? For example if I click on a link the exact same link comes up 3 or 4 times and I have to manually delete all of them but one.

    Do you organise your email into separate folders, or do you just let it accumulate in the Inbox?
    I would strongly advise you not to let it sit in the Inbox.
    When you see this happening, try right-click on the affected folder, select '''Properties''' then '''Repair Folder'''.
    Large folders (actually, a folder in Thunderbird is stored as a file, so it is sensitive to file size limits set by the underlying file system) can be problematic. This is one reason not to let messages collect in one folder. I use Thunderbird's Archive folders so that accumulated mails over several years can happily coexist because they are effectively stored in many small folders. No single mail store folder then exceeds the 2GB or 4GB sizes that have been known to stress the OS. I appreciate that current builds of Thunderbird and a modern 64-bit OS should be able to cope, but practically I find it slows down when given huge files, so I err towards a pragmatic solution; a large number of not very big files.
    Archives are searchable, and a Saved Search folder can give you a virtual composite folder allowing access to the entire Archive.

  • How to Delete an iCloud Account's Email (Not the Whole Account, Just the Email)

    Hello,
    A couple of years ago, before iCloud was iCloud and was actually MobileMe, I created my own email on it (an @me.com email) and have had it ever since. Even after it became iCloud, i've kept my @me.com email address and have it to this day. I've used it ever since I created it; however, I absolutely hate using it now, and I really want to just get rid of it. I constantly receive spam messages on it, and I have found Gmail to be a much better email service compared to iCloud. I have been trying to figure out how to delete the email itself and not the whole iCloud account; however, I find it very surprising that I haven't been able to find much information about this at all. I know how to delete the whole iCloud account, but all I want to delete is the email. Is there any possible way to do this? Or is my only solution to delete the whole iCloud account? If I deleted the whole iCloud account, would it affect my Apple ID in any way? If I deleted my iCloud account and it does not affect my Apple ID, then would it be possible for me to delete my iCloud account and create a new one without the email?
    Currently, I only have an iPod Touch 4th Generation running iOS 5.1.1 (I know. It seems very outdated nowadays. ). I also have a Windows 7 computer that I use to access icloud.com, but I don't have the iCloud program actually installed to it.
    Thanks in advance and please help!

    Sorry, but I believe there is no way to properly answer your question.Please start a live chat with Apple for assistance as i believe so their the only ones with the power as so, your email is used for recovery, purchase, and more!If it so changed, you'd need to restart your device, also, your best bet is to just to contact apple also.Didn't help?Sorry!Theres really no way...

  • An event in one of my libraries no longer has the event icon next to it's name just the name only. I can't view the clips in the event or import new clips. I've tried deleting the event and nothing.

    an event in one of my libraries no longer has the event icon next to it's name in the browser just the name only. I can't view the clips in the event or import new clips. I've tried deleting the event and nothing. After control clicking the event it shows all the media that has been previously imported. But it does not allow anything to be done to the event including deleting. This showed up at the beginning of a normal import session. This is fortunately the back-up evant.

    Did you perhaps mess with the contents of the library in the Finder?
    You may try the solution suggested in this thread:
    https://discussions.apple.com/message/24915790#24915790

  • How can I set my phone to delete messages after a certain period of time? 6 months, 1 year??? It is taking up over 4GB on my phone.  I don't want to delete everything just the oldest ones.

    How can I set my phone to delete messages after a certain period of time? 6 months, 1 year??? It is taking up over 4GB on my phone.  I don't want to delete everything just the oldest ones.

    If you update to iOS 8, you can select that in Settings>Messages>Keep Message and then select your option. If you don't update to iOS 8, you'll need to do it manually.

Maybe you are looking for

  • Did I  destroy my Hardrive? what are my options now?

    Hello forum. I am in desperate need of your help today. I have a macbook air 11inch. Here is the story guys: Last night I was watching a youtube video as well as downloading a few videos. my Macbook air froze completely. I didnt even get the spinning

  • Multiple iPhoto Libraries - FB & Flickr syncing

    If I create mutliple iPhoto libraries (because my current library is getting big), using iPhoto Library Manager, will photos synced to Facebook and Flickr be maintained or be deleted if they're not in the "open" library?  In other words, how does hav

  • Error running chart - (WWV-11230)

    I'm attempting to create a chart that displays the number of users per organization based upon data in the portal30.wwsec_person$ table. There are no errors reported while creating the chart, however, when attempting to run it, the following is retur

  • Cannot uninstall or install itunes!

    I logged onto itunes last night and it asked if I wanted to upgrade to the newest version. So I clicked "OK" and my computer froze up during the installation of the update. I had to do a hard boot and when I tried to install the update again it gave

  • Is my mac virus free?

    there seems to be some problems with mail and safari (slow, not closing down).