How to copy Customer Sales Order number to Purchase Order for 3rd party sal

Hi experts,
We are doing third party sales. So once we create Customer Sales Orders manually via VA01, users also manually create Purchase Req for it.
We do not automatically create PR from Sales Order, as this is not my clients requirement. So we don't use item category group BANS in the material master.
In the item level in the PR under the Contact Person tab, the creation indicator shows "V Sales & distribution document". Once PR is created this updates the PR number under the item level Schedule lines in the Sales Order.
After PR creation, we run a job to create PO's.
But the new requirement from the client is to automate this PO creation thru EDI.
Our SAP is 4.6C & the Idoc type we use is ORDERS05 & Message Type is ORDERS. We are using EDIFACT std.
Once I get the idoc xml file for this PO, I find that my Customer PO number (from the Sales Order) & also the Customer Sales Order number is not copying to the xml output.
Please advise what needs to be done inorder to have it.
This will be great help & I will reward for the answers !
Rgds,
Pri

Tables are related.
MATNR
WERKS
MBDAT
LGORT
CHARG
etc fields are common in both VBBS and VBBE.
May be you can generate a condition a fetch data using this.
I hope it helps.
thanks

Similar Messages

  • One line item delivery for 3rd party sales order

    Hello Experts,
    We have configured a 3rd party sales order process where the PR gets created. We are using scheduling agreement(PO) and creating Schedule line and doing a GR for partial line items.  The stock is recieved as a Sales Order stock.
    But when i create a Sales Delivery the delivery document copies all the line items (ieven for the ones which we don't have GR)  from the sales order and we have to manually delete the line items from delivery doc.
    Is there a way i can restrict the delivery document to only copy the line items from the sales order  for which the sales order stock is available? If so how can we do that?
    Appreicate your help.
    Thanks
    Arpita Rani

    Hello All,
    We have configured a 3rd party sales order process. The schedule line category is configured with account assignment categoory as "M". when we are creating GR the Moving average price of the material  is not getting updated.
    But if i replace with "E" it is getting updated, but the CO-PA is not getting generated for Profitability segment reporting.--we need profitability segment reportng.
    Can some one tell me how we can update the moving average price using acc. asssignment category type "M" at the same time the Profitability segement information is updated.
    THanks in advance
    Appreciate your help
    Arpita Rani

  • Moving average update for 3rd Party sales order

    Hello All,
    We have configured a 3rd party sales order process. The schedule line category is configured with account assignment categoory as "M". when we are creating GR the Moving average price of the material is not getting updated.
    But if i replace with "E" it is getting updated, but the CO-PA is not getting generated for Profitability segment reporting.--we need profitability segment reportng.
    Can some one tell me how we can update the moving average price using acc. asssignment category type "M" at the same time the Profitability segement information is updated.
    THanks in advance
    Appreciate your help
    Arpita Rani

    Hello Arpita
    For 3rd party orders functionality you need to use account assignment category of X and not M. E and M are for individual Purchase orders. You should not use them for 3rd party.
    Please see the following OSS notes  and follow along:
    210997 - Accnt assignment categories in third-party and indiv.PO
    550388 - FAQ: Customizing of third-party and individual POs
    Good luck.

  • Departure country determination for 3rd party sales order

    Hello,
    We are creating a 3rd party sales order and using dummy plants and dummy shillping point. we do not have plants abroad activated.
    While creating the intercompany billing doc the departure country is not picked up correctly since we have dummy plant and shipping point.
    We want the departure country to be same as suppliers country. and we do not know the supplier details at the point of sales order creation.
    what can we do to get the correct departure country during intercompany billing?
    Regards,
    Shilpa

    You can go through OSS  Note 308989 - Consulting note for cross-company transactions, which provides details on cross-company with 3rd party sales process. Make sure that the delivery plant added in the sales order is assigned to the cross company code.
    Regards,

  • Solution for 3rd party sales in 2 R/3 system

    Hi Gurus,
    I faced a design question right now, we have 2 different SAP R/3 system, one is for pruduction and the other is for sales company (just business requirement), the production plant in the first system and the sales company in second company are the same legal entity.
    Now my question is that, if I do a third party sales (since in 2 systems I just use 3rd party but not intercompany), sales to the end customer in 2nd R/3 system but directly deliver from 1st R/3 system, how can ido it? Since they are in the same legal entity, I can not issue invoice in the 1st R/3 system to the 2nd system. If the invoice can not be issued, is that OK with finance part?
    Please kindly help. Thanks in advance.
    If there are any doubts in my description, please just reply, I will watch this post.
    BR Lawrence
    Edited by: Liu Yang Lawrence on Jan 25, 2010 5:12 PM

    Hi,
    You have not mentioned in which system purchasing process is handled.
    In the third party sales system sales order is created, then purchase requisition and purchase order will be created for the sales order. This purchase order will be sent to an external vendor, who supplies the product directly to the customer. Then the vendor will send the invoice to the sales organization company and vendor invoice posting will be carried out in the system against the purchase order. After invoice posting only the sales organization will create the invoice for the customer.
    Since vendor directly delivers to the customer, there is no need to carrry out delivery from the 2nd system. The grey area in your case is how the two system talks with each other to make sure what quantity has to be billed to the customer (if purchasing is handled in different system than the sales processing system). Are the two systems talk each other?
    Regards,

  • Wht is Process Flow for 3rd Party Sales

    wht is Process Flow for 3rd Party Sales

    Customize the third party sales in summary:
    1. Create Vendor XK01
    2. Create Material u2013 Material Type as "Trading Goods". Item category group as "BANS".
    3. Assign Item Category TAS to Order type that you are going to use.
    4. A sale order is created and when saved a PR is generated at the background 
    5. With reference to SO a PO is created (ME21N). The company raises PO to the vendor.
    6. Vendor delivers the goods and raises bill to company. MM receives the invoice MIRO 
    7. Goods receipt MIGO 
    8. Goods issue
    9. The item cat TAS or Schedule line cat CS is not relevant for delivery which is evident from the config and,   therefore, there is no delivery process attached in the whole process of Third party sales.
    10. Billing      *-- Seema Dhar
    SD -  3rd party sales order Create Sales Order
    VA01
          Order Type
          Sales org, distr chnl, div
          Enter
          Sold to
          PO #
          Material
          Quantity
          Enter
          Save
    SD -  3rd party sales order View the PR that is created with a third party sales order
    VA01
          Order Number
          Goto Item Overview
          Item ->Schedule Item
    SD -  3rd party sales order View the PR that is created
    ME52N
          Key in the PR number
          Save
    SD -  3rd party sales order Assign the PR to the vendor and create PO
    ME57
          Key in the PR number
          Toggle the "Assigned Purchase Requisition"
          Execute
          Check the box next to the material
          Assign Automatically button
          Click on "Assignments" button
          Click on "Process assignment"
          The "Process Assignment Create PO" box , enter
          Drag the PR and drop in the shopping basket
          Save
    SD -  3rd party sales order Receive Goods
    MIGO_GR
          PO Number
          DN Number
          Batch tab , click on classification
          Serial Numbers tab
          Date of Production
          Flag Item OK
          Check, just in case
          Post
          Save
    SD -  3rd party sales order Create Invoice
    MIRO
          Invoice Date
          Look for the PO , state the vendor and the Material
          Check the box
          Clilck on "Copy"
          Purchase Order Number (bottom half of the screen)
          Amount
          State the baseline date
          Simulate & Post
          Invoice Number
          *Invoice blocked due to date variance
    SD -  3rd party sales order Create a delivery order
    VL01N
          In the order screen , go to the menu Sales Document , select "Deliver"
          Go to "picking" tab
          State the qty and save
    SD -  3rd party sales order Create a billing document
    VF01
          Ensure that the delivery document is correct in the
          Enter
          Go to edit -> Log
          Save

  • Wrong Posting in CO-PA for 3rd Party Sales & Cross Company Code Sales

    Hi,
    In Third Party Sales with Shipping Notification and Cross Company Sales the CO-PA report is not reflecting the correct material cost.  CO-PA is updating the material cost directly from the Material Master. Cross Company sales condition type PI02 & IV02 is using for pricing. IV02 is working perfect, but PI02 is not !
    In detail, for Third Party Sales with Shipping Notification, no material is available in the stock. In material master the material cost display as $ 10/EA. But the Purchase Order value is $ 15/EA. During Goods Receipt time system is taking the cost as $ 15. While Billing time to the customer, system is posting to the CO-PA the material cost as $10/EA. FI postings are perfect, but CO-PA posting is not correct. CO-PA and P&L reconciliation is not matching due to this issue !
    Waiting for the help.
    Best regards,
    Joby

    In user exit include ZXKKEU03 you should make the COPA COGS equal to the VPRS. Also you can't do a revaluation in COPA for the third party billing types.
    pls assign points to say thanks.

  • Schedule line confirmation date for 3rd party sales( non stock item)

    Hi ,
    While creating an sales order i have a stock  item and 4 non stock items . All the non stok items are similar to 3rd party sales as they are services . While created the sales order for the no stock item the confirmed schedule date is given as 12 days in the future or in one case after month .
    Can  someone please help me in understanding how the dates are being calculated . I havent created any PO for the non stock items.
    I would like the confirmed date to be picked as the system date.

    Hi,
    There can be multiple reasons for this.
    You have not mentioned the material type. Anyhow, first check Material Master 
    Purchasing view> GR Processing Time field
    Sales / general Plant > Set up time and processing time field
    If MRP views are maintained
    In MRP2 View > Scheduling.
    In case you do not want availability check to be carried out
    Untick Availbility check and TOR check boxes in VOV6 for the schedule lines determined for these materials.
    Hope this helps.
    Regards,
    Sharan

  • How 2 Copy Header & Line Item Text from Purchase Order 2 Out Bound Delivery

    Hi SD Gurus,
    I want to copy header and line item text from Purchase Order to Out Bound Delivery (This is required in Stock Transfer Process).
    I have been able to do successful config. for copying header and line item text from Sales Order to Outbound Delivery but config. doesn't seems to be same for copying text from PO to OBD.
    Is there any way to achieve the same? Can some expert show the way to achieve this.
    Thanks in advance.
    Warm regards,
    Rahul Mishra

    Hi Ravikumar thanks for u quick reply.
    This is wht is currently coded.
    concatenate values to get item text for read text function
       invar3+0(10) = invar1. "PO number
       invar3+10(5) = invar2. "PO line number
       SELECT SINGLE * FROM stxh WHERE tdobject = 'EKPO'
                                   AND tdname   = invar3
                                   AND tdid     = 'F01'
                                   AND tdspras  = sy-langu.
       IF sy-subrc = 0.
         invar4 = invar3.
    reading the text for the document items.
         CALL FUNCTION 'READ_TEXT'
           EXPORTING
             id       = 'F01'
             language = sy-langu
             name     = invar4
             object   = 'EKPO'
           TABLES
             lines    = it_itab.
    I have seen some PO's which have info rec texts in that, which gets pulled by the above code...first thing is its id is F02 which exist in STXH table also there is other text with F01 id, and hence the table it_itab gets both these text hence no pbm.
    but i came across a PO which has only one text which is info rec text with id F05 and is not store in stxh and hence doesnot get pulled by read_text fm. How do i change my cod to get this text which should not hamper other PO's as well.
    As mentioned in above msgs, this F05 could be retrieved by providing object name as EINE.
    anyhelp will be appreciated and rewarded.
    thanks

  • Copy Pricing Cond. from PO to Billing Doc. in 3rd Party Sales

    Background
    For Third Party Processing, the standard SAP "Document Flow" is:
    Sales Order -> Purchase Order -> Invoice Receipt -> Billing Document
    Question 1
    We have this Third Party Model described above mplemented with my current customer.  Standard SAP Condition Type VPRS is in the SD Pricing Procedure and during Sales Order creation it is determined via Material Master.  However, after the Invoice Receipt is created against the PO, it appears that VPRS is redetermined in the Billing Document based off of the 'Cost' from a Condition Type in the PO. 
    My question is as follows:  How does it 'know' to do this???  I do not see any code or calculation type in the Pricing Procedure that tells it to pull it from the condition type in the Purchase Order.  Where is this code - or - where is this functionality derived from in Pricing Configuration???
    Question 2
    This question is dependent on Question 1, but is it possible to pull other pricing values from the PO into a different Sales Order condition type(besides VPRS of course) using stricly Pricing Configuartion or do I have to code some sort of Calculation Type to do this? 
    Thanks for any help here!
    Mike

    Hello Mike
    Question 1:
    It knows it from config as you rightly guessed. Let me quote from SAP help documentation:
    Documentation for VPRS says "For a third-party business transaction, the costs are determined from the purchase order:"
    If Customizing has been configured appropriately, the system determines the cost for third-party order processing from the value of the vendor invoice plus proportional statistic conditions (for example, cash discounts or statistical freight) from the purchase order in Materials Management.
    The quantity indicator in the billing documentu2019s document flow then controls where the cost comes from. Activate indicator F in the Billing quantity field (billing quantity equals goods receipt quantity minus quantity already billed).
    This is in copy control. VTFA - Item cat settings
    Links:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/d7/5cf0e89e5911d2959e00a0c9306794/frameset.htm
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/eb/85a078893811d2ac830000e8a5bd28/frameset.htm
    Question 2:
    I don't think it is  possible to pull other pricing values from the PO into a different Sales Order condition type using strictly Pricing Configuration. You will have to  code some sort of formula ( Alt. Cond. Base value/Alt. Condition Value)  to do this.
    Hope this helps.

  • Purchase Requestion  for Third Party Sales Order

    Hello Team
    I want the system to create Purchase Requisition automatically and some times Manually (Possible if both Option are available) for the Sales Order which belongs to Third Party.
    How to achieve this?
    Thanks
    Nick

    Hi Nick
    Following are the steps of third party:
    1) Creation of third party sales order
    2) Generation of automatic purchase reqisition through the configuration of schedule line CS in SD.(schedule line is determined by the item categoty and the mrp type.
    please dont maintain mrp type in the material master.so that it will determin CS directly.
    in the tcode VOV6,please check whether the document type NB is maintained for CS.
    This will created auto PR).
    3) You can check the PR Number in the schedule line tab of sales order.PR requirement will not be available in the MD04.
    4) Manually create a PO for vendor with item category S.
    5) There will be no GR in this case.
    6) Create an invoice verification document.
    7) Create an invoice from the SD side w.r.t Sales order.
    Hope this might have answered ur question
    Reward if useful
    Shawn

  • Shipping Papers (BOL, Packing List) needed for 3rd Party Sales Order

    The Process followed is as follows:
    Plant "A" enters Sales Orders for a Customer.
    Sales Orders generate the material requirement on Plant "A"
    The material req gets turned into a Purchase order on External Vendor.
    Vendor provides the shipment information and a goods receipt is done on Plant "A"
    Once the goods receipt is entered, it closes the Sales Order and the customer invoice prints.
    The goods receipt, however, does NOT produce inventory, it basically passes through directly to the Sales Order. 
    Now incase of a export order, need to find a way to configure so that Export Documentation can be trigeered in the form of an Output Type, in short a Delivery needs to be created.

    Hi Kaustubh
    The answer lies in how the sales order is closed and invoice is printed when the GR is done.
    Please check if it is possible to update the invoice  with the information you want to be printed on the Export doc and Packing slip.If this can be acheived then you print the information out of the invoice without using the delivery.
    Hope this helps.
    Thanks

  • How to do a 3rd party sales process

    How to do 3rd party sales process.....
       plz reply me with the full configuration.....

    THIRD PARTY SCENARIO
    in third-party order processing, your company does not deliver the items requested by a customer. Instead, you pass the order along to a third-party vendor who then ships the goods directly to the customer and bills you. A sales order may consist partly or wholly of third-party items. Occasionally, you may need to let a vendor deliver items you would normally deliver yourself.
    Process Flow
    the processing of third-party orders is controlled via material types. Material types define whether a material is produced only internally can be ordered only from third-party vendors, or whether both are possible. For example, a material that is defined as a trading good can only be ordered from a third-party vendor. However, if you manufacture your own finished products, you may also want, from time to time, to be able to order the same type of product from other vendors.
    Processing Third-Party Orders in Sales
    Third-party items can be created automatically by the system, depending on how your system is set. However, you can also change a standard item to a third-party item during sales processing manually.
    Automatic third-party order processing:-
    if a material is always delivered from one or more third-party vendors, you can specify in the material master that the material is a third-party item. During subsequent sales order processing, the system automatically determines the appropriate item category for a third-party item: TAS. To specify a material as a third-party item, enter BANS in the Item category group field in the Sales 2 screen of the material master record.
    Manual third-party order processing
    In the case of a material that you normally deliver yourself but occasionally need to order from a third-party vendor, you can overwrite the item category during sales order processing. For a material that you normally deliver yourself, you specify the item category group NORM in the material master.
    If, as an exception, you use a third-party material, change the entry TAN to TAS in the ItCa field when processing the sales document. The item is then processed as third-party item.
    If address data for the ship-to party is changed in the sales order in third-party business transactions, the changed data will automatically be passed on to purchase requisition and also to the purchase order ,if one already exists. In the purchase order, you can display the address data for the ship-to party in the attributes for the item.
    You can only change the address data for the ship-to party in the sales order for third-party business transactions, and not in the purchase order.
    Processing Third-Party Orders in Purchasing
    when you save a sales order that contains one or more third-party items, the system automatically creates a purchase requisition in Purchasing. Each third-party item in a sales order automatically generates a corresponding purchase requisition item. During creation of the requisition, the system automatically determines a vendor for each requisition item. If a sales order item has more than one schedule line, the system creates a purchase requisition item for each schedule line.
    Purchase orders are created from purchase requisitions in the usual way. For more information about creating purchase orders, see the Purchasing documentation. During creation of the purchase order, the system automatically copies the delivery address of your customer from the corresponding sales order. In a sales order, you can enter purchase order texts for each third-party item. When you create the corresponding purchase order, the texts are automatically copied into the purchase order. The number of the purchase order appears in the document flow information of the sales order.
    All changes made in the purchase order are automatically made in the sales order as well. For example, if the vendor confirms quantities and delivery dates different from those you request and enters them in the purchase order, the revised data is automatically copied into the sales order
    you process third-party items by creating a normal sales order. In overview for the order, you can then overwrite the default item category (TAN in the standard system) with the special item category for third-party items: TAS
    Billing Third-Party Orders
    If relevance for billing indicator for the item category has been set to B (relevant for order-related billing on the basis of the order quantity) in Customizing, the system includes the order in the billing due list immediately. If, however, the indicator has been set to F (relevant to order-related billing on the basis of the invoice quantity), the system does not include the order in the billing due list until an invoice from the vendor has been received and processed by the purchasing department. In the standard system, item category TAS (third-party order processing) has been given billing-relevance indicator F.
    In the first case, the third-party order is considered to be completely billed only when the invoiced quantity equals the order quantity of the sales order item. In the second case, each time a vendor invoice is received, a customer invoice is created for the quantity in the vendor invoice and the order is considered to be fully invoiced until the next vendor invoice is received.
    If you have activated billing-relevance indicator F for item categories in Customizing, billing can refer to the goods receipt quantity instead of the incoming invoice quantity.
    You can control whether the invoice receipt quantity or the quantity of goods received is relevant for billing in Customizing for copying control for billing at item level.
    FOR YOUR PROCESS Individual Purchase Orders WELL GIVE THE RIGHT SOLUTION
    Individual purchase orders are used when your customer orders goods from you that are not in stock and must be ordered from one or more external vendors.
    Process Flow
    During sales order entry, the system automatically creates a purchase requisition item. The purchasing department creates a purchase order based on the requisition and the vendor ships the goods directly to you (unlike third party order processing, where the vendor ships directly to your customer). You then ship the goods to your customer. While the goods are part of your inventory, you manage them as part of the sales order stock. Sales order stock consists of stock that is assigned to specific sales orders and cannot be used for other purposes.
    Process Flow for 3rd Party Sales
    Customize the third party sales in summary:
    Prerequisites for 3rd party sales,
    Purchasing org,
    purchasing group,
    assign the Purchase org to company code
    assign Purchase org to plant,
    should not maintain the stock in material, it should be trading goods,
    1. Create Vendor XK01
    2. Create Material – Material Type as "Trading Goods". Item category group as "BANS".
    3. Assign Item Category TAS to Order type that you are going to use.
    4. A sale order is created and when saved a PR is generated at the background
    5. With reference to SO a PO is created (ME21N). The company raises PO to the vendor.
    6. Vendor delivers the goods and raises bill to company. MM receives the invoice MIRO
    7. Goods receipt MIGO
    8. Goods issue
    9. The item cat TAS or Schedule line cat CS is not relevant for delivery which is evident from the config and, therefore, there is no delivery process attached in the whole process of Third party sales.
    10. Billing *--
    SD - 3rd party sales order Create Sales Order
    VA01
    Order Type
    Sales org, distr chnl, div
    Enter
    Sold to
    PO #
    Material
    Quantity
    Enter
    Save
    SD - 3rd party sales order View the PR that is created with a third party sales order
    VA01
    Order Number
    Goto Item Overview
    Item ->Schedule Item
    SD - 3rd party sales order View the PR that is created
    ME52N
    Key in the PR number
    Save
    SD - 3rd party sales order Assign the PR to the vendor and create PO
    ME57
    Key in the PR number
    Toggle the "Assigned Purchase Requisition"
    Execute
    Check the box next to the material
    Assign Automatically button
    Click on "Assignments" button
    Click on "Process assignment"
    The "Process Assignment Create PO" box , enter
    Drag the PR and drop in the shopping basket
    Save
    SD - 3rd party sales order Receive Goods
    MIGO_GR
    PO Number
    DN Number
    Batch tab , click on classification
    Serial Numbers tab
    Date of Production
    Flag Item OK
    Check, just in case
    Post
    Save
    SD - 3rd party sales order Create Invoice
    MIRO
    Invoice Date
    Look for the PO , state the vendor and the Material
    Check the box
    Click on "Copy"
    Purchase Order Number (bottom half of the screen)
    Amount
    State the baseline date
    Simulate & Post
    Invoice Number
    *Invoice blocked due to date variance
    SD - 3rd party sales order Create a delivery order
    VL01N
    In the order screen , go to the menu Sales Document , select "Deliver"
    Go to "picking" tab
    State the qty and save
    SD - 3rd party sales order Create a billing document
    VF01
    Ensure that the delivery document is correct in the
    Enter
    Go to edit -> Log
    Save

  • Configuration for Third Party Sales Order

    Hi All,
    I would need some advise on how should I go about to configure a third party sales order. The MM consultant has configured a special item category for it but the sales order has some incompletion data error where the schedule line could not be maintained.
    Kindly advise.
    Thanks

    Hi Lee,
    Pls go through the following links below:
    [Third party sales order|http://www.sap-basis-abap.com/sd/third-party-order-processing.htm]
    [configuration for Third party sales order|http://www.saptechies.com/process-flow-for-3rd-party-sales/]
    Hope these helps you.
    Regards,
    Krishna.

  • How to configure purchase requistion in third party sale pls send me detail

    dear expert
    how to configure purchase requistion in third party sale pls send me details. waiting your valuable reply
    vicky

    you can find the details in the below links
    Re: THird party sales complete scenario
    http://wiki.sdn.sap.com/wiki/display/ERPLO/PROCEDURETOCREATETHIRDPARTY+SALES
    http://www.sap-img.com/sap-sd/process-flow-for-3rd-party-sales.htm
    Regards

Maybe you are looking for

  • Please Help! My 16g phone is always full.

    I have deleted top filling aps, have fewer pics than ever historically, and ran "phone clean" on a PC. Help me find out whats clogging my phone. This problem became constant after replacing my phone under warranty t the apple store for a failed scree

  • Permissions on Pages & Workesets?

    Hi All I was wondering if it is possible to set permissions on pages or worksets. So if a user has no permissions to a page then it will not appear in the navigation? Can this be done, and if so does anyone have any information on how to set this up?

  • Photos missing after manually sorting them.

    After moving photos from camera roll to iTunes image-sync folder, some images will not resync to my phone. I do not use iPhoto. Pictures was taken by the iPhone 4. Help? I have a folder on my computer where from iTunes Autosync images. I use this to

  • How to set two FMS URLs in Adobe Flash Media Live Encoder

    Hello Folks, Just wondering if anyone can give me any details on how I can set two Flash Media Server URLs on Adobe Flash Media Live Encoder to share one camera but stream it to two servers. Thank you.

  • Jdeveloper dependency on ANT script for .JAR file for ADF Application

    Hi all, We need to create a .jar file for an ADF project consist of Model & viewcontroller. We are able to create jar file with help OjDeploy in my ANT script. My query: Ojdeploy uses internally jdeveloper home to complete the task. After going throu