Error in change number creating BOM in Engineering Type.

Can anyone guys help me with my problem.
I'm creating Bom using BAPI_MATERIAL_BOM_GROUP_CREATE.
Every time I create BOM Using one bom only in engineering and all BOM for materials were created.
But every time i create rerun the program and have different change number on its components, the error occur,
"Generation not Supported for Change number"
Can anyone help me with this?
Thanks and God Bless.

In case errors rollback.... I beleive the following logic would resolve your issue.
constants:c_error_type(1) type c value 'E'.
call function 'BAPI_MATERIAL_BOM_GROUP_CREATE'
    exporting
      testrun                  = l_testmode
    tables
      bomgroup                 = l_bomgroup
      variants                 = l_variants
      items                    = l_items
      subitems                 = l_subitems
      materialrelations        = l_materialrelations
      itemassignments          = l_itemassignments
      subitemassignments       = l_subitemassignments
      return                   = l_return.
  if l_testmode is initial.
    read table l_return with key type = c_error_type.
    if sy-subrc = 0.
      call function 'BAPI_TRANSACTION_ROLLBACK'.
    else.
      call function 'BAPI_TRANSACTION_COMMIT'.
     endif.
Thanks
Anantha

Similar Messages

  • Error in change Number ..pls Help Me..urjent

    <b>Hi all..
    when i run a transaaction ( Zasd) in PRD with change number 11784  the report works fine. But when i enter
    change number 11929 . iwill get error change order not found. but  when i use CC03 transactoin with this change number i saw the details for this number..
    pls suggest me what i do..i think  report is ok.is it right ????  what i do..pls help me..
    thanks in advance...
    the selection sereen is below....
    PARAMETERS: p_chgnr TYPE aennr.
    PARAMETERS: p_width TYPE int4 DEFAULT cv_maxmodels.
    PARAMETERS: p_anego TYPE c AS CHECKBOX DEFAULT co_true.
    get all engineering change details
      CREATE OBJECT go_engchange EXPORTING changeorder = p_chgnr.</b>

    Hello Papai
    In order to track down the problem I would suggest two things you should check with change number 11929:
    (1) Does your report actually pass the CREATE OBJECT statement or do the other select-parameters prevent that this change number is found?
    (2) If the class used for go_engchange can be publicly instantiated, then call the class builder (SE24) with the class and test it. In test mode you can create an instance using your change number as input.
    (3) If instantiation fails then repeat it in debugging mode. Sooner or later you must find the error source.
    Regards
      Uwe

  • How to see any changes done in BOM through Engineering change management?

    Dear experts,
    My client need to verify the revision of some assemblies in BOM through ECM.
    I tried to verify it by taking some change numbers & executing it in CC03. I am getting the history date & name of person who done the changes. But can not able to see the actual changes.
    Could you please tell me how to see the changes done?
    Thanks in advance for cooperation & support.
    Regards,
    Mehul Veni

    Dear Mehul Veni,
    Assuming you have created a change number through CC01 and made changes in CS02 for a particular BOM by entering this
    change number in the input screen in CS02.
    Once after making BOM changes,save the data and check in CC03>enter the same change number>menu->environment-
    >reporting->Bill of material--->select the change number and click on expand sub-tree and you will get all the required details.
    Check and revert
    Regards
    Mangalraj.S

  • Change number in bom

    I want to make change number in CS02 and CS20 as mandatory. Pls suggest the procedure..

    1.Change number is used to create / change BOM with respect to a change number. The reason for using this field is, in many organizations, they use the concept of ECM, where-in each change needs to be monitored & logged. So a change number is first created in CC01 & then the same is assigned in cs01.
    2.This change number must be allowed to use for the business object BOM,which means whilke
    creating the change number you have to include the settings for usage in BOM.
    3.Using the change number we can trace the history of the BOM.
    4.History includes the created date,changes made,it might be an additon of componet or a change in
    the component details,a deletion of compoent.
    5.There are certain config settings to make this field as mandatory,otherwise the system will allow you
    to create or change a BOM without change number in CS01 or cs02...

  • Edit or Change a Change Number in BOM

    Good Day
    Dear All
    Please can anyone can tell me is any process is there to Edit or change the CHANGE NO in BOM

    Hi Radhakrishna,
    Masters like BOM and Routing can be created and changed with change number. Accordingly changes can be tracked with respect to the change numbers. For Eg BOM created wit hqty 10 with change number X , then BOM changed to 12 with change number Y, then system will display the reports on BOM changes with respect to change numbers. Historial data you can track.
    You can create new change number in CC01 with different validity date and make changes to BOM. You cannot edit the change number once its is created.
    Have a look on the below doc posted by me on usage of revision level with change numbers.
    Usage of Revision Level for PP Masters -BOM and Routing
    Thanks & Regards,
    Ramagiri

  • Error in phase 4: Creating node $(DIR_TRANS) with type DIRECTORY failed.

    Hello SAP Gurus,
    when trying to install SAPNW2004sSneakPreviewABAP in phase 4 I get error:
    ERROR 2006-08-08 08:52:40
    CJS-30129  Creating node $(DIR_TRANS) with type DIRECTORY failed. Original exception text was: syslib.filesystem.nodeCreationFailed:
    Unable to create node
    pc05\sapmnt\ with type DIRECTORY: can't create parent node..
    I searched SDN and found as possible error causes: lacking authorization of installation user or users nspadm and SAPServiceNSP, wrong JRE version, but those are not applicable.
    Any other suggestions?
    Simon

    Hello Prince Jose,
    thanks for the reply, it brought me to the solution: I had to de-activate the Windows Firewall and hat to check 'Network users are allowed to change files'.
    I know made it till phase 17, quite a step.
    Best,
    Simon

  • BOM mapping with change number error during IDoc process

    Hi all,
    i am creating BOM using IDoc BOMMAT04.i have checked this IDoc will use FM IDOC_INPUT_BOMMAT inside.
    in this function module, it is using FM CSAP_MAT_BOM_CREATE and CSAP_MAT_BOM_MAINTAIN to create and change.
    currently, creation and deletion is success. but when change, if the change number passed as an input parameter, the IDoc process error saying that the BOM header not allowed to update for read-only field.
    if i not pass the change number, the change will be success, but no change number displayed in the item. that is not the user expected.
    and if i delete the bom with change number, create a new BOM for the same material is not aloowed, saying that BOM already existing.
    it seems that CSAP_MAT_BOM_CREATE and CSAP_MAT_BOM_MAINTAIN cannot support much. it is limited.
    can anyone have any good solutions? thanks!

    yeah, for the change, i have solved it.
    but currently, if i delete the existing BOM with a change number, the re-creation is not allowed by the IDoc saying that the BOM already existing.
    if i delete in CS02 without change number, it deleted from DB and can be re-create.
    but if delete in IDoc without change number, it failed saying that local BOM can not be deleted by ALE.
    do you have any solution? i want to implment in IDoc: delete existing BOM and create a new one for the same material with change number. (currently the standard IDoc FM not support BOM group)

  • Cancel ECN in BOM & remove change number in Routing

    Dear Gurus,
            I have 2 questions about ECN , pls. help .
    1> If we made a wrong ECN in BOM with change number, pls. advise how to cancel this ECN in BOM.I tried to delete the change record in CC02 but it's not allowed since BOM has been changed already.If I made a new change in BOM with new change number, in BOM it will show a new change number, but I don't want to show these change numbers because it should be no changes happen, pls. advise how to recall the change and remove the change number in BOM .
    2> We use change number when we change routing ( CA02) in the past, now due to some internal issue, we want to remove all change numbers in routing, I can't find any option in CC02 or CA02, pls. advise is it possible to remove existing change number?
    Thanks & best regards,
    Tina

    Dear Tina,
    In my understanding you may not be able to delete the change number assignment made in BOM or routing.
    But you can define an alternative date for the made changes and set the valid from date as say 31.12.5555.
    Check and revert.
    Regards
    Mangalraj.S

  • ECR & Change number

    Hi ,
    Is it possible to assign the change number in the engineering change request ? , either a single number or multiple number
    Thanks
    Nic

    Dear Nick,
    In my understanding if you create a Change number through CC01,it cannot be treated as a ECR which can be further
    converted into a ECO.
    Whereas if you create a ECR through CC31(radio button selected for ECR),which will be considered as a change number
    only,but it can be approved and further converted into ECO.
    So whatever changes that's happening for this change number created through CC01 or CC31 can be tracked.
    But I could not understand "to track using the Engineering change order".
    Check and revert back.
    Regards
    Mangalraj.S

  • Change number tables

    hello everyone,
    i have created change number cc01 today i.e.. 28.11.07 i have given the valid  date as 28.10.07.
    in table AEOI it displays material and created on deatails. i want to know which table name and field displays material, material description, change number, created on, and valid from
    please get back to me as soon as possible.
    sanjeev

    Hi Sanjeev..,
    pls combine these three Tables AENR, AEOI, MAKT and do it Z reports
    AENR-AENNR Change numer,
    AENR-ANNAM Created by,
    AENR-AEDAT Created on,
    AENR-DATUV Valid from,
    AEOI-USOBJ  Material Number,
    MAKT-MAKTX Material Desc
    Please come back if needed.
    regards.
    Sankaran

  • Creating the site content type failed when publish Infopath form to Sharepoint 2013

    I have an InfoPath 2013 form trying to publish it to SharePoint 2013.  When I click on publishing an error message appears stating "Creating the site content type failed".  I can't figure out why this
    is happening, any help on this one?
    Also it appears the form template is uploaded when I go to the library settings under advance.  When I see the .xsn file and click on it, it opens in InfoPath but not in sp.

    Rettajm, could you please find any errors in ULS?

  • Error while changing BOM with change number

    Hi ALL, Please help me with followed error message, I am using ECM. I created ECR and converted to ECO and then released.
    Object management record cannot be generated
    Message no. 29046
    Diagnosis
    You want to change the BOM with the entered change number.
    One of the following situations triggered this error message:
    1. The indicator that allows automatic generation is not set for object type BOM in the change master.
    2. The indicator generation only on initial creation is set for object type BOM
    3. You are processing a change request.
    System response
    The system checks whether the indicator object management record will be generated is set in the change master.
    If the indicator generation only on initial creation is set, the system checks whether the BOM exists in the system.
    Procedure
    If you are authorized to change the change master, execute the following steps:
    For 1.)
    Set this indicator for object type BOM or create the control record in the change master.
    For 2.)
    If the BOM already exists in the system and the generation only on initial creation indicator is set, the system can no longer generate the control record automatically.
    In this case you have to add the object control record to the change master first, then you can change the BOM in relation to the change number.
    For 3.)
    You cannot generate any object control records for a change request.

    Hi
    With your question regarding changing BOM with change number  it looks lke there may be problem in defining the Object types,objects.Moreover whenever converted to ECO you need to enter into cs02 tcode for changing the bom with relevant change number and valid from date.
    Hope this gives you a clear idea.let me know if you need anyfurther inputs.
    Regards
    Praveen

  • Error when I change the BOM without a change number

    Hi,
    I would like to receive an Error when I change the BOM without a change number.
    I define the modification parameter (EC management active and History reqmnt), I configure history reqmnt for BOM (I choice the status 1 and 3 for my BOM usage 5)
    In change the message type I don’t have the really message number in the liste.
    How can I create a new message (045) so that I get an error by changing the BOM without a change number.
    Thanks

    Dear Dede,
    check for the Authorization Object C_STUE_NOH for the
    particular User Id's for which you want to Create or Change a
    BOM without a Change number.
    So assign this Authorization Object under all user id's for which
    you want to have this control.
    Adding the mentioned Authorization Object in particular User
    Id's will resolve the problem.
    This can be done using PFCG T code by adding in particular
    Roles.
    Revert back incase of any clarifications.
    Regards
    Mangalraj.S

  • Change number that are not created earlier accepted for change of BOM

    Hi,
    When i am going to change BOM it gives warning message "Enter change number, BOM has history requirement"
    But my problem is when i put any number in field of change number it is allowing me to change the BOM.
    It should not be accept any number that are not created earlier in the system. It must have to accept change number that is created for the history requirement for perticular material. kindly give your input on this issue.
    Atul

    Hi Atul,
    Please refer the thread ECM-Problem with Change number in CS01 and CS02 Transactions
    Thanks,
    Rakesh J

  • Error while creating BOM with FM CSAP_MAT_BOM_MAINTAIN

    Hi All,
    While creating the bom with the FM "CSAP_MAT_BOM_MAINTAIN" using change number i am getting the below error message.
    " Processing of this object is not supported with change number."
    Please help me out.
    Regards
    Suresh

    call function 'CSAP_MAT_BOM_MAINTAIN'
      exporting
        material                 = material
        plant                    = plant
        bom_usage                = usage
        alternative              = alternat
        valid_from               = y_date
    *   CHANGE_NO                =                   "<----Have u used this field for creating ?
    *   REVISION_LEVEL           =
        i_stko                   = l_stko
    *   FL_NO_CHANGE_DOC         = ' '
        fl_commit_and_wait       = 'X'
        fl_bom_create            = 'X'
        fl_new_item              = ' '
        fl_complete              = ' '
    * IMPORTING
    *   FL_WARNING               =
    *   O_STKO                   =
    CSAP_MAT_BOM_CREATE would be an ideal one for creation and CSAP_MAT_BOM_MAINTAIN for change
    Regards,
    Mithun Shetty.

Maybe you are looking for

  • Host command in reports 6i

    Is there a host command in reports 6i? I used this in forms 6i. When I tried to use in Reports 6i, I received a compile error. Thanks

  • Problem with Icelandic special characters on Mac

    Hello I am working on a Flash publication for students, and I want it to run on Mac as well as PC. Everything goes fine, except a problem with three special characters in my language, Icelandic. I am working on a registration and login page where I a

  • Java application -- webservice ---   XI  ( RFC )  ?

    Hi friends ,             <b>        My scenario is like I want  via web service  I need to pass request to RFC and get the response back . This calling webservice is external java application .</b>                    Can u please tell me What steps i

  • Want to understand SID concept...

    Hello experts, why not using the value like e. g. customer number directly in the dimension table instead of a SID? So I also could save one table (SID table)  and with this on JOIN by linking directly to the master data tables (text, attributes, hie

  • Reading date change

    hello all, for my application,i am storing birthday dates of all of my customers.i want to tell "happy birthday" to them on respective dates.for that i have to see the change of date everyday and i have to cross check each and every day, then i have