Created sales order for one division, for which the material belongs to ano

Dear All,
A sales order has been created for a division 10, for which the material belongs to some other division 20 in material master.
When we are  create a sales order for 10 division ( the one which we give at organzational data) at the item level the material which we select should also belong to the same division, if  the material division  is different as 20 the system will throw an error at sales order  saying "ship-to-party so and so is not created for the sales area so and so.."
But here it's allowing me to create a sales order for division 10 with 20 Division material without any error. But this should not happen.
Checked in the document type VOV8 where at the Check division field 2 has been there.
Please suggest

Hello,
Let me explain the concept of Header division and item division...the header division is the one which gets copied from the sales area division that gets determined in the sales doc creation from SP.
The item division is the division that gets copied from the material master in the line item material.
In the Sales document type , there is a check box "Item Division". If this is marked, then system takes the division from the Mat master. if this is not marked system the system doesnt find from MMR instead it picks up from header division.
The check division controls, how the system should behave in case the header and item division differ..
Rgds,
Rags.

Similar Messages

  • Sale orders for which invoice has been created

    is there any table in sd module from which we can find out the list of all sales order for which invoice has been created.

    Hi
    Kindly Table VBFA.It is sales document flow table containing data from the begining of sales order till the invoice.
    VBTYP_N = 'M'  invoice
    Thanks
    Subha

  • Duplication of Purchase Order while creating sales orders for a customer

    when we try to create sales order for one customer it have to create by picking up the purchase order from the table linearly.
    But the problem is that here when we are trying to create multiple sales orders the same purchase order is being picked.
    for example..when we create sales order 1 the purchase order picked is PO1 and
    for creation of sales order 2 the same purchase order PO1 is being picked up instead of PO2.
    No idocs are being generated in this, even to check them..
    How shall i resolve this...? Please help me out ASAP

    Hi Kumar,
    Thanks for the reply. But actually the problem is that this is related to some customized table in the project. When a EDI Batch job runs in the background then automatically the SO is created and the PO is being picked from the table(custom table) and then posted against the respective SO. we are not aware of that job which is triggering this to debug. Once if we can know that particular batch job or pgm or edi or idoc what ever it is then we can debug.
    Do you have any idea how can we find that particular pgm/edi/idoc/job name which triggers this creation of SO?

  • Creating Sales Order for Item Category TATX (Text)

    How can I create Sales order for text item where no material master has been maintained?
    It does not give me any conditions and no accounting document.
    What I need to do if I want to create that with a value?
    Thanks
    ST

    Hi,
    Its not possible to create an SO w/o material code.
    But you can create an dummy material.
    This dummy material can be just an refer to create an SO.
    Do refer the below help doc which may help you..
    Settings in the Material Master (Dummy-Material) - mySAP Engineering & Construction - SAP Library

  • Creating Sales Order for "Payer" thru VA01 trans.

    Dear All,
    In our project, we have stations which r  <b>Sold-to-party</b> and <b>Credit customers</b> which is a <b>Payer</b>.
    We have to create <b>Sales order</b> for both <b>Stations</b> and <b>Credit customers</b>. Creating Sales order for Station is not a problem but each station has many credit customers, which are maintained in the Station.
    When we are creating Sales Order via <b>VA01</b> for a particular credit customer, we are entering Station as a sold-to-party and it asks for Payer which is the Credit customer for that station.<b>But when we are recording through SHDB transaction it is not asking for payer(credit customer for that station).</b>
    Please let me know  of BAPI or some other method to create sales order for credit customer(Payer). 
    Kindly help at the earliest.
    Thanks and Regards,
    Sudipto.

    Hi,
    There is TABLES parameter where you can pass the PARTNERS information. I am not sure of the parameter name but it would refer to something like BAPIPAR.
    Regards,
    Ravi
    Note : Please mark all the helpful answers.

  • How to find that a sales order for which there is  delivery but no goods

    Hi
    How to find that a sales order for which there is  delivery but no goods issue has been done i.e we have an open delivery for a sales order.
    How in VBUK table can we find  out with the sales order no .
    Thanks in advance

    make use of table VBFA.
    Regards
    Peram

  • Sales order for a configurable material

    Hi all,
    While creating a sales order for a configurable material i'm encountering an incompletion log saying enter gross weight & net weight. Even after i enter some value in the respective fields, i'm still thrown with the same incompletion & i'm unable to complete the order. In the material i find that the gross weight, netweight, volume are maintained as "zero". How do i resolve the problem??should the material master be changed??
    Thanks and regards,
    Deepak Prasanna S

    hi,
    If ur not having access to change teh master data in client system, Then u have to feed data manually in the sale order
    VA02/VA01->go to item details->in shipping view u can feed the details.
    1.But in ur earlier posting u told even after filling the details, the system pops up the message.Revert waht is error r u getting.
    2. But is advisable to  change in material master since each time while creating sale order u can't feed the input
    regards,
    Arun prasad

  • How to create Purchase order for non valuated material with fright charges

    Dear Guru,
    When i have creating purchase order for non valuated material then GR non valuated tab should be in display mode.And how to load fright charges.
    Regards,
    Abhijit

    hi,
    while creating the PO, u have the option FREE indicator in the right corner of the line item.(u can have separate Valuation type for the same, for valuation purpose)
    even u can create the UNBW material type.
    check the material type customization in oms2
    hope will get the clarity

  • Error while creating sales order for material with another DIVISION

    Hello Friends,
    I have a problem with my sales order creation.
    I have defined a new sales area 0010 / 10 / 01. I have the sales order type assigned to this sales area. (in VOV8 for the sales order type, in the 'General Control' the 'item division' is flagged.
    Now, I have created the sold to party XYZ with all the partner functions defaulted same as the sold to party for the sales area 0010 / 10 / 01.
    NOW, I have the material ABC with the DIVISION 10 in the basic data. I have extended the material to my sales org & dist. channel & plant.
    Now, while creating the sales order for my sales area 0010 / 10 / 01 , I enter the sold to party XYZ - it is OK. But when I enter the material ABC, I get the error - "SHIP TO PARTY IS NOT DEFINED FOR SALES AREA 0010 / 10 / 10"
    Please help to resolve the issue.
    Edited by: Vivek on Aug 13, 2009 9:04 AM

    Hi
    Common division for Material Master data will not work
    Because in the material master Division is a field not an organizational unit
    Means when you create MMR you will give sales org, DC, Plant  as organizational units and then enter but not division
    Division is a field maintained in basic data and sales org data 1
    This is the reason in t code you will find in t code VOR2 Common division only customer and conditions but not materials
    But in t code VOR1 Common DC ,customer  conditions and materials all there are available (you can check these t codes)
    Coming to your issue Item div is clecked in your order type
    This means the division in MMR has the priority or control for that order type
    Your header division is 01 ( taken from customers sales area) and item division is 10 (taken from MMR as per your post)
    So it differs
    To process this order with Item div is clecked in your order type you need to extend your Sold to party ABC to the sales area 0010/10/10 (the sales area where the division of the material falls)
    or alternatively
    There should be a  customer say DEF created in sales area 0010/10/10 who will be a ship to party ( your error is also the same)
    for your ABC  that is sold to party in sales area 0010/10/01 where the order is registered
    Hope yopu are getting it
    ABC in sales area 0010/10/01 will have  or should have ship to paty DEF  in sales area 0010/10/10 
    or
    ABC should operate in in sales area 0010/10/10  too
    If item division is not ticked then these are not necessary as the header division 01 will be valid for all items and syatem will not look MMR at all for division
    Regards
    Raja

  • Create Sales Order for Repair

    Hi All,
    I want to create a Repair Sales Order using BAPI 'BAPI_SALESORDER_CREATEFROMDAT2'.
    When I create the order using tcode VA01 it asks me to enter Material, Servicable Material and the Repair Information.
    How can I pass the Servicable Material and the Repair Information to the above BAPI.
    Any help will be appreciated.
    Regards,
    Shubham

    Hi
    Please refer to the following documentation.
    Method
    SalesOrder.CreateFromDat2
    Sales order: Create Sales Order
    Functionality
    You can use this method to create sales orders.
    You must enter at least sales order header data (via ORDER_HEADER_IN structure) and partner data (via the ORDER_PARTNERS table) as input parameters.
    Enter the item data via the ORDER_ITEMS_IN table. You can allocate item numbers manually, by filling in the relevant fields, or the system does it, according to the settings for Customizing, by leaving the relevant fields blank.
    If you have configurable items, you must enter the configuration data in the ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_PART_OF and ORDER_CFGS_VALUE tables.
    Credit cards can be transferred via the BAPICCARD structure, on the one hand, data for card identification, on the other, data for a transaction which has taken place in an external system.
    Once you have created the sales order successfully, you will receive the document number (SALESDOCUMENT field). Any errors that may occur will be announced via the RETURN parameter.
    If no sales area has been created in the sales order header, then the system creates the sales area from the sold-to party or ship-to party, who has been entered in the partner table. If a clear sales area cannot be created, you will receive a system message, and the sales order will not be created.
    Notes
    Mandatory entries:
    ORDER_HEADER_IN : DOC_TYPE Sales document type
    SALES_ORG Sales organization
    DISTR_CHAN Distribution channel
    DIVISION Division
    ORDER_PARTNERS..: PARTN_ROLE Partner role, SP sold-to party
    PARTN_NUMB Customer number
    ORDER_ITEMS_IN..: MATERIAL Material number
    Ship-to party:
    If no ship-to party is entered, use the following: Ship-to party =
    sold-to party.
    Commit control:
    The BAPI does not have a database commit. This means that the relevant application must leave the commit, in order that can be carried out on on the database. The BAPI BAPI_TRANSACTION_COMMIT is available for this.
    German key words:
    The following key words must be entered in German, independantly of
    the logon language:
    DOC_TYPE Sales document type, for example: TA for standard order
    PARTN_ROLE Partner role, for example: WE for ship-to party
    Further Information
    You can find further information in the OSS. The note 93091 contains general information on the BAPIs in SD.
    Regards
    Inder

  • Deleting lines from Sales order for which PO exists

    HI all,
    We have a setup where MTO/PTO configurable sales order lines are created in SAP from a different application. In this scenario user did create a couple of PTO lines manually in SAP sales order which generated Purchase requisition and a purchase order was created. Since order entry has to be done from the front end application, the line number has been already consumed by the manually created line in SAP. So we need to somehow delete these two PTO lines from the sales order. We tried setting deletion flags to the purchase order lines but still not bale to delete the lines from the sales order.
    Could some one come up with some idea?
    Thanks
    Gopi

    Gopi
    I think you should work from SD Sales Order first. Did you try rejecting the sales order items without doing anything to the PO.
    Also check what requirement routines you have in IMG T codes OVB5 (Maintain Requirements For Purchase And Assembly Orders) and OVB8  (Maintain Requirements For Transfer Of Requirements).
    Hope this helps.

  • BAPIs to create sales orders for Returns and Debit Memo Request

    Hi,
    I have to create a sales order for document type Returns as well as a debit memo request.The BAPI 'BAPI_SALESORDER_CREATEFROMDAT2' is giving the following error message for Debit Memo Request document creation as well as for Returns.
    761 Unpermitted combination of business object BUS2032 and sales doc. category L
    I found BAPIs:
    ‘BAPI_CUSTOMERRETURN_CREATE’ for creating sales document of type ZDRE and SD document category ‘H’.
    ‘BAPI_DEBITREQUEST_PROXY_CREATE’ for creating sales document of type ZDDR and SD document category ‘L’.
    please let me know if anybody have used them. If so what values need to be passed to I_UPLOAD_ID,I_DESTIN,I_SFA_REL parameters of BAPI_DEBITREQUEST_PROXY_CREATE. Are there any alternative solutions using the Salesorder bapi.
    I have to create documents based on the flat file data no reference sales document numbers are available.
    Appreciate your help..
    Good Day
    Regards
    Bhargavi

    Look at the code done by me
    Program Name:                                                        *
    SAP Name    : ZAXXXXXX               Version    :                    *
    Programmer  : Chris Dong of ITDC                    *
    Description :                                                        *
    Includes        :                                                    *
    Function Modules: XX_XXXXXX                                          *
    Transactions    :                                                    *
    Programs        :                                                    *
    REPORT  XXXXXXXX LINE-SIZE  80
                     LINE-COUNT 65
                     MESSAGE-ID ZA
                     NO STANDARD PAGE HEADING.
    CLEAR l_order_partners.
    l_order_partners-partn_role = 'AG'.
    l_order_partners-partn_numb = '0001202491'.
    APPEND l_order_partners TO li_order_partners.
    CLEAR l_order_partners.
    l_order_partners-partn_role = 'WE'.
    l_order_partners-partn_numb = '0001202491'.
    APPEND l_order_partners TO li_order_partners.  
    Sales document type
    l_order_header_in-doc_type = 'ZDR'.  
    Sales organization
    l_order_header_in-sales_org = '1000'. 
    Distribution channel
    l_order_header_in-distr_chan = '01'.  
    Division
    l_order_header_in-division = '04'. 
    REF DOCUMENT
    l_order_header_in-REF_DOC = '9100000144'.
    order reason
    l_order_header_in-ord_reason = '925'.
    item number
    l_order_items_in-itm_number = '000001'. 
    material no
    l_order_items_in-material = '000000000007000012'. 
    Qty
    l_order_items_in-target_qty = '0000000000100.000'. 
    APPEND l_order_items_in TO li_order_items_in. 
    *BUS2094 Credit memo request " OSS NOTE 93091
    *BUS2096 Debit memo request " OSS NOTE 93091
    CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA'
    EXPORTING
    ORDER_HEADER_IN = l_order_header_in
    BUSINESS_OBJECT = 'BUS2096'
    WITHOUT_COMMIT = ' '
    CONVERT_PARVW_AUART = ' '
    IMPORTING
    SALESDOCUMENT = l_vbeln
    RETURN = li_return
    TABLES
    ORDER_ITEMS_IN = li_order_items_in
    ORDER_PARTNERS = li_order_partners
    Message was edited by:
            Chris Dong
    null

  • Error while Creating a Sales Order for a Configurable Material

    Dear Members,
                            When I am creating a Sales Order for a Material. After Entering the Sold to Party and Material(Variant Configuration) I am getting an error in popup that Derivatiion Rule not defined for the Country IN. Please can you help me out regarding the settings for this.
    Thanks,
    Farhan.

    It seems your issue relates to some non assignment in COPA settings.  Hence,  check this help link and I hope this will be helpful to you
    [Source and Target Fields |http://help.sap.com/saphelp_erp2004/helpdata/en/59/65a2b8dd1711d2a6110060087a7a87/frameset.htm]
    thanks
    G. Lakshmipathi

  • Problem in Creating Sales Order From One DB to another DB

    Hello All,
    I am trying to create a Sales Order in another database from the current database based on the Purchase Order but while creating the sales order system is throwing an error " In "To Whse" enter valid values [ZAPp 0] "
    My Code for Creating Sales Order in another DB are as follows :-
                 '==== Connect To another SAP Company ====='
                '=====================================
                Dim oCompany_DB As New SAPbobsCOM.Company
                oCompany_DB.Server = "OSL_SERVER"
                oCompany_DB.LicenseServer = "OSL_SERVER"
                oCompany_DB.UseTrusted = False
                oCompany_DB.CompanyDB = Database_Name
                oCompany_DB.UserName = SAPUserName
                oCompany_DB.Password = SAPPassword
                oCompany_DB.DbUserName = DBUserName
                oCompany_DB.DbPassword = DBPassword
                oCompany_DB.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2005
                lRetCode = oCompany_DB.Connect()
                If lRetCode <> 0 Then
                    oCompany_DB.GetLastError(lErrCode, sErrMsg)
                    If (lErrCode <> -4006) Then
                        Class_InterCmp_Main.SBO_Application.MessageBox(sErrMsg)
                    End If
                End If
    '===== Creating the Sales Order ====='
    '================================
      Dim oOrder As SAPbobsCOM.Documents = oCompany_DB.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
                Dim DocDueDate As String = oRecord.Fields.Item("DocDueDate").Value
                oOrder.DocDueDate = DocDueDate
                oOrder.CardCode = Customer
      While Not oRecord.EoF
                    Dim ItemCode As String = oRecord.Fields.Item("ItemCode").Value
                    Dim WhsCode As String = oRecord.Fields.Item("WhsCode").Value
                    Dim Quantity As Double = oRecord.Fields.Item("Quantity").Value
                    Dim Price As Double = oRecord.Fields.Item("Price").Value
                    Dim Discnt As Double = oRecord.Fields.Item("DiscPrcnt").Value
                    Dim TaxCode As String = oRecord.Fields.Item("TaxCode").Value
                    oOrder.Lines.ItemCode = ItemCode
                    oOrder.Lines.WarehouseCode = WhsCode
                    oOrder.Lines.Quantity = Quantity
                    oOrder.Lines.Price = Price
                    oOrder.Lines.DiscountPercent = Discnt
                    oOrder.Lines.TaxCode = TaxCode
                    oOrder.Lines.Add()
                    oRecord.MoveNext()
                End While
                lRetCode = oOrder.Add
                '=== Check For Error if any ===='
                If lRetCode <> 0 Then
                    oCompany_DB.GetLastError(lErrCode, sErrMsg)
                    If (lErrCode <> -4006) Then
                        Class_InterCmp_Main.SBO_Application.MessageBox(sErrMsg)
                    End If
                End If
                oCompany_DB.Disconnect()
    When i execute the above code company gets connected but sales order not getting added in another company.
    Thanks,
    Amit

    You can not do it the alternate way Kevin suggests, direct DB inserts are prohibited by SAP and can corrupt your DB, particularly because unlike what most people think, all SAP documents affect more than just their own tables (e.g. the numbering table, the history tables).
    Are you getting any error message, or is it returning 0?
    If it is returning 0, then check is the document actually going to the newly created database or maybe somehow going to old one.
    If it isn't returning 0, what is the error code and message.
    Edit:
    Also I do see an error in your code. As it stands, you are adding an empty line to the end of every order. This can cause problems for SAP.
    Dim counter As Integer = 0
    If counter <> 0 Then 'Not equals 0, forum hides lt & gt symbols.
    oOrder.Lines.Add()
    End If
    counter = counter + 1
    oOrder.Lines.ItemCode = ItemCode
    oOrder.Lines.WarehouseCode = WhsCode
    oOrder.Lines.Quantity = Quantity
    oOrder.Lines.Price = Price
    oOrder.Lines.DiscountPercent = Discnt
    oOrder.Lines.TaxCode = TaxCode
    Edited by: njmog1 on May 9, 2011 10:14 AM

  • Error while creating sales order for a new company code

    Hello SD Gurus,
    The client wanted us to create a new Company Code, Plant, and Sales Organization. We created them. I extended the customer and material in QAS. Now, I'm trying to create one sales order in QAS but the system is throwing one error: "Maintain Profit Center Value in Custom Table in YSD_PROFIT_CNTR".
    I googled for this error but found nothing. Could you please give me the solution asap. I need to prepare test script.
    Thanks in advance
    Regards,
    Anwar

    Dear Mohammed,
    The error message itself states where is the issue. You need to maintain the profit center in table
    YSD_PROFIT_CNTR. This is not SAP Standard provided solution. I guess during the time of implementation team has suggested to maintain the profit center in custom table.
    If the table is"maintenance view" then you can check through SM30 and maintain the relevant entry. If not check if there is any transaction code with attached to this table. This you can check by going through SE93 and by entering Z* or ZSD* or Y* or YSD* and press F4, If the transaction code is starting with Z or Y it will open all the list of transaction codes. By going through the description of the transaction code. you can pick the right transaction code in case if any exists for this table.
    Hope this information is useful to you.
    Regards
    Murali

Maybe you are looking for