EDI for creation of Sales Order and sending copy of Invoice

Hello Experts,
I am working on EDI. We have a scenario, where the purchase order created in the 3rd party system has to be converted into a sales order in our SAP system.
Then, the regular flow would follow uptil delivery and creation of invoice in SAP.
We have to send a copy of this Invoice back to the 3rd party system.
So, in effect, we would have EDI at two points, while capturing the PO from the 3rd party and another when sending a copy of the Invoice back to the 3rd party.
Please advise on how to go about implementing EDI in the above mentioned scenarios.
Regards,
Divyata

Use EDI 850 Process code ORDE FM IDOC_INPUT_ORDERS for PO (Inbound)
use EDI 810 Process code SD09  FM IDOC_OUTPUT_INVOIC for Invoic (Outbound)
Edited by: srini korada on Jun 9, 2011 4:51 PM

Similar Messages

  • Creation of Sales Order and Service Contract from Inbound IDOC

    Hi Experts,
    My requirement is to create a Sales Order as well as a Service Contract from one Inbound IDOC. I am getting the Inbound IDOC from a third Party. The message type is ORDERS and Basic Type is ORDERS02. How ever i am using an extension type IDOC which carries all the required data for Sales Order and Service Contract. My requirement is like, to create a Sales Order first.
    I have created a Z FM which is attached to the Process Code and subsequently to the message type. Inside the FM i an calling FM 'IDOC_INPUT_ORDERS' for creation of Sales Order. After that i am changing the IDOC data for the Document Type. I am changing the document type which is responsible for Contract Creation.
    Then I am again calling the FM 'IDOC_INPUT_ORDERS' for creation of Contract with the help of IDOC data. But here the Contract is not getting created. It's getting failed during the Batch input session.
    I need to solve this problem as soon as possible. Please help me. If there are any other options also please share.
    Thanks in Advance.
    Regards,
    Priyabrata

    Actually there is problem with BDCDATA. Inside the FM it's calling transaction with help of BDCDATA. If i am creating a Sales order or contract alone its creating successfully. But when i am trying to create both, it's retuning sy-subrc '1001' after calling the transaction on the second attempt. Is there any problem with BDCDATA like we can't handle with less time gap? Please help and give your inputs.
    Regards,
    Priyabrata

  • FM for creation of sale order

    Hi All
    Kindly provide me lFM for sale order creation . Kindly don't suggest the BADI eg.BAPI_SALESORDER_CREATEFROMDAT,
    BAPI_SALESORDER_CREATEFROMDAT2.
    Actually I want use this function module in notification action box functionality to create sale order. I already have reference sale order, I just want fetch data from reference sale order and creation of new one. I tried BAPI_SALESORDER_CREATEFROMDAT in configuration  of action BOX but i got error"
    BAPI_SALESORDER_CREATEFROMDAT1 does not have E_QNQMASM0 parameter".
    Regards
    Sandeep

    Check this where similar topic was discussed
    Functional module to create PM order to be used in Action Box
    You can also have a look at the following note:-
    Note 1770396 - QM: Action box - Tasks and activities for item
    G. Lakshmipathi

  • Interface for  BAPI for creation of Sales Order.

    hai,
    what does meant by creating interface for BAPI to create sales order. and how to create the interface for BAPI to create sales order.

    Check Transaction BDFG and BDBG.
    BDBG is to create an interface for the BAPI
    http://help.sap.com/saphelp_nw04/helpdata/en/43/b46c4b53c111d395fa00a0c94260a5/frameset.htm
    BDFG is to create an interface for the FM (non BAPI).
    http://help.sap.com/saphelp_nw04/helpdata/en/00/a814b5d05b11d6b2ca00508b6b8b11/frameset.htm
    Regards,
    Naimesh Patel

  • FM for linking deleted sales order and accounting document

    Hi there,
    I have this scenario:
    -I create a sales order and make a certain amount of downpayment.
    -At the save of the order, an accounting document is created in BSEG table with reference to this order (BSEG-VBEL2).
    -I delete the order that I created in step 1.
    -The accounting document still exists in BSEG.
    Question:
    A direct select on BSEG with vbel2, takes a very long time.
    Can anyone suggest a way to improve the performance, or does anyone know of a Fuction Module that I can use?
    Thanks,
    Deepti

    Hi,
    Con't you use alternative table, Example insted BSEG use BSID and create a index on VBEL2 to improve the performance..
    Regards,
    Srinivasa M

  • 051 routine between sales order and delivery copy control

    Hi,
    The copy control routine 051 in copy control from sales order to delivery defines four combination criteria.
    1) delivery types same in config of sales doc type
    2) sales org same of the sales orders
    3) delivery indicator same
    4) billing type same as defined in sales doc type.
    my question is if i have the follwoing copy control defined between sales order and delivery :-
    sales       del           sales       deliv         bill      routine
    order        type         org        agreement       type     in copy ctrl
    type
    ZOR          ZLF          1000         SAME          ZF2         051
    ZTSD          ZLF          1000         SAME          ZF2         051
    my question is how will the routine combine  all the sales doc type into a single delivery.  my confusion is since the rotuine is attached to every combination of sales doc type and delivery type in copy control, how will the routine identify that it has to combine the sales doc type ZOR and ZSTD into a single delivery.
    one of the statements wriiten in routine 051 is that " check sales org is same for all document ". does this mean that the routine will identify sales orders with doc type ZOR only  if the routine is attached in config for copy contol between zor and zlf and  i remove the routine for copy control belwteen zstd and zlf.
    regards
    sachin

    Sales order is the order from your customer and delivery is when you are delivering the item.
    Shipping: In general  when the item is dispached from the warehouse, we can say the item is shipped,where as delivery is item/product reaching to the end customer.
    Hope it helps,
    Kiran

  • Sales Order # and Despatch Advice # from Invoice #

    Hi all,
    If I know the invoice no, from which tables I can get Sales order # and Despatch Advice #?
    Please respond.
    Regards,
    Aisha Ishrat
    ICI Pakistan Ltd.

    hi,
    the document flow is stored in VBFA table where you can find out either subsequent documents or preceding doucments.
    And if you specifically want to find for example a sales order for an invoice you can even mention the previous doc category(VBTYP).
    so in your case, go to se16 > give VBFA table > give invoice # in the succeding document field and you will see the order as well the delivery number.
    regards
    sadhu kishore

  • IDOC for Creation of Production order and also adding components

    Hi ,
    I have a requirement like I get the data from a 3rd party system and using that i have to create production orders and also should be able to add more materials in COMPONENTS part of that Production order. I was looking for a BAPI which can handle this process.
    And also can any one help me by letting me know is there any Message type available for handling this process of Production order creation and Adding extyra components to it.
    I have a  message type LOIPRO (for Production Order) and associated function modle CLOI_MASTERIDOC_CREATE_LOIPRO for creation of master IDoc, but not sure can i handle the Components part in this.
    Please do send replies ASAP, its very urgent.
    Or else atleast suggest me the other ways of doing this .
    Also send me any BDC program if anyone has already developed for this.
    Thanks
    Kumar
    Edited by: Phani Kumar Peddagopu on Mar 19, 2008 6:56 PM

    Resolved .

  • Idoc generated for creation of sales order

    Hi all,
    In my project we have two different boxes-I and B.When a purchase order is created in I Box an idoc is triggered which goes to the B Box and creates a sales order.I want to do some changes in E1EDKA1 and E1EDPA1 segment in the idoc in I Box so that when it goes to B Box it will show the changed one.For example if there is EN in E1EDKA1 and E1EDPA1 segment then in B Box it will be appeared as ZA.I need to know that for this change I have to do the coding changes in which USER EXIT?The function module which is triggered during the sales order creation in B Box is IDOC_INPUT_ORDERS.
    Thanks in advance
    Raj

    Hi Raj,
    go to se37..
    enter the function module and after each segement append there is a customer exit and badi is available to add you custom code..
    in the user exit read the segement and modify the segemnt data..
    these are the below exits available for the Orders
    ORDCHG I VEDB0001 Sales Ord. Change
    ORDERS I VEDA0001 Sales Orders                  "this is the user exit for you to code..
    ORDRSP I MM06E001 Order Response for
    Purchase Order
    search--  CALL CUSTOMER-FUNCTION '011'--Fm--EXIT_SAPLVEDA_011--include--INCLUDE ZXVEDU13.
    Regards,
    Prabhudas

  • Can any one prvide documentaion for BAPI Material, Sales order and Pricing?

    Hi,
            Can any one provide documentaion for BAPI Material create and change, Sales order create and change and Pricing?
    thanks & Regards,
    Gop.

    Hi!
    TABLES: t184.
    IF NOT VBAP-PSTYV IS INITIAL.
    SELECT SINGLE * FROM t184 WHERE pstyv = vbap-pstyv.
    IF sy-subrc = 0.
    IF t184-vwpos IS INITIAL.
    IF t184-psty2 <> vbap-psty2.
    MESSAGE e987(ZSD).   "create the 987 message with SE91 transaction - ZSD mess.class
    ENDIF.
    ENDIF.
    ENDIF.
    ENDIF.
    Somehow like this.
    Regards
    Tamá

  • Worklfow driven Approvals for Inquiry/Quoatation, Sales Order and Contract,

    Hello,
    What scenarios/ processes within SAP SD are supported by standard SAP for auto workflow driven approval.
    We need workflow driven approvals for-
    Customr Inquiry/ Quotation,
    Sales Order,
    Contract
    and Credit Approval.
    Can we do these workflow scenarious in SAP?  Are they supported by std SAP.
    Thanks.

    Hi,
    I would suggest you to check the standard template in SAP workflow also.
    To check the standard template, goto transaction SWDD, and search by using structure seach, you will find the standard templatea under sales and distribution area.
    Regarding to your requiements , you need to create the new object by extend from the standard object BUS2032 by using transaction SWO1.
    [Workflow Tutorial|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417100)ID1399619950DB01372531338821066946End?blog=/pub/wlg/7288]
    Best regards,

  • How can you create a SAles order and send to customer by using IDOC

    how to acknowledge the customer after a sales order is created?

    Just to add to Pauls reply, along with output determination settings, When you would create the partner profile outbound parameters, use the Message type ORDRSP for order acknowledgement.
    regards,
    Advait

  • Creation of sales order in CRM and replicating it to Multiple ECC system.

    We have a requirement for creation of sales order in CRM and replicating it to Multiple ECC system.
    We have checked the following standard Adapter objects in transaction R3AC1.
    BUS_TRANS_MSG
    The initial flow contexts does not support target site type as R/3(SMOF_ ERPSITE). So we are not able to replicate the sales order from CRM
    to ECC.
        2. SALESDOCUMENT
    Here the initial flow contexts does not support flow from CRM -> R/3 as we don’t see the target site as CRM.
    Please let us know if the standard sap middleware objects don’t support the sales order flow from CRM to multiple ECC or is there any
    other adapter object we need to use for this.

    Hey Vijay Duvvada,
    I hope you are already referred below sap note  and which explains scope & how to do   -
    1084315 - Consulting: Information about the multiple backend scenario
    1763516 - How-to: Basic Setup of MEP
    As explained by Rohit Sharma data should be start flowing to multiple sites.
    please let me know if it does help.
    Regards,
    Arjun

  • Get the Ship-to-Party from Sales Order and Line item

    Hi all,
    I am developing one report in which I want to get the Ship-to-Party for a particular Sales Order and Sales Order Line item number.
    I can see table VBPA from I can get value of KUNNAR and so on. But my concern is that can the Ship-to-Party differ for different line items for sales Order, if yes how to get that one, any table or any function module?
    In my scenario i found out that ship-to-party only depend upon sales order and partner function not line item.
    please help me..
    regards,
    vikas.

    Hi,
    First step: Customer Creation (T. Code: XD01)
    i) Create Sold to Party (Ordering Party) with Account Group: Sold-to-Party
    ii) Create as many Ship-to-Party and Bill-to Party, if reqd, with Account appropriate Account Groups.
    iii) Match all the Ship-to-party/ Bill-to-Party/ Payer for the respective Sold-to-Party under Tab: Sales Area data, Sub-tab: Partners.
    Second Step: Sales Order Creation (T.Code: VA01)
    i) Enter Sold-to-Party at Header Level.
    ii) Enter Materials (at Line-item level).
    iii) Now, System will pop-up all the Ship-to-Party/ Bill-to Party/ Payer, Matched for the particular Sold-to-Party. Click on appropriate selection.
    OR
    Now, (if option doesn't pops-up) select the line and Double Click on to the same line. it will lead to the next page. Here, Click Tab: Partners
    Now, in Column: Partner Function, search for appropriate Partner: Ship-to-Party or Bill-to-Party or Payer.
    Remember: Sold-to-Party will be non-editable as entered at Header level.
    Repeat the same for Each Line-item.
    Regs,
    Amit K. Yadav

  • Inconsistent updation of sales group in Sales order and invoice

    Dear all,
        The sales office and sales group is properly updated in the specific sales area master data of the customer but not flowing in the sales order and subsquently in the invoice. For some documents it gets updated and for others the filed is blank.
    I have checked the master data and also the documents and found no errors. Please help in how to solve the issue. I need 100% updation of sales office and sales group in the order and invoice. Please advice how to solve the issue.
    Regards,
    Parthasarathy.R

    Dear Parthasarathy,
    Request You to post the same query in SD Forum
    You will get quick response there
    this is PP forum
    Hope You Understand
    Regards
    kumar

Maybe you are looking for

  • Vendor and customer payment

    Hi Gurus, i am developing a report to show details of vendor payment who is also a customer deducting all his payments Receivable i want to link the customer and vendor which is the fields.  Thanks Nilesh

  • How do Change the name of a mailbox iOS8?

    iOS 8.0.2 In past operating systems I been able to give short names to my different email accounts, can't work out how to edit or change the names in this operating system. Any help would be appreciated. Best Be

  • Sorting table by columns

    I have table with id and 4 measures: Id, M1, M2, M3, M4. I want to present report with the top N ids - but I do not know what measure the user will want to sort by. I can create 4 reports - each report X will present Id, M1, M2, M3, M4 and will have

  • Why Do We need Host Entries in drivers-- etc--Host?

    What does host entries do with opening the Froms?

  • Can't Customize Multiple Contacts With Different Ringtones

    I am copying this from a different Blackberry Forum sight I posted at.  I can't get different ringtones for different contacts, I already got the phone calls but I want the text messages different just like I have the calls customized. Ok, call me st