Problem with BOM (packaging material) in order change

Hi Gurus,
In my b2b shop, i have created an order with BOM material and that order contains one main material and a sub item material after update or order. When i open the same order and click on change, when i click on update, a new sub item is getting added as a main item.
Details:
item 10 is 12007492 (main material)
item 20 is 12007491(sub item for the main material)
when i click on update,again one more sub item 30 is getting added.
When i check the logs, all the items guids are getting passed to IN of crm_isa_basket_changeitems functions module. But when check it in runtime using external debuggin mode, the sub item guid is blank.
Then the main material is again getting exploded and the sub item is coming at item 20 and actual sub item before update is shifting to item 30 as new item.
Please help me in this regard why it is happening like this.
Thank you
Lakshman

Hello Lakshman,
I had the same issue, however my backend system was ERP and not CRM. In any case, the logic might be the same.
When a BOM material is sent to the backend system for simulation/save, only the header needs to be sent. By this, backend system will explode the material and send 2 items back. I guess in your case, ISA is sending both items to SAP and that is the reason you are getting back 3 items.
Simplest approach is to write some logic in your backend class to avoid sending this subitem to SAP. You can achieve this by manupulating the items table sent to SAP
Suppose salesDoc is the ISA document and itemsTable is the JCO table that is sent to SAP as a table parameter:
               ItemList itemList = salesDoc.getItems();
               for (Iterator iter = itemList.iterator(); iter.hasNext();) {
                    ItemSalesDoc itemSalesDoc = (ItemSalesDoc) iter.next();
                    TechKey parentKey = itemSalesDoc.getParentId();
                    if(null!=parentKey){
                         if (!parentKey.getIdAsString().equalsIgnoreCase("")) {
                            //Here remove it from the tables parameter which is sent to SAP
                                           itemsTable.deleteRow(i);
I am not too sure how it would work for CRM, but works in ERP.
Pradeep

Similar Messages

  • Create an external HU with different packaging material type

    Hi All,
    Iu2019m trying to create an external handling unit with the material below:
    Packaging material: 2892
    Packaging material type: Z501
    Material Group: Packaging Materials: Z501
    But the system creates de HU with the Packaging material type: 0001 instead Z501.
    My question is.. How can I set the material or HU to take the Packaging material type Z501?
    Thank you for your comments,
    Jaime S.

    My problem has been solved. Regards

  • Unable to update itunes. help. error message when trying to update to latest version of itunes. "the installer has encountered an unexpected error installing this package. this may indicate a problem with this package. error code 2721"

    unable to update itunes. help. error message when trying to update to latest version of itunes. "the installer has encountered an unexpected error installing this package. this may indicate a problem with this package. error code 2721"

    Hello chae84swangin,
    I recommend following the steps in the article below when getting an error message trying to install iTunes:
    Trouble installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Problems with email account on ipad2 when changing from mobileme to icloud

    Problems with email account on ipad2 when changing from mobileme to icloud

    Would you please give us some more information about your problems.

  • URGENT :   EP 7.0 /ECC 5.0  -   Problem with Business Package : ESS/MSS

    Dear Portal Gurus,
    We are facing a problem with business package for ESS/MSS
    Our system Info is as under :
    Portal:- NW 2004s
    ERP2004: - (R3 ECC 5.0)
    ESS:- BP for Employee Self-Service (mySAP ERP 2004) 60.2
    MSS:- BP for Manager Self-Service (mySAP ERP 2004) 60.1.1
    SAP XSS  à (SAP ESS 100, SAP MSS 100 and SAP PCUI_GP 100 , all upto SP 12)
    After the Business Packages were installed,found that some  ess apps where not deployed...so manually deployed it.
    The JCO connections are OK.
    Do we need to set up the backend Homepage Framework for the same......even for preview.....was thinking not.
    Also, here is the error and exception that we get when we preview any ESS iview.
    A critical error has occured. Processing of the service had to be terminated. Unsaved data has been lost.
    Please contact your system administrator.
    You dont have the authorization to start service sap.com/pcui_gp~xssutils/XssMenuArea.
    com.sap.pcuigp.xssfpm.java.FPMRuntimeException: You dont have the authorization to start service sap.com/pcui_gp~xssutils/XssMenuArea.
    at com.sap.pcuigp.xssfpm.java.MessageManager.raiseException(MessageManager.java:111)
    at com.sap.pcuigp.xssfpm.java.MessageManager.raiseException(MessageManager.java:121)
    at com.sap.pcuigp.xssfpm.wd.BackendConnections.initBackend(BackendConnections.java:234)
    at com.sap.pcuigp.xssfpm.wd.BackendConnections.connectModel(BackendConnections.java:159)
    at com.sap.pcuigp.xssfpm.wd.wdp.InternalBackendConnections.connectModel(InternalBackendConnections.java:183)
    Thanks.
    Message was edited by: Ashutosh Rana

    I got the same problem :/
    not the authorization, but the fields in working time is displaying wrong.. (too big)
    Any solution to this?
    Best Regards
    Kristoffer Engh

  • I can't install wmpfirefoxplugin at Firefox 4, It show "The installer has encountered an unexpected error installing theis package. This may indicate a problem with this package. The error code is 2755.

    The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2755.

    Although you're getting a different error message, perhaps try the procedure from the following user tip:
    "The administrator has set policies to prevent this installation" error messages when installing iTunes for Windows on Windows Vista and Windows 7 systems

  • The installer has encountered an unexpected error installing this package.This may indicate a problem with this package. The error code is 2869

    Hi,
    I am getting error "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2869." while installing SAP B1DE.
    Note:
    Downloaded the B1DE from B1DE:SAP Business One Development Environment Tools
    Using Window XP , .Net 2008, SAP B1 8.81 Version
    Company Name, Contact Person, Namespace all were given while installing. All of its length is less than 8
    Any help is appreciated.
    Thanks in advance.
    Parvatha Solai.N

    Hi,
    Try post a comment in B1DE 2.0.1 new version! blog.
    Beni.

  • Error code 2318 (problem with installation package) HELP

    Ok so I tried to download itunes earlier today, and it went fine until the very end, I got this message...
    ''The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2318''
    So I went through and tried to repair the itunes to no avail. So I removed everything and ran the microsoft installer cleanup utility, then re-installed itunes and quicktime. Again everything went fine until the end, got the same ''2318'' error message. Itunes shows up on my desktop, as does quicktime. When I click itunes I get a pop up window telling me the application must close due to error, would I like to send an error report.
    So I went back and uninstalled everything AGAIN, and now its downloading again. I'm getting kidn of peeved... can anyone help me?

    ok I got it. Had to end up doing a small overhaul on the computer to remove the corrupted ''sample.mov'' file out of the quicktime folder, but its working now.

  • I have some problems with my iPhone. Can i change my iphone from USA (ME495LL/A) in Germany? Warranty is ok till october 2014

    I have some problems with my iPhone. Can i change my iphone from USA (ME495LL/A) in Germany? Warranty is ok till october 2014

    No you cannot. The iPhone warranty is only good in the country of purchase. You would need to bring it back to the US, or send it to someone that could take it to an Apple store in the US. Apple will not accept international shipments.

  • Problem with BOM Quant while creating Sales order with reference using BAPI

    Dear All,
    I am facing problem with creating a slaes order with reference to other sales order by using BAPI_SALESORDER_CREATEFROMDAT2 .
    Sales order is getting created but
    1. It exploding the BOM means the line items which are not there in the reference SO also coming in the new SO ( all BOM items are coming )
    2. Schedule line for BOM header item is getting copied to all sub items of BOM.
    Can any one help me out to prevent the above deviations in creating Sales order with reference by using BAPI_SALESORDER_CREATEFROMDAT2.
    Note: while passing the parameters to BAPI_SALESORDER_CREATEFROMDAT2
    all the data related to items is exactly the same as in the original Sales Order.
    Thanks in advnace.
    Regards,
    John

    Hi All,
    Can any one help me !!!!!!!!!!
    please

  • Problems with BOM in So after upgrade

    Hi experts
    After upgrading our test servers from ECC6.0 to ECC6.04 we see a problem when creating sales orders containing BOM.
    The problem only occurs when we have a certain shipping point assigned to the customer.
    Example:
    We create a SO with a shipping point that allows 24 hours for picking and packing and add a BOM to the sales order. If the ATP fails we the reschedule the SO to a new delivery date (VA01 first date) and all items in the BOM will change accordingly.
    If we do the same thing but with a shipping point with no time (0 hours) for Picking and packing and the ATP fails due to low qty in stock and we the try to reschedule the delivery (VA01 First date) the positions in the BOM that had ATP issues are u201Clockedu201D and will not change automatic as it normally do.
    The above scenario also happens if we change the qty in the BOM, the position with ATP issues are locked at the qty will not update.
    I have been through a lot of notes but havenu2019t found anything that covers this problem, and Im now hoping that one of you have seen something like this before and know a solution for this.
    Kind regards
    Jens Olsen

    After running this by OSS i found a note for it
    0001462951 No quantity correlation in sales order
    Maybe that can help others with the same problem in the future.

  • Problem with Connection Manager. Can't change connection string / Server name

    p.MsoNormal, li.MsoNormal, div.MsoNormal
    {margin-top:0cm;margin-right:0cm;margin-bottom:10.0pt;margin-left:0cm;line-height:115%;font-size:11.0pt;font-family:'Calibri','sans-serif';}
    .MsoChpDefault
    {font-size:10.0pt;}
    .MsoPapDefault
    {line-height:115%;}
    @page Section1
    {size:612.0pt 792.0pt;margin:72.0pt 72.0pt 72.0pt 72.0pt;}
    div.Section1
    {page:Section1;}
    Hi,
    I have copied a number of SSID packages from a live server to my test server and am trying to get them up and running but I have a problem with the connection. The only thing that is different is the server name. I decided to keep the same connection in the connection manager as it is referenced in a dtsConfig file. I changed the dtsConfig file to reference the new servername [Data Source= new test server name]. I also check my paths and they are pointing to the correct config locations etc.
    I found this post which was similar to my problem but I still get problems with the connection
    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1319961&SiteID=1
    I updated the connection by changing the server name in the actual connection. I did this from the data flow tab in the Connection Managers sections (MS Visual Studio). Right clicked - Edit - changed the name of the server name to my test server and selected the database. Test connection was fine, and saved this.
    Once I saved this, the connection string changed to my current test server in the properties of the connection. However when I run the package I get the following error:
    Error: 0xC0202009 at ReportsImport, Connection manager "myconnectionstring": SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80004005  Description: "Login timeout expired".
    An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80004005  Description: "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.".
    An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80004005  Description: "Named Pipes Provider: Could not open a connection to SQL Server [53]. ".
    Error: 0xC020801C at Myprocess import from file, BuyAtReportsImport [79]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "myconnectionstring" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.
    Error: 0xC0047017 at Myprocess import from file, DTS.Pipeline: component "ReportsImport" (79) failed validation and returned error code 0xC020801C.
    Error: 0xC004700C at Myprocess import from file, DTS.Pipeline: One or more component failed validation.
    Error: 0xC0024107 at Myprocess import from file: There were errors during task validation.
    So even if I change the existing connection properties and save and Build my package again, my connection properties (connectionstring, servername etc) all revert back to its original data source when I re-open the package. Simply it does not seem to be saving the connection properties i put in.
    What am I doing wrong or how can I change the existing connection manager to look at the new server. The database is  the same and I have full admin privilege on the server.
    I don't want to recreate my packages as there are alot and they are not simple.
    After changing the connection properties, saving and reloading I get a connection error. But this is because it is not retaining the new connection manger setting i entered.
    Incidentally - I created a new SSID to perform a simple connection and write to the the server and it was OK so there is no problem with actually seeing the my test server.
    Thanks in advance

    Yes, the package is in visual studio and I have executed it. There are no errors but in the output i have the error message about my connection. My dtsConfig file is added to the project in the 'Package Configuration Organizer' and path and files are correct. This is the output error:
    Error: 0xC020801C at xx import from file, xxReportsImport [79]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "myconnectionname" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.
    I will try and run it using dtexec.exe. if I have two config files do i use
    dtsexec.exe /f <packagename> /conf <configfile> /conf <secondconfigfile>

  • Problem with final issue of production order components

    Hi Gurus,
    Currently we have a problem with the production order components.
    The problem is that, we needed some components (components which are categorized as dangerous goods) deleted from the production orders.
    So we tried to manually tick the final issue indicator and save the production order. However, the reservations reappeared after the MRP Run.
    Hence, we then tried to delete the component line items, but then again the reservations reappeared.
    Also, since the components are externally procured materials, new purchase requisitions are generated by MRP for these materials.
    Kindly request your help on the same.
    Thanks and Regards,
    Sanju

    Hi Kiran,
    Please find the screenshots of MD04 for the header and component in the attachment:
    MD04 for Header:
    MD04 for Component:
    For the header material no entry is available for 07.01.2015 as the status is delivered for the production order of the header material.
    Kindly help me with the same.
    Thanks,
    Sanju

  • Problem with services hierarchy and purchase order

    Hi I'm in Srm 7 EHP8(classic scenario) and i have a problem with services hierarchies:
    I create a Purchase requisition in ECC with the next structure:
    1.Hier
    1.1 Serv1
    1.2 Serv2
    1.3 Serv3
    Then I upload this PR to SRM(I activated the BBP_EXTLOCALPO_BADI to change to the Extended-classic scenario to upload correctly the hierarchy)
    and in the SOCO  I only choose the position 1.1 Serv1 and create a purchase order.
    The problem is the purchase order created in ECC contain all the services of the purchase requisition, not only the service I choose(1.1 Serv1) to create the purchase order, in SRM the purchase order is correct with only one position(1.1 Serv1)
    Any Idea?.
    Thanks for the help.

    Hi,
    I have the same problem, any new about that?
    Rgs,
    Pedro

  • How to solve problem with Installer Package for itunes

    Hi! I'm attempting to upadte itunes so I can get the latest software for my iphone. It's a 3GS. Every time when ready to instal it says I have a problem with the installer package  -  something is missing. What can I do to solve this?

    Repair your Apple software update.
    Go to START/ALL PROGRAMS/Apple Software Update. If it offers you a newer version of Apple Software Update, do it but Deselect any other software offered at the same time. Once done, try another iTunes install
    If you don't find ASU, go to Control Panel:
    START > CONTROL PANEL >
    Add n Remove Programs(XP)
    Programs n Features(Win7/Vista)
    highlight ASU and click CHANGE then REPAIR,

Maybe you are looking for

  • F110 - Calculation of Debit/Credit in the payment proposal

    The requirement is to be able to process all of the documents for the same vendor for the same paying company code together in one payment document. Separate payment documents are issued for all company code payment transactions, including documents

  • Error while opening GRPO document

    Dear Experts, I am using SAP B1 8.8 and SQL Server 2008 in Server and SAP B1 and SQL Server 2005 in Test System. I have tested one scenario, In GRPO Document, Total amount should be calculated based on Unit price * 0.2812 * Net weight. In Test system

  • Missing Fonts from Imported PDFs

    I have a document that has several PDF documents "Placed" in it.  When I go to print, it tells me that I have missing fonts. From Find Font, I can see the missing fonts and what PDF they came from.  Only, Find Font won't let me substitute it. I can't

  • Removal of Reservation on Process Order Locking

    Hi Experts, I'm unable to clear the reserved materials under a Process Order after Locking the same. Is it possible to release the reserved material after locking an Order? Regards Subhasis

  • Can Motion 5 replace a green screen and blue screen in the same shot?

    Can Motion 5 replace a green screen and blue screen in the same shot? I would like to replace a green screen with one image, and a blue screen with another.