Creating a PO when a sales order is created

Hi,
Can anyone guide how this requirement can be achieved. For  both scenarios there should be no manual intervention.
This is not a third party scenario.
When a sales order is created then a purchase order should be created in same server and                                                                               
in different server.
1) For different server scenario i think idoc can be used.  what should be my outbound and inbound message types and idoc types. because both po and so have same idoc types(ORDERS) and message types(ORDERS05). so when a sales order is created in 1 system how system knows that it needs to  convert to PO in other system. And there should be no Purchase Requisition created..
2) Best way creating  PO in same server with sales order with out creating Purchase Requisition.
please share your valuable suggestions.
Edited by: abilash n on Jun 13, 2011 7:12 AM

you need two output types for two scenarios, and there are different ways to do it from there,
for PO creation in same server I would use a Output with Transmission Medium as 8 - special function and used BAPI to create the PO, this way you dont have to keep track of idocs but the once the order is created functin will get triggerd and PO will be generated.
Check with the SD Consultant on how to create the Output type with TM 8(tcode NACE -> V1 - sales -> output types -> ).
for the different server I believe you alredy have the RFC/ connecetions set up. You'll have to use an IDOC for this.
Partner profiles and process codes in destination systems will determine the PO creation.
regards,
nipuna

Similar Messages

  • Sending Email to Material Department when a Sales Order is created

    Hello All,
           I am a facing the problem to find out the exit when creating the sales order.
    My Requirement is whenever a sales order is created via VA01, a email is sent to the material department with some contents. My task is to enhance the contents of the email.
    Can anybody tell me where, this exit is triggered.
    I have checked in USEREXIT_SAVE_DOCUMENT_PREPARE and
    USEREXIT_SAVE_DOCUMENT. But nothing written in these to forms
    Please come up with ur Ideas
    Regards,
    Vasanth.M

    Hi,
    There might be some output type which is associated with VA02 , that output type triggers when ever you create or change , that might be sending the mail.
    You Go to <b>NACE</b> transaction there you can see the output type related to sales order , in that look for output types which are sending mails. there you can get the driver program and use that progrm , go to SE38 and modify the content accordingly..
    Regards
    vijay

  • Idoc info in 'Services for Objects' when a sales order is created

    Hi Guys
    Could one of you remind me how to turn on the Idoc info in the 'Services for Objects' > workflow option.
    I know how to turn on the services for objects using the user profile and entering parameter id:SD_SWU_ACTIVE , parameter value: X.
    I am not able to see the Idoc number/info that was used to create the sales order. I can see all the information in WE05 but the sales order does not show me any history of having used the Idoc.
    When i go to sales order and select the services for objects option followed by workflow the system should show the IDOC number/info used to create this order.
    Your help will be appreciated.
    Thanks
    Manish
    Edited by: Comes Naturally on Feb 23, 2009 3:46 PM

    Hi,
    1. Configure the IDoc with message type ORDERS and basic IDoc type as ORDERS05 (You have to follow common step-by-step approach)
    2. Configure Message Control to automatically generate IDoc whenever a Sales Order is created. (I mean output type)
    So whenever a Sales Order is created, output type will generate an IDoc.
    Hope this information is useful.
    Regards,
    AK

  • Generating purchase order idoc, when a sales order is created

    Hi folks,
           we need to send purchase order idoc from SAP to some external system. Once sales order is created, it should automatically generate the purchase order idoc and send to the external system....Any document showing step by step configuration to do so? I have basic knowldege of ALE and IDOC...please suggest me the configuration steps in detail...
               Thanks in advance,
                 Shyam.

    Hi,
    1. Configure the IDoc with message type ORDERS and basic IDoc type as ORDERS05 (You have to follow common step-by-step approach)
    2. Configure Message Control to automatically generate IDoc whenever a Sales Order is created. (I mean output type)
    So whenever a Sales Order is created, output type will generate an IDoc.
    Hope this information is useful.
    Regards,
    AK

  • Block For billing when sales order is created

    Hi experts,
                   I have a requirement in which i want to block the sales documrnt for billing when the sales order is created with particular discount value.
    for this i have checked the condition of discount first it works fine no i want to block it for billing.
    My SD consultant told open the sales doc in change mode(VA02) and then go to Billing Block field (FAKSK)  and then give 02 Compl confirm missing and save the doc
    So for this i have writen a method.
    SET Parameter ID 'VBELN' Field OBJECT-KEY.
    Call Transaction 'VA02' and SKIP FIRST SCREEN.
    SET Parameter ID 'FAKSK' Field '02'.
    in this it is calling the VA02 screen but i am not able to pass the billing block value and save.
    Please give me a solution how to do this.
    for blocking i have also used the standard method in BUS2032  SetDefaultBillingBlock
    it is not blocking the billing.
    Or should i use some bapi for this.
    Regards,
    Hari

    Hi Hari,
    SET parameter ID only sets the value to an input field. It wont saves to the database. More over i don't find any parameter ID for billing block in VA02.(May be because it is a drop down).
    Use BAPI BAPI_SALESORDER_CHANGE Pass the sales order number, ORDER_HEADER_IN-BILL_BLOCK = ur blocking code, ORDER_HEADER_INX-BILL_BLOCK = X.
    After calling the BAPI call BAPI_TRANSACTION_COMMIT.
    Above procedure is to programativally.
    If u want to do it manually then directly open VA02 and change the billing block and save.
    I dont think we can set parameter ID for billing block
    Thanks,
    Vinod.

  • How can we remove an unwanted # in sales order texts created using a bapiFM

    Hi,
    i've written the following code which splits the record fetched from apllication server and moves it into a workarea.
    CONSTANTS:c_sep VALUE cl_abap_char_utilities=>horizontal_tab, "for separation
    SPLIT wa_tab1-rec1 AT c_sep INTO wa_inf_itm-inf_vbeln
                                           wa_inf_itm-itm_number
                                           wa_inf_itm-material
                                           wa_inf_itm-req_qty
                                           wa_inf_itm-uom
                                           wa_inf_itm-amount_pr00
                                           wa_inf_itm-amount_pi02
                                           wa_inf_itm-amount_mwst
                                           wa_inf_itm-amount_vprs
                                           wa_inf_itm-currency
                                           wa_inf_itm-text.
    Here c_sep will have a value '#' instead of 'space' in Flatfile from application server.
    The field 'wa_inf_itm-text' though it doesnot contain any value in debugging, when the sales order is created using FM 'BAPI_SALESORDER_CREATE_FROM_DAT2' the item texts are having a # character at the end of the text if it has any text(when checked in va03--sales order item text) or if it doesnot contain any text ,then also # character is seen in texts.
    Thanks & Regards,
    Prasad Reddy.

    hi
    use
    Replace all occurrence of '#' with space from .......
    I think it will solve ur problem.
    Rewards with point if helpful.
    Regards
    Santosh.

  • Does MV45AFZZ user exit trigger when CRM sales order is replicated into ECC

    Hi All,
    When a Sales order is created in CRM, it is replicated automatically using BDOCS from CRM into ECC.
    I have requirement to code the logic during the process, when sales order is replicated into ECC.
    So I need to know the BAPI which is actually triggered to create sales order in ECC, while replication takes place.
    If I could atleast know, if USEREXITS in MV45AFZZ would trigger or not, when CRM order is replicated into ECC, then I could determine, If I could code my logic in those user exits.
    Please help me on this.

    please check this link
    keremgomi=wordpress=com
    Rgds
    Raj

  • Partner Function "Vendor" missing when the sales order is replicated to ECC

    Hi Gurus,
    We are facing a problem on replication of functions partners between
    sales order of CRM and ECC.
    We have downloaded vendors (partners of table LFA1) from ECC to CRM
    following note 883162 and this replication was ok!
    We have mapped all partner functions from ECC to CRM and from  CRM to
    ECC for distribution of partners between systems.
    We must include a vendor using partner function '0000092 - Carrier' on
    our sales order, which is transferred to ECC. However, when the sales
    order is transfered to ECC, the vendor (which was included on CRM) is
    missing.
    When the sales order is created on ECC and the partner (type carrier)
    is included in,  the order arrives on CRM missing only the partner
    number, because the partner function is there.
    How to fix this problem?
    Best Regards,
    Nivea Faria

    Hi,
    See this Note : 975195
    Hope this helps.
    Best Regards
    Shiven

  • Does MV45AFZZ trigger when CRM sales order is replicated into ECC

    Hi All,
    When a Sales order is created in CRM, it is replicated automatically using BDOCS from CRM into ECC.
    I have requirement to code the logic during the process, when sales order is replicated into ECC.
    So I need to know the BAPI which is actually triggered to create sales order in ECC, while replication takes place.
    If I could atleast know, if USEREXITS in MV45AFZZ would trigger or not, when CRM order is replicated into ECC, then I could determine, If I could code my logic in those user exits.
    Please help me on this.

    Hi,
    I guess it should. Just put external break point (RFC userid with debuger rights) and see.
    Thanks,
    Nilesh P.

  • When copying sales order, its coming as booked (Using custom workflow)

    Hi,
    While copying sales order using custom workflow, if the source sales order is booked, the new sales order is also coming as booked only.
    But in standard workflow, its coming as Entered. Any idea which parameter I need to check?

    Hi Asit Garg,
    Correct me if i am "X".
    You want to trigger the workflow for two different scenario that is 1. when the sales order is changed 2. when the sales order is created with delivery block.
    For the 1. As you said it is working fine.
    For the 2. sales order created with delivery block.
                 Make your workflow to work like this, Whenever the sales order is created trigger the workflow and at first step check for the condition weather the sales order have the delivery block or not if not terminate the workflow through terminating event if not proceed as you wish.
    Hope it will helps you,
    Regards
    Balaji E.

  • Want to get a popup when sales order is created or saved

    hi all ,
             I want to get a popup when sales order is created or saved .Is there any  user exit for the same?
    thanks in advance ,
    Naval bhatt

    Hi,
    try this.
    Go to the include MV45AFZZ of Sales Order Main program SAPMV45A
    and find the correct exit in that and write the User exit code after saving the document FORM USEREXIT_SAVE_DOCUMENT_PREPARE or
    FORM USEREXIT_SAVE_DOCUMENT by calling/writing the
    fun module POP_UP_TO_CONFIRM.
    Regards,
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • When sales order is created ,costing of a material cann't be created automa

    dear suppporter:
      when sales order is created ,costing of a material cann't be created automatically.if i cost the material in va02 ,the cost can be generated.please help me analyse it .
    best regards.

    There is Tick in Delivery block 01 Deliveries: Blocking Reasons/Criteria
    I have observed in testing Before you save a sales order, you look at the schedule line overview, you can see what the system would Proposed confirm date and confirmed qty, if the block were  not set. However, as soon as you save the sales order,(warring message Oldest open items over due will appear) the confirmed quantities are automatically reset to zero because sales order is Blocked. Here the goods remain available for other customers.
    Note : When you release the sales order the automatically in sales order confirmed qty and proposed date will come.
    Here the problem is  when they do MRP run after sales order saved with block Planned order is creating.

  • Trigger custom idoc through ALV when sales order is created in VA01 & VA02

    Dear Experts,
    I am new to the concept of ALV_idoc. Please give me the procedure in detail.
    How to send custom fields to non SAP system when sales order is created or modified in VA01 &VA02?
    Can i use existing Logical Systems and Ports and partner profiles?
    Thanks & Regards
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Jan 17, 2012

    hi,
    the first option is the right one. the FM invoked makes a direct input, so all the functionalities in S.O. are the standard one in the same way as if you are making it manually.
    Also you can have some exits in the Idoc FM, so you can manipulate data there before loading the sales order.
    pls. reward if helpful
    regards
    Roberto

  • When I create Return Sales Order through BDC sales order doesnu2019t create.

    Deal Guru,
    When I create Return Sales Order through BDC sales order doesnu2019t create.
    It shows created sales document number but when I display this document I am getting message Document is not in database.
    After executing my BDC, message received in SAP in box : SAPSQL_ARRAY_INSERT_DUPREC
    I am receiving following message in SAP inbox for following issue.
    But when I create Return Sales Order through VA01, it is working. Please give me some idea.
    Detail Message
    Update was terminated
    System ID....   PRO
    Client.......   900
    User.....   DEVELOPER2
    Transaction..   VA01
    Update key...   4961DBF46A6B09D2E10080020A02281C
    Generated....   05.01.2009, 16:03:40
    Completed....   05.01.2009, 16:03:40
    Error Info...   00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC
    Regards
    Makarand

    Hi Rory
      Try this link:
       BAPI can't to create SO,But used bapi data with manual can?
    Regards
    Neha

  • Approval code on credit card sales order not created when order is booked

    Hi,
    Can anyone help me on this issue.
    when a sales order is entered using payment type of credit card and selected credit card number and line details.The approval code did not generate after sales order is booked.
    Thank you

    duplicate thread in financials.

Maybe you are looking for

  • Regarding Message Pool In web Dynpro

    Hi I have created the InputForm application for error handling.... In that i have created the Message Pool. A class IMessage<ComponentName> has been genrated automatically. Inside this class whether i have to write the code for create CONSTANT keys o

  • How to open more than one RAW-File by drag&drop/doubleclick with CS2?

    Hello, is it possible to open more than one RAW-file from iPhoto with Photoshop's RAW-converter in just one single step? If I drag&drop my selection to my Photoshop-Icon, PS opens just the iPhoto-created library-JPGs of the RAW-files but not the RAWs

  • Problems - Original Mini Ipod

    I went into the Apple Store In Bloomington MN to have it looked at. About 2 months ago I started having problems with the Mini Ipod. It was playing songs out of tune / scratchy. Almost like you are tuning into a radio station and do not get clear rec

  • [php+mysql] recordsets inside recordset?

    Hi all, is there a way to use a recordset result inside the SELECT statement of another recordset? Something similar to: SELECT myotherrecordsetresult FROM mytable WHERE myfield=mycondition ORDER BY mysortfield ASC The variable "myotherrecordsetresul

  • Error in Subquery in BIP11g

    We have a Query in BIP11g and it fails on this:       WHERE S.STUDENTNUMMER = SE.STUDENTNUMMER      AND SE.OPLEIDING = O.OPLEIDING      AND SI.OPLEIDING = O.OPLEIDING AND NVL(:P_COLLEGEJAAR,12) IN ( SELECT NVL( :P_COLLEGEJAAR,12) JAAR FROM OST_STUDEN