BAPI_ROUTING_CREATE problem in component creation for phantom materials

Hi,
I am using the BAPI "BAPI_ROUTING_CREATE" to create a Routing. It works fine creating the operations, Component allocations, InspectionChar creation and updating the Header data Information.
The Problem i am facing is with the allocation of components with Phantom assembly. Can any one help me in passing the Parameters to the BAPI to allocate the components with the Phantom assembly.
i am getting error message
"cpccdt-206 The component to be assigned has not been completely specified "
Thanks
Pravin

I i'm having exactly the same problem.
"cpccdt-206 The component to be assigned has not been completely specified "
In my case this message occurs with normal material and not Phantom materials.
Do you have any solution already?
Thanks,
Joao
Message was edited by:
        João Costa TMG

Similar Messages

  • BAPI_ROUTING_CREATE problems with component  allocation of phantom BOMs

    I try to create a routing via the BAPI_ROUTING_CREATE and all works fine until I try to do component allocations for phantom BOM lines in the next level.
    In my simple BOM I have the following structure:
    00004465 (ROOT BOM)
    +
    +---Phantom_BOM_B (BOM 00004466)
        +
        +---Material_X
    +---Material_Y
    I only can allocation Material Y and BOM_B but I am not able to allocate the material X instead of the BOM_B, in that case I always get the message "The component to be assigned has not been completely specified".
    My COMPONENTALLOCATION Table Code:
    T_COM-SEQUENCE_NO = '000000'.
    T_COM-OPERATION_ID = '0010'.
    T_COM-BOM_TYPE = 'M'.
    T_COM-BOM_NO = '00004466'.
    T_COM-ALTERNATIVE_BOM = '01'.
    T_COM-ITEM_ID = '00000001'.
    T_COM-ITEM_NO = '0010'.
    T_COM-BACKFLUSH = 'X'.
    T_COM-PLANT = '1000'.
    T_COM-MATERIAL = ''.
    T_COM-BOM_TYPE_ROOT = 'M'.
    T_COM-BOM_NO_ROOT = '00004465'.
    T_COM-ALTERNATIVE_BOM_ROOT = '01'.
    *T_COM-PATH = '000001'.
    I hope some can help me to find me, a solution to solve my problem.
    Thanks
    Jörg

    Dear ,
    Phantom BOM means which you want to plan interm of Operation Hrs and Issue Componenets but not intereted to Physically Store  rather re-ssiue it to Main FG .
    Now ,from your requirement it s clear that BOM : 00004465(ROOT BOM) is for your FG (Let Say A) BOM :  00004466 is  a SFG (Let say B) as Root BOM component  , which is In House produced .
    Bascically , If you do not want to *Store B( Phantom BOM) *  but want plan the depedent of B ( X, Y , Z  etc )  along with A's dependent and also cost of B ( Phantom BOM )   , then the routing hrs /component along will be issued directly  to  A( Root BOM)  ,
    So you do not need to create Routing for Phatom BOM and also no componenet alocation required . Better ,  you can add that routing operation hrs to main routing of the FG .
    Hope this is clear
    regards
    JH

  • Defaulting a Cost Center during PR/PO creation for Indirect Materials

    Dear Gurus,
    When creating a PR or PO for indirect materials (No Material Master/Numer), is there a way to default a Cost Center (maybe based on the Material Group) in the PR/PO during creation ?
    I know that there is a way to default the GL Account Code via Entry Aids. Is there something similiar for Cost Center ?
    Thanks

    I don;t think it is possible via config but you can do it with User exit where you can insert the logic for account assignment category and Material group combination and material number is blank than insert the particular cost center into the cost center field.
    use PR item level user exit for PR and same way for PO.

  • How do we Prevent Creation of Production Orders for Phantom materials.

    Dear Experts;
    We have some materials which are Phantoms.
    We have set "special procurement type" as 50 in MRP2 and "Strategy Group" as 59 in MRP3
    These are non stchable items, but have BOMS.
    We dont create orders for them, however at the mement the system allows order creation. How do we prevent creation of production orders for these items in the system.
    Thanks in Advance
    Richard.

    Dear Richard,
    Check using this BADI - WORKORDER_UPDATE using method IN_UPDATE or Release by including a check if MATNR and for
    WERKS combination if SOBSL = 50 from table MARC,then do not allow to save.
    Check whether this works or else you have to set a plant specific status using OMS4  for not allowing production order
    creation and assign this value in the material master of the phantom assemblies.
    Check and revert
    Regards
    Mangalraj.S

  • Help Problem Automatic TO Creation for GR PO (Mvt. 101)

    Hi Experts,
    I have a problem creating TO automatically when material is received from PO using movement type 101. The requirement is to receive material from PO with status QI, create and confirm TO automatically into default storage bin. But when material received with status QI, it only creates TR and stuck in interim storage bin (902) then i have to create TO manually.
    All customizing for Automatic TO already done, if im using same material and receive it without QI status, TO will automatically created and placement to default storage bin will automatically confirmed. But when i'm trying to receive that material with QI status first, TO couldn't be created automatically.
    Does anyone know where i have to customize automatic TO for QI status with movement type 101?
    Rgds,
    Aleluya.

    I have not tried this scenario with material received in QI status after GR. I believe you need to create TO manually only because system will  not able to decide on his own to clear stock from QI status to unrestricted stock.
    I  know system create TO automatically when you receive goods without QI. In this case system understand to accept whole qty.
    You can create TO automatically in case of when you have QM active , you have usage decision.
    Hope this helps.
    Regards,
    Prashant

  • Problem in customer creation for sales area

    Hi all,
    I could not create a customer for given Sales Org , DC and Division...
    SAP Throwing error as "above mentioned sales area is not defined for the customer...
    Karthick

    Karthick V ,
    When you create a Customer either in XD01 or VD01 Care should be taken while entering the "sales area" and the "customer" (Domestic customer or Export Customer or one time customer) again within this there is no. ranges which will be classified either Internal or External.
    So care should be taken when you create a customer.
    1. Check In IMG --> Enterprise structure -->Assignement --> SD --> Set up sales Area, whether you have created sales area (Check other assignements too. within Sales and Distribution). Generally check your Assignment sequence with reference to SD Process.
    2. Check in OBD2 What Account groups have been used (you maintain different account groups this where you classify customer)
    3. Check Assign no ranges to customer Account Groups
    4. Check whether you have maintained common Distribution Channels and Common Divisions.
    Regards
    Sathya
    Edited by: Sathya Pavan Yedavalli venkata on Apr 30, 2009 7:26 AM

  • Problem with script creation for EndInstall - SetReg

    I am having trouble setting a new Registry value create a System Env Var
    I need to set SAPLOGON_INI_FILE System env var for each client machine.  However although I can the command
    NWEngine.Shell.SetRegValue to adjust the value of an existing registry key
    When I try SetRegKey to create a new key this is an invalid command.
    Therefore How can I create a new registry key for
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]"SAPLOGON_INI_FILE"="C:
    Program Files
    SAP
    FrontEnd
    SAPgui
    SAPLOGON.INI"
    My code is as follows
    ' Add System Environment Variable for SAPLOGIN.INI'
    If NwEngine.Shell.RegKeyExist("HKLM\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\SAPLOGON_INI_FILE") Then
          NwEngine.Shell.DeleteRegKey ("HKLM\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\SAPLOGON_INI_FILE")
          NwEngine.Shell.SetRegKey "HKLM\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\SAPLOGON_INI_FILE","REG_SZ","C:\Program Files\SAP\FrontEnd\sapgui\saplogon.ini"
    End If
    Is there any other way from this scripting to set this ENV var...

    I was just doing the same thing.  Although I realize this post is getting old.
    I did it by using:
    strRegEnv   = "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\SAPLOGON_INI_FILE"
    NwEngine.Shell.SetRegValue strRegEnv, "REG_SZ", "(FILE LOCATION)"
    I placed that at the "On end Install" and "On end Update" Level.
    if the reg value is not already present, it will be created.
    If the reg value does exist, it is replaced.
    Hope that helps.

  • Issue in PO creation for Direct Material Procurement.

    Hi Experts,
    I am working with SRM 7.0 Classic Scenario.
    I have no issues with SC creation for indirect materials with Account Assignment.
    But when I select Order as Direct material in SC for any material with out account assignment on Approval of SC PO is created in SRM system as Extendended Classic Scenario even though I have not activated Extended classic scenario.
    Kindly help me out in this issue how can I order as DIRECT MATERIAL WITH Classic scenario.
    Regards,
    B.N.Karthikeyan.

    karthi
    it is standard behavior,
    but you can do one thing .
    BBP_CREATE_BE_PO_NEW  BADI - TRY . CLEAR THE ACCOUNT ASSIGNMENT .Thats all . check it up with technical resoucre.
    but you have to decide by developemnt what are the materials are PO with account / without account assignment
    br
    muthu

  • Automatic PR for ROH materials

    Hi Gurus,
    I am facing problem in PR creation for ROH material type by MRP. Details are-
    ROH material with MRP type VB and re-order point (say 100) is defined. Lot size EX & minimum lot size is defined.Procurement type is F.
    This ROH material is part of Material BOM. Production order created for this material.
    When I am doing MRP run by MD02 & even MD01, in result it shows OrdRes but no PR.
    MD20 is carried out for ROH material (NETCH & NETPL are maintained)
    Pls help.

    Hi Anupam/ Suhas
    I did changed EX to FX, and I am able to see PR as you can see below(MD04 screen details).
    20.05.2010     Stock                                                            0      0
    21.05.2010     OrdRes     PP15100                                    5-     5-
    22.05.2010     PurRqs     0010000670/00010               150      145
    22.05.2010     OrdRes     PP25100                                    1-     144
    22.05.2010     OrdRes     PP35100                                    150-     6-
    I generated req. of 5, as fixed lot size is 150 a PR of 150 is created. There was one more Prod order of qty.1. I again created prod order of qty 150 in it but in this case no PR got generated, eventhough it is below reorder point.

  • Pull list for the component of the phantom assembly

    Hi
    I am in rem process. while doing the pull list for the fianl product using Entry with bom explosion.
    i did not get the components (level 3)for 1 assembly(level 2 ) which is phantom one under the final product (level 1) BOM.
    i also maintained the production stor loc for the components and the phantom assmy.
    i check the stock in the production storage location . no stock is there in the location.
    what is the problem . how to get the component of the phantom in the pull list.

    Dear Raj,
    If your FERT contains a HALB and inturn this HALB contains say HALB1 which is a phantom assembly
    and and another 2 raw materials means,when you execute MF60 For HALB,you will get the 2 raw
    materials along with the component's of phantom assembly.
    Check and revert back.
    Regards
    Mangalraj.S

  • Phantom materials/BOMs in routing without component assignments

    Hi All,
    I have the follwing setup of BOMs/Routings:
    BOM:
    superBOM                  Routing
         subBOM 1             operation 0030     phantom item
              component 1.1  operation 0020
              component 1.2  operation 0010
         subBOM 2             operation 0030     phantom item
              component 2.1  operation 0040
    For the materials subBOM 1 and subBOM 2 I have set the Special Procurement type 50 (Phantom assembly) in MRP2.
    I created first the subBOMs and then the superBOM.
    My issue is that in CA03 or CA02 all of the component assignments are disappeared.
    When I create a production order to the superBOM then all components will be assigned to operation 0010 in sequence 0. (first operation)
    In some cases all components are assigned as an inheritance in the production order to the operation 0030 (like the phantoms has).
    I checked the SAP Notes and I just found one with a report: 352375 - Item conversion in phantom assembly
    Is not there any solution which I can use for multi-level BOMs where I only want the lowest level explosion with the lowest level component assignments?
    We would not like to MRP the materials for the subBOMs and we only need to have the lowest level components in the production order.
    Thank you in advance!
    Best regards
    Tamas

    Hi Tamas,
    You can try to set phantom in BOM Item instead of material master. Take out Spl proc type from SubBOM1 & subBOM2 & set it( Phantom item tick) at BOM item level in SuperBOM.
    MAy be in prod order , it will still retain assignment.
    Try & let know , if it works,
    Jatin

  • Blocking PO creation for Materials

    Hi !
    The procurement block on the material master can be applied on the Purchasing view using the 'Plant Specific Material Status'. I was wondering if this can be made document type specific as well.
    We have document NB for regular POs, and ZRT for return-to-vendor POs. We would like to prevent the creation of NB POs via a error message, but allow creation of ZRT POs, for specific materials.
    This would be necessary, for example, when a product is under recall.
    Please let me know if there is a way to accomplish this.
    Thanks!
    Anisha.

    Hi!
    Thanks for your quick responses... however, your suggestions make sense if I need to block the PO types for all materials.
    I am looking for a block that is similar to the 'Plant-specific status block' on the material master... but I want be able to allow creation of some PO types and prevent others... for that specific material only.
    Thanks,
    Anisha.

  • How to control change request creation for particular IBase Component?

    Dear Experts,
    Can anybody suggest , how to control change request creation for particular IBase Component?
    We have implemented ChaRM which is integrated with SAP ECC & SAP BI.
    ChaRM is not integrated with SAP Solution Manager.
    End Users are creating support notifications from -Help Menu- Create Support Notification.
    The IBase Component is not editable once notification is created. This Ibase is copied to change request when the action-create change document is saved.
    Requirement is that, during creation of change document, system should check the IBase component of support notification. If the IBase is related to solution manager system, system should restirct the change request creation.
    Kindly suggest how to achieve this.
    Regards
    Vivek

    Hello Vivek,
    The way to do what you want is to create a schedule condition for action Create Change Document. The action has to be displayed only when the IBase/Component value differs from SolMan. To add the IBase/Component value to the container so that it can be evaluated during runtime, you will have to create a subtype of BUS2000116 on which condition can be buit.
    See the following posts for more information :
    Hope this helps,
    BR.
    Stéphane.

  • Problem submitting batch request for sales order creation

    Hello experts,
    I have created a gateway service, implementing the CREATE_DEEP_ENTITY for order creation. I have tested my service with the Chrome Advanced Rest Client and it works fine with the following XML request:
    <?xml version="1.0" encoding="UTF-8"?>
    <atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
      <atom:content type="application/xml">
      <m:properties>
      <d:OrderId>0</d:OrderId>
      <d:DocumentType>TA</d:DocumentType>
      <d:CustomerId>C6603</d:CustomerId>
      <d:SalesOrg>S010</d:SalesOrg>
      <d:DistChannel>01</d:DistChannel>
      <d:Division>01</d:Division>
      <d:DocumentDate m:null="true" />
      <d:OrderValue m:null="true" />
      <d:Currency m:null="true" />
      </m:properties>
      </atom:content>
      <atom:link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/SOItems" type="application/atom+xml;type=feed" title="SALESORDERTSCH.SOHeader_SOItems">
      <m:inline>
      <atom:feed>
      <atom:entry>
      <atom:content type="application/xml">
      <m:properties>
      <d:OrderId>0</d:OrderId>
      <d:Item>000010</d:Item>
      <d:Material>C20013</d:Material>
      <d:Plant m:null="true" />
      <d:Quantity m:Type="Edm.Decimal">100.000</d:Quantity>
      <d:Description m:null="true" />
      <d:UoM m:null="true" />
      <d:Value m:null="true" />
      </m:properties>
      </atom:content>
      </atom:entry>
      <atom:entry>
      <atom:content type="application/xml">
      <m:properties>
      <d:OrderId>0</d:OrderId>
      <d:Item>000020</d:Item>
      <d:Material>C20014</d:Material>
      <d:Plant m:null="true" />
      <d:Quantity m:Type="Edm.Decimal">200.000</d:Quantity>
      <d:Description m:null="true" />
      <d:UoM m:null="true" />
      <d:Value m:null="true" />
      </m:properties>
      </atom:content>
      </atom:entry>
      </atom:feed>
      </m:inline>
      </atom:link>
    </atom:entry>
    Now that my service is working, I want to be able to call it from a SAP UI5/Javascript application. In order to process multiple items for one order header, I use the OData batch request. Here is my Javascript method that is being processed:
    executeOrderCreation : function() {
      // Retrieve model from controller
      var oModel = sap.ui.getCore().getModel();
      oModel.setHeaders(
      { "Access-Control-Allow-Origin" : "*",
      "Content-Type": "application/x-www-form-urlencoded",
      "X-CSRF-Token":"Fetch" }
      // Define data to be created
      var headerData = {
      OrderId : "0",
      DocumentType: "TA",
      CustomerId : "C6603",
      SalesOrg : "S010",
      DistChannel : "01",
      Division : "01",
      DocumentDate : null,
      OrderValue : null,
      Currency : null,
      varItemData1 = {
      OrderId : "0",
      Item : "000010",
      Material : "C20013",
      Plant : null,
      Quantity : "100.000",
      Description :null,
      UoM :null,
      Value :null,
      varItemData2 = {
      OrderId : "0",
      Item : "000020",
      Material : "C20014",
      Plant : null,
      Quantity : "100.000",
      Description :null,
      UoM :null,
      Value :null,
      var batchChanges = [];
      oModel.refreshSecurityToken(function(oData, oResponse){
      alert("Refresh token OK");
      }, function() {
      alert("Refresh token failed");
      }, false);
      oModel.read('/SOHeaders/?$Batch', null, null, false, function(oData, oResponse) {
      // Create batch data
      batchChanges.push(oModel.createBatchOperation("SOHeaders", "POST",headerData ));
      batchChanges.push(oModel.createBatchOperation("SOHeaders", "POST",varItemData1 ));
      batchChanges.push(oModel.createBatchOperation("SOHeaders", "POST",varItemData2 ));
      oModel.addBatchChangeOperations(batchChanges);
      // Submit changes and refresh the model
      oModel.submitBatch(
      function(oData) {
      oModel.refresh();
      function(oError) {
      var error = oError;
      alert("Read failed" + error);
      false);
      }, function() {
      alert("Read failed");
    The result is when I submit the batch, I have an error saying: The following problem occurred: no handler for data -
    Am I doing right in the batchChanges creation ? (Header then items)
    Why am I facing this error ?
    Any help would be greatly appreciated.
    Thanks and regards,
    Thibault

    Hi,
    you should also have '/' before collection name so that it will be /SOHeader and as below.
      batchChanges.push(oModel.createBatchOperation("/SOHeaders", "POST",headerData ));          batchChanges.push(oModel.createBatchOperation("/SOHeaders", "POST",varItemData1 )); 
      batchChanges.push(oModel.createBatchOperation("/SOHeaders", "POST",varItemData2 ))
    Regards,
    Chandra

  • Automatic PO creation from PR for non materials

    A requirement has recently been raised where the business wants to introduce the use of purchase requisitions and once the purchase requisiiton has been released (approved) a purchase order be automatically created from the purchase requisition. However the business do not use or maintain material records, purchasing info records or source lists. If the the standard automatic purchase order from purchase requisition is used (ME59N) these items are required. In entereing the purchase requisition it is expected that the 'Desired Vendor' will be entered. Has anyone had a similar scenario where the automation of purchase order creation is required? Any assistance is appreciated.
    Thanks

    Hi,
    For no material, only for SERVICE procurement , the Service auto- PO created by activating Automatic Purchase order creation for Service requisitions in t.code: ML91. Create info record based on Material Group. For Automatic PO , info record is mandatory. For more please read note 635511
    Regards,
    Biju K

Maybe you are looking for

  • Can I download to time capsule?

    Can I use time capsule like a normal hard drive. I want to be able to stream movies from TC to other devices.

  • White screen of death and reboot loop help!!!

    I have a problem with my curve, I have a white screen of death. This happens whenever I turn on my blackberry. Also my phone is stuck in a continuous loop of it rebooting, loading up showing the home screen and then rebooting again. What do I do? i h

  • Manual exchange rate for F-03 account clearing

    I want to enter a manual exchange rate during F-03 account clearing instead of the system proposed rate. how can i do that?

  • Load balancing and Failover

    Hello, We are wondering how load-balancing and failover of tpcall() work with WTC: The scenario: We have one WLS Domain and two Tuxedo Domains. The Tuxedo Domains offer the same set of services. In the bdmconfig.xml, we specify connection_policy as '

  • Php 5.2.6 installation how-to with JES7

    hey i am facing difficulties in installing php 5.2.6 with JES7 any useful documentations or guidelines especially how-to documents will be greatly appreciated. thanks in advance.