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.

Similar Messages

  • 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

  • Routing details with bom explosion

    hi friends
    i have developend the report for pp,in routing details
    how to get the details of bom explosion with workcenter and routing operations
    If procurement type is E or X, system has to check the routing through CA03.
    If procurement type if F, leave this field as blank and then fetch the relevant vendor
    CS_BOM_EXPL_MAT_V2 - using this fm to get the bom explosion
    after that how to relate between workcenter and routing details.
    input is material number
    plant
    1.operator
    2.material - i got through fm
    3.material description i got through fm
    4.workcenter
    5.vendor
    6.operation description
    7.uom -i got through fm
    8.qty - i got through fm
    9.uom
    10.setuptime
    11.processingtime
    12.deliverytime
    code for review.
    TABLES : MAST
    DATA: BEGIN OF ISTPO OCCURS 1000.
    INCLUDE STRUCTURE STPOX.
    DATA: END OF ISTPO.
    DATA: BEGIN OF MATCAT OCCURS 1000.
    INCLUDE STRUCTURE CSCMAT.
    DATA: END OF MATCAT.
    DATA: W_TOPMAT LIKE CSTMAT.
    SELECT-OPTIONS : P_MATNR FOR MAST-MATNR.
    PARAMETERS : P_WERKS TYPE MAST-WERKS.
    DATA : BEGIN OF ITAB OCCURS 0,
    MATNR LIKE MAST-MATNR,
    WERKS LIKE MAST-WERKS,
    END OF ITAB.
    DATA: IT_STB LIKE ISTPO OCCURS 0 WITH HEADER LINE.
    data : istpotemp like stpox occurs 0 with header line.
    data : istpofinal like stpox occurs 0 with header line.
    START-OF-SELECTION.
    CLEAR ISTPO. REFRESH ISTPO.
    SELECT MATNR WERKS FROM MAST INTO TABLE ITAB
    WHERE MATNR IN P_MATNR AND WERKS = P_WERKS.
    LOOP AT ITAB.
    CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
    EXPORTING
    CAPID = 'PP01'
    MEHRS = 'X'
    MMAPS = ' '
    MDMPS = ' '
    BREMS = 'X'
    DISMM = ' '
    LIFNR = ' '
    WEBAZ = ' '
    DATUV = SY-DATUM
    MTNRV = ITAB-MATNR
    WERKS = P_WERKS
    EMENG = '1'
    STKKZ = ' '
    FBSTP = ' '
    FTREL = ' '
    IMPORTING
    TOPMAT = W_TOPMAT
    TABLES
    STB = ISTPO
    MATCAT = MATCAT
    EXCEPTIONS
    ALT_NOT_FOUND = 1
    CALL_INVALID = 2
    MATERIAL_NOT_FOUND = 3
    MISSING_AUTHORIZATION = 4
    NO_BOM_FOUND = 5
    NO_PLANT_DATA = 6
    NO_SUITABLE_BOM_FOUND = 7
    OTHERS = 8.
    WRITE: / W_TOPMAT-MATNR UNDER TEXT-H00 COLOR COL_HEADING,
    W_TOPMAT-MAKTX UNDER TEXT-H01 COLOR COL_HEADING.
    sort istpo by index descending.
    loop at istpo.
    WRITE :/ ISTPO-POSNR,
    ISTPO-IDNRK,
    ISTPO-OJTXP,
    ISTPO-MENGE,
    ISTPO-MEINS,
    endloop.
    refresh istpo.
    endloop.

    HI,
            i got the workcenter also,but i need to classify
    if the material procurment type is E OR X CHECK FOR routing details
    or else if its F THEN pick the vendor and uom -PLPO-VGE01,PLPO-PLIFZ.
    how shall i implement this
    Regards
    ds

  • 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

  • Adding new items in ME21N using USEREXIT/BADI with BOM explosion

    I have following business scenario. There is purchase requisition consisting just one material. In ME21N we are creating new purchase order. This purchase order needs to consist that item (we drag&drop this item from purchase requisition).
    The problem is, that this item is in fact BOM, so we would like to explode it and select just some entries from them basing on some Z* configuration and we can't use standard BOM explosion from ME21N.
    The idea to solve that issue is following:
    1. Explode there BOM for material;
    2. Filter out not needed items from that explosion using Z-config table;
    3. Copy filtered items using USER-EXIT / BADI , ENHANCEMENT-SPOT into purchase order items.
    The best, if this USER-EXIT / BADI, ENHANCEMENT-SPOT will be used only when drag&drop purchase requisition item into new purchase order.
    The point is that I'm not able to find out such USER-EXIT, BADI or ENHANCEMENT-SPOT.
    P.S. There is for instance exit "MM06E007 Change document for requisitions upon conversion into PO", but interface of that exit completely doesn't fit my needs.
    Any ideas?

    Hello Tomasz Suchanek ,
                                                  There is no BADI/ Enhancement Spots / User Exits that you can use for this requirement.
    You are trying to change the SAP standard Functionality.
    You need to contact SAP for consulting .
    Thanks,
    Greetson

  • Inbound delivery for subcontracting PO with BOM explosion

    Hi all
    The requirement is like this
    Normal subcontracting cycle - Subcon PO and then 541
    After that i did inbound delivery in VL31N for the subcon PO , Here iam getting the finished goods line item so that i can enter the delivery qty and  serial number for the finished componenet
    My query is , Is there any possibility of exploding the BOM and entering the serial number for the assembly level materials in the inbound delivery itself.
    After that based on inbound delivery i can do GR , Your inputs pls
    Regards
    Amuthan M

    Hi M.
    You can do that using MIGO but not through VL31N.
    For that you have to set the serial profile for component before.
    IMG -> Logistic Execution -> Shipping -> Basic Shipping Functions -> Serial Numbers -> Central Control Parameters for Serial Numbers
    IMG -> Logistic Execution -> Shipping -> Basic Shipping Functions -> Serial Numbers -> Determine Serial Number Profiles
    After that you have to set the serial profile for the component.
    Hope this help
    Regards.

  • How to restrict BOM explosion in Quotation and Sales  Order

    Dear all,
    How can we restrict BOM main item explosion in Sales Order.
    this BOM main item is having special order items which have to generate purchase requisition (item category - BANC),
    with out exploding bom main item, can we generate a  purchase requisition for BOM subitems, can any body explain me that how can we do that.
    your suggestions will be highly appreciated.
    thank you
    Raghu Ram

    Hi Raghu Ram,
    The BOM explosion is controlled by item category.
    In the item category configuration screen, under "Bills of Material/ Configuration", you can see "Structure Scope" field.
    Select the one which is applicable to your case:-
    "blank" - Do not explode material structure
    A - Explode single-level BOM
    B - Explode multi-level BOM
    C - Configuration, no BOM explosion
    D - Configuration, poss. with BOM explosion
    E - Structure from Customer_Function (product selection)
    Hope this helps
    Regards,
    Nicole

  • BOM explosion date after order finish date

    Hi
    We have issue with BOM explosion date. In process order, BOM explosion date is geting calculated after order finish date.
    Any idea why this is happening.

    Hi,
    Just to understand the issue better, can you list the scheduled and basic dates on the order.
    Anup.

  • BOM Explosion report

    Hi All,
    I have problem with BOM explosion report CS12.
    We have material with 3 level BOM. While we are running CS12, upto 2nd level appears in the report. 3 rd level components dose'nt show. what may be the reason. I have checked validity period & BOM status is active for all levels.
    REgards,
    Srijit.

    HI
    Check the explosion types in OS17 also check whether phantom asseblies indicator in OS17.
    Check In BOM for whether you have defined some material as Phantom or not?
    Check and revert
    Regards
    Anupam Sharma

  • BOM explosion for component in ECC which are relevant for planning in APO

    Hi ,
    as we assign materials the MRP type X0 with the MRP procedure X (without MRP, with BOM explosion) which are relevant to APO, so if i have BOM under this item then how this below level Items will be plan in ECC....?
    as we are excluding the component from planning so how the below level will be plan .....?
    Regards

    Dear SCM APO 22 ,
    Answer lies in your question only.
    as the assembly is relevant to be planned in APO but it will be exploded in MRP and the lower level component will be planned in R/3 only if required.
    Only teh assembly which have MRP type X0 will be planned in APO.
    Revert back if you need further clarification.
    Hope it helps you.
    Regards
    Ritesh

  • BOM explosion not done because there is no free item number anymore

    Hello,
    I have a problem with BOM explosion when creating a sales order.
    All the following actions are done with VA01 :
    -  I enter a material (main item 10) with a rejection reason, so the BOM explosion is not done :OK.
    - Then  I add the same material (main item 20) without rejection code, so the BOM explosion is done, it means sub items 21, 22., ...,31,32 are determined:OK
    - Finally, I remove the rejection code on item 10, the problem is that there is no place anymore to do the BOM explosion because I have 12 sub items (10 +12 = 22 and it is not possible as I have already an item 20).
    I have a popup with message V1-142 (There are not enough item numbers free for a structure explosion).
    I know that it is possible to change the increment with VOV8, but my customer want to keep this one: 10 by 10 for main item and 1 by 1 for sub item.
    He told me that he think that there is a user exit in order to put the remaining sub items at the end of the sales order like this
    10 main item A
    11 sub item 1 (A)
    12 sub item 2 (A)
    19 sub item 9 (A)
    20 second main item (B)
    21 sub item 1 (B)
    22 sub item 2 (B)
    32 sub item 12 (B)
    33 sub item 10 (A)
    34 sub item 11 (A)
    35 sub item 12 (A)
    Maybe it's a strange idea, but could you please tell me what are the different possibilities to manage sub items when there is no place to put them :
    - put a higher increment in VOV8? Ok but my customer don't agree
    - other solutions?
    Thanks.

    Hello,
    Did you ever find a solution for this? The notes mentioned in the earlier post dont appear to be relevent for 6.0.
    I have a similar issue when dealing with Cross Sell items. When it tries to insert the additional items I get the V1142 message, then the items are copied at the end of the list but the higher level item reference is incorrect for the cross sell items.
    I do not want to change the increments but it appears to be the only option.
    Any ideas are appreciated.

  • BOM explosion in Sales order with material variants

    Dear all,
    we would like to work with Variant Matching in the Sales Order. Additionaly we would like to explode the BOM....according to the SAP help this is not possible....
    http://help.sap.com/erp2005_ehp_06/helpdata/en/bd/05a7d69d3211d190380000e8a49aad/frameset.htm
    Does anybody of you has any ideas how and where to make this happen?
    Thanks for your help and kind regards
    Jan

    Hi,
    I have gonethrough the SAP link referred by you but never come across with any problem in type matching during Sales order even if the BOM explosion is set for Multilevel in Configuration Profile provided the other pre requisite set up was perfect.
    Regards
    Brahmaji D

  • Report for Cost of Multiple products with Multilevel BOM explosion

    Hi,
    Our client has a requirement of a report showing standard cost estimate of multiple FG products, with multi-level BOM explosion.
    In short, the requirement is to get a CK13N report for multiple products.
    Has anyone come across such requirement? The requirements seems to be very normal.
    But, I have not seen any standard report for the same. If there is any, please suggest.
    or suggest a better solution for the same.
    Thanks in advance. Pts guaranteed.

    Hi,
    I totally agree with you that this is a totally vague requirement.
    However, let me share the reason for such client requirement.
    We have a customer, for which we produce certain parts for select models. Now, the arrangement with customer for pricing is based on the raw material and other production cost for all such parts. Based on the fluctuations in cost, the pricing would be finalised.. on a monthly or quarterly basis.
    For this purpose, the customer requires to know the raw materials used in each of the part.
    Individually it could have been managed. But the price change in terms of % is decided at global level and not for each part.
    Please suggest

  • BOM explosion  with Two Material Number

    Hi
    How can  i Explosion in  BOM with  two material number, if any Fm is there in sap or any othre options
    Please tell me
    Regards
    Mani

    Your question is not complete.
    There are two types of bom explosion. from child to parent and parent to child.
    You have to pass one material at a time. Please search in sdn for the fm's. This question ihas been widely discussed here.

  • BOM Explosion with order finish date

    Hi,
    In transaction OPPQ it is possible to configure the BOM explosion date used by MRP and creation of a process order (see SAP NOTE 506345).
    I suppose this setting is also considered when re-reading master data during release of an order.
    The field BESAL can have the following values:
                BOM explosion number/order start date
    1     Order start date
    2     Order finish date
    3     BOM explosion number/order start date
    4     BOM explosion number/order finish date
    What I do not understand is that value 4 also end up in using the order start date when re-reading master data. Here the function module CO_ZF_VALIDATIONDATE_DET is called which contains the following coding:
    + Festwerte Feld BESAL:+*
    * ' ' Seriennummer/Eckstarttermin
    * 1   Eckstarttermin
    * 2   Eckendtermin
    * 3   Seriennummer
    IF T399D-BESAL <> CHAR2.
    * Auflösung mit Starttermin
    u2026
    ELSE.
    * Auflösung mit Endtermin
    u2026
    ENDIF.
    which says only use the Order finish date if BESAL has the value 2. The comment showing the possible values gives me the impression that SAP simply forgot to adapt this coding when splitting the value 3 (prev. only BOM explosion number) into 3 BOM explosion number/order start date and 4 BOM exlosion number/order finish date.
    On the other hand the SAP Note mentioned above documents this behaviour.
    Does anyone know the reason why value 4 (BOM exlosion number/order finish date) results in using the order start date ?

    hi,
    The defination in OPPQ is only working for the MRP, when the planned order is created.
    Then the explosion date will be copied from planned order to production/process order when you convert the planned order.
    However, when the production or process order is created manually, or when you do a re-read master data process, then a different BOM explosion date process will be carried out as described in the SAP note 506345, it has explained the behavior clearly base on the different value of paramter:
    V_T399D_S-BESAL = initial, 1, 3 or 4
    V_T399D_S-BESAL = 2 (Explosion with order finish date)
    So there is no problem to have different behavior of planned order and production/process order.
    Regards,
    Rachel

Maybe you are looking for