Automatic account postings (for Intercompany Purchase order and Sales order

Hi all,
I need some help related to the automatic account postings (for Intercompany Purchase order and Sales order)which i can set for the follwoing scenarios. I have looked on the forms and searched alot but not able to a single solution to solve both the pupose. if one scenario works the other doesnt. Please advise.
I have created the master data
Customer receiving--G001
Sales Org.--GXIN
Distr. Channel- 01
Division - 00 
Company code receiving - G1
customer supplying- V001
company code for supplying- V1
2 different scenarios
1- Intercompany Purchase order in which a Customer receiving- G001, gets stock replenishment NB purchase order from supplying company V1- GI  and GR of stock is done. Biling document for customer receiving G001 is created. But now I need a way to do the opposite side posting at the supplying customer -V001-- this I do using an Idoc which creates a Invoice receipt for creditor(supplying customer) V001.
2. Sales order-- A customer X001 of company code G1 buys stock from the company code V1. the customer G001 of company code G1 bills the customer X001, but the intercompany billing doc/ invoice is created for the customer G001 by company code V1.  then now i want an automatic account posting to be created at the supplying customer V001 via idoc.
Can this be achivable via Idoc with automatic account postings.   
Please let me know if it doesnt make sense. thanks to all in advance
cheers
Jasmeet

Hi all,
For the Sales order and automatic posting we have created an output type ZR4N- this is creating a batch input session which can be triggered to be processed autmatically.
For the intercompany Purchase order -from Invoice we are creating a different output RD04 (sap standard) which creates invoice receipt at the vendor side.
Rest of the settings are defined using SAP standard functionality within transaction OBCA, OBCB, OBCC, OBCD,OBCE
thanks for viwing the post
Cheers
Jasmeet

Similar Messages

  • No Purchase order and sales order from trading contact

    Hi Gurus,
    I am new to this module and i am trying to create a Trading contract. As I understand that the trading contract should create Purchase order and Sales order automatically. But in my case, this didn't happen.
    In this regard, I want to know,
    i. Are info records mandatory or mentioning the required purchasing and sales data during contract creation is sufficient.
    ii. What are the configurations required to do for GTM functionality and which are the points should I check for this.
    help me out.

    HI
    there are some status that is required to be set while you save a  trading contract.
    your trading contract must be approved or released..only then follow-on docs will be created.
    regards,
    Yadesh

  • Combined Purchase Order and Sales Order Query. (Including Stand Alone Docs)

    Hi,
    I need some help please!
    I am looking for a query that will show all the Purchase Orders with all their base document Sales Orders. However I also need to show those stand alone Purchase orders and Sales Orders.
    What I have is two queries, one for the PO fields en one for The SO fields. I would like a way to combine these two so I have one query with the relevant PO and SO info next to each other.
    The final query will have a top heading structure like this:
    Status,Purchase No.,Supplier No.,Supplier Name,Week,Month,Del Method,Country,Method,Rep.|Status,Rep.,Sales No.,Customer No.,Customer Name,Customer Order no.,Cust. Del date,Doc total,Del Method
    +(The first part is for the purchase order section, the second part starting at the second 'Status' is the sales order section)
    +Purchase Order Query:
    SELECT
      T0.DocStatus 'Status',
      T0.DocNum'Purchase Order No.',
      T0.CardCode 'Supplier No.',
      T0.CardName'Supplier Name',
      DATEPART(ww,T0.DocDuedate)'Week',
      DATEPART(mm,T0.DocDuedate) 'Month',
      T1.TrnspName 'Delivery Method',
      T2.Country 'Country',
      T0.JrnlMemo 'Method',
      T3.SlpName 'Rep.'
    FROM OPOR T0 
    INNER JOIN OSHP T1 ON T0.TrnspCode = T1.TrnspCode
    INNER JOIN OCRD T2 ON T0.CardCode = T2.CardCode
    INNER JOIN OSLP T3 ON T0.SlpCode = T3.SlpCode
    Sales Order Query:
    SELECT
      T0.DocStatus 'Status',
      T2.SlpName 'Rep.',
      T0.DocNum 'Sales Order No.',
      T0.CardCode 'Customer No.',
      T0.CardName 'Customer Name',
      T0.NumAtCard 'Customer Order no.',
      T0.DocDueDate 'Cust. Delivery date',
      T0.DocTotal ' Doc total',
      T1.TrnspName ' Delivery Method'
    FROM ORDR T0 
    INNER JOIN OSHP T1 ON T0.TrnspCode = T1.TrnspCode
    INNER JOIN OSLP T2 ON T0.SlpCode = T2.SlpCode
    The problem I am having is that if I combine these queries it excludes all those records with blank/empty data fields.
    I do not mind having to go to crystal reports to get what I want.
    Any suggestions?
    Thanks!

    Hi thanks GordonDu,
    I have tried a union before, and yours works great. However my problem is to display the  PO en SO columns next to each other and not underneath each other.
    Something like this:
    Po No          Supplier          SO No           Customer
    1234           Sup 1             9876              Cust 1
    1235           Sup 2             no SO             Cust 2
    1236           Sup 3             9877              Cust 3
    1237           Sup 4             9878              Cust 4
    1238           Sup 5             no SO             Cust 4
    I have this query, but with this it drops all those Purchase Orders made Stand Alone and without a SO number.
    SELECT
      T2.DocNum AS 'Purchase Order No.',
      T0.DocNum AS 'Sales Order No.',
      T2.CardCode AS 'Supplier No.',
      T2.CardName AS 'Supplier Name'
    FROM ORDR T0 
       INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
       INNER JOIN OPOR T2 ON T2.DocEntry = T1.PoTrgEntry
    Though using your Union gives me all the information I want and the ability to expand on that, my problem is the "Display" part. I am sure I am doing something stupid somwhere 
    Edited by: Desmond Moll on Mar 7, 2012 8:03 AM

  • Purchase order and sales order table name

    hi al,
    i want to know purchase order and sales order table name in abap.
    thanks
    varun
    Moderator message: please do some own research, this should not take too long.
    Edited by: Thomas Zloch on Jan 27, 2012

    Hi Sunrag......
    If your PO is linked with SO. Then you can fetch customer name easily by FMS in PO.
    From there you ca gte the Customer Name into your PLD and it wont hang also.....
    Regards,
    Rahul

  • Purchase orders and Sale Orders in DEV and PRD

    Hi SAP Experts,
    We have a facing some different problem. Unfortunately our clint do some transactions in Development Server. Like Purchase orders and Sales Orders.
    After one month we delivery to clinet exact Production server. But he is asking , What ever the purchase orders and Sales Orders Created in Development with same numbers and Same dates, that data will be present in Production server also. Is it possible to do that. IF possible how to do that...
    Thanks and Regards
    Siri....
    Edited by: Alvaro Tejada Galindo on Apr 14, 2008 5:56 PM

    I think it is possible,as per my knowlwdge our perious client regularly( means every 3-4 months) copied the data from Production server to quality server. by the help of basic person...
    So in your case you want to copied the data from devlopment server to production server....please touch with your basic guy, i think he will help out reagrding this...

  • Prod. order and sales order order link-MTS sceanrio

    Hi dudes,
    My client is using both MTO and MTS scenarios,
    to customize a report in costing they want link between production order and sales order. Its readily available in MTO sceanrio but in in Make-to-Stock scenario how to get this link.
    Please if any enhancement or some other way to get it..
    thanks in advance...
    Robert.

    Robert,
    I will assume that you have already informed your client that this report is nonsense (Make to Stock by definition cannot be linked reliably to a Sales order).  Oh well, the client is always right!
    Make sure you include in your solution
    1.  How does he want to account for the business scenario where one production order ends up supporting more than one sales doc (and yes, it will happen).
    2.  How does he want to account for the business scenario where a production order is received to support Safety Stock (might not happen if he doesn't use SS)
    3.  How does he want to account for the business scenario where a production order is received to support a forecast, but there is not yet any sales doc (might not happen if he doesn't use forecasting)?
    4.  How does he want to account for the business scenario where the production order is received into stock, and the sales department decides to use the stock for a different sales order?
    Item 4 would only be an issue if the report is run prior to the sales order being shipped.
    Regards,
    DB49

  • Should an abaper have  knowledge of creating purachse order and sales order

    should an abaper have  knowledge of creating purachse order and sales order
    if so how to create pls help me
    thanks in advance

    REPORT ZTEST_BAPI .
    *- BAPI related declarations
    DATA : g_pohdr TYPE bapimepoheader,
    g_pohdrx TYPE bapimepoheaderx,
    gt_poitem TYPE TABLE OF bapimepoitem,
    gt_poitemx TYPE TABLE OF bapimepoitemx,
    gt_posched TYPE TABLE OF bapimeposchedule,
    gt_poschedx TYPE TABLE OF bapimeposchedulx,
    gt_poacct TYPE TABLE OF bapimepoaccount,
    gt_poacctx TYPE TABLE OF bapimepoaccountx,
    gt_poservice TYPE TABLE OF bapiesllc,
    gt_posrvacc TYPE TABLE OF bapiesklc,
    gt_return TYPE TABLE OF bapiret2.
    perform prepare_header.
    PERFORM prepare_items.
    PERFORM prepare_schedule.
    perform create_po.
    *& Form prepare_header
    Set up header structure
    FORM prepare_header.
    g_pohdr-comp_code = '2000'.
    g_pohdrx-comp_code = 'X'.
    set up doc type
    g_pohdr-doc_type = 'NB'.
    g_pohdrx-doc_type = 'X'.
    g_pohdr-vendor = '0008000330'.
    g_pohdrx-vendor = 'X'.
    g_pohdr-langu = sy-langu.
    g_pohdrx-langu = 'X'.
    g_pohdr-purch_org = 'BA01'.
    g_pohdrx-purch_org = 'X'.
    g_pohdr-pur_group = '800'.
    g_pohdrx-pur_group = 'X'.
    g_pohdr-currency = 'USD'.
    g_pohdrx-currency = 'X'.
    ENDFORM. " prepare_header
    *& Form prepare_items
    Set up item values
    FORM prepare_items.
    DATA : ls_poitem TYPE bapimepoitem,
    ls_poitemx TYPE bapimepoitemx.
    ls_poitem-po_item = '00010'.
    ls_poitemx-po_item = '00010'.
    ls_poitemx-po_itemx = 'X'.
    ls_poitem-short_text = 'ABSORBER,SHOCK:PALLETIZER'.
    ls_poitemx-short_text = 'X'.
    ls_poitem-material = '000000000001070062'.
    ls_poitemx-material = 'X'.
    ls_poitem-vend_mat = 'xyz'.
    ls_poitemx-vend_mat = 'X'.
    ls_poitem-quantity = '100'.
    ls_poitemx-quantity = 'X'.
    ls_poitem-po_unit = 'EA'.
    ls_poitemx-po_unit = 'X'.
    ls_poitem-po_unit_iso = 'EA'.
    ls_poitemx-po_unit_iso = 'X'.
    ls_poitem-net_price = '6.32'.
    ls_poitemx-net_price = 'X'.
    ls_poitem-price_unit = '1'.
    ls_poitemx-price_unit = 'X'.
    ls_poitem-item_cat = 'D'.
    ls_poitemx-item_cat = 'X'.
    ls_poitem-plant = '1575'.
    ls_poitemx-plant = 'X'.
    ls_poitem-ACCTASSCAT = 'K'.
    ls_poitemx-ACCTASSCAT = 'X'.
    ls_poitem-acctasscat = <fs_req>-knttp.
    ls_poitemx-acctasscat = 'X'.
    ls_poitem-distrib = <fs_req>-vrtkz.
    ls_poitemx-distrib = 'X'.
    ls_poitem-part_inv = <fs_req>-twrkz.
    ls_poitemx-part_inv = 'X'.
    ls_poitem-gr_ind = <fs_req>-wepos.
    ls_poitemx-gr_ind = 'X'.
    ls_poitem-gr_non_val = <fs_req>-weunb.
    ls_poitemx-gr_non_val = 'X'.
    ls_poitem-ir_ind = <fs_req>-repos.
    ls_poitemx-ir_ind = 'X'.
    ls_poitem-agreement = <fs_req>-konnr.
    ls_poitemx-agreement = 'X'.
    ls_poitem-agmt_item = <fs_req>-ktpnr.
    ls_poitemx-agmt_item = 'X'.
    ls_poitem-preq_no = <fs_req>-banfn.
    ls_poitemx-preq_no = 'X'.
    ls_poitem-preq_item = <fs_req>-bnfpo.
    ls_poitemx-preq_item = 'X'.
    ls_poitem-preq_name = <fs_req>-afnam.
    ls_poitemx-preq_name = 'X'.
    ls_poitem-pckg_no = <fs_req>-packno.
    ls_poitemx-pckg_no = 'X'.
    APPEND : ls_poitem TO gt_poitem,
    ls_poitemx TO gt_poitemx.
    ENDFORM. " prepare_items
    *& Form prepare_schedule
    Schedule data
    FORM prepare_schedule.
    DATA : ls_posched TYPE bapimeposchedule,
    ls_poschedx TYPE bapimeposchedulx.
    ls_poschedx-po_item = '00010'.
    ls_posched-po_item = '00010'.
    ls_poschedx-po_itemx = 'X'.
    ls_posched-delivery_date = '10/31/2005'.
    ls_poschedx-delivery_date = 'X'.
    ls_posched-quantity = '100'.
    ls_poschedx-quantity = 'X'.
    ls_posched-preq_no = <fs_req>-banfn.
    ls_poschedx-preq_no = 'X'.
    ls_posched-preq_item = <fs_req>-bnfpo.
    ls_poschedx-preq_item = 'X'.
    APPEND : ls_posched TO gt_posched,
    ls_poschedx TO gt_poschedx.
    ENDFORM. " prepare_schedule
    *& Form create_po
    Create PO with ref to the req
    FORM create_po.
    DATA : lt_return TYPE TABLE OF bapiret2,
    l_ponum TYPE banfn.
    CALL FUNCTION 'BAPI_PO_CREATE1'
    EXPORTING
    poheader = g_pohdr
    poheaderx = g_pohdrx
    testrun = 'X'
    IMPORTING
    exppurchaseorder = l_ponum
    TABLES
    return = lt_return
    poitem = gt_poitem
    poitemx = gt_poitemx
    poschedule = gt_posched
    poschedulex = gt_poschedx
    poaccount = gt_poacct
    poaccountx = gt_poacctx
    poservices = gt_poservice
    posrvaccessvalues = gt_posrvacc.
    APPEND LINES OF lt_return TO gt_return.
    IF NOT l_ponum IS INITIAL.
    MESSAGE s398(00) WITH 'Purchase document ' l_ponum
    ' successfully created'.
    ENDIF.
    ENDFORM. " create_po
    <b>Reward points</b>
    Regards

  • MTO(Diff between complex make to order and sales order based mass prod)

    Hi
    We are using MTO...Can anyone tell me what is the Diff between complex make to order and sales order based mass prod in finance perspective?

    Hi,
    In the case of complex make to order scenario, through MRP, the Project shall be assigned to the sales order. Then there will be milestone billling and all. In the case of mass production MTO, it is only creation of production order for each sales order item and each sales order item shall have sales order cost estimate.
    Trust this helps much and do encourage our efforts!
    Cheers!
    Edited by: Ashok Singh on Oct 28, 2008 6:53 PM

  • Replicate Service order and sales order

    Dear All,
    I need the objects that responsible to replicate service order and sales order
    and what is the steps to apply these steps
    please, ASAP

    Good afternoon,
    I presume you are looking for the adapter objects? For business transactions this is BUS_TRANS_MSG.
    Kind regards,
    Vanessa

  • Purchase Requisition and Sales Order Linkage (Order Costing)

    Dear, Gurus
    I have a scenario where in the Purchase Requisition you can assign acct cat C for Sales Order to item 010 for example. What exactly is this used for I mean is it used to transfer the price of the purchase into the Sales Order? Or its just a linking for reporting purpose? User would like if the purchase order or its requisition price come into the conditions of my Sales Order. Is this possible if yes how or thru which condition type? I was told this is order costing and I have no idea how to configure my sales order in terms of order costing to pull the price of the purchase requisition or purchase order.
    Recap
    1)     What is the purpose of the linkage to the Sales order?
    2)     Can the price be linked into the sales order this way?
    3)     Any other valuable information I should know please feel free.
    Thanks and hope to hear from you geniuses.

    Aroop thanks for your reply.
    My scenario is not the same as in 3rd party processing. In fact my scenario is make to order and even repairs of other companies machinery. Now what we are trying to achieve is lets say in the repair or in production of the customers machinery or service, MM needs to make a purchase for a part or tool etc. That in itself has a price. Meaning our purchase mm dept has to pay the vendor for the purchase made and in return we need to charge our customer for that purchase. So we would like for the price of the purchase order come in our sales order condition type as a surcharge.
    We were able to fetch the price of the production order automatically thru condition type EK02.
    We would like to do the same from purchase order.

  • Tell me the link between Purchase Requisition and Sales Order Number

    tell me the link between Purchase Requisition(MEREQ_TOPLINE-BANFN_EXT) and Sales Order Number(COBL-KDAUF)

    Hi Puja,
    If you have created sales order  for matrial which has both procurement type,after MRP run you will get
    planned order.This planned order you can convert to purchase requisition for external procurement or
    subcontracting.
    You will find sales order number in details of purchase requisition ( ME52N) in Account assignment tab.
    Hope this help you.
    Regards,
    Raja

  • U00A7ECH Engineering Change with Purchase Order, Process Order and Sales Order

    Hello All,
    Can someone kindly explain me the integration points of Engineering Change with
    1. Purchase Order
    2. Process Order
    3. Sales Order
    I know we can see the Rev Letter in the first two. Is there a 'refresh' function inside the  PO, Process Order, Sales Order by which we can get the latest and greatest revision, incase the material rev is updated/changed after the PO, Proc Order, SO is already created. Also if yes,after what status in PO, Process Order or Sales Order we cannot use the 'Refresh' button, and than what needs to be done to fix this situation.
    Thanks in advance,
    Sachin

    Hi,
    really, this depends on several factors, especially the valid from date of the ECM and its impact on changes on a BOM (which I suppose is the use case you are looking at? Or just a change on the material revision of the BOM header material?
    Interesting for you should also be Order Change Management, although not applicable to process orders as far as I know:
    [http://help.sap.com/saphelp_erp60_sp/helpdata/en/41/3699761bc211d2b62b0000e8359890/frameset.htm]
    Regards, Ulf.

  • Link between process order and sales order for planning strategy 52

    Hello,
    I investigate the possibility of a link between "sales order" and "planned order / process order" for the usage of planning strategy 52 (planning w/o final assembly, make to stock).
    I know, this is not conform to the basics of planning strategies (EITHER make to order OR make to stock) and I suspect it would be a modification. Of course we have the alternative "make to order" - strategy 50, but we do not want to use individual customer stocks.
    Is anybody there with similar customer requirements or project experiences?
    Thanks in advance,
    Joerg
    Message was edited by:
            Jörg Demtschuk

    Hi Jorg,
    To my understanding if you need hard pegging then in SAP only Individual requirement is possible.
    Or else you need to create a custom transactions/table to identify Sale order and when ever a process order is created by selecting the sale order record, the process order detials should also get updated against that.
    You need to take the help of ABAP expert for this,
    Regards,
    Prasobh
    Reward points if this was useful

  • How service order and sales order are linked to Service notification

    Hi I want to link a specific service order type and a specific sales order type to a service notification how to do that. Please help me out

    The sales order to service order link is also there in table AUFK
    AUFK-KDAUF (sales order number)
      Sales order
    Also check document flow of the sales order for the item in question:
    If the item is a a service item then

  • Service Order and Sales Order Integration

    Hi All,
    Through the requirement class settings in customizing, I have managed to generate a service order in the background upon creation of sales order.
    To achieve this I have maintained the following settings:
    Order type = OR
    Sales document item category TAD
    - Item Cat TAD is linked to Requirements Type SERA (SD IMG->Determination Of Requirement Types Using Transaction)
    -- Requirements Type SERA is linked to Requirements Class 203 (SD IMG->Define Requirements Types)
    --- Requirements Class 203 is lined to order type SM01 (SD IMG->Define Requirements Classes)
    I have also maintained my service material 'ZPBK001' in OISD screen. So, system allows me to create a sales order for this service material and service order is generated in the background.
    However, my requirement is to not to generate service order in the background but just create a sales order. Then manually create a service order and also manually enter the sales order as an SDI settlement object in the service order.
    So to achieve this, if I remove the service material from OISD screen, then system doesn't generates service order in the background but gives an Information (not an error or warning) message saying:
    No entry for plant 1200, service object 01 ZPBK001 in table T399A
    Its only an information message and when I tick it as ok then system gives another information mesage saying:
    Error when processing Service order
    So the result is service order is not generated in the background which is fine as per my requirement because I can manually create a service order and then manually enter the sales order in the service order.
    However, during the creation of sales order, is there a way that I dont get these information messages regarding service order not being generated in the background?

    Hi Pete,
    Thank you for your reply. As per your suggestion I have removed the "Transfer of requirements" check from SD IMG->Define Requirements Classes. However, when I create a sales order, system still gives me the pop-up Information message saying:
    No entry for plant 1200, service object 01 ZPBK001 in table T399A which is because I have not maintained service material in OISD screen.
    Also, I get the information message as:
    Error when processing Service order
    The first information message regarding service material is ok. However, is there a setting that I can maintain that I dont get the second message regarding error when processing service order?
    I also checked item category details in VOV7, there is no settings for transfer of requirements in vov7

Maybe you are looking for

  • [CS3] In Adobe Premiere, clips are much smaller in sequence timeline than in source window?

    I am using Adobe Premiere Pro CS3 to edit a portfolio together. I downloaded my own videos from YouTube as I had lost the raw files, then converted them to .avi and imported them into APP, which worked fine. Though once I started placing the clips on

  • Data Integrity Manager & Synchronize Objects

    Hi there, I have 2 questions regading data integrity and synchronization. If any of you can help me out, I would really appreciate it. 1) Synchronize Objects (R3AS4): Is this only used to sync the customizing objects or can it be used to sync master

  • How does java implements runtime polymorphism.?

    Hi all. we know how does runtime polymorphism take place in java. But my quesions is , how does java implement it internally. in C++, with the use of keyword virtual , complier decides to make a call at runtime using virtual table and Vptr. like in c

  • "Digital Music" and Itu

    Does anyone know if?Sound Blaster Digital Music works?with itunes AAC files. the details on the creative web page only mention MPS/WAV files. I have played itunes out of my pc through a stereo amp and it sounds awful, looking at some way of improving

  • Illustrator CS2 not opening past "Reading Fonts" phase

    When I double-click Illustrator CS2 on my Mac, the loading page opens up, however it reads "Initializing", then "Reading Fonts" and then just stays there.  My mouse is still showing that it's loading, but Illustrator never opens up. It just happened