BOM Status in cs02

Hello Experts,
   I have need to change BOM Status in CS02 to be inactive when we save it .
The steps I do are :--
  1. Goto CS02.enter material , plant BOM Usage
2. Click on header level ,and now whatever be the BOM status , but when we go to save it , the BOM status should be 2.
The function exits I used are :--
           1.EXIT_SAPLCSBT_001
           2. EXIT_SAPLCEB1_003
But , both are not triggering when I save my BOM .
So , I need your valuable guidance ,to solve this issue.
Regards,
Jeet

Hi,
Please try to implement method 'CHANGE_AT_SAVE'  in BADI 'BOM_UPDATE' .
Hope it will work.
Thanks,
Leo

Similar Messages

  • Making ECR No. Compulsory While Changing Material BOM (T. Code CS02)

    Hi,
    In our business scenario, we want to make ECR No. compulsory while changing BOM using transaction code CS02. Process which we are looking at would be as below.
    1)     Default initial status of BOM will be set as u20182u2019 (Inactive) through customizing.
    2)     ECR No. should not be compulsory for transaction code CS01.
    3)     When BOM creation is completed, status of BOM will be changed to u20181u2019 (Active With History Requirements) by user.
    4)     When user goes to transaction code CS02 for changing BOM,
    a.     If BOM status is u20181u2019 & ECR No. is not entered, system should give error message (Message No. 29045) & should not allow user to go further.
    b.     If BOM status is u20182u2019, system should allow user to change BOM without entering ECR No.
    5)     Once BOM status is set to u20181u2019, system should not allow to change it.
    Please guide me how this process can be achieved.

    Dear Abhijit,
    If my understanding is correct then it seems you want to make change number as mandatory for CS02 alone.
    apart from the configuration settings in OS27,setting the correct value for the authorization object C_STUE_NOH,normally it will be
    made for all the T.Codes CS01/CS02.In your case you want to make it mandatory only for CS02 alone,So check in this way.
    In this case you may have to create 2 different roles,one containing the authorization only for CS01 and for authorization object
    C_STUE_NOH with Yes.
    The other role for CS02 alone for the authorization object C_STUE_NOH with value set for No.
    The same user should not be containing both these roles.(for Roles creation check with your admin consultant).
    check whether this can help you.
    Regards
    Mangalraj.S

  • ECM - History Requirement for BOM status not activated

    Hello,
    He have an issue with the warning message  displayed when we are trying to modificate an BOM (transaction CS02).
    In OS25 transaction we defined that only BOMs with "usage = 1" and "status = 3" have history requirement.
    The parameters of OS27 transaction are OK too.
    The problem is that the warning message 045 is displayed when we execute CS02 for every kind of BOM usage and status.
    We must substitute the warning message by an error message. To do that, we must disable the field NOHIS in C_STUE_NOH object, in the user profile. But, when we do that, the error message is displayed to all kind of BOMs status, blocking the process (following the warning message, which is displayed to all kind of BOM status)
    This is an issue of SAP_APPL 470 system.
    We tested the similar procedure in an SAP_APPL 603 system, and the results were OK, in other words, the warning message is only displayed for the BOM usage and BOM status defined in OS25 transaction.
    Thank's in advance

    When the BOM with usage 1 and status 3, by example, is changed with a modification number (following OS25 parameters), the field STZU-HISTK is activated.
    Then, if the status of the BOM is changed to 2, the modification number is required, because the STZU-HISTK is activated.
    In OS25 transaction only the BOm usage = 1 and BOM status = 3 has the history requirement flag, but after the modification with the mod. number, all the status of the BOM now has the modification number requirement.
    How can I allow the modification of the BOM without modification number (other status not flagged in OS25), if this BOM hal already been changed with an modification number (by the status flagged in OS25)?
    Thank's in advance

  • While trying to change a BOM with transaction CS02, a runtime error appears

    While trying to change a BOM with transaction CS02, a runtime error appears.
    In intial screen he entered material ,plant BOM usage and date valid from  after executed then id displayed item list in that he wantu2019s delete one item, he has been deleted selected item after that when he was saving he is getting runtime error
    Developer trace
    ABAP Program SAPLKED1_WRITE_CE4_BPS1                 .
    Source LKED1_WRITE_CE4_BPS1U01                  Line 30.
    Error Code SAPSQL_ARRAY_INSERT_DUPREC.
    Module  $Id: //bas/640_REL/src/krn/runt/absapsql.c#17 $ SAP.
    Function HandleRsqlErrors Line 775.
    RABAX: level LEV_RX_STDERR completed.
    RABAX: level LEV_RX_RFC_ERROR entered.
    RABAX: level LEV_RX_RFC_ERROR completed.
    RABAX: level LEV_RX_RFC_CLOSE entered.
    RABAX: level LEV_RX_RFC_CLOSE completed.
    RABAX: level LEV_RX_IMC_ERROR entered.
    RABAX: level LEV_RX_IMC_ERROR completed.
    RABAX: level LEV_RX_DATASET_CLOSE entered.
    RABAX: level LEV_RX_DATASET_CLOSE completed.
    RABAX: level LEV_RX_RESET_SHMLOCKS entered.
    RABAX: level LEV_RX_RESET_SHMLOCKS completed.
    RABAX: level LEV_RX_ERROR_SAVE entered.
    RABAX: level LEV_RX_ERROR_SAVE completed.
    RABAX: level LEV_RX_ERROR_TPDA entered.
    RABAX: level LEV_RX_ERROR_TPDA completed.
    RABAX: level LEV_RX_PXA_RELEASE_RUDI entered.
    RABAX: level LEV_RX_PXA_RELEASE_RUDI completed.
    RABAX: level LEV_RX_LIVE_CACHE_CLEANUP entered.
    RABAX: level LEV_RX_LIVE_CACHE_CLEANUP completed.
    RABAX: level LEV_RX_END entered.
    RABAX: level LEV_RX_END completed.
    RABAX: end RX_RFC
    In sm21
    Perform rollback
    Run-time error "SAPSQL_ARRAY_INSERT_DUPREC" occurred
         Short dump "090618 110101 donalda 11557 " generated
    Runtime Error          SAPSQL_ARRAY_INSERT_DUPREC
    Exception              CX_SY_OPEN_SQL_DB
           Occurred on     18.06.2009 at   11:01:01
    The ABAP/4 Open SQL array insert results in duplicate database records.
    What happened?
    Error in ABAP application program.
    The current ABAP program "SAPLKED1_WRITE_CE4_BPS1" had to be terminated because
    one of the
    statements could not be executed.
    This is probably due to an error in the ABAP program.
    What can you do?
    Print out the error message (using the "Print" function)
    and make a note of the actions and input that caused the
    error.
    To resolve the problem, contact your SAP system administrator.
    You can use transaction ST22 (ABAP Dump Analysis) to view and administer
    termination messages, especially those beyond their normal deletion
    date.
    Error analysis
    An exception occurred. This exception is dealt with in more detail below
    . The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was
    neither
    caught nor passed along using a RAISING clause, in the procedure
    "RKE_WRITE_CE4__BPS1" "(FUNCTION)"
    Since the caller of the procedure could not have expected this exception
    to occur, the running program was terminated.
    The reason for the exception is:
    If you use an ABAP/4 Open SQL array insert to insert a record in
    the database and that record already exists with the same key,
    this results in a termination.
    (With an ABAP/4 Open SQL single record insert in the same error
    situation, processing does not terminate, but SY-SUBRC is set to 4.)
    How to correct the error
    The exception must either be prevented, caught within the procedure
    "RKE_WRITE_CE4__BPS1"
    "(FUNCTION)", or declared in the procedure's RAISING clause.
    To prevent the exception, note the following:
    Use an ABAP/4 Open SQL array insert only if you are sure that none of
    the records passed already exists in the database.
    You may able to find an interim solution to the problem
    in the SAP note system. If you have access to the note system yourself,
    use the following search criteria:
    "SAPSQL_ARRAY_INSERT_DUPREC" CX_SY_OPEN_SQL_DBC
    "SAPLKED1_WRITE_CE4_BPS1" or "LKED1_WRITE_CE4_BPS1U01"
    "RKE_WRITE_CE4__BPS1"
    If you cannot solve the problem yourself, please send the
    following documents to SAP:
    1. A hard copy print describing the problem.
       To obtain this, select the "Print" function on the current screen.
    2. A suitable hardcopy prinout of the system log.
       To obtain this, call the system log with Transaction SM21
       and select the "Print" function to print out the relevant
       part.
    3. If the programs are your own programs or modified SAP programs,
       supply the source code.
       To do this, you can either use the "PRINT" command in the editor or
       print the programs using the report RSINCL00.
    4. Details regarding the conditions under which the error occurred
       or which actions and input led to the error.

    Hi ,
    you are getting beacuse u are trying to do mass update to database.
    Please check that below note are applicable to your system.
    Note 453313 - DBIF_RSQL_ERROR_INTERNAL for mass insert
    Note 869534 - AFS MRP doesn't work properly with all BOM item categories
    Thanks Rishi Abrol

  • Issue with BOM Status in MRP Run

    Dear All,
    I have a BOM structure and BOM status as attached below.
    In this case, system is generating the PR's for all three components correctly while i run MRP (MD51). But when i convert planned order to production order for "Assembly" & "BOM", it is coping the components for Assembly correctly but not for "BOM".
    If i maintain the BOM status as "4" for "BOM", then the components are copied into Production Order but i am getting double PR's as the BOM is exploding two times.
    As per my requirement BOM should be exploded only one time ie. for "Assembly" and component should be come in Planned order for "BOM".
    Please tell me where is the problem..
    Regards,
    Rao

    Dear Rao,
    assembly and Bom have the same type of production order?
    In the production order type which application is contained? PP01?
    You should check the explosion setting in the profile order and the setting of application of the Bom.
    if you can send me screen shot of the planned order of the Bom (components details).
    Thanks
    Daniele 

  • BOM Display in CS11/CS12 with BOM status "3"

    Hi,
    Just wanted to know if it is possible to display BOM using CS11/CS12 with BOM status "3"- Active with history requirement.
    Your quick reply is appreciated.
    Thanks
    Nitin
    Edited by: Nitin Pandhare on Jun 16, 2011 10:16 AM

    No, it doesn't display the BOM in CS11/CS12 which has BOM status '3' (Active with history requirement). It always give an error message " The BOM is not effective on current date" though the BOM exists in the system and has the history within the validity period. If you try, it also gives the same error message even if the BOM status is Inactive (2').  I guess it works only for the BOM, which has status "1" (Active).
    May I request you to try at your end as well and let me know.
    Thanks for your help and sharing your views.
    Regards,
    Nitin

  • Function module needed to read all the BOM statuses

    Dear Friends,
    In a report we are using CS_BOM_EXPL_MAT_V2 function module to get the dispaly the BOMs. But it is displaying only the BOMs which are in Active stauts e.g 1 & 3.
    My requirement is needs to read both active and inactive BOMs. Inactive BOM status is 2.
    suggest me if there is any another FM or any another way to get all the BOM status materials.
    Thanks for your help.
    Srinivas.

    You need to supply another application for alternative determination (field CAPID). It should be possible to customize one for your needs using "Define Order of Priority for BOM Usages" and "Define Applications" under "Production->Basic Data->Bill of Material->Alternative Determination"
    Edited by: Carsten Grafflage on Aug 5, 2010 1:44 PM: Corrected one string from customizing - sorry.

  • BOM status change during material replacement

    we use CSKB to create an order BOM. within the bom, we do a material replacement for one of the components, so that it's bom can also be modified. At the time of replacement, the material bom has a status of 1,  but after copying to the sales order bom, the status is changed to 3. this causes history tracking to turn on for the sales order bom, and we dont want that.
    is this change of status configured soemplace?
    tia

    I have found what i think to be th eproblem. the default bom status is set to 3, which is fine for a material BOM, but it appears it is also being used for the order bom.
    so... i decided to implement a method in BOM_UPDATE BADI. I copied some code from another message on this site, as follows:
    method if_ex_bom_update~change_at_save.
      data: wstko type cs01_stkob.
      data: name_tstko(30) value '(SAPLCSBT)O1-STPOB[]'.
      field-symbols: <tstko> type table.
      assign (name_tstko) to <tstko>.
      read table <tstko> into wstko index 1.
      if sy-subrc = 0.
    * if an order bom at status 03, change it to status 01
        if wstko-stlty = 'K' and wstko-stlst = '03'.
          wstko-stlst = '01'.
          modify <tstko> from wstko index 1.
        endif.
      endif.
    endmethod.
    The code compiles and executes fine, but the change is not made. i am guessing it has to do with the value in name_tstko, since that program is not even in my program stack when i save the bom (i put a breakpoint at the assign statement, and ran CSKB. I have tried various values based on the code that IS in my stack, and it simply short dumps, apparently unable to assign the names.
    this could potentially fix my status issue (and a couple of other issues) if i can get it to work. any help is appreciated.
    dave

  • BOM status

    In bom header there is a field called as bom status, which is being used in case of mulitple bom inorder to make a particular bom active or inactive. In this field there is an option called as "active with history requirment", what is the use of this option.
    RAJ

    Hi Raj,
    BOM status 3-Active with history requiremet means, changes done to BOM has to come through a Change number geerated in Engineering change management.
    If the customization for the plant is ot active for history requirement, you can set a perticular material alone under change management purview by keeping the header status to 3.
    By which whenever you chage the BOM of the header material, system throws a aring message saying , this BOM has history requiment indicator set, please enter change number.
    Hope this helps...!
    Regards,
    Shashi

  • BOM STATUS only released for costing

    Dear gurus ,
    i need create a BOM STATUS only for CK11N ( COSTING) but when a created the new BOM STATUS whit only the flag "released for costing" but when i run the CK11N
    the system don't find the bom .
    Are there the other customzing setting?
    Thanks a lot
    Daniele Pistilli
    PP TEAM

    HI
    Check with BOM usage 6 for your requirement.also check in OKKN for your costing variant and qty structure  control> BOM application> selection Id for your BOM
    Regards
    Anupam Sharma

  • Mass change in BOM status to inactive

    Hi,
    I want to change the status of BOM Alternate header to inactive. I want to do the same for some 1000 BOMs in one shot. Is there a way to do the same.
    Please suggest

    Hi,
    You can use CEWB to make it inactive.
    or
    Create a BDC using CS02.
    Regards,
    Vishal

  • Bom Change Authorization (CS02,CS62)

    Hi all
    I am tring to block users from changing Material Bom usage 1 without ECM
    but allowed them to change Order Bom any usage without ECM
    I used c_stue_ber and c_stue_noh for tring block them
    also i couldn't find any user exit that i can used for this validation.
    Please Help

    Hello Kobi,
    In exceptional cases you can allow a BOM change without a change number
    using the authorization object C_STUE_NOH for BOMs with history
    requirements.
    Hope it works...
    Cheers, Dudle.
    PS: Plz Do not forget to give rewards

  • Bom Changing Authorization (cs02,cs62)

    Hi all
    I am tring to block users from changing Material Bom usage 1 without ECM
    but allowed them to change Order Bom any usage without ECM
    I used c_stue_ber and c_stue_noh for tring block them
    also i couldn't find any user exit that i can used for this validation.
    there is any way for block material bom usage 1 only from changing without ECM
    Please Help Thank

    Hello Kobi,
    In exceptional cases you can allow a BOM change without a change number
    using the authorization object C_STUE_NOH for BOMs with history
    requirements.
    Hope it works...
    Cheers, Dudle.
    PS: Plz Do not forget to give rewards

  • CS11- BOM explosion with status inactive

    When a BOM is marked as inactive( at the header level), the BOM explosion using CS11 is not possible.  The systems says there is no effective BOM. However I can pull up the same using CS03 and drill down level by level.
    Is this standard SAP behaviour? Are there any settings in Customizing that will make the explosion for inactive BOM's  using CS11 possible?

    Alternative to select inactive BOM
    BOM status = inactive in BOM header
    In OS31
    Create a selection ID = 09, selection priority = 1, BOM usage = 1
    OS 30
    Create a BOm application copy from PP01 let us say ZP01
    In which enter the selection ID = 09, what you created before
    Remove all the ticks of check BOM
    Save
    That is all.
    In cs11, select the application as ZP01 and you will get the BOM explosion.

  • Object to Restrict Changes in BOM (CS02)

    Dear Sap Experts,
    I want to restrict changes in BOM  t-code CS02 on the basis of Material Category 1. For example I have 2 material category Camera and Vaccum cleaner. And on one user I want to allow changes only cameras BOM. Please guide me what is object for it.
    Thanks
    Regards
    Muhammad Umar

    Hi Umar,
    In BOM header data under Quants/Long txt you have on field as Authorization group. You can control the BOM changes by different users through authorizaton groups.
    Define authorization groups for the two users Eg: Z001, Z002. Enter Z001 for BOM's header materials pertaining to category camera and Z002 for BOM's header materials pertaining to Vaccum.
    Create seperate roles in PFCG (Take Basis help) for User 1, User 2 and maintain this authorization group in the role for change BOM T code i.e. CS02 against authorization field BEGRU in authorization object C_AENR_BGR.
    System will display the  error message as 'You are not authorized for authorization group XXXX' if they try to change BOM with other authorization group.
    Thanks & Regards,
    Ramagiri

Maybe you are looking for

  • Applying watermark and password, is there a "quick" way?

    Im starting to protect PDFs I send out with a watermark to prevent from being edited and low quality only printing.  Its a little bit of a timely process to do this every time I want a PDF like this when I want this for all PDFs I make.  I create the

  • Unknown indicator = severe battery drain?

    I have a 6220 Classic and recently a new indicator has appeared in the top right corner of the homescreen (alongside battery strength indicator). At the same time I'm noticing that my battery is not holding any charge, as in I have to charge it daily

  • File Share Witness Resouces Errors in a SQL 2012 Alwayson Availability Group Environment

    Hi I am getting the following error in WFC Manager and in my system event log: Event ID1564:  File share witness resource 'File Share Witness' failed to arbitrate for the file share '\\SQL2012ClusterWitnessPath'. Please ensure that file share '\\SQL2

  • The creation of snapshot fails

    Hi All, In my database the creation of snapshot fails sometimes. When I go to the enterprise manager, it show the following error Task Name ADDM:1655533543_1_12151 Task Owner SYS Status ERROR Error Message error occurred at recursive SQL level 2 Can

  • Export MXF with multiple audio channels for broadcast

    Hi, I work at a broadcast company as an editor. We always used FCP with the free sony xdcam plugin to export. This plugin seems to be one of the rare ways to export an MXF with 4 audio channels. I don't know exactly why we need to export it for broad