Sales order with reference to purchase order

Hi
I have a scenario where i need to create a sales order from PO raised in another company code
My client has 4 company codes
1000 company code
2000 company code
3000 company code
4000 company code
Now
2000 company will raise a PO on company code 1000
So in company code 2000 i need to create a sales order with reference to PO from compcode 1000
where all the data has to copied from PO with schedules
so when i create a order in VA31 i have to create scheduling agreements with refernce to PO all the schedule line items should be copied?
Is there any standard process or do i need to go for development?
Regards

Hi,
   As per my Understanding,
I guess, you can do this same as creating Purchase Order-NB ( In ordering Company code)-ME21N,
Vendor- Plant of Supplying Comp code ( Create this Plant as Vendor in ORdering Comp code)
Purchase org/Group-
Comp Code - Ordering Comp Code
Material-
Plant - Receiving Plant.
Try n Revert-
No Need to go for Userexit,
My Query is: -
Why you want to create Scheduling agreement wrt "PO" of Diff Comp Code.
We can use the PO from Ordering Comp Code is a ref for any dispatches ( To Pass the PO requirements to Production in Supp.Comp code, while creating PO by maintaining Checking rule )

Similar Messages

  • Purchase Order with reference to Purchase Order

    Dear SAP Gurus,
    Can it be possible to have a purchase order with reference to purchase order.
    Regards
    Vinod Kakade

    Hi,
    there is an option to give document date in the Purchase order selection in Document overview, what you can do here is that you can get a TVARVC variable created with date range of today - Today - 179 Days, in the attributes of the variant enter the TVARVC variable so that when the user uses this variant, he will get PO's only for that date range, if you  have any confusion on this then please speak to your ABAP Consultant.
    Regards
    Chandra Shekhar

  • Create Sales order with reference to purchase order - Help needed

    Hi Gurus
    Purchase order is being created in Oracle system. SAP system will receive the purchase order and creates the sales order for the corresponding purchase order.
    Hoe to create sales order, Through BAPI or through IDOC. Please suggest and give some pointers of existing interface
    Thanks
    Andy.

    Hi,
        If you are working on ECC6.0 check for the BAPI BAPI_SALESORDER_CREATEFROMDAT1 .You can also pass the purchase order number .
    Check the sample code
    REPORT z_bapi_salesorder_create.
    Parameters
    Sales document type
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text FOR FIELD p_auart.
    PARAMETERS: p_auart TYPE auart OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Sales organization
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text1 FOR FIELD p_vkorg.
    PARAMETERS: p_vkorg TYPE vkorg OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Distribution channel
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text2 FOR FIELD p_vtweg.
    PARAMETERS: p_vtweg TYPE vtweg OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Division.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text3 FOR FIELD p_spart.
    PARAMETERS: p_spart TYPE spart OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SKIP 1.
    Sold-to
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text4 FOR FIELD p_sold.
    PARAMETERS: p_sold  TYPE kunnr OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Ship-to
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text5 FOR FIELD p_ship.
    PARAMETERS: p_ship  TYPE kunnr OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SKIP 1.
    Material
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text6 FOR FIELD p_matnr.
    PARAMETERS: p_matnr TYPE matnr   OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Quantity.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text7 FOR FIELD p_menge.
    PARAMETERS: p_menge TYPE kwmeng  OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Plant
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text9 FOR FIELD p_plant.
    PARAMETERS: p_plant TYPE werks_d OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    Data declarations.
    DATA: v_vbeln            LIKE vbak-vbeln.
    DATA: header             LIKE bapisdhead1.
    DATA: headerx            LIKE bapisdhead1x.
    DATA: item               LIKE bapisditem  OCCURS 0 WITH HEADER LINE.
    DATA: itemx              LIKE bapisditemx OCCURS 0 WITH HEADER LINE.
    DATA: partner            LIKE bapipartnr  OCCURS 0 WITH HEADER LINE.
    DATA: return             LIKE bapiret2    OCCURS 0 WITH HEADER LINE.
    DATA: lt_schedules_inx   TYPE STANDARD TABLE OF bapischdlx
                             WITH HEADER LINE.
    DATA: lt_schedules_in    TYPE STANDARD TABLE OF bapischdl
                             WITH HEADER LINE.
    Initialization.
    INITIALIZATION.
    v_text   = 'Order type'.
    v_text1  = 'Sales Org'.
    v_text2  = 'Distribution channel'.
    v_text3  = 'Division'.
    v_text4  = 'Sold-to'.
    v_text5  = 'Ship-to'.
    v_text6  = 'Material'.
    v_text7  = 'Quantity'.
    v_text9  = 'Plant'.
    Start-of-selection.
    START-OF-SELECTION.
    Header data
    Sales document type
      header-doc_type = p_auart.
      headerx-doc_type = 'X'.
    Sales organization
      header-sales_org = p_vkorg.
      headerx-sales_org = 'X'.
    Distribution channel
      header-distr_chan  = p_vtweg.
      headerx-distr_chan = 'X'.
    *Purchase order number
    header-PURCH_NO_C =  '4000006'.
    headerx-PURCH_NO_C = 'X'.
    Division
      header-division = p_spart.
      headerx-division = 'X'.
      headerx-updateflag = 'I'.
    Partner data
    Sold to
      partner-partn_role = 'AG'.
      partner-partn_numb = p_sold.
      APPEND partner.
    Ship to
      partner-partn_role = 'WE'.
      partner-partn_numb = p_ship.
      APPEND partner.
    ITEM DATA
      itemx-updateflag = 'I'.
    Line item number.
      item-itm_number = '000010'.
      itemx-itm_number = 'X'.
    Material
      item-material = p_matnr.
      itemx-material = 'X'.
    Plant
      item-plant    = p_plant.
      itemx-plant   = 'X'.
    Quantity
      item-target_qty = p_menge.
      itemx-target_qty = 'X'.
      APPEND item.
      APPEND itemx.
      Fill schedule lines
      lt_schedules_in-itm_number = '000010'.
      lt_schedules_in-sched_line = '0001'.
      lt_schedules_in-req_qty    = p_menge.
      APPEND lt_schedules_in.
      Fill schedule line flags
      lt_schedules_inx-itm_number  = '000010'.
      lt_schedules_inx-sched_line  = '0001'.
      lt_schedules_inx-updateflag  = 'X'.
      lt_schedules_inx-req_qty     = 'X'.
      APPEND lt_schedules_inx.
    Call the BAPI to create the sales order.
      CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA1'
           EXPORTING
                sales_header_in     = header
                sales_header_inx    = headerx
           IMPORTING
                salesdocument_ex    = v_vbeln
           TABLES
                return              = return
                sales_items_in      = item
                sales_items_inx     = itemx
                sales_schedules_in  = lt_schedules_in
                sales_schedules_inx = lt_schedules_inx
                sales_partners      = partner.
    Check the return table.
      LOOP AT return WHERE type = 'E' OR type = 'A'.
        EXIT.
      ENDLOOP.
      IF sy-subrc = 0.
        WRITE: / 'Error in creating document'.
      ELSE.
    Commit the work.
        COMMIT WORK AND WAIT.
        WRITE: / 'Document ', v_vbeln, ' created'.
      ENDIF.
    Reward points if it worked.
    Regards,
    Abhishek
    Edited by: Abhishek Raj on May 14, 2008 9:57 AM

  • Automatic creation of Sales Order with reference to Purchase Order

    Hi
    I want to create the sales order automatically when we are creating the purchase order.
    kindly guide me how to do it,
    Pramod

    Hi
    U can create BDC for Tcode VA01 in T code SHDB with the validation and ask the ABAPer to create one Y/Z Tcode. Then you input the PO no in the Tcode to create the SO in background.
    Or
    Create BDC for PO AND SO and give logic and validation with input field and ask the ABAPer to crate one Y/Z Tcode to create PO and SO in single execute.
    Thx.

  • Can we create outbound delivery with reference of purchase order

    Hi All,
    can we create outbound delivery with reference of purchase order?

    dear friend,
    as far as i know you can create it with the following references:
    -to sales order;
    -to STO;
    -to subcontract order;
    -to project;
    -without any ref
    are you talking about stock transport order ?
    regards,

  • Function module to create Inbound delivery with reference to Purchase Order

    Hi experts,
    I want to create Inbound delivery with refernce to Purchase Order. But I want to create item wise. For example If one purchase order is there with 10 line items. 10, 20, 30, 40, 50......100.
    If I am showing report for Purchase Order with select option and if I select first 5 line items 10, 20, 30, 40, 50 then my program should be create one Inbound delivery for selected line items only. I have tried BDC for Tcode VL31N, but its not worked. Is there any Function module to create Inbound delivery with reference to Purchase Order for selected line items????????

    Hi,
    Try FM RV_DELIVERY_CREATE or GN_DELIVERY_CREATE.
    For creating a delivery wrt PO u 1st need to have a sales order i guess.
    Regards,
    Amit

  • Payment Posting with Reference to Purchase Order

    Dear Experts,
    I've created a Purchase Order with reference to a purchase requisition. Now I want to post MIRO with reference to this Purchase Order Number to give payment to Vendor mentioned in Purchase order. But when I going to post miro amount not coming which I mentioned in Purchase Order!!
    How can I post MIRO with reference to Purchase Order Number? Is it possible?
    Best Regards.
    Ripon

    >
    riponkp wrote:
    > Dear Experts,
    >
    > I've created a Purchase Order with reference to a purchase requisition. Now I want to post MIRO with reference to this Purchase Order Number to give payment to Vendor mentioned in Purchase order. But when I going to post miro amount not coming which I mentioned in Purchase Order!!
    >
    > How can I post MIRO with reference to Purchase Order Number? Is it possible?
    >
    > Best Regards.
    > Ripon
    Seems like you are doing MIRO before GR. If GR is done, it will pick the amounts, if GR is not done, the amounts are not picked. You enter the amounts manually with reference to PO.

  • Report for gl accounts with reference to purchase order

    hi
    experts
    Is there any report which can give the gl accounts with reference to purchase order
    thnx

    Use t code ME2N and click 'Account Assignment" from application tool bar or press Shift + F12 to view PO with GL code. If GL code is not showing select from the layout.
    Rgds,
    Vijay

  • Goods Issue with reference to Purchase Order

    Hi MM Gurus,
    Is there any settings to do Goods Issue with reference to Purchase order?
    I want to capture the material price in purchase order during goods issue instead of standard price or moving average price.
    Thanks in advance
    Dinesh

    Hello Dinesh,
    Batch valuation is similar to split valuation. Here is the link on how batch valuation works.
    http://help.sap.com/saphelp_47x200/helpdata/en/25/283db54f7811d18a150000e816ae6e/content.htm
    Please check in sandbox environment before using.
    Hope this helps.
    Regards
    Arif Mansuri

  • Help Bapi Purchase order with reference to purchase requisition no

    Hi,
    i used BAPI_PO_CREATE1 for creating purchase order with reference to Purchase requisition number but im getting these error
    please help me to solve this
    1 E BAPI 001 No instance of object type PurchaseOrder has been created. External reference:
    2 E MEPO 001 Purchase order item 00010 still contains faulty schedule lines
    3 E 06 054 Doc. type/item cat. NB/S (requisition) <-> NB/ (purch. order)
    4 E 8W 162 No schedule line exists for schedule line number 0010000030 00010 0000.
    Thanks & Regards,
    Azhar
    Message was edited by:
            Azhar

    Hi Azar,
    I am also getting the same messages, did you get resolve the issue.

  • MIRO posting with reference to Purchase Order

    Dear Experts,
    I've created a Purchase Order with reference to a purchase requisition. Now I want to post MIRO with reference to this Purchase Order Number to give payment to Vendor mentioned in Purchase order. But when I going to post miro amount not coming which I mentioned in Purchase Order!!
    How can I post MIRO with reference to Purchase Order Number? Is it possible?
    Best Regards.
    Ripon

    As above it sounds like a GR gasn't been posted but you can still process invoice.  Just manually enter the quantity and value as per invoice.
    Note the invoice will block for payment pending the GR.
    See transaction MRBR if you want to release the invoice for payment immediately.
    Regards,
    Nick

  • Net price on purchase order with reference to purchase requisition

    Hello!
    When I create a purchase order with reference to purchase requisition, the net price goes automatically to the purchase order.
    But It's possible change the net price on PO, and I must close this possibility.
    Do you know how can I do this?
    Thanks, Camila!

    Hello
    Try to search SCN for EVO
    You will find this: PR price in PO

  • Program for Creating Purchase Order with reference to purchase requisition

    Hi ,
    I need to Create purchase Order with reference to  Purchase requisition,
    in my case i need to automize the Process which is happening in MD04,
    Can you please suggest me ?
    Thanks ,
    Murali

    Hi,
    Plz check this link. It will be helpful to you.
    Purchase order creation with reference to PR
    We can also create the PO Using the BAPI_PO_CREATE1 function module.
    In this function module fill up the all necessary Details.
    With details in Item Table we haveto give the Fields PREQ_NO and PREQ_ITEM for each item .
    then it will creates the PO with PREQ.
    Thanks & Regards,
    Sarita Singh Rathour
    Edited by: Sarita Rathour on Aug 3, 2009 7:01 AM

  • ARE-1 form with reference to Purchase Order

    Hi All,
    We are having a scenario where we need to send the ARE-1 to our vendor along with CT1. I have tried assigning the Purchase Order as reference document for creation of ARE-1 but its not working.
    Can anybody suggest the way to create ARE-1 with refernce to Purchase Order?
    Rgds,
    Antima

    Hi Rithvika,
    Yes the scenario is for merchant export. Here we are the customer and along with our purchase order, we need to send CT1 and ARE-1 to our vendor. The ARE-1 series has to be same as for our direct export, so i need to create an ARE-1 with reference to Purchase Order.
    If anybody has any idea how to do that and whether its possible in SAP then please guide me.
    Rgds,
    Antima

  • Purchase Order with reference to Purchase Requisition

    Hello
    I have this situation:
    One Purchase Requisition with quantity of 10.
    When I issue a Purchase Order with reference to this purchase requisition, for the moment I can use this Purchase Requisition many times. For example: two Purchase Order with the same purchase requisition, same item and same quantity.
    The objective is thay the system only allows to use the Purchase Requisition until the quantity is completed. For example: one purchase order for 10, or two purchase orders with 5 each. But never with a quantity superior to the total quantity in the purchase requisition.
    Somebody can help?
    Thank you,
    Elena

    Hi,
    1) By setting the configuration paths as suggested by the previous posts.
    2) In the first place, when converting a PR in PO Create Screen (ME21N), you should make the Open only and Released only field as Display. This way, the results will only show Open and Released PRs to be converted to PO
    Hope this helps

Maybe you are looking for

  • RE: [iPlanet-JATO] TileView not being displayed

    Craig.you are quite the JATO expert now! cb -----Original Message----- From: Craig V Conover [mailto:<a href="/group/SunONE-JATO/post?protectID=219212113009229091025149066024064239039098124198039130151196028">craig.conover@S...</a>] Sent: Tuesday, Ap

  • My Itunes will not restore my ipod touch 4g.

    It comes up with an error 21. I have gone through all of the "Fixes" On the itunes support page but none have resolved my issue. I have run a diagnostics and have uploaded the script to this question. Thankyou! My ipod is currently in recovery mode,

  • New user to Oracle 11i who needs help on creation of new fixed asset class

    Hi all, I am new to my Company who is using Oracle 11i. And the Company has a new class of fixed asset and a GL code has been created. But there is no link between the Fixed Asset Manager and the GL code, i.e. depreciation is not linked, additions ar

  • Upgrade Download Failed & So Did The Solution

    I attempted to upgrade to 7.6 resulting in the following error message: "iTunesSetup[1].exe is not a valid Win32 application." I followed the "troubleshooting solution" suggested by this website, but am still receiving the same error message. Any sug

  • How to update delivered field in co03 with migo transaction?

    We're doing a migo for a prod. order - though when looking into the CO03, the delivered quan is not updated. prod order with control key PP05 (PO Auto GR for Exernal Pur.order), so it should be auto GR.  Any ideas?