Why we create a sales organisation?

Hi Gurus
I have one question
Why we create Sales Organisation?What is the requairement of sales organisation?Why we assing sales organisation with a company code?
If any one give me the ans.
Thanks and regards
babi

Sales organisation is the highest level of organisation with in the sales dept.All the sales related issues like customers agreements is going to takes place at the sales organisation.
And for the every business transactions that we do with the customers all the financial postings will be done and these needs to be updated to the company code.
  Because in the company code all the financial related like P&L A/c,Balance sheets are going to be prepared.
Due to this purpose the sales organisation needs to be updated to company code......
  Pls rectify me if i am wrong........
And if you are satisfied pls give me the points................

Similar Messages

  • Why do we combine Sales Organisations ? (Tr Cd - OVAO)

    Why do we combine Sales Organisations ? (Tr Cd - OVAO)

    Hi,
    If all sales document types are allowed for all sales organizations, leave the field blank. Otherwise, enter the sales organization you want to use as a reference.
    Example
    Sales organization Reference sales org.
    01 01
    02 01
    03 01
    04 04
    In this example, only sales organizations 01 and 04 have sales document types defined. Sales organizations 01, 02, and 03 share the sales document types defined for sales organization 01. Sales organization 04 has its own sales document types. When you create a sales order in sales organization 03, the system checks the sales document type against the types defined for sales organization 01. You do not maintain sales document types in sales organizations 02 and 03, since they are never used. For further information on the topic "Allowed sales document types per sales area", see the documentation on the IMG activity.
    Regards,

  • How to create/choose a sales organisation?

    Hello everybody,
    i am working with mySAP CRM trying to create a marketing campaign. I am struggling how to create / use a sales organisation.
    What i can do is create a sales organisation (within "create organisation modell", sorry using the german version, so definitions are maybe not correct)
    When i now want to create a Product catalog, i have to choose a sales organisation, but it just say "no values found"
    So my question is, is there a need to activate my sales organisation, or is something else wrong.
    Hopefully some of you can help.
    Best regards
    Heinz

    Hi Heinz,
    Once you make changes to org model, if it has to be visible for applicaitons working on the model. You have to perform the following activity:
    1. Goto SAP CRM IMG Menu: Customer Relationship Management ->Master Data -> Organizational Management -> Tools -> Update List of Organizational Objects
    Execute the object for Sales Org.
    2. Also Check the consistency of the attribute assignments to the organizational units in the SAP CRM IMG Menu: Customer Relationship Management -> Master Data -> Organizational Management -> Tools ->Check Settings for  Attribute Maintenance
    3. Also, perform Org data settings check in the SAP CRM IMG Menu: Customer Relationship Management -> Master Data -> Organizational Management -> Tools -> Organizational Data Settings Check
    4. Execute Report HRBCI_ATTRIBUTES_BUFFER_UPDATE is used to buffer the attributes of organizational management objects. To enable buffering you have to maintain view T77OMATTR.
    Use transaction SE38 to execute the report.
    Try doing these, it might help you.
    regards
    Srikantan

  • How to create CRM only Sales Organisation?

    Hello all,
    We have downloaded our org model from R/3. We want to extend our org model in CRM with a sales organisation which does not exist in R/3. This should be possible as CRM can run stand alone but we cannot figure out how.
    Does anybody have any suggestions?
    Thanks and best regards,
    Boris

    Hello Boris
    You can just add organisations (in tx ppoma_crm) to the root unit and also to lower ones in the hierarchy via right mouseclick. If some of these units are mapped to the R/3 organisation model you can do that under the tabs Function and Attributes (depending on the way your org model is set up) by assigning sales orgs, distribution channels and divisions.
    You can also drag & drop existing units (read downloaded ones from R/3) there.
    Keep in mind that attributes are inherited from higher org units to lower ones.
    In org data determination you can then refer to all org units marked as 'relevant for determination' in the attributes tab.
    Regards, Kai
    PS: BTW, it is possible to have additional sales orgs marked as VKORG or VKBUR in CRM in addition to the ones exchanged with R/3 and the exchange still works. This scenario is useful i.e. when you have divisions selling 3rd party products not handled in the backend R/3.
    (EDIT: PS. added)

  • Trying to create a sales order in CRM with BAPI_BUSPROCESSND_CREATEMULTI.

    hi all,
    I am trying to create a sales order in CRM using the BAPI BAPI_BUSPROCESSND_CREATEMULTI.
    I need the sales order number as the out put. So I am declaring OBJECT_ID as the export parameter.
    This is my source code, I donu2019t get an error, but the sales order is not generated and I donu2019t get any output for my export parameter OBJECT_ID.
    I am setting the tables HEADER,ITEM ,SALES,PARTNER, ORGANISATION, RETURN and
        SCHEDULELINE in BAPI_BUSPROCESSND_CREATEMULTI. But still unable to display the sales order number. Please help me with information
    This is my code
    ***********************************Define the Internal Tables*************************
    DATA: IT_HEADER TYPE STANDARD TABLE OF BAPIBUS20001_HEADER_INS WITH HEADER LINE.
    DATA: IT_SALES TYPE STANDARD TABLE OF BAPIBUS20001_SALES WITH HEADER LINE.
    DATA: IT_ITEM TYPE STANDARD TABLE OF BAPIBUS20001_ITEM WITH HEADER LINE.
    DATA: IT_SCHEDULELINE TYPE STANDARD TABLE OF BAPIBUS20001_SCHEDLIN WITH HEADER LINE.
    DATA: IT_PARTNER TYPE STANDARD TABLE OF BAPIBUS20001_PARTNER_INS WITH HEADER LINE.
    DATA: IT_ORGANIZATION TYPE STANDARD TABLE OF BAPIBUS20001_ORGMAN_INS WITH HEADER LINE.
    **Values for Internal Table IT_HEADER**
    IT_HEADER-PROCESS_TYPE  =  'YWEB'.
    IT_HEADER-DESCRIPTION   =  'Web Order'.
    IT_HEADER-POSTING_DATE  =  'SY-DATUM'.
    IT_HEADER-CREATED_BY    =  'SY-USER'.
    APPEND IT_HEADER TO IT_HEADER.
    **Values for Internal Table IT_SALES**
    IT_SALES-PO_NUMBER_SOLD = '1'.
    APPEND IT_SALES TO IT_SALES.
    **Values for Internal Table IT_ITEM**
    IT_ITEM-NUMBER_INT  =  '20'.
    IT_ITEM-ORDERED_PROD  =  '50000180'.
    IT_ITEM-ITM_TYPE  =  'ZABC'.
    APPEND IT_ITEM TO IT_ITEM.
    **Values for Internal Table IT_PARTNER**
    IT_PARTNER-REF_PARTNER_NO  =  '100000620'.
    IT_PARTNER-REF_PARTNER_FCT = 'CRMH04'.
    APPEND IT_PARTNER TO IT_PARTNER.
    **Values for Internal Table IT_ORGANIZATION**
    IT_ORGANIZATION-SALES_ORG = 'O 50000100'.
    IT_ORGANIZATION-DIS_CHANNEL = '30'.
    IT_ORGANIZATION-DIVISION = '80'.
    APPEND IT_ORGANIZATION TO IT_ORGANIZATION.
    **Values for Internal Table IT_SCHEDULELINE**
    IT_SCHEDULELINE-QUANTITY  =  '2.268'.
    APPEND IT_SCHEDULELINE TO IT_SCHEDULELINE.
    **Call BAPI_BUSPROCESSND_CREATEMULTI for creating a sales 0rder******
    CALL FUNCTION 'BAPI_BUSPROCESSND_CREATEMULTI'
      TABLES
        HEADER                  =  IT_HEADER
        ITEM                    =  IT_ITEM
        SALES                   =  IT_SALES
        PARTNER                 =  IT_PARTNER
        ORGANISATION            =  IT_ORGANIZATION
        RETURN                  = IT_RETURN1
        SCHEDULELINE            = IT_SCHEDULELINE.
    ****************CALL COMMIT WORK**********
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
        WAIT          = 'X'
    IMPORTING
       RETURN        =  IT_RETURN2.
    ENDFUNCTION.
    Edited by: jessica sam on Dec 10, 2008 1:45 AM

    Hi am getting the sales order but the item data is not available in sales order. Also should I generate a new guide always for HEADER, ITEM, PARTNER, ORGANIZATION, SCHEDULELINE,u2026u2026for the tables that I use?
    I  mean do I need to create a new guide each time for all the tables that I use and finally pass only header guide to the  bapi 'BAPI_BUSPROCESSND_SAVE'.
    I donu2019t know why I am not getting the product data in the saved sales order please help me.
    this is my code
    ***TABLES
    DATA: IT_HEADER TYPE TABLE OF BAPIBUS20001_HEADER_INS.
    DATA: IT_INPUT_FIELDS_FILL TYPE TABLE OF BAPIBUS20001_INPUT_FIELDS.
    DATA: IT_ITEM TYPE TABLE OF BAPIBUS20001_ITEM.
    DATA: IT_OBJECTS_TO_SAVE TYPE STANDARD TABLE OF BAPIBUS20001_GUID_DIS WITH HEADER LINE.
    ***WORK AREA
    DATA: WA_INPUT_FIELDS TYPE BAPIBUS20001_INPUT_FIELDS.
    DATA: WA_HEADER TYPE BAPIBUS20001_HEADER_INS.
    DATA: WA_ITEM TYPE BAPIBUS20001_ITEM.
    DATA: IT_EV_GUID_32 TYPE GUID_32.
    DATA: IT_EV_GUID_32_1 TYPE GUID_32.
    *Create GUID
    CALL FUNCTION 'GUID_CREATE'
      IMPORTING
        EV_GUID_32       = IT_EV_GUID_32.
    * Fill the HEADER
    WA_HEADER-GUID                      =  IT_EV_GUID_32.
    WA_HEADER-PROCESS_TYPE              =  'ZWEB'.
    WA_HEADER-DESCRIPTION               =  'WEB ORDER'.
    WA_HEADER-CREATED_BY                =  'jiopidn'.
    APPEND WA_HEADER TO IT_HEADER.
    *For each FIELD of HEADER fill INPUT_FIELDS
    WA_INPUT_FIELDS-REF_GUID               =  IT_EV_GUID_32.
    WA_INPUT_FIELDS-REF_KIND               =  'A'.
    WA_INPUT_FIELDS-OBJECTNAME             =  'ORDERADM_H'.
    WA_INPUT_FIELDS-LOGICAL_KEY            =  '1'.
    WA_INPUT_FIELDS-CHANGEABLE             =  ' '.
    WA_INPUT_FIELDS-FIELDNAME              =  'PROCESS_TYPE'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME              =  'GUID'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME              =  'DESCRIPTION'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME              =  'CREATED_BY'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    *Create your own GUID
    CALL FUNCTION 'GUID_CREATE'
      IMPORTING
        EV_GUID_32       = IT_EV_GUID_32_1.
    * Fill the ITEM
    WA_ITEM-GUID              =  IT_EV_GUID_32_1.
    WA_ITEM-NUMBER_INT        =  '10'.
    WA_ITEM-ORDERED_PROD      =  '000000000070000000'.
    WA_ITEM-ITM_TYPE          =  'ZTAN'.
    WA_ITEM-MODE              =  'A'.
    APPEND WA_ITEM TO IT_ITEM.
    *For each FIELD of ITEM fill INPUT_FIELDS fields
    WA_INPUT_FIELDS-REF_GUID               =  IT_EV_GUID_32_1.
    WA_INPUT_FIELDS-REF_KIND               =  'A'.
    WA_INPUT_FIELDS-OBJECTNAME             =  'ORDERADM_I'.
    WA_INPUT_FIELDS-LOGICAL_KEY            =  '1'.
    WA_INPUT_FIELDS-CHANGEABLE             =  ' '.
    WA_INPUT_FIELDS-FIELDNAME              =  'GUID'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME              =  'NUMBER_INT'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME                 =  'ORDERED_PROD'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME                 =  'ITM_TYPE'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    REFRESH: CREATED_PROCESS.
    ***** CALL BAPI_BUSPROCESSND_CREATEMULTI
                   CALL FUNCTION 'BAPI_BUSPROCESSND_CREATEMULTI'
                     TABLES
                       HEADER                  = IT_HEADER
                       ITEM                    = IT_ITEM
                       INPUT_FIELDS            = IT_INPUT_FIELDS_FILL
                       CREATED_PROCESS         = CREATED_PROCESS
                       RETURN                  = RETURN.
    IT_OBJECTS_TO_SAVE-GUID = IT_EV_GUID_32.
    IT_OBJECTS_TO_SAVE-OBJECT_TYPE = 'BAPIBUS20001'.
    APPEND IT_OBJECTS_TO_SAVE TO IT_OBJECTS_TO_SAVE.
    **** CALL 'BAPI_BUSPROCESSND_SAVE
    CALL FUNCTION 'BAPI_BUSPROCESSND_SAVE'
      EXPORTING
        UPDATE_TASK_LOCAL       = true
        SAVE_FRAME_LOG          = true
      TABLES
        OBJECTS_TO_SAVE         = IT_OBJECTS_TO_SAVE
        SAVED_OBJECTS           = ITAB_SAVED_OBJECTS
        RETURN                  = itab_return.
    **** CALL BAPI_TRANSACTION_COMMIT
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
       EXPORTING
        WAIT = true
      IMPORTING
        RETURN = RETURN1.
    Edited by: jessica sam on Dec 12, 2008 3:50 AM

  • Automatic creation of intercompany PO when creating a Sales Order

    Hi Experts
    Is there a standard way of triggering an intercompany PO when creating a sales order to the final customer (or the other way around, triggering a sales order to the end customer upon creation of an intercompany PO)? Scenario: business has setup a logistics company (company code X), which its purpose is to deliver goods to the final customer (home customers). However, sales orders are created from seperate chain of stores which belong to another company code (company code Y). This chain of stores have one sales organisation (since there is over 1000 stores under a chain). I need a way to represent that a sale originated from a store/plant belonging to company Y to end customer A. Also, I need a billing document (intercompany) from company code X to store/plant beloning to company Y.
    Issues: in the intercompany config (assign intern customer numbers to sales org) - is there a way to assign a customer number at site/plant level so that when creating an intercompany billing it can be picked instead of the one assigned to the sales org and where can this be specified in the sales order (remember: in my scenario there are multiple stores/plants that belong to one sales organisation and it is not possible to use one customer number linked to the sales organisation.)
    Desired results:
    Sales order from store/plant YY belonging to company code Y to end customer A
    Intercompany billing from plant XX belonging to company code X to store/plant YY
    End customer billing from store/plant YY to end customer A
    Thank you in advance for your help.

    Hello Tsmash  
    I think you can acheive this with Regular Sales order + Inter Company STO combination.
    Maintain customer numbers for each of the Plants from Company Y for the sales area belonging to Company X.
    Then do the config for STO in MM using this menu path:
    SPRO/Materials Management/Purchasing/Purchase Order/Set up Stock Transport Order
    Here, in the activity 'Define Shipping Data for Plants',  enter each of the plant-customers and the Sales area belonging to Comany code Y. Carry out other activities in this area appropriately.
    Similarly set up Custom ( say Z1) Special Procurement type for Plant YY for stock transfer from XX using this menu path:
    SPRO/Production/Material Requirements Planning/Master Data/Define Special Procurement Type:
    Here maintain procurement type as F, Special procurement as U and plant as XX. You may need to repeat this config for each of the receiving plants (over 1000 stores under a chain)  from co code Y.
    In the material master MRP 2 for Plant YY,  maintain procurement type as F and Special Procurement as Z1.
    Sales order will be received under Co Code Y and sales area belonging to Y form customer A,
    Because of the MRP config, a PO (STO) requirement will be raised on Co code X and plant XX. XX will send the goods to YY via a STO delivery using the Shipping data from 'Set up STO' config,
    Plant YY will send the goods to A and bill that customer. Co Code X will raise an inter-comany bill on Co code Y.
    That's how it should work. Try it and revert with any issues.

  • EDI: creating a sales order with reference to contract

    Dear gurus,
    we would like to create a sales order with reference to a SD contract from an ORDERS IDoc.
    OSS say we have to populate the E1EDx02 segments with the contract number to do this.
    We tested this in our system by manually editing the incoming IDoc and this is what we found:
    - qualifier u201C005  : Customer Contract Numberu201D set and BELNR = u201Cthe customeru2019s outline agreement number in his MMu201D (= normal MM behaviour) -> reference is not processed at all, sales order is created without reference
    - qualifier u201C043: Vendor Contract Numberu201D set and BELNR = our contract number in SD -> Sales order successfully created. BUT where can I store an external outline agreement number in MM so that the BELNR in the IDoc is populated with it?
    - qualifier u201C058: Customer Contract Numberu201D set and BELNR = the customeru2019s outline agreement number in his MM -> Error:
    The system could not determine a contract number
    Message no. VG226
    Diagnosis
    The system could not determine a contract number for the selection criteria: external contract number 5100000020 and customer number 0044000004.
    This error appears although we maintained the external number 5100000020 in the PO number field (VBKD-BSTKD) in our SD contract.
    Could anyone please explain what we do wrong?
    Cheers
    Alicia

    Hi again,
    @Lakshmipathi: Thank you, but it is VG226, like I wrote. But still, the OSS note is interesting: "You create a sales order with reference to an MM contract using EDI." Where's the sense in that? Why would I ever want to create a sales order with reference to an outline agreement in MM???
    @Rags: Sure we could do that, but I find it hard to believe that there is no standard way to do this. Especially given there are plenty of OSS notes stating that this is possible, e.g. note 562710.
    Any other ideas?
    Cheers
    Alicia

  • Problem when creating a sales order with reference by BAPI

    I am facing one problem when creating Sales Order.
    <b>The scenario is like this while creating SO With reference to an Order type, a new SO will be automatically created with a diff order Type</b>.
    I am using "BAPI_SALESORDER_CREATEFROMDAT2".
    I am calling this BAPI in USEREXIT_REFRESH_DOCUMENT.
    Am I using the right exit to call this Bapi ?
    <b>Problems are like :
    1. Ref Sales Order creating without Sales Unit .
    2. "Object Status does not exist" error msg is coming for Header and Item level(when clicking the status tab and then object status pushbutton).</b> But if testing the bapi from SE37 in test sequence....no such problem persists.
    As for example in case of sales unit,in the debugging mode i have seen that BAPI uses a perform to fill the values in the VBAP structure.But after that when it come back to the main program VBAP remains blank.This ocuurs when the BAPI is called from the exit whereas  if tested from SE37, VBAP retains the value.
    Can u suggest in this ? This is very very urgent............
    Thx in Adv.........................

    Thanks........
    Your suggestion was a great help to me.I have used a custom FM and called it in <b>starting new task</b>.
    Since i am a university fresher working in SAP for nearly 1 year.....can you please explain me the difference between <b>in update task</b> and <b>starting new task</b>.Why the problem was occuring for which you have suggested to call a custom function module.
    what is V1 update and V2 update?Is it attached with asynchronous ans synchronous update.It would be a great help to me if you kindly clear my confusions....
    thanks in advance.

  • Warning message, if Quantity=0, when creating a sales order with VA01orVA02

    Hi Experts,
    Currently, if the user do not enters any value in QUANTITY field, while creating a sales order(or even VA02 too) ..........we are getting a Warning message(VU001).
    So, I need to change it to hard error message type, am changing the message type, but, its not reflecting, and still its throwing a warning message(VU001)!!
    Let me know that, What is the correct user exit to incorporate my changes?
    From where this message generating? am keeping a watch point with this message (VU001), but, its not stopping!!
    System is ECC 6.0
    repliaes appreciated
    thanq
    Edited by: SAP ABAPer on Dec 22, 2008 4:38 PM

    thanq
    (the reason, why my original code was worked is that, I put my code in SAVE user exit!!)
    yes, its working, but, the scaenrio is different, so, its like,
    if the user entered my_matnr with quantity = 0,
    then presses ENTER,
    now, we are getting a WARNING MESSAGE of message class & # is VU001, saying the Item 000010 is quantity 0...........so, here I need to change it to HARD ERROR message.
    So, as soon as press the ENTER button(after enetring 0 qty matnr)........I need to get HARD error message, so, where should I incorporate the changes? is it MOVE FIELD TO VBAP user exit?
    thanq

  • Credit Memo Request for New Sales Organisation

    Hi Frnds
    I have a requirement in which i need to create a Credit Memo Request for the newly created sales organisation using the old billing document number created for old sales organisation.Please kindly help me in this regard.
    Thanks in Advace
    Sowmmya B

    Hi,
    Did you try creating a CMR online ??
    Regards

  • How to flow the sales organisation from R/3 to CRM

    Hi,
    I have created a new Sales organisation, sales office in R/3 inaddition to existing sales organisations, and various sales offices.
    Now I want to flow the new sales org, and sales office to CRM.
    I thought in CRM using 'ppoma_crm' I can create a new sales organisation unit, but in the function tab I have to attach R/3 Sales Org. and R/3 Sales Office.
    Now how to flow these data.
    If anyone knows how to download these data, please reply.
    Thanks in advance.
    regards,
    Dhanraj

    Hi Dhanraj,
    Please have a look at the following link, it may help you.
    http://help.sap.com/saphelp_crm50/helpdata/en/82/25733bb3f4792ee10000000a114084/frameset.htm
    <b>Reward points if it helps.</b>
    Regards,
    Amit Mishra

  • Creating a sales order document

    Hi,
    When I create a sales order document in one company I want to automatically create a purchase order document (in the same company), and when this one is created I want to create a sales order document (in another company) with the same data as the purchase order. The purchase order is created via DIAPI and it works fine, but the problem is when creating the sales order in the second company. When I add the itemcode to the line , it doesn't write automatically any data of that itemcode, the vatgroup neither. So I have to introduce this field. The thing is that althought introducing the vatgroup manually, it doesn't calculate the vatsum, so in the doctotal isn't added. I've tried writing it manually but the problem is that the vatsum field is readonly.
    Why can this be? How can I solve it?
    The code is the next (in vb.net):
    Dim oPedidoCompra As Documents
    Dim oPedidoCompraLineas As Document_Lines
    oPedidoCompra = oCompany.GetBusinessObject(BoObjectTypes.oPurchaseOrders)
    If Not oPedidoCompra.GetByKey(DocEntry) Then
        oApplication.MessageBox(oCompany.GetLastErrorDescription)
    End If
    oPedidoCompraLineas = oPedidoCompra.Lines
    oPedidoVentaB = oCompanyB.GetBusinessObject(BoObjectTypes.oOrders)
    oPedidoVentaLineasB = oPedidoVentaB.Lines
    oPedidoVentaB.CardCode = ValorSql(s, oCompanyB)
    oPedidoVentaB.DocDate = Date.Now.Day.ToString + "/" + Date.Now.Month.ToString + "/" + Date.Now.Year.ToString
    oPedidoVentaB.DocDueDate = Date.Now.Day.ToString + "/" + Date.Now.Month.ToString + "/" + Date.Now.Year.ToString
    oPedidoVentaB.DocType = BoDocumentTypes.dDocument_Items
    oPedidoVentaB.UserFields.Fields.Item("U_NR").Value = oPedidoCompra.DocNum
    For i As Integer = 0 To oPedidoCompraLineas.Count - 1
      oPedidoCompraLineas.SetCurrentLine(i)
      oPedidoLineas.ItemCode = Codigoarticulo
      oPedidoLineas.Quantity = Cantidad
      oPedidoLineas.Price = Precio
      s = "select WhsCode from OWHS where WhsName like '%" & oCompanyB.CompanyDB & "%'"
      oPedidoVentaLineasB.WarehouseCode = ValorSql(s, oCompanyB)
      oPedidoVentaLineasB.ItemDescription = oPedidoCompraLineas.ItemDescription
      oPedidoVentaLineasB.Price = oPedidoCompraLineas.Price
      oPedidoVentaLineasB.Currency = oPedidoCompraLineas.Currency
      s = "select vatgourpsa from oitm where itemcode = '" & oPedidoVentaLineasB.ItemCode & "'"
      oPedidoVentaLineasB.VatGroup = ValorSql(s, oCompanyB)
      oPedidoVentaLineasB.LineTotal = oPedidoCompraLineas.LineTotal
      s = "select rate from ovtg where code = (select VatGourpSa from OITM where ItemCode = '" & oPedidoVentaLineasB.ItemCode & "')"
      oPedidoVentaLineasB.TaxPercentagePerRow = ValorSql(s, oCompanyB)
      s = "select suppCatNum from oitm where itemcode = '" & oPedidoVentaLineasB.ItemCode & "'"
      oPedidoVentaLineasB.VendorNum = ValorSql(s, oCompanyB)
      oPedidoVentaLineasB.PriceAfterVAT = oPedidoCompraLineas.PriceAfterVAT
      If i < oPedidoCompraLineas.Count - 1 Then
        oPedidoVentaLineasB.Add()
      End If
    Next
    n = oPedidoVentaB.Add
    If n <> 0 Then
    oApplication.MessageBox(oCompanyB.GetLastErrorDescription)
    End If
    Thanks in advance,
    vanesa

    Hi Vanesa
    When makin the sales order you must just select a vat group.It will then calculate it using the settings for that vat group. So, is the vatgroups set up in your other company?? Don't calcualte everyhting like line total. Just do itemcode, price,itemcode, vatgroup, warehouse and then the system will calculate the rest. Dont do PriceAfterVAT and all the extra's.
    If you did it through the front end would you enter all that? No, you would just select item,qty,price and wh. The system calculates the rest for you.....same goes for di api. Do this to minimize errors.
    Hope this helps

  • FM SD_SALESDOCUMENT_CREATE  on creating a sales order using reference

    I create a sales order using a reference order number.On displaying it in VA02, and giving document flow, the reference document which I used to create the sales order gets displayed.
    A program/fm u2018Xu2019 is called on giving document flow (which takes the reference order number I used as input )
    Now if that u2018Xu2019 is getting the data of the reference order I used from some table u201CT_Yu201D.This table u201CT_Yu201D must be set during sales order creation itself. So, some program which is called during creation of sales order gets the reference order number I used as input and puts it in that table u201CT_Yu201D.
    My assumption is that SD_SALESDOCUMENT_CREATE is the function module handling that part. If it is not for that, then what is its function.
    *****If it is handling that part, which structure which this FM gets as input contains that order number which I used as reference?
    There are 3 bapiu2019s called on sales order creation, BAPI_SALESORDER_CREATEFROMDAT2, BAPI_SALESORDER_CREATEFROMDAT1, BAPI_SALESORDER_CREATEFROMDATA.
    Only one BAPI calls SD_SALESDOCUMENT_CREATE namely BAPI_SALESORDER_CREATEFROMDAT2
    *****Why does the FM SD_SALESDOCUMENT_CREATE not get triggered when I set a breakpoint in it during sales order creation?

    Please search in SDN so many thread related to create sales order

  • Business area and Sales organisation

    Can any 1 of u tell me the difference btw Business area and Sales organisation

    Dear Venkata Krishnan
    Business areas are primarily used to facilitate external segment reporting across company codes, covering the company's main areas of operation (product lines, branches).
    You can assign all balance sheet items, such as fixed assets, receivables, payables, and material stock, as well as the entire P&L statement directly to business areas. You can only assign banks, equity, and taxes manually to business areas indirectly. For this reason, it is not possible to create the legally-required financial statements and tax reports at business area level. Financial statements at business area level are therefore only suitable for internal reporting.
    Sales Organisation is an organizational unit subdividing an enterprise according to the requirements of Sales. It is responsible for selling materials and services.
    A sales organization can be subdivided into several distribution chains which determine the responsibility for a distribution channel.
    Several divisions can be assigned to a sales organization which is responsible for the materials or services provided.
    A sales area determines the distribution channel used by a sales organization to sell a divisionu2019s products.
    thanks
    G. Lakshmipathi

  • Extend customer to multiple company codes and mutliple sales organisations

    Hi,
    Customers with only general info. are getting created from CRM system to SAP ECC. Now we extend the same customer to differnt company codes and different sales organisations.
    When I checked the BADI, CUSTOMER ADDDATA, in this S_KNA1, S_KNB1, S_KNVV structures are there only. So is it possible to extend it to mutiple company codes at the same time.
    It is mostly appreciated for early response.
    Thanks,

    Hi,
    You can use fm SD_CUSTOMER_MAINTAIN_ALL to extend customer to sales are and company code.
    Using this fm you can maintain all customer master data.

Maybe you are looking for

  • Email submit button doesn't work after digitally signing document

    I have a PDF fillable form that works great except for the digital signature fields. Every employee needs to fill it out, sign it, hit the email submit button to faward it to the boss, who then signs it and saves it. There are two digital signature f

  • ITunes store does not show in iTunes

    I just reinstalled a fresh version of iTunes (V10.5.3.3) on my PC (XP, SP3). The program starts OK, but clicking on 'iTunes Store' at the left, leaves me with an empty window at the right part. No menu at the top (Music, Films, App Store, etc) and no

  • SAP Business one Freight Query

    Hi experts, i have created a query in B1 query generator and saved . The purpose of the query is to calculate some values based on the group of the BP and the item code too. I used User-defined value but i get an error anytime i change my quantity. B

  • Move wifi users to guest, if not authenticated by RADIUS

    Hi  In our switched network, there is a feature that moves any device that is not authentified against RADIUS over to a guest LAN. I want to configure the same functionality on WLC. Currently, there is a corporate SSID and a guest SSID. If anyone tri

  • I reset my phone and can't now set it up as can't remember icloud please help

    I need help to start my phone can't remember icloud