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.

Similar Messages

  • Sale Order Item Quantity Not Populating When Create A Sale Order Using BAPI

    I am having a problem when creating a sale order using BAPI
    BAPI_SALESORDER_CREATEFROMDAT2
    Problem is that sale order item quantity field is not populating
    code is as follows
    ORDER_ITEMS_IN-ITM_NUMBER = '0010'.
    ORDER_ITEMS_IN-MATERIAL = '000000000010000262'.
    ORDER_ITEMS_IN-TARGET_QU = 'LB'.
    ORDER_ITEMS_IN-TARGET_QTY = 1.

    Hi,
    Try populating ORDER_SCHEDULES_IN table in the bapi field REQ_QTY.
    Regds,
    Rudra

  • Error in GTS when creating a sales order

    Hello All:
    Let me first say that I have researched the forums and web for my answer to no avail...there is not a lot of information out there for GTS issues. 
    When creating a sales order in ECC 600; I am receiving errors...I have looked at SLG1 in order to get more information on these errors.  I have validated my config in GQ0 and it appears to be correct.  Here is my errors I am receiving:
    Legal Control: Item Type Mapping not Maintained
    Item Category: ZTAE
    Item Category: ZTAQ
    Legal Control: Partn. Function Mapping not Maintained
    Partner Function: AG
    Partner Function: AP
    Partner Function: CI
    Partner Function: EN
    Partner Function: RE
    Partner Function: RG
    Partner Function: SP
    Partner Function: WE
    Legal Control: Mapping of Org. Units not Maintained For Fore
    Company Code: 1000
    Legal Control: Mapping of Org. Units not Maintained For Lega
    Plant: 1000
    I have looked under the Org Structure for these errors and think my configuration is correct.  I have checked under the following:
    In SPRO I have done the following Config under Org Structure:
    Define Foreign Trade Organizations
    Assign Company Code At Feeder System
    Define Legal Units
    Assign Legal Unit to Foreigne Trade
    Assigned Plant at Feeder System
    In Spro I have done the following Config under Partner Structure:
    Define Partner Functions
    Define Groups of Partner Functions
    Assign Partner Functions at Feeder system
    In SpRO under Compliance Management I have done the following Config under document structure:
    Define Doc Types
    Assign Doc types at feeder system
    Define item categories
    Assign item categories at feeder system
    It is obvious I am missing something....Please help...it would be greatly appreciated....

    Hi Dave
    Thanks for replying. 
    For Business Partners the error I am getting in SLG1 is the follwoing:
    Sub Object text
    Mapping of API to Customs Shipment - Arrival
    Program
    /SAPSLL/SAPLCORE_APPLOG_SERV
    @5C\QError@     
    The system was unable to determine an FT organiz. for company code 1000
    The system was unable to determine a legal unit for plant 1000
    No mapping information exists for partner function AG
    Another error for Business Partner:
    sub object text
    Business Partner Distribution
    Program
    /SAPSLL/SAPLCORE_APPLOG_SERV
    @5C\QError@     
    Please use another function to maintain the SPACE version of the address
    For Item Categories
    SubObect TextMapping of API to Customs Shipment - Arrival
    Program
    /SAPSLL/SAPLCORE_APPLOG_SERV
    @5C\QError@     
    No mapping information exists for item type ZTAQ
    The system was unable to determine a legal unit for plant 1000
    No mapping information exists for partner function AG
    Also we are using GTS 7.2 but upgrading to GTS 10 and I am trying to create our testing client for a to test after upgrade
    Edited by: Kim Blair on Sep 9, 2011 4:57 PM
    Edited by: Kim Blair on Sep 9, 2011 4:58 PM

  • Is it possible to use variant configuration (with a Non-SAP solution) when creating ERP sales orders in SAP CRM WebUI

    Hello,
    our customer plans to use a Non-SAP solution for variant configuration (Camos) in SAP ERP (ECC 6.0) and in SAP CRM 7.0 EHP1 as well.
    ERP sales orders (and ERP quotations) should be created in SAP CRM (CRM WebUI).
    Is it possible to use variant configuration (with an external variant configuration tool) when creating ERP sales orders and quotations in the SAP CRM WebUI or do we have to implement SAP IPC for this?
    Thanks in advance.
    Regards,
    AEV

    Dear AEV,
    I think LORD (lean orders) should work with variant configuration as well. In the note 1236015 there is not restriction listed. However you need lord2 activated in ECC, and ECC system should be on EHP4.
    Best regards
    Rene

  • Free of goods should come automatically back when creates return sales order

    Dear sd experts
    I Know one thing that free goods wont come back ,, for ex when we create return sales order free goods wont come bz in VTAF copy requirement 302
    it means dont copy free goods
    Now i went VOV7--- for item category TANN-- i have maintained billing relevance A it means free goods items will come in to billing
    now when i am creating return sales order with reference to billing Free goods are not coming
                  My doubt is suppose if  my clinte asks free goods   will come automatically when creates returns how to do it ?

    Hi Ali,
    I just checked and understand in the below way:
    When I Do the PGI system is posting say 50 USD to COGS. But, when I do the Invoice ( 100 USD is credited to sales account and 100 is debited to discount account) So at the end 100 is getting Nullified. But, when we see P&L account you will COGS of 50 USD.
    I checked along with my FI consultant and she confirmed that its posting as per expected way only.
    Let me know if you need more details here.
    Regards, Sai Krishna.

  • Error on ATP check when Creating a Sales Order

    Hello,
    I encounter error  on ATP check while creating a Sales Order.
    The error is when I create Sales Order using material A, with or with out indicating the Plant and Storage Location, the Purchase Order quantity is returned on ATP check, but when I create an SO with out indicating the Plant and Storage Location, no PO quantity was returned. Note that we applied SAP Note # 387482 to automatically determine the Storage Location. I have also checked material maintenance in MM03 of Materials A and Material B and nothing was different, they have the same Availabity check condition.
    Is it possible that the SAP note that I applied causes the error?
    By the way I have noticed that when I create Material B and manually populate the Plant and Storage Location there is a pricing error(but it returns the PO during ATP check).
    Thanks.
    Noreen

    Hello,
    I encounter error  on ATP check while creating a Sales Order.
    The error is when I create Sales Order using material A, with or with out indicating the Plant and Storage Location, the Purchase Order quantity is returned on ATP check, but when I create an SO with out indicating the Plant and Storage Location, no PO quantity was returned. Note that we applied SAP Note # 387482 to automatically determine the Storage Location. I have also checked material maintenance in MM03 of Materials A and Material B and nothing was different, they have the same Availabity check condition.
    Is it possible that the SAP note that I applied causes the error?
    By the way I have noticed that when I create Material B and manually populate the Plant and Storage Location there is a pricing error(but it returns the PO during ATP check).
    Thanks.
    Noreen

  • Error -1116 when creating a Sales Order via DI API

    Hi All,
    We have an developed EDI AddOn that creates Sales Orders in SBO 2007 PL13, in one of our clients.
    This AddOn is responsible for the creation up to 100 orders each day on SBO.
    However, sometimes (3 to 4%) during the Sales Order creation, the system return an error -1116 when the Sales Order is created - via oSalesOrder.Add() method.
    The problem is that the order is created anyway, although this error is raised.
    I've searched in the forums and it seems the solution is somehow related with SBO transactions.
    However, the AddOn only created the Sales Order, nothing more.
    Does any body know a solution for this problem?
    Regards,
    Manuel Dias

    Hi,
    see this links,
    Error -1116 when creating delivery note
    Could not commit transaction, ReturnCode:-1116
    Regards,
    siva

  • Price is not being updated when creating a sales order using DTW oOrders

    Hello experts,
    When I create a sales Order using DTW (oOrders), the information in the input files document.csv and document_lines.csv is updated with no problem, except the price. The price is being ignored from the input files.
    Is there something that I must considered when trying to update the price of a sales order using the DTW?
    The field "price" was mapped in the source and target fields in DTW.
    Here is the document_lines.csv
    RecordKey,LineNum,AccountCode,Address,ItemCode,LineTotal,Price,Quantity,ShipDate,WarehouseCode,TaxCode
    RecordKey,LineNum,AccountCode,Address,ItemCode,LineTotal,Price,Quantity,ShipDate,WarehouseCode,TaxCode
    1,1,_SYS00000000059, ,30PA08-0360-25,1,11.2,3,20110702,V08,A5
    1,2,_SYS00000000059, ,30PA08-0707-25,1,15.2,3,20110702,V08,A5
    1,3,_SYS00000000059, ,30PA08-0707-22,1,18.3,3,20110702,V08,A5
    And the document.csv:
    RecordKey,DocEntry,CardCode,DocDate,DocDueDate,DocTotal
    RecordKey,DocEntry,CardCode,DocDate,DocDueDate,DocTotal
    1, ,c-6167,20110702,20110702,2
    Thank you for your help
    Jorge Manzo

    Hi,
    Try to re-create your dtw using my template,and use text tab when saving your template.
    SO-Header
    RecordKey     CardCode     CardName     Comments     DocDate     DocDueDate     DocNum
    RecordKey     CardCode     CardName     Comments     DocDate     DocDueDate     DocNum
    1     24-25 MANUFACTU     24-25 MANUFACTURING          4/5/2010     4/15/2010     11142
    SO-LINE
    RecordKey     linenum     itemcode     qty     uom      PriceAfterVAT      Price     SalesPersonCode
    RecordKey     linenum     itemcode     qty     uom      PriceAfterVAT      Price     SalesPersonCode
    1     0     SHAFT HEX 7/8"     1     pc     4536     4050     CRIS
    Note : Line -(LINE NUM and QTY is important upon computation of Price if SO is ITEM TYPE Document.
    hope this will help you!
    Regards,
    Darius

  • Problem in when creating the sales order

    Hi to All,
    I am using the function module 'BAPI_SALESORDER_CREATEFROMDAT2' to create a sales order with quotation reference. When
    I executing the program the return table shows following issues
    1.Document 20000292 doesn't have document category but
    2.Sales document was not changed
    But , when i used to create the sales order manually( TC : VA01) with reference of '0020000292' it gives the sales order number.
    so,kindly suggest me.
    Thank you

    Hi,
       While using BAPI, you need to give some mandatory fields . So I think document catogary is missing in header structure.
    Thanks,
    Srikanth.A

  • 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

  • Error V2 005 when creating a sales order from a quotation

    I hope someone can come up with some ideas to help me with this error. My client is creating a sales order from a quotation and immediately on the first screen the error V2 005 pops up. The quotation was not created with reference to any previous document, and at this point not sold-to party has even been copied through to the sales order.
    To make this error more interesting, this is only happening with 1 particular customer.
    I have checked: credit management, customer hierarchies, material determination, customer info records and none of these are in use.
    Can someone please come up with some ideas?
    Thanks and regards
    Kikas

    Dear Sai,
    Thanks for this note I am going to try it, however I have some concerns because the issue is only happening in production, with 1 custoemr only, and QA is an updated copy of production and I could not replicate the error in QA using the same customer....
    If anyone has any other ideas please I would appreciate it
    thanks
    Kikas

  • 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.

  • Problem when creating a sales order using BAPI_SALESORDER_CREATEFROMDAT2

    Hello All,
    I am working on a requirement where i  need to create a new sales order from old sales order (Not all the items of the old sales order are to be copied) i am doing this by getting the data using BAPISDORDER_GETDETAILEDLIST to get the old sales order details and send them to BAPI_SALESORDER_CREATEFROMDAT2.
    My problem is that i when i send the condition also the system in addition to the conditions sent to the BAPI is also automatically proposing the condition types . So the final result is that the sales order ends up having the condition types twice .
    For example VPRS AZWR are visible twice in the sales order.
    Any inputs to solve the problem will be definitely rewarded.
    Thanks in advance.
    Regards,
    Sowmya.

    Hello All,
    I am working on a requirement where i  need to create a new sales order from old sales order (Not all the items of the old sales order are to be copied) i am doing this by getting the data using BAPISDORDER_GETDETAILEDLIST to get the old sales order details and send them to BAPI_SALESORDER_CREATEFROMDAT2.
    My problem is that i when i send the condition also the system in addition to the conditions sent to the BAPI is also automatically proposing the condition types . So the final result is that the sales order ends up having the condition types twice .
    For example VPRS AZWR are visible twice in the sales order.
    Any inputs to solve the problem will be definitely rewarded.
    Thanks in advance.
    Regards,
    Sowmya.

  • Excise and ***. Valsue doen not show when Creating a Sales Order

    Hi SAP Gurus,
    I am creating a Return Sales order through VA01 with reference of Billing Document which was earlier giving error  of 'Copying from sales document type ZSFG to ZREV is not supported' that was resolved by going through the available threads support. I have done it through VTAF.
    Now system copying the records and showing the material and qty but when we doube click an item and then go in Condition tab it is not showing Assesable Value, Excise amount and CST where as it was showing Freight Amount.
    Please advise what wrong we are doing.
    Rajesh Gupta

    Check the pricing analysis in condtions tab what it says ?
    If only taxes are not copied then check the UTXJ Condition records , if it exits then go to VK12 check the validity periods of the same.
    Hope it helps u
    Regards,
    Ramesh

  • Sales office and sales group compulsory when creating a sales order

    Hi,
    When creating a new sales order, I would like to have the sales office and sales group compulsory.
    Does anyone know where is the customizing point?
    Thanks for your help,
    Ronan

    Dear Ronan,
    Spro --> Img --> Sales and Distribution --> Basic Functions --> Log of Incomplete items --> Define Incompleeness Procedure (T. Code: OVA2)
    Here, Select Group as A - Sales Header
    and double-click: Procedures (left hand Dialog Structure).
    On to next screen, select Incompleteness Procedure "11" and double click: Fileds  (left hand Dialog Structure).
    On to next screen, include Table-Filed as:
    1. VBAK - VKBUR (for Sales Office) and
    2. VBAK - VKGRP (for Sales Group)
    for both the entries, select Scr. as "KKAU" and Status as 01 and check Warning.
    Note: To make changes in to InCompleteness Procedure, click: (CTRL+F1)
    Recommendation: Please save chnaged Incompleteness Procedure as Z - procedure; to avoid changes in to Standard Procedure.
    Now,
    Spro --> Img --> Sales and Distribution --> Basic Functions --> Log of Incomplete items --> Assign  Incompleeness Procedure --> Assign procedures to the sales document types (T. Code: VUA2)
    Here, assign your Order type (say, OR) to your Incompleteness Procedure (say, Z - Procedure)
    Check Field: IC-Dialog as per requirement (Clck the field and press F1, to read its usage).
    Now, Go to, T. Code: VOV8; and select your Sales Doc. Type (say, OR).
    Within the Sales Doc., Assign your defined Incompleteness Procedure in to:
    Tab: Transacton Flow --> Field: Incompl.proced.
    Note: To enable screen, for changes, press (CTRL+F4).
    Best Regards,
    Amit

Maybe you are looking for

  • Why does something as simple as the date on my computer being wrong cause firefox to not allow me to open any websites?

    I saw others have this problem a few times...and people are trying to have them do all kinds of stuff to fix it. This is one of my errors: This Connection is Untrusted You have asked Firefox to connect securely to www.facebook.com, but we can't confi

  • A checkbox in a loop must be selected by default

    Hi all, There are two lists of checkboxes (in a loop), and one of the checkboxes list in the loop must be selected by default. I am trying to put the value of the checkbox to true but it is yeilding bizzare results... one of them being the checkbox d

  • 16 Exobytes of RAM

    I recently bought a 2GB memory kit for a G4 15" 1.67GHz Aluminum Powerbook from Crucial. The kit came with two 1GB sticks of PC-5300 memory. My single 1GB stick of PC-4200 was working fine, but I just figured it would be fun to max out this old lapto

  • Overwrite in Application server

    hi all, i need to send the output to application server, the data was going perfectly but the problem is ,the report if we run twice the output should not overwrite with the first executed run in app server. if we run run more than once also it shoud

  • Apply Smart object transformation to other layers

    Is there a way to get the current transformation used on a Smart Object layer (scale/skew/rotat/perspective/warp/etc.), to allow applying it to other layer(s)? I've looked through the Javascript reference, and I haven't found anything that appears to