ALE IDOC for Purchase order to sales order

Hi Friends,
I am sending P.O. from one system to other,using message  type ORDERS and basic type ORDERS05 .
On receiving system I am using inbound process code ORDE.
Sending is successful but on receiving side its giving me error, VKORG, VTWEG, SPART cannot be determined for customer 0000000001 .
So please suggest me some solution on this ,,
Proper points will be rewarded to helpful answer.
Thanks,
Brijesh........

Hi brijesh,
I am also working on  creating PO to SO . The problem you are getting is one of the problem i have faced . But we can solve this easily.
In your outbound idoc you have 4 fields with E1EDK14.
This segment stores the values for SPART,VTWEG,VKORG .
So in the qualifying fields of this segment 006,007,008 should be there for the above fields respectively  and their values in the orgid field.
I have written the coding in outbound side user exit.
MM06E001 in the 11th function module .
so try this it will solve the problem.
Thanks
vamshi

Similar Messages

  • Inbound idoc for orders05 to create sales order

    Hi all,
    I am creating a sales order through idoc (ORDERS05). I am getting a flat file, which is being converted into idoc from XI side and i need to add certain things and validate inside the function module IDOC_INPUT_OREDERS. I am using the exit call customer function '002' (EXIT_SAPLVEDA_002)  in it.
    My confusion is regarding the population of control records. If some validation fails, i need to set current status as 51. Which field i need to update in this exit in order to achieve this. What are the other control fields that i need to update for an inbound idoc please specify.
    Also, i have another doubt, what is the use of DXBDCDATA in that exit. Do i need to do any BDC related work in inbound idocs.
    I am new to inbound idoc scenario. But havn't found enough tutorial related to standard idoc generation..
    thanks

    Hi,
    I think, you should fill the validation errors in EXIT_SAPLVEDA_011 (SD EDI Incoming Orders: Final Processing of Internal Error Tables) which subsequently update the status records of IDOC.  Check line NO 56 of function module "IDOC_INPUT_ORDERS".
    Regards
    Vinod

  • Urgent: Creating ALE IDOC for SALES ORDER

    hi
    please tell me <b>step by step procedure to create ALE IDOC for SALES ORDER?</b>
    reward for sure
    regards
    ravish

    Hi,
         ALE IDOC
    Sending System(Outbound ALE Process)
    Tcode SALE ? for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 ? Create Model View
    Tcode BD82 ? Generate partner Profiles & Create Ports
    Tcode BD64 ? Distribute the Model view
    Message Type MATMAS
    Tcode BD10 ? Send Material Data
    Tcode WE05 ? Idoc List for watching any Errors
    Receiving System(Inbound ALE )
    Tcode SALE ? for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 ? Check for Model view whether it has distributed or not
    Tcode BD82 -- Generate partner Profiles & Create Ports
    Tcode BD11 Getting Material Data
    Tcode WE05 ? Idoc List for inbound status codes
    ALE IDOC Steps
    Sending System(Outbound ALE Process)
    Tcode SALE ?3 for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 !V Create Model View
    Tcode BD82 !V Generate partner Profiles & Create Ports
    Tcode BD64 !V Distribute the Model view
    This is Receiving system Settings
    Receiving System(Inbound ALE )
    Tcode SALE ?3 for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 !V Check for Model view whether it has distributed or not
    Tcode BD82 -- Generate partner Profiles & Create Ports
    Tcode BD11 Getting Material Data
    Tcode WE05 !V Idoc List for inbound status codes
    Message Type MATMAS
    Tcode BD10 !V Send Material Data
    Tcode WE05 !V Idoc List for watching any Errors
    1)a Goto Tcode SALE
    Click on Sending & Receiving Systems-->Select Logical Systems
    Here Define Logical Systems---> Click on Execute Button
    go for new entries
    1) System Name : ERP000
    Description : Sending System
    2) System Name : ERP800
    Description : Receiving System
    press Enter & Save
    it will ask Request
    if you want new request create new Request orpress continue for transfering the objects
    B) goto Tcode SALE
    Select Assign Client to Logical Systems-->Execute
    000--> Double click on this
    Give the following Information
    Client : ERP 000
    City :
    Logical System
    Currency
    Client role
    Save this Data
    Step 2) For RFC Creation
    Goto Tcode SM59-->Select R/3 Connects
    Click on Create Button
    RFC Destination Name should be same as partner's logical system name and case sensitive to create the ports automatically while generating the partner profiles
    give the information for required fields
    RFC Destination : ERP800
    Connection type: 3
    Description
    Target Host : ERP000
    System No:000
    lan : EN
    Client : 800
    User : Login User Name
    Password:
    save this & Test it & RemortLogin
    3)
    Goto Tcode BD64 -- click on Change mode button
    click on create moduleview
    short text : xxxxxxxxxxxxxx
    Technical Neme : MODEL_ALV
    save this & Press ok
    select your just created modelview Name :'MODEL_ALV'.
    goto add message type
    Model Name : MODEL_ALV
    sender : ERP000
    Receiver : ERP800
    Message type :MATMAS
    save & Press Enter
    4) Goto Tcode BD82
    Give Model View : MODEL_ALV
    Partner system : ERP800
    execute this by press F8 Button
    it will gives you sending system port No :A000000015(Like)
    5) Goto Tcode BD64
    seelct the modelview
    goto >edit>modelview-->distribute
    press ok & Press enter
    6)goto Tcode : BD10 for Material sending
    Material : mat_001
    Message Type : MATMAS
    Logical System : ERP800
    and Execute
    7)goto Tcode : BD11 for Material Receiving
    Material : mat_001
    Message Type : MATMAS
    and Execute --> 1 request idoc created for message type Matmas
    press enter
    Here Master Idoc set for Messge type MATMAS-->press Enter
    1 Communication Idoc generated for Message Type
    this is your IDOC
    Change Pointers
    I know how to change the description of a material using ALE Change Pointers.
    I will give the following few steps
    1) Tcode BD61---> check the change pointers activated check box
    save and goback.
    2) Tcode BD50---> check the MATMAS check box save and comeback.
    3) Tcode BD51---> goto IDOC_INPUT_MATMAS01 select the checkbox save and comeback.
    4) Tcode BD52---> give message type : matmas press ok button.
    select all what ever you want and delete remaining fields.
    save & come back.
    5) 5) go to Tcode MM02 select one material and try to change the description and save it
    it will effects the target systems material desciption will also changes
    6) goto Tcode SE38 give program Name is : RBDMIDOC and Execute
    give Message type : MATMAS and Executte
    ALE/IDOC Status Codes/Messages
    01 Error --> Idoc Added
    30 Error --> Idoc ready for dispatch(ALE Service)
    then goto SE38 --> Execute the Program RBDMIDOC
    29 Error --> ALE Service Layer
    then goto SE38 --> Execute the Program RSEOUT00
    03 Error --> Data Passed to Port ok
    then goto SE38 --> Execute the Program RBDMOIND
    12 Error --> Dispatch ok
    Inbound Status Codes
    50 Error --> It will go for ALE Service Layer
    56 Error --> Idoc with Errors added
    51 Error --> Application Document not posted
    65 Error --> Error in ALE Service Layer
    for 51 or 56 Errors do the following steps
    goto WE19 > give the IDOC Number and Execute>
    Press on Inbound function Module
    for 65 Error --> goto SE38 --> Execute the Program RBDAPP01 then your getting 51 Error
    Regards

  • Idoc for purchasing order

    can any1 explain the steps needed to send a purchase order through ALE/IDOCS
    pls explain it with reference to PURCHASE ORDER

    Hi,
    cehck the same...
        This method is used for distributing transaction data like purchase order, sales order etc.
        In this method the extra transaction code that we use is we41 (outbound process code) and we use this in the message control tab in the partner profiles. 
    The transaction codes that are required for this method are
    We81
    We30
    We31
    We82
    We21
    We20
    Bd64
    Nace
    Me22n (purchase order), va02 (sales order) etc.
    Ex: purchase order.
    Message type: ORDERS
    Idoc type: ORDERS05
    Outbound process code for purchase order: me10
    The steps that are to be followed are:
    Check for the message type in the transaction in we81.
    check for the idoc type in the transaction we30.
    check we82 in which the link between message type and idoc type is there.
    create the port in we21.
    Configure the partner profiles in we20.
    Click on the + button outbound parameters and give the message type, receiver port
    Idoc type.
    Now press on the message control tab, this is the place where u give the outbound process code. The message type in the message control is the output type that is used in the nace transaction.
    Create a distribution model in bd64.
    Go to purchase order transaction (me22n).and press the messages tab
    In the messages tab give the output type and the distribution medium as distribution-ale and then save it.
    Reward if helpful.
    Regards,
    Nagaraj

  • 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

  • Creating an IDOC for purchase order

    Hello gurus,
    I want to generate an IDOC for purchase order.
    The Logical System, RFC connection, ports definition is already defined.
    In my system i have 800 client as source/sender and 100 client as target/reciever.
    On Outbound side-> In Partner profile
    I defined-
    1. Partner No.- devclnt100
    2.Type- US (User)
    3. Agent - SAPUSER
    In Outbound parameters-
    I created message type as Orders.
    One thing to note that my partner system is LS i.e. Logical System
    Then in Outbound Options-
    I mentioned Reciver Port - 800Port
    Output Mode- I selected "Transfer Idocs immediately"
    & "Do not start subsystem"
    In Idoc type-
    I gave following information-
    Basic Type - Orders05
    In Message Control tab i mentioned-
    Application - EF
    Message Type - NEU
    Process Code - ME10
    In NACE Transaction Code-
    I selected EF Purchase Order as my condition for output control
    In that- In output types-
    I selecte NEU and double clicked. I checked whether Access to Conditions check box is checked and multiple issuing is checked.
    In Dialog structure-Processing routines I checked that -
    For Output type - NEU
    Application - EF
    Processing routines are defined-
    medium-Distribution ALE
    Program -RSNASTED
    Form Routine - ALE_PROCESSING
    I think these are the very basic settings that need to be done for creation of Idoc.
    Now when i create a PO and then SAVE it an IDOC must be generated.
    But when i go to transaction Code WE02. It shows me message "No Idocs genereated".
    What is the problem? Where am i going wrong?

    Hi Yayati,
    Here are all the settings that you need to do. I am not sure which all settings are present so kindly confirm.
    Sending side Client800:
    1. WE20 - under LS - Outbound parameters - message type = Orders , basic type = Orders05
    2. BD64 - message type - sender = client800, receiver = client100, message type = Orders
    3. NACE - App = EF - Output Types - Processing Routines - Add medium = A (Distribution (ALE)) , Program = RSNASTED, Routine = ALE_PROCESSING.
    4.  NACE - App = EF - Output Types - Partner Functions - Add medium = Distribution (ALE), Funct = VN.
    5. Name - App = EF - Condition Records - Output type = NEU , Choose ur combination (Mine is DocType/Purc Grp)
         Pur.Doc Type = NB (Execute) , Add row Medium = A ,Function = VN and other details u choose.
    Receiving side Client100:
    1. WE20 - under LS - Inbound parameters - message type : Orders ; Process Code : ORDE
    2. BD64 - message type - sender = client800, receiver = client100, message type = Orders
    For the PO which you have created, go to the PO in ME23N, click on messages .
    There should be a line : Output = NEU, Medium = Distribution (ALE)... etc.
    If its present then the configuration was correct.
    If it has a yellow triangle means it was not processed.
    Regards,
    Jovito.
    Edited by: dsouzajovito on Dec 30, 2010 10:24 AM

  • ATP,confirm quantity for Purchase Order related Sales Order

    Hi everybody,
    I have purchase requisition related sales order item. I created purchase order with this PR.
    I entry confirmation date and quantity on the PO.
    Sales order item's delivery date equal to purchase order item's confirmation date.
    Sales order item's confirmed quantity eq purchase order item's confirmed quantity. It is ok for me.
    But, goods receipt not do yet for this purchase order and sales order stock = 0.
    If I run VL10N for this sales order, I can create delivery.
    I wants to see availilable sales order stock item on the VL10N items. How can I see?
    or
    If no goods receipt for sales order items then sales order item confirmed quantity can equal 0. How can I do?
    Best regards
    Gulay Celik

    Hi
    You can meet your requirement in multiple ways
    1) Modify the requirement routine for copy control from Sales order to Delivery  that DO not create the delivery for third party orders unless the GR is posted for the respective sales order.
    2) IF you have implementded Inbound Delivey functionality in your system, You can change the availabiltity situation every time you modify the GR dates and times. Modify the PO user exit that when ever a new confirmation Key LA is entered in the purchase order it goes and updates the schdule line dates and quantities in the order based on the dates entered in the LA confirmation key.
    and even if delivey gets created also what is the problem ? The GI cannot be posted though unlsess there is sufficient stock.

  • Purchase Order triggering Sales Order using Inbound Idocs

    Hi All,
    Can any one explain the flow of Purchase Order triggering Sales Order using Inbound Idocs..??
    Thanks & Regards
    Anoop

    Use search tool to find sample like Integrating MM & SD Modules in Same Client to Create Sales order in Supplying Company Code Using PO raised in Receiving Company Code By I-Doc Message Type ORDERS Part1,  Part 2 and Part 3.
    Regards,
    Raymond

  • Using IDoc to convert Purchase Order as Sale Order between two Company code

    Dear Experts,
    We are in need of implementing IDoc.
    We have 2 Company codes. One in US and another in India.
    The US Company receives Customer Order and PR is generated automatically for the Third Party Sale Order.
    The PO is also generated based on this PR against the Vendor code (Indian Company actually created as a Vendor code also)
    Now, the PO from Us Company should be converted as Order in Indian Company. The PO sending Plant is the Customer in this case.
    Now,
    1. How we go about this using IDoc.
    2.How do we capture the Sold-to-Party ( US Compnay in thsi case) and the Ship-to-Party ( Direct Customer of US Company)
    Please share your experties on this.
    Regards,
    Ramki

    Hi Ramki,
    Since the goods are selling between 2 company codes.. you should ideally use inter company process i.e. choose plant as Indian plant and etc..pls search the forum for intercompany process set up or refer to the setup required for Intercompany :
    [http://www.sap-img.com/sap-sd/inter-company-sales-process.htm]
    The above setup will help you in dealing with your question 2.
    On question 1: Once you setup the intercompany you won't require IDocs setup.
    I hope this helps.
    Regards,
    Raghu.

  • Generating idoc for Purchase orders - ORDERS05

    Hi,
    Can you please let me know how to generate idoc for Purchase orders - ORDERS05-manually, not by activating change pointers.

    hi
    i believe u wont have this functionality as it is a transcational data and the one way of doing it by configuring output types only.

  • Standard Idoc for Purchase order?

    Hi,
    Can you please let me know what is the Standard Idoc for Purchase order?
    POINTS WILL BE AWARDED

    Hi Guest
    You can use it, if all your required field are in that Idoc basic type.
    http://sap.ittoolbox.com/documents/popular-q-and-a/extending-a-basic-idoc-type-2358
    http://abapprogramming.blogspot.com/2007/11/abap-idocs-basic-tools.html
    Award points for helpful answers

  • Standard Idoc for Purchase Order Receipt?

    Hi Experts,
    Is there a standard idoc for Purchase Order Receipt?
    Please let me know.
    Thanks,
    Rakesh.

    here we go:
    Goods Receipt MIGO IDOC

  • Automatic creation of Purchase req form sales order

    What are all the  settings required for automatic creation of purchase requisition  from sales order( from master data and spro)
    Can any one please help me out. Iam new to this topic

    Material master data: purchasing view must be updated with puchasing group and so on.
    sales data: the item categotu group is BANC
    Sales order: the standard customizing determine the TAB item category, in the related schedule line type there is the purchase requisition document.
    have a look to this link
    <a href="http://help.sap.com/saphelp_47x200/helpdata/en/dd/5601d4545a11d1a7020000e829fd11/content.htm">http://help.sap.com/saphelp_47x200/helpdata/en/dd/5601d4545a11d1a7020000e829fd11/content.htm</a>
    Roberto

  • Automatic posting of purchase order from sales order

    hiii
    experts,
    i m doing automatic purchase order from sales order. i have generated purchase requisition number from sales order now when i m trying to do automatic po the system says no suitable purchase requisition available.I have maintained info record, source code,automatic po tick in material master and in vendor master.what could be the problem .waiting for ur valuable inputs.
    warm regards
    thanks
    subhash kulkarni

    Hello,
    Please check all the things mentioned by our experts e.g Source allocation ,infor record, source list.
    Beside that I would suggest check document flow whether already PO is created or not.
    If every thing is in place then try to create PO with reference to PR by transaction ME21N & see what error you receives.
    Hope this help you ,
    Regards,
    Prashant

  • LSMW for open notifications,open sales order & open service order

    Hi Gurus,
    Can anyone please tell me how to go about writing LSMW's for open notifications,open sales order & open service order.
    This is for service processing in CS ,where has the scenario is 
    Create Notification (IW51) --> create Sales Order(Multiple Line Items) ( VA02) --> Create Service Order ( IW32)
    Service order is automatically (Item Proposal) generated w.r.t Sales Order (multiple line items)
    How to I do the recording for transactions in such a scenario.
    Please suggest!
    Thanks!
    Vinod

    you can use the below LSMW IDOC method
    SALESORDER_CREATEFROMDAT2       Sales order: Create Sales Order
    SERVICENOTIFICATION_CREATEFROM  Create service notification
      SERVICE_CREATE                  Creation of a Service Master Record
    CARNOT                          Delivery: Shipping notification
    DESADT                          Shipping notification
    DESADV                          Delivery: Shipping notification
    INOTIF                          Notifications
    INTUPD                          Notification Status Update
    ISU_ADVICE                      IS-U Deregulation: Notification
    ISU_CHANGE_REQUEST              IS-U: Notification of Change to
    ISU_MAINT_SO                    IS-U Dereg.: Notification of Dev
    ISU_REMITTANCE_ADVICE           Transfer Notification

Maybe you are looking for

  • Lumia 1020 Echo During calls

    Hi there When i make or receive a call the other person on the phone hears me clearly and I hear them clearly but when they speak, THEY hear an ECHO. This has only started recentyl. I have tried turning speaker volume down and resetting the 1020 etc

  • SSL connections

    Hi, If I want to make an SSL connection using JSSE from within WebLogic to another JSSE based Java application on a remote machine, how would I make this work without turning WebLogic's SSL property off? It seems that WebLogic's SSL libraries get inv

  • Setting Default Variant for Report Trans

    Hi All, Is there a way to set a default Variant to a reporting transaction? for example for ME2N how do I set a default Variant to be imported to the selection screen automatically once the report transaction is called? This is useful if the user use

  • Changing the bounding box size

    When I go to print an image in Photoshop CC, a dialogue box appears and on the left-hand side is the image to be printed. Bordering the image are small diagonal lines which I'm assuming are the bounding box. The distance between the edge of the page

  • Hide Group Body

    Hello, we have a few reports, which group by various things. In those reports we are only interested in aggregates of this group, like sum or average. The full client can hide the group body. But now we are evaluating the migration to web intelligenc