BAPI_SALESORDER_CREATEFROMDAT2 with BOM

Hi,
currently I'm using the BAPI_SALESORDER_CREATEFROMDAT2 to create sales order via .NET, it works beautifully when the materials used are not BOM. However, when I test the BAPI out with BOM materials, it does not get exploded.
Please help. Thanks.
Regards,
Norman

Hi Maxim,
thanks for the replay. But was looking through the notes, still don't understand what I need to do. I tested the BAPI via ABAP program, it works fine. The BOM get exploded as expected. However, when I try it via .NET program, it did not work.
BTW, what's configuration? Any idea what are the data I need to put in to make the BAPI work with BOM?
Regards,
Norman

Similar Messages

  • BAPI_SALESORDER_CREATEFROMDAT2 with BOM Explosion

    Hi gurus,
    I'm using standard BAPI BAPI_SALESORDER_CREATEFROMDAT2 to enter a sales order. I need to enter item lines with a specific order. I've fill all the BAPI required parameters in order_items_in (material for matnr) and quantity in order_schedules_in. If i'm not wrong, fields itm_number in both structures are mandatory and I fill it respecting original order.
    My problem comes when I find a material list. I explain, if material B is a material list composed for B2, B3 i entered the following to the bapi:
    itm_number    material
    000010    A
    000020    B
    000030    C
    My requirement is to generate a sales order like that:
    000010  A
    000020  B
    000030  B2
    000040  B3
    000050  C
    but the order I create is like:
    000010 A
    000020 B
    000030 C
    000040 B2
    000050 B3
    I think that a solution is to check material list before itm_number assignment assigning like
    000010    A
    000020    B
    000050    C
    but I don't like this solution at all.
    Does anyone face similiar problem?
    Is there some parameter at the BAPI to achieve this.
    Thanks in advance.
    David Gimeno

    Hi Ankur,
    thanks for you reply. After watching several notes from OSS I've finally found the solution.
    Just take a look at OSS note 522356. You can achieve your requirement by setting the IntNumberAssignment flag of the bapi to 'X'.
    Best regards,
    David.

  • Error in Rush Order type with BOM item!!

    Hello,
    I am facing a very strange error while creating a rush Order with BOM item.
    System Error:
    1. No item category available (Table T184 SO ERLA TAQ).
    I except the error. I get next error as
    2. Structure explosion for item 000010 is not possible.
    After this BOM explodes with only first 2 Sub Items ( Item cat for main item is determind as TAQ and Sub Items as TAE) , where as the complete BOM has 7 Sub items.
    I have made the required configs in item cat determination in T184 table for order type SO, as follows.
    SO ERLA - TAQ for Main Item of the BOM
    SO NORM TAQ TAE for the Sub Item of the BOM
    The same item (BOM ) works very well in OR/BV kind of sales order types, by exploding the BOM to full level(i.e all the 7 sub items are determined).
    Has any one come across such an issue. Please let me know what could be the solution?
    Thanks in adv,
    Shripad

    Hi,
    Thanks,
    In vov7 for TAQ Item Cat. the structure scope is maintained as 'A'. And that's the reason for Standard order 'OR' , the BOM is exploding properly.
    It is only with Rush Order , the BOM is not exploding correctly.
    BR
    Shripad

  • Problem in Delivery with BOM

    Dear Experts,
    I have problem with delivery with BOM
    The steps are:
    1. I create Sale Order with BOM A (which consist of material AA 1 PC, AB 1 PC and AC 1 PC) 75 ST
        So Sale order shows:
        Item           Material         Qty    Unit
        10     A     75      ST
        20     AA                75      PC
        30     AB     75      PC
        40     AC                75      PC
    2. I create Delivery reference sale order from 1 so Delivery will be:
        Item           Material         Qty    Unit
        10     A     75      ST
        20     AA                75      PC
        30     AB     75      PC
        40     AC                75      PC
        But I want to delivery only 25 ST so I change quantity in Item 10 from 75 to 25 but the system show:
        Item           Material         Qty           Unit
        10     A     25             ST
        20     AA                25             PC
        30     AB     25.004      PC
        40     AC                25             PC
    What happen with Item 30 why system determine to 25.004. Please help me

    Hi,
    if you want change the item quanty like TAP or TAN plz goto VOV7 select TAP Item category  under bill of material/configuration Maintainstructure scope A and application SD01 put the check mark for *manual alternativs  and same to TAN also
    Your Itemcategory determination should be IN VOV4
    QT-LUMF--TAP
    QT-NORM-TAP-AGN
    If your using BOM item categories is showing gray mode only.
    regards,
    sreenivas

  • 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

  • PO with BOM

    Hi everyone, pls. I need your advice related with PO with BOM.
    I explain the process:
    I always buy a kit containing 350 items, so the PO have only 1 ítem because the manufacturer bills 1 item, but the GR have to be for 350 items. After GR I have to assemble the kit. This process it´s related with motorcycle production.
    I trie to use a PO with item cat. L but before MIGO I have to do ME2O to send materials in subcontracting, so this process is similar to subcontracting but is not the same.
    Thanks for your cooperation.
    Regards.

    Sorry, I think I misunderstood your question. The kit contains not 350 pcs but 350 items (different components).
    In SAP Retail you can use the structured article scenario.
    If you don't use IS Retail you can still have one item on the PO. After GR you can split it into components (e.g. MB1A + 201 for the main item and MB1A+202 for the compoenents - you can of course automize this via development that these technical bookings should be triggered by the GR).
    But sorrowfully standard SAP cannot handle BOm on PO except subcontracting and IS Retail...(as far as I know)
    (More exactly: IS Retail structured article means an additional movement, so it's not really BOM on the PO.)
    Edited by: Csaba Szommer on Jul 7, 2011 9:34 PM

  • BAPI_SALESORDER_CREATEFROMDAT2 with configurable material

    Hello everybody.
    I have been looking for information and I can't find how to do it. I can create the sales order, but without any configuration value.
    Please, Can anyone tell me who I have to call BAPI_SALESORDER_CREATEFROMDAT2 with configurable material?
         lv_configid = ld_itm_number1."item position
          lv_inst_id = lv_inst_id  + 1.
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
            EXPORTING
              input  = lv_inst_id
            IMPORTING
              output = lv_inst_id.
          lv_root_id = lv_root_id + 1.
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
            EXPORTING
              input  = lv_root_id
            IMPORTING
              output = lv_root_id.
          li_order_cfgs_ref-posex = ld_itm_number1.
          li_order_cfgs_ref-config_id = lv_configid.
          li_order_cfgs_ref-root_id = lv_root_id.
          APPEND li_order_cfgs_ref.
          li_order_cfgs_part_of-config_id  = lv_configid.
          li_order_cfgs_part_of-parent_id  = lv_inst_id.
          li_order_cfgs_part_of-inst_id    = lv_inst_id.
          li_order_cfgs_part_of-obj_type   = 'MARA'.
          li_order_cfgs_part_of-class_type = '300'.
          li_order_cfgs_part_of-obj_key    = it_pedidos_pos-matnr.
          APPEND li_order_cfgs_part_of.
          li_order_cfgs_refinst-posex     = ld_itm_number1.
          li_order_cfgs_refinst-config_id = lv_configid.
          li_order_cfgs_refinst-inst_id   = lv_inst_id.
          APPEND li_order_cfgs_refinst.
          li_order_cfgs_inst-config_id = lv_configid.
          li_order_cfgs_inst-inst_id   =  lv_inst_id.
          li_order_cfgs_inst-obj_type      = 'MARA'.
          li_order_cfgs_inst-class_type    = '300'.
          li_order_cfgs_inst-obj_key = it_pedidos_pos-matnr.
          li_order_cfgs_inst-quantity = 1.
          CONDENSE  li_order_cfgs_inst-quantity.
          li_order_cfgs_inst-complete      = 'T'.
          li_order_cfgs_inst-consistent    = 'T'.
         li_order_cfgs_inst-persist_id_type = 'G'.
         li_order_cfgs_inst-quantity_unit = 'ST'.
          APPEND li_order_cfgs_inst.
          li_order_cfgs_value-config_id = lv_configid.
          li_order_cfgs_value-inst_id = lv_inst_id.
          li_order_cfgs_value-charc = 'Z_MC_NOMBRE'.
          li_order_cfgs_value-value = it_pedidos_pos-nombre_serigr.
          APPEND li_order_cfgs_value.
          li_order_cfgs_value-inst_id = lv_inst_id.
          li_order_cfgs_value-charc = 'Z_MC_LETRA'.
          li_order_cfgs_value-value = it_pedidos_pos-tipo_letra.
          APPEND li_order_cfgs_value.
    Thank you in advance.
    Regards.

    Hi REIS did you get any answer to your pb I have exactly the same request .
    these internal id for instance and configuration are confusing .
    Thanks for your return if your pb has been solved since .
    Rgards
    Yvon

  • BAPI_SALESORDER_CREATEFROMDAT2 with each item having diff Ship to party

    Hi Abapers,
    Can anyone guide me in this scenario:
    Creation of sales order using BAPI_SALESORDER_CREATEFROMDAT2 with each item having different ship to party.
    Ex :
             Item Material Qty Delivery date Ship to party
             10   p-100     2     24.12.2011    1020
             20   p-100     4     26.12.2011    1050.
    Can we use this bapi for the present scenario. If yes how to send the multiple ship to party. when i create sales order through VA01 its getting created but not with this bapi.
    Thanks for supporting.

    Pass Table ORDER_PARTNERS with
    PARTN_ROLE
    PARTN_NUMB
    ITM_NUMBER   = '000010'  
    PARTN_ROLE
    PARTN_NUMB
    ITM_NUMBER   = '000020' 
    and so on

  • MRP run for header material with bom usage-3

    Dear All,
    We have header material with bom usage-3.We maintain the stock at child components only ,not at header
    I have created the planned independent requirement for header material.I have created a sales order but sales order is not shown in md04.
    What can be the further setting  I am missing for mrp run of above scenario.
    with regards,
    pradeep

    Dear ,
    Couple of checks points for you :
    1.Check the material master Sales Org Veie-Item Categoery .As you have mentioned Item Categoery -TAQ which is not relevent for requirement planning throgh schedule line category -CT ( CT means there will not be any inventory or good movement and requirement will not be passed for MRP ) .Only CP -line item categoery does requirement passing through MRP and it will show u in MD04. So the summery is if you want to generate an MTO order for the same FG material , you should matian the Sales Line item categoery as MTO in sales Org View and it will pop up in VA01 whiel logging Sales Order .
    Generally , TAQ item categoery are used in Project Billing or Delivery .ok  and they will not be having any availabilit check so it KP ( no check ) .
    But for MTO order , you should have availablty chek 02/01 in MRP3 view and also MTO Sales Item categoery .
    Based on the above information logg an sales order , release credit chek in VKM3, SAVE and check in MD04.
    Create PIR in MD61 and Run MRP on the both cases .I have tested its working .but noit with TAQ item categoery ok
    2.Why do you need to create Sales Order for dependent Item-Y because it will be in X-BOM item  ? Make sure that Y- should have Sales Item categoery in material master -MM02-Sales Org View as NORM item .If you really want to create sale sorder for this item , it should TAN or NORM .
    3.Other PIR detail is fine .
    Try and revert back
    Regards
    JH

  • UTF-8 files with BOM chrashes DOMParser?

    Hi.
    We are storing XML-documents in an 8i databse with UTF-8 encoding (in CLOBS).
    Problem: If the Unicode XML-document contains a BOM the oracle.xml.parser.v2.DOMParser's
    parse()-method throws an exception.
    I get the following output when using the ParseXMLFromURL.java class supplied in JDeveloper 3.2 samples directory:
    Sample output >>>>
    System Output: XML parse error in file http://localhost/UTF-8_With_BOM.xml
    System Output: at line 1, character 1
    System Output: Start of root element expected.
    <<<<<<< Sample output
    If I change the XML-file not to include a BOM the parser works fine.
    (I set/unset the BOM using EmEditor from http://www.emurasoft.com/ if you'd like to try for yourselves).
    To me it looks like DOMParser interprets the BOM at the start of the XML-file as XML-content instead of a Unicode signature.
    IE 5.5 can handle both formats, shouldn't DOMParse also be able to handle that?
    Any ideas how I can get DOMParse to work with UTF-8(BOM) XML-files?
    Regards,
    Jan-Erik
    Sample XML:
    <?xml version="1.0" encoding='UTF-8'?>
    <newsdoc>
    <news>
    <newstitle>
    Document contains no BOM
    </newstitle>
    <introduction>
    See http://www.unicode.org/unicode/faq/utf_bom.html for info on BOM
    </introduction>
    </news>
    </newsdoc>
    null

    I have the same problem when trying to store UTF-8 encoded XML files with BOM marks in iFS version 1.1.9.0.7.
    The database is 8.1.7.1.1 created with UTF-8 charset.
    I have loaded the XDK for PLSQL 9.0.2.0.0A into the database and replaced the original %ORACLE_HOME%\lib\xmlparserv2.jar with the one distributed in this XDK.
    I get the following error message:
    Wed Aug 01 10:10:06 GMT+02:00 2001: \public\CV-Bank\CV_Patrik_Johansson_intDTD_BOM.xml:
    oracle.ifs.common.IfsException: IFS-12608: Error while pre-parsing with the SAXParser: at line (1), column (1): oracle.xml.parser.v2.XMLParseException: Start of root element expected.
    at oracle.ifs.beans.parsers.IfsXmlParser.preParse(IfsXmlParser.java, Compiled Code)
    at java.lang.Exception.<init>(Exception.java, Compiled Code)
    at oracle.ifs.common.IfsException.<init>(IfsException.java, Compiled Code)
    at oracle.ifs.common.IfsException.<init>(IfsException.java, Compiled Code)
    at oracle.ifs.beans.parsers.IfsXmlParser.preParse(IfsXmlParser.java, Compiled Code)
    at oracle.ifs.beans.parsers.IfsXmlParser.getParserName(IfsXmlParser.java, Compiled Code)
    at oracle.ifs.beans.parsers.IfsXmlParser.parse(IfsXmlParser.java, Compiled Code)
    at oracle.ifs.beans.parsers.IfsXmlParser.parse(IfsXmlParser.java, Compiled Code)
    at oracle.ifs.utils.common.ParserHelper.parseExistingDocument(ParserHelper.java, Compiled Code)
    at oracle.ifs.protocols.ntfs.server.FileProxy.parseFile(FileProxy.java, Compiled Code)
    at oracle.ifs.protocols.ntfs.server.FileProxy.cleanupFile(FileProxy.java, Compiled Code)
    at oracle.ifs.protocols.ntfs.server.FileProxy.runFileProxy(Native Method)
    at oracle.ifs.protocols.ntfs.server.FileProxy.run(FileProxy.java, Compiled Code)
    This is a serious problem since we use an XML editor that adds BOM's.
    Regards
    Patrik Johansson

  • 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

  • Without MRP, with BOM explosion

    Hi,
    I'm new to SAP and learning SAP SCM. I would like someone to brief me on what the following lines imply, especially 'without MRP, with BOM explosion'.
    "dependent requirements must be determined for materials that are planned in SAP ECC. So, you assign the MRP type “X0” with MRP procedure “X” (“without MRP, with BOM explosion”) to the materials planned in SAP SCM."
    Thanks,
    Krish

    Hi,
    Without MRP , with BOM explosion - means the dependent requiremens are created for this materials from APO.
    The MRP will not run in APO. Only the dependent requirements will be created from APO. The MRP for this materials will be executed the ECC or R/3 system to create planned order anb purchase requisitions.
    Thanks and regards
    Murugesan

  • MD04 issue with BOM Material

    HI
    We have a scenario where Sales order is Created with BOM Material. Sales order has been saved, delivered and Billed.
    But still the BOM Material is shown in MD04, we tried running the Correction program SDRQCR21, but still the BOM Material shown in MD04.
    Can anyone help on this issue.
    Thanks

    hi,
    please check,
    whether TECO has been done for production order from PP perspective.
    after this the requriment from MD04 should disappear and finally refresh it.
    you are requested to search the FORUM sir.
    regarsds,
    balajia

  • Encoding Issue: Change UTF8 with BOM char file to UTF16LE without BOM char.

    i am trying to read UTF 8 file with BOM char .. if BOM mark present then i want to remove that BOM char
    and write same file with UTF16LE with out BOM char ..
    Please suggest solution on this .
    FileInputStream fis = new FileInputStream(file);
                   long size = file.length();
                   byte[] b = new byte[(int) size];
                   int bytesRead = fis.read(b, 0, (int) size);
                   if (bytesRead != size) {
                        throw new IOException("cannot read file");
                   byte[] srcBytes = b;
                            int b0 = srcBytes[0] & 0xff;
                   int b1 = srcBytes[1] & 0xff;
                   int b2 = srcBytes[2] & 0xff;
                   int b3 = srcBytes[3] & 0xff;
                   if (b0 == 0xef && b1 == 0xbb && b2 == 0xbf) {
                        System.out.println("Hint: the file starts with a UTF-8 BOM.");
                             String srcStr = new String(b ,"UTF8");
                     String      encoding= "UnicodeLittle";
                            writeFile(filePath, srcStr,encoding);// Here is writing file with UTF16LE
         But files gets written with BOM char .
    how do i remove this .
    Please suggest solution on this

    'uncle_alice' - in the OP's other thread on this topic I posted a decorated InputStream class that will strip of any (well any I could find definitions of) BOM prefix. Using this it is almost trivial for the OP to convert a file from one encoding to another without worrying about the BOM. I showed him the water but I can't make him drink.

  • How do I find only materials with BOM in CS_BOM_EXPLOSION?

    Dear experts,
    In a BOM I try to find only BOM materials .
    I use CS_BOM_EXPLOSION.Is there a parameter that only explodes materials with bom underneath?
    is it brems?
    Thank you in advance.
    Roxani

    Hi Roxani,
    Please try this.
    CALL FUNCTION 'CS_BOM_EXPLOSION’
      EXPORTING
        MTNRV = wa_marc-stdpd
        CUOBJ = wa_marc-cuobj
        WERKS = I_PLANT
    <b>    MEHRS = ' '</b>
      IMPORTING
        TOPMAT = TOPMAT
      TABLES
        STBD = IT_STBD
        STBP = IT_STBP.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

Maybe you are looking for

  • How to add number of desktop

    I have two user in my MBA. One use account with 4 desktops. But another user account only with 1 desktop. May I know how can I add more desktop?

  • How to write SQL in crystal report that can reuse SQL execution plan cache?

    I write the following SQL with crystal report parameter fields, and it is connecting to SQL 2005 Select Name from Customer where CustID = '{?CustID}' The SQL profiler show that It is an ad-hoc query, how to write parameterized SQL which can reuse Exe

  • Signal Generation by duration

    I am trying to output the signals created by the signal generator to an excel file. I first try to index the array sent by the generator but it keeps giving me an error. Is there a way to solve this problem. Here is my source code: The signal generat

  • Change iDVD default folder?

    How can I change the default iDVD project folder to something else than ~/Documents? I could not find any options that would let be set the default for this.

  • What will happen in this code.

    Hi all, Im trying to understand the execution path when an exception is raised. In this example, what will happen when testExcep is raised. 1. Will the rollback take place? or 2: Control will be passed to the calling procedure and thus nothing in the