Not using substitute material while creating sales order with function?

hi experts.
I use SD_SALESDOCUMENT_CREATE function to create a sales order.
Material A has a substitute material B with substitute reason 0005.
So if I use material A when creating sales order with SD_SALESDOCUMENT_CREATE, the order is created with material B.
I don't want to substitute the material automatically. I want to create the sales order with material A.
What should I do? Help me please.
Edited by: Ji Yeob Kim on Nov 19, 2009 11:34 AM

Hi Kim,
I also have same requirement. Please suggest how you resolved this?
Thanks
bvrnreddy

Similar Messages

  • Error while creating sales order with ref to contract

    while creating sales order, with refernce to contract system is giving a message
    Configuration not possible for material : Reason 3 --> Help
    Message no. V1360
    and the message is as follwed can any one explain
    Diagnosis
    This may have been caused by one of the following:
    1. The configuration profile for the material allows or requires the bill of materials to be exploded during order processing. However, a plant has not been specified in the item.
    2. The configuration profile of the material allows or requires the bill of materials to be exploded during order processing, but the order quantity in the item must be greater than 0.
    3. A configuration profile has not been maintained
    or
    A configuration is not permitted for the material
    or
    4. The configuration profile of the material allows or requires the bill ofmaterials to be exploded during order processing. However, the system could not determine a date because important data is missing from the item (see incompletion log).

    Hi
    I think you have both Variant configuration and BOM.
    Pls ensure the following.
    1. BOM masterdata is maintained for the variants
    2. Variant configuration is configured correctly
    Configuration profile is created for the material
    Knowledge base object and run time version are available
    3. Maintain materials as not relevant for delivery or dont give delivery quantity as 0
    Once you are sure that these are in proper shape, you can start creating order. The problem wont come.
    Reward points if it helps you.

  • Avoid substitute material.., while creating sales order with BAPI?

    Hi experts.
    I use BAPI_SALESDOCU_CREATEFROMDATA1 function module to create a sales order.
    Material A has a substitute material B with substitute reason 0005.
    So if I use material A when creating sales order with above BAPI function, the order is created with material B.
    I don't want to substitute the material automatically. I want to create the sales order with material A.
    What should I do? Help me please.
    Thanks in Advance.

    Hi bvrn Reddy,
    I know, your message is almost two years old, but, did you find a solution? I'm facing the same problem. The material A has B as substitute, but in va01 a popup appears (its customizing inside the substitution reason, strategy = A). Of course, we have no popup inside the bapi, but there must be a way to decide which material the bapi should use. At the moment I only get the substitute, never the old mat (even there is something in stock).
    Maybe you've got a helpful hint for me, thanks!
    Ben

  • How to change the status of material while creating sales order via BDC

    Hai.
    In BDC while creating sales order( va01 posting ) it is stucking up in middle saying material is new. I.e Sales order (va01) is not  getting created because  of material status is new . I want to create sales order  (va01) even  material status is new.
    pls give me out the solution. Points will be rewarded.
    thanks & regards,
    sami.

    Hi,
    If you drag the line item a little towards the right side, you will find a filed material entered. The one you see in the material filed on sales order over view screen is the one determined. You can as well double click and see the fields material entered and material determined.
    Is there anything else you are expecting to see as part of analysis ?
    Regards
    Sadhu Kishore

  • 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

  • Error while creating sales order with ref using SD_SALESDOCUMENT_CREATE

    Hi
    I am creating sales order with reference using function module SD_SALESDOCUMENT_CREATE , while creating i am getting error
    Document doesn't have document category even thougth i am passing document category in header as well as item lavel.
    In VBUK table there is no value for VGTYP.
    Can you please help me how to resolve it.
    Thanks & regards
    kiran

    Problem resolved by passing   REFDOC_CAT in the FM along with  SD_DOC_CAT.
    Thanks

  • Problem while creating Sale Order with Reference

    Hi Friends,
    While creating a Sale Order with Reference, I am unable to copy few fields from Profit Segement(CO - PA Data) in Account assignment Tab.
    Any solution how to copy all field values which are in Reference Sale Order Number.
    Regards,
    sg.

    Hi,
    Go to VOFM you will find out data transfer routine.
    Over here go for the order data transfer routine and select your data transfer routine which you use.
    Now check you field name and table name for that particular field which was not copying.
    It will be better if you ask your abaper for this.
    You have to make changes over here only for data transfer routine.
    Hope so this will help you out.
    Regards
    Raj.

  • Error while creating sales order with network/project

    Dear All,
    we are getting the following message while creating a sales order with assembly processing with network/project system .
    The standard Network used as a reference contains assignments to a standard WBS. However you have maintained WBS assignments manually.which assignment should be used?
    manually maint         pre-defined
    reward points are assured for valuable help.
    thanking you
    Best regards,
    R.Srinivasan

    Dear Murali,
    Thankyou very much for your reply.We have checked for these things which you have mentioned.
    ie
    Assignment of Standard WBS in the Standard network and WBS Assignment of Operastional network.We are still getting this error.
    Kindly let me know What are the other possibilities for this error.
    Thanking you,
    Best regards,
    R.Srinivasan

  • While creating sales order wrt quotation customer code field is in display

    Hi all,
    I am facing one problem, while creating sales order with reference to quotation customer code field is in display mode.
    I am not able to change the customer code. But i want to change it accordingly.
    Previously it was in changeable mode only but now it is not in changeable mode.
    Can anyone please tell me the solution for this issue?
    Thanks in advance
    Babu

    hi
    is that happening only when you create sales order wrt quotation,try creating normal sales order and see whether customer is in changable mode
    regards
    senya

  • Issue when creating sales order with Sold-to/Ship-to Party's state

    Hi All,
    we have issue while creating Sales Order with picking up of State tax
    for Ship-to-party & Sold-to-party.
    <b>When we create a sales order, for the sold to party 140052732 and
    ship to party 140052733 it is picking state tax. Which should not
    suppose to pick? Because the partner is marked as tax exemption</b>.
    Can any body tell me how can we solve this issue!
    Why this is happening!
    How to make not to pick tax when it is marked for tax exemtion.
    As i am not Functional guy i am not aware what is happening here!
    Can anybody solve this issue!
    Thanks in advance.
    Thanks,
    Deep.

    Hi Deep
    What do you mean by "It is picking up state tax"? Does it mean that in the pricing procedure it is picking up a condition type which is meant for state tax?
    If so go and check the condition record meant for it. Follow the following steps
    1) Go to Sales order
    2) Select the line item for which the state tax is being picked.
    3) In the condition tab select analysis.
    4) In Analysis you shall find the condition type meant for state tax.
    5) See which condition record has been found.
    6) Go to VK12, enter the state tax condition type and check the condition record for that state tax.
    7) If wrong correct it.
    8) If anything else come back to the post and inform the details
    Thanks
    Regards
    Sunil

  • Issue when creating sales order with Sold-to/Ship-to Party's state tax

    Hi All,
    we have issue while creating Sales Order with picking up of State tax
    for Ship-to-party & Sold-to-party.
    <b>When we create a sales order, for the sold to party 140052732 and
    ship to party 140052733 it is picking state tax. Which should not
    suppose to pick? Because the partner is marked as tax exemption</b>.
    Can any body tell me how can we solve this issue!
    Why this is happening!
    How to make not to pick tax when it is marked for tax exemtion.
    As i am not Functional guy i am not aware what is happening here!
    Can anybody solve this issue!
    Thanks in advance.
    Thanks,
    Deep.

    Hi Deep
    What do you mean by "It is picking up state tax"? Does it mean that in the pricing procedure it is picking up a condition type which is meant for state tax?
    If so go and check the condition record meant for it. Follow the following steps
    1) Go to Sales order
    2) Select the line item for which the state tax is being picked.
    3) In the condition tab select analysis.
    4) In Analysis you shall find the condition type meant for state tax.
    5) See which condition record has been found.
    6) Go to VK12, enter the state tax condition type and check the condition record for that state tax.
    7) If wrong correct it.
    8) If anything else come back to the post and inform the details
    Thanks
    Regards
    Sunil

  • User Exit to check whether chapter id for Material and Plant combination is maintained while creating sales order

    Hello all,
    my requirement is, system should give error message while creating sales order, if chapter ID is not maintained for a material and plant combination.
    please suggest the user exit.

    Hi
    CASE 1 : All Plants are excisable.
    In Material master , Foreign Trade data tab-  mentioned Control code field mandatory. ( i.e nothing but Chapter ID)
    CASE 2 : Few Plants are excisable
    In the Case 2 you need to go for Enhancement
    Program Name : MV45AFZB 
    User Exit:            USEREXIT_CHECK_VBAP ( Item Level Check )
    By using above user exit you write a logic with the help of ABAPer
    Plant and Chapter ID combination table : J_1IMTCHID

  • Dump while creating sales order using BAPI

    Hi Experts,
    I am trying to create a sales order in my alv report using BAPI_SALESORDER_CREATEFROMDAT2. I get a dump while executing the program. Please suggest me where I am going wrong.
    |Source Code Extract                                                                               |
    |Line |SourceCde                                                                                |
    |    1|FORM FRM_KOND_BASIS_604.                                                                    |
    |    2|*{   INSERT         DEVK910738                                        1                     |
    |    3|                                                                                |
    |    4|data:  zuomqtyo   LIKE ekpo-menge,                                                          |
    |    5|       zuomqtyn   LIKE ekpo-menge,                                                          |
    |    6|       zqty1      type i,                                                                   |
    |    7|       zqty2(11)   type n.                                                                  |
    |    8|                                                                                |
    |    9|** Round up billing qty                                                                     |
    |   10|   if komp-zzLTKZA ne 'VAR'.                                                                |
    |   11|                                                                                |
    |>>>>>|      zqty1   = xkwert.                                                                     |
    |   13|      compute zqty2   = zqty1 / 1000.                                                       |
    |   14|      xkwert = zqty2 * 1000.                                                                |
    |   15|                                                                                |
    |   16|     exit.                                                                                |
    |   17|   endif.                                                                                |
    |   18|                                                                                |
    |   19|                                                                                |
    |   20|** Samples                                                                                |
    |   21|                                                                                |
    |   22|  if komp-MATKL = '5400'.                                                                   |
    |   23|                                                                                |
    |   24|    check not xkomv-kmein is initial.                                                       |
    |   25|    check not komp-vrkme  is initial.                                                       |
    |   26|                                                                                |
    |   27|** Make sure base is correct when sales unit and pricing unit differ                        |
    |   28|   if komp-vrkme ne xkomv-kmein.                                                            |
    |   29|                                                                                |
    |   30|     zuomqtyo = komp-MGAME.                                                                 |
    |   31|                                                                                |
    Thanks.

    John,
    Here is what I am doing.
    *Assign Header Data And Move To Header Data Final Table
              GS_ORDERHEADERIN-DOC_TYPE            = GC_AUART.
              GS_ORDERHEADERIN-SALES_ORG           = GC_SORG.
              GS_ORDERHEADERIN-DISTR_CHAN          = GC_DISTC.
              GS_ORDERHEADERIN-DIVISION            = GC_DIVI.
              GS_ORDERHEADERIN-ORD_REASON          = GC_AUGRU.
              GS_ORDERHEADERIN-REQ_DATE_H          = WA-USAGE_DATE.
              GS_ORDERHEADERIN-PURCH_DATE          = WA-USAGE_DATE.
              GS_ORDERHEADERIN-PURCH_NO_C          = WA-USAGE_DOC.
    *Assign Header Data And Move To Header Data Final Table
              GS_ORDERHEADERINX-DOC_TYPE           = GC_FLAG.
              GS_ORDERHEADERINX-SALES_ORG          = GC_FLAG.
              GS_ORDERHEADERINX-DISTR_CHAN         = GC_FLAG.
              GS_ORDERHEADERINX-DIVISION           = GC_FLAG.
              GS_ORDERHEADERINX-ORD_REASON         = GC_FLAG.
              GS_ORDERHEADERINX-REQ_DATE_H         = GC_FLAG.
              GS_ORDERHEADERINX-PURCH_DATE         = GC_FLAG.
              GS_ORDERHEADERINX-PURCH_NO_C         = GC_FLAG.
    *ASSIGN ITEMS DATA AND MOVE TO ITEMS DATA FINAL TABLE
            GS_ORDERITEMSIN-ITM_NUMBER         = WA-POSNR.
            GS_ORDERITEMSIN-MATERIAL           = WA-MATERIAL.
            GS_ORDERITEMSIN-TARGET_QTY         = WA-EXT_QTY.      "EXT_QTY is of type LFIMG
            GS_ORDERITEMSIN-TARGET_QU          = WA-EXT_UOM.      "EXT_UOM is of type VRKME
            APPEND GS_ORDERITEMSIN TO GT_ORDERITEMSIN.
            CLEAR GS_ORDERITEMSIN.
    *Assign Items Data And Move To Items Data Final Table
            GS_ORDERITEMSINX-ITM_NUMBER        = WA-POSNR.
            GS_ORDERITEMSINX-MATERIAL          = GC_FLAG.
            GS_ORDERITEMSINX-TARGET_QTY        = GC_FLAG.
            GS_ORDERITEMSINX-TARGET_QU         = GC_FLAG.
            APPEND GS_ORDERITEMSINX TO GT_ORDERITEMSINX.
            CLEAR GS_ORDERITEMSINX.
    *Assign Schedule Lines Data And Move To Schedule Lines Final Table
            GS_ORDER_SCHEDULES_IN-ITM_NUMBER   = WA-POSNR.
            GS_ORDER_SCHEDULES_IN-REQ_DATE     = WA-USAGE_DATE.
            GS_ORDER_SCHEDULES_IN-REQ_QTY      = WA-EXT_QTY.      "EXT_QTY is of type LFIMG
            APPEND GS_ORDER_SCHEDULES_IN TO GT_ORDER_SCHEDULES_IN.
            CLEAR  GS_ORDER_SCHEDULES_IN.
    *Assign Schedule Lines Data And Move To Schedule Lines Final Table
            GS_ORDER_SCHEDULES_INX-ITM_NUMBER  = WA-POSNR.
            GS_ORDER_SCHEDULES_INX-REQ_DATE    = GC_FLAG.
            GS_ORDER_SCHEDULES_INX-REQ_QTY     = GC_FLAG.
            APPEND GS_ORDER_SCHEDULES_INX TO GT_ORDER_SCHEDULES_INX.
            CLEAR  GS_ORDER_SCHEDULES_INX.
    *Assign Sold-To-Partner Data And Move To Final Partners Table
            GS_ORDERPARTNERS-PARTN_ROLE          = GC_SP.
            GS_ORDERPARTNERS-PARTN_NUMB          = GV_SOLD.
            APPEND GS_ORDERPARTNERS TO GT_ORDERPARTNERS.
            CLEAR  GS_ORDERPARTNERS.
    *Assign Ship-To-Partner Data And Move To Partners Table
            GS_ORDERPARTNERS-PARTN_ROLE          = GC_SH.
            GS_ORDERPARTNERS-PARTN_NUMB          = GV_SHIP.
            APPEND GS_ORDERPARTNERS TO GT_ORDERPARTNERS.
            CLEAR  GS_ORDERPARTNERS.
    *Clear Global Variable Field Of Sales Document
              CLEAR:GV_SALESDOCUMENT.
    "Right after pressing F6 button after this. It gives me dump.
    *Call Function Module To Create Sales Order
              CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
                EXPORTING
                  ORDER_HEADER_IN     = GS_ORDERHEADERIN
                  ORDER_HEADER_INX    = GS_ORDERHEADERINX
                IMPORTING
                  SALESDOCUMENT       = GV_SALESDOCUMENT
                TABLES
                  ORDER_ITEMS_IN      = GT_ORDERITEMSIN
                  ORDER_ITEMS_INX     = GT_ORDERITEMSINX
                  ORDER_SCHEDULES_IN  = GT_ORDER_SCHEDULES_IN
                  ORDER_SCHEDULES_INX = GT_ORDER_SCHEDULES_INX
                  ORDER_PARTNERS      = GT_ORDERPARTNERS
                  RETURN              = GT_BAPIRETURN.
    IF SY-SUBRC = 0.
    *Call Function Module For BAPI Commit
                CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
                  EXPORTING
                    WAIT = GC_FLAG.
    ENDIF.
    All my BAPI tables have been filled with required data in them. But, still it is giving me a dump.
    I would really appreciate if some one could suggest me where I am going wrong.
    Thanks.

  • Error while creating sales order using SD_SALESDOCUMENT_CREATE

    Hello All,
    We are using to  SD_SALESDOCUMENT_CREATE function module to create sales order it is working fine for single material.
    When we try to create sales order with multiple matearials we ended up with the following errors
    SALES_HEADER_IN has been processed successfully
    000000
    VBAKKOM
    Internal error in communication between configuration and sales doc.CONFIGURATION_PROCESSING
    000000
    CONFIGURATION_PROCESSING
    Error in SALES_ITEM_IN 000010
    000000
    VBAPKOM
    Internal error in communication between configuration and sales doc.CONFIGURATION_PROCESSING
    000000
    CONFIGURATION_PROCESSING
    Error in SALES_ITEM_IN 000020
    000000
    VBAPKOM
    SALES_ITEM_IN has been processed successfully
    000000
    VBAPKOM
    Could any one help me out to resolve this issue.
    Thanks in advance....
    Cheers,
    Harsha

    Hello,
    Looking at BAPI errors. It looks like you are trying to create sales order with variant configuration.
    Check Below SAP Note.
    900380 - Configurable items in the SD process (idocs & bapis)
    Regards,
    Sameer

  • How to block the material qty to 1 while creating sales order (VA01)?

    Hi All,
    Scenario :  We have 20 Materials each with 100 qty in Plant. In the sales order we should have all the 20 materials with qty one. The sales order should throw an error if the material qty is more than 1 and should not allow to create a sales order.
    so is there any transaction code where we can block the entire material qty to 1 from the same plant while creating sales order?
    Note: We should not set in MM01 "Minimum order qty". Assume we have 100 material in plant we can't set for each material one by one "minimum order qty".Instead of that is there any option to set the whole material qty to 1 as minimum while creating sales order?
    Kindly guide me how to proceed.
    Thanks,
    Renjith

    If you have access to idoc before calling the processing Function module, Adding header text segments E1EDKT1 and E1EDKT2 to the idoc will create the header text.
    Regards
    Sridhar

Maybe you are looking for

  • 2nd gen touch not playing in car

    I just recently upgraded to a 2nd gen ipod touch after my 1st gen died. I've been using an Alpine M-bus to iPod cable in my car to play, and it worked great with my 1st gen. However, it wasn't working with my new one and so I bought the Scosche Passp

  • Multi monitor hardware options?

    Hi, I'm looking for new hardware for a 6 monitor setup. Currently I have 4 monitors, I have manage to get triple screen running with 2x nvidia gt240 on nvidia drivers. Three monitors across 2 cards is the maximum nvidia allows on a consumer card. Wha

  • BOM Data after explosion

    Hi Gurus, I am working on to get BOM information in BI and using a FM which is calling Function  CS_BOM_EXPL_MAT_V2. Here is the entire FM. FUNCTION ybwpp_bom_exp_itm_3rd_lvl. ""Local Interface: *"  IMPORTING *"     REFERENCE(I_REQUNR) TYPE  SRSC_S_I

  • App shuts down, screen goes black and an apple appears

    What does this mean?

  • Loan postings to vendor accounts

    Hi I am posting employee loan amounts and the recovery to employee vendor accounts. How ever I would like to know whether is is possible to post to vendor accounts with spI gl indicator. We have a reco account defined for employee loans, so accounts