Reg: IDOC Purchase Order

Hi All,
I have a requirement to trigger a Purchase Order from Stock Transport Order (STO).
So whenever the STO is created, IDOC needs to be triggered & create a auto PO in the same client.
I tried with some examples from forum thread, but all goes in vain.
Could you please advice, what are all the steps needed to achieve this with in a same client. I have created a dummy logical system for Inbound processing with tRFC. Could you please advice this step is really needed.
Thanks & Regards,
Uswin
Edited by: Uswin B on Nov 21, 2011 11:40 AM

1. You need to setup output determination on the STO (transaction NACE, Application EF). You can create output type similar to NEU and assign it to o/p determination procedure linked to your STO document type. You can't use NEU though as it is configured to create ORDERS message type IDoc. To create PO you need message type PORDCR1.
2. You have to write your own function module to output IDoc of message type PORDCR1 and call MASTER_IDOC_DISTRIBUTE to trigger it. It is easy if you only map the minimum required fields so that the IDoc doesn't fail in syntax and take it from there. There are no standard functions that I know that created PORDCR1 message type IDoc (others chip in if you know). You need to create your own outbound process code with ALE processing as medium in the output type.
3. You can set the IDoc from the output type with direct 2 (as inbound) and set up partner profile in the output condition record to point to your inbound LS partner profile
4. You need to assign inbound message type:PORDCR1, IDOC type PORDCR101 and Process code: BAPI to your receiving LS partner profile
Those are the settings you need to do. I can't elaborate as there are many things specific to your implementation

Similar Messages

  • IDOC. purchase order

    Hello!
    I want to create a purchase order with IDOCs and I don't know how to do it.
    I need to know the message and function module used in the transaction WE20.
    If somebody knows how to do it, please write me.
    Thanks.
    Regards.

    Hi,
    You should use Message Determination in order to make the system creates an Idoc automatically when a Purchase Order is created/modificated in the system.
    This is customized via IMG activities under next path: Materials management > Purchasing > Messages > Output control. Application for PO is EF. Output type is NEU and medium processing is EDI or ALE for Idocs. Oparation 1 (new) and 2 (change). You have to define schemas and partner roles as well.
    Finally, Partner profiles have to be defined in WE20 transaction. ORDERS message have to be defined in (for ORDERS05 type for example) in output parameters. In Mesage Control tab, define two lines:
    PO creation --> Application EF, Message type NEU and Process code ME10
    PO change --> Same but mark change message flag. You also could define ORDCHG using process code ME11 if you want to maintain different message for PO modifications.
    Regards,
    Archit

  • Reg: Open Purchase order

    Hi Guru,
    as per the Budget change,
    One of the tasks that has to be done as a part of the change in budget is the updation of info-record condition records in open purchase orders.
    In terms of open purchase orders there are two scenarios..
    Fully Open and Partially open.
    For Fully open purchase orders -  In the Purchase orer we have to change manually or what i will do.
    For Partially Open Purchase orders - Business will take responsibility.
    thanks
    kannan somasundaram

    Hi All,
    the budget change date is 07.12.2008. but we create some purchase order before the 07.12.2008. for these purchase order also we need to get 10% instead of 14%.
    how can i have to change that details.
    please give me the solution on this issue.
    thanks

  • Reg:Return purchase order

    Dear All,
    I have created a returns PO with ED (821) now in J1IS while capturing the excise I've maintianed different value from the purchase order since the vendor has come up with different value so I changed it in j1is and migo now while doing MIRO i'm getting the values from PO instead of MIGO. How to solve this

    Hi,
    In standard MM, SAP send only change on Purchase Order. See in the customizing if it's possible to resend all ( or see with your functionnal people).
    Rgds

  • Reg Amended Purchase order

    Hi friends
    iam facing problem with amended purchase order.
    when ever i make any changes to any line items in spool iam getting only those line items which got changed .
    but my client want me to display all the line items . i copied standard script MEDRUCK and modified. 
    Pls help me with the solution
    Thnaks

    Hi,
    In standard MM, SAP send only change on Purchase Order. See in the customizing if it's possible to resend all ( or see with your functionnal people).
    Rgds

  • Reg: ME21 Purchase Order Creation BDC Codes

    Hi All,
    Ritenow Im working with ME21 purchase order creation,
    i have to create a upload program for this past twodays im geting hectic with this prog, if i create a prog using me21n transaction it is not running, and in ME21 i cant record in SHDB( it throws error messg as fill mandatory flds, but i dont hav data for that flds).
    Anyone plz let me know, how to record it and how to use step loop in item overview/details, i would like ot close it ASP.
    Thanks in advance.

    hi
    Creating an ABAP program from a BDC recording
    Step 1
    Execute transaction recorder, transaction SHDB or recording button via transaction SM35.
    Step 2
    Enter name for recording (can be anything)
    Step 3
    Enter transaction to be executed
    Step 4
    The transaction will now be executed, simply perform the actions you want to record. enter some values for the mandatory fields.
    Step 5
    Once you have finished the recording and selected the save button or exited the transaction you
    Will be presented with the following information. This details the screens and fields that have been
    Processed during the recording and will be used as a basis to create BDC ABAP program.

  • Reg:Import Purchase Order Scenario

    Hi All,
        In the Import Purchase Order Scenario SVB load will come, which will display in MIRO after the PO creation
        i have an requirement that in the MIGO transaction i just want to make the SVB load to 0,because if the SVB load comes it just adds to the inventory(i.e material cost which is wrong), could you please say how can i prevent the SVB load addition to the inventory or how can i make the SVB load to 0.

    HI There,
    Define a seperate condition type for SVB in M/06 make the condition category as delivery cost. Mantain this seperate condition type for SVB load value in PO, in pricing procedure for the SVB condition type mantain an account key. Then in OBYC for this account key mantain the GL account in which you want to record the debit SVB amount.
    Now when you will do GR the SVB value will not get loaded in material.
    Regards,
    Sujoy

  • Reg. Purchase order against sales order E & L combination

    Dear Experts
    In our company we create Sales order - Purchase requistion-Create purchase order - Grn
    in the above flow. we are doing subcontracting with outside vendors, for that we are raising process order (ME21N - In Account assignment - Sales order number is assigned)
    For the above how to configure in SPRO, what are steps. pls advise.
    Thanks
    Rajakumar

    Hi,
    Instead of Account Assignment Category "E", try it with "M" and check, it should pick up Stock Account instead of Consumption. And follow the below process, there is not any configuration for this.
    Config: - SPRO > MM > Purchasing > Account Assignment > Define Combination of Item Categories/Account Assignment Categories > Here maintain combination of "M" and "L" if required.
    Subcontracting for Sales Order Stock: -
    Purpose: - Subcontracting is also possible in conjunction with sales order stocks. The subcontracting orders are account-assigned to a sales order. Thus, the components are not transferred (using a transfer posting) to the "stock of material provided to vendor" but are directly withdrawn from the sales order stock the time of the goods receipt. The material manufactured is also posted to the sales order stock.
    The cost of subcontracting is then debited to the sales order.
    Since the components are not transferred to the "stock of material provided to vendor", it is recommend that you use a transfer posting to transfer the provided components to a new storage location (for example, 9999). This enables you to obtain an overview of those stocks that are physically located at the subcontractor. This information is particularly important when you carry out a physical inventory of the sales order stocks.
    Features: -
    Withdrawal from Stock of Mat. Provided or Sales Order: -
    For components that are managed in sales order stock, you can define whether the components are to be withdrawn directly from each sales order or from the stock of material provided to vendor. You manage this via the dependent requirements indicator for individual customer requirements and collective requirements (MARC-SBDKZ).
    You can maintain this indicator in the following places:
    In the MRP view of the material master record (MRP 4)
    In the explosion types for the BOM item (in Customizing for Production in the step Basic Data -> Bill of Material -> Item Data -> Define explosion types )
    Configuring the explosion types has priority over the configuration in Inventory Management.
    If the indicator is set at Collective requirements only (2), the materials are withdrawn from the stock of material provided to vendor. If this indicator is set any other way, the system withdraws materials from sales order stock.

  • Reg:IDOC -sales order creation

    Hi All,
         I am trying  to create sales order through IDOCS.Basic type is SALESORDER_CREATEFROMDAT201.
    My requirement is to know any user-exits where in I need to add to my code to hardstop sales order creation if the storage location which I am passing is marked for deletion.
    Kindly reply as soon as possible.
    Regards,
    Kaveri

    Hi,
    Check this one it will help u how to enhance the idocs.
    If we wnat to extend the idoc use the segments for adding the fields. use the tcode WE30 and we31.
    Please reward points if it is useful.
    Go through the following Steps For ALE/IDOC
    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,
    satish.

  • IDOC Purchase Order Confirmation

    Hi, I would like to create a line item confirmation ctegory via an IDOC ie uodating table EKES, any idea how this can be done using an IDOC? ORDRSP works for updating the acknowledgement (AB) but if I want to update my own category, any idea?
    Cheers

    Hi Pritesh,
    With standard ORDRSP it is not possible to post more than one category. It will either post "AB" or your custom category which ever is first in sequence. IDOCT_INPUT_DELVRY will necessarily create an inbound delivery . So the only option you have is to create CUSTOM function module / message type / process code to achieve this.
    Cheers.

  • Reg: Block purchase order item level using MEMASSPO

    Hi,
    I am checking to see if we can block PO item level  in MEMASSPO.There is field for deletion indicator but i could'nt find any option to block.I searched forum but i found that deletion indicator LOEKZ value could be S for blocking and L for deletion.I want to know if any enhancemet or exit is required to include the feature of blocking PO item through MEMASSPO.Any information on this would be appreciated.Thanks in advance

    why do you want to set the block?
    Blocking an item is from s SAP point of view a short term solution until you have decided about a final solution. E.g. you have not yet an accurate price, hence you wont allow a GR, so you set a block.
    But blocking does not close a business case. Someday you want archive old purchasing documents, but archiving is only possible for not blocked  items.

  • Reg idoc for purchase order

    Dear  Friends,
    I am trying to transfer data of purhcase order (ME21) (with header and item details) from one client to another client.
    I am using idoc ORDERS05 for updating the data.
    But i am unable to map the fields of the ME21 to the fields of segments of the idoc ORDERS05.
    Note:  I am using these fields of me21.
    *header details
        ekko-ebeln.                             "Purchasing document
        ekko-bukrs.                             "company code
        ekko-bsart.                             " Purchasing Document Type
        ekko-ekgrp.                             " Purchasing Group
        ekko-ekorg .                             " Purchasing Organization
        ekko-lifnr.                              " Vendor Account Number
        ekko-aedat.                            "date on Which Record Was Created
        ekko-pincr.                            "Item Number Interval
        ekko-spras.                            "language
        ekko-zterm.                             "Terms of Payment Key
        ekko-waers.                              "Currency Key
    *item fields
        ekpo-ebelp.                             "Item Number of Purchasing Document
        ekpo-ematn.                            " Material Number
        ekpo-txz01.                            " Long Material Number for MATERIAL Field
        ekpo-werks.                          "Plant
        ekpo-lgort.                           " Storage Location
        ekpo-matkl.                          " Material Group
        ekpo-menge.                         " Purchase Order Quantity
        ekpo-meins.                           " Purchase Order Unit of Measure
        ekpo-netpr.                         "Currency amount
    pls help.
    Regards,
    Vinod Kumar.

    Hi
    chek with currect version of Message  type,if it's not in message type do customise segement's.
    cheers
    venu

  • How to Send Purchase Order through EDI/IDOC.

    Hi Experts,
    We are using SAP ECC.5. And intending to send the Purchase Order to Supplier through EDI/IDOC and Receive the Inbound Acknowledgement.
    Appreciate, if you could help me, the required Configuration details for outbound and inbound (PO & Acknowledgement).
    Reg
    Kumar

    Hi Kiran
    Many thanks for the response. It is true that by changing the message type to EDI can generate idoc. What is not clear is any other config we need to do interms of Message generation, Resubmitting failed IDOC etc..
    Out requirement is that we would generate the IDOC for New and changed docs and send to external EDI converter.
    Inbound, receive the IDoc and post the acknowledgement.
    Appreciate, if you could forward any document link which can explain the details.
    Reg
    Kumar

  • How to find the number of idocs generated for a customer on the basis of his purchase order in a day ?

    How to find the number of idocs generated for a customer on the basis of his purchase order in a day ?

    Dear Friends,
    I am absolutely agree with your answer .
    But my question is,
    Lets say.....
    One customer sending X number of purchase orders in a day , so how many IDocs generated on that specific day for that specific customer .
    So, Question is , How can we find the no of sales orders(IDocs) generated for the customers on the specific day ?
    Hope you all understood my requirement .
    Thanks & Regards,
    Aditya

  • Purchase order and IDOC

    Hi gurus,
    can anyone send all the configuration steps involved when i save an Purchase Order then an idoc has to be generated
    and send to PRD .
    Pls help me.
    Thanks and regards,
    Rajeshwar.

    thanks

Maybe you are looking for