Create idoc and send the purchase order

Hi all,
In transaction code ME22N when the items in PO is changed then it should make delivery zero and in another system another delivery should be created that should be done via IDOC...
so please help me in finding BAPI or FM to send IDOC to another system...
IF u have any question please ask me, i ll tell the requirement...
thanks in adv...

Hi pawan ,
Check this link, it contains info about Sending IDocs to an External System
Link: [http://help.sap.com/saphelp_bw/helpdata/en/52/16ae23543311d1891c0000e8322f96/content.htm]
Regards,
Anand

Similar Messages

  • Creating inbound delivery for the purchase order line items

    Hi Experts,
    Please let me know how can I create inbound delivery for the purchase order line items?  Say, I have a purchase order with 5 line items in it.  I wanted to create an inbound delivery for only 2 line items at this point of time.  Which SAP Standard transaction I have to use and what all  data I need to populate?  I would appreciate any help on this and will reward the right answer.  Please let me know.
    Thank you in advance.
    with regards,
    Muthu Ganapathy.

    Hi,
    While creating the inbound delivery (VL31N), intially all the items will be shown, see the advance shipping notfication - from the vendor for which he has send confirmation & rest items you can delete simply & save. & next time when the vendor sends rest advance shipping notifcation (confirmation), you can receive them.
    Hope this answers your query.
    Regards
    Irfan.

  • Send the purchase order to several email addresses.

    Hi, everybody
    we are in a clasic scenary. SRM 4.0.
    does anybody know how I can send the purchase order (output is configured like automatic output by email) to several email addresses.
    Any idea.
    Jorge

    Has anybody tried to do a bespoke development in order to send the purchase order e-mail to more than one address.
    Alternatively can the PDF file be sent to a central folder or something like that. 
    Any advice would be greatfully received.
    Thank you
    Karen

  • Setting for Sending the purchase order via EDI

    Hi,
    I have no knowledge on the Sending the Purchase Order via EDI.
    What is the setting that need to do in MM side?
    Anyone has any idea?

    Hello Janice,
    Please refer the below LINKs which would provide you clear approach for configurational task of sending PO through EDI.
    [LINK|http://help.sap.com/saphelp_46c/helpdata/en/dc/6b7c9f43d711d1893e0000e8323c4f/frameset.htm]
    [LINK 2|http://www.erpgenie.com/sapgenie/docs/advanced_guide_to_edi_configuration.doc]
    Regards,
    SARTHAK

  • Creating Idoc and sending it to its own...

    Hello All,
    The functional design specified that an inbound function module needs to be created to process a custom IDOC, let's say ZMMDLRTL, and using the data from the segments from this basic type ZMMDLRTL, I need to create another IDOC of basic type PORDCR101 to create a PO. This PO IDOC would then have to be posted to the same system where the inbound function module that would process the ZMMDLRTL IDOC. So this is just like creating an IDOC and sending it to yourself right?
    I used the function module MASTER_IDOC_DISTRIBUTE to create the PORDCR101 Idoc and sends it to itself. But now I am getting an error status 20, which is "Receive of IDOC is its own logical system". I just need some inputs on this.
    Thanks,
    Kristine

    Hi!
    In two words - to avoid this error you have to send PORDCR101 to another logical system pointing to the same client and make corresponding settings in distribution model (as you use MASTER_IDOC_DISTRIBUTE).
    Proceed as follows:
    1. Create a "dummy" logical system name, say LOGSYSD. This dummy logical system will serve as the receiver system in the distribution model.
    2. Using SM59 create RFC-destination LOGSYSD for the dummy logical system. The RFC-destination addresses the same client.
    3. Create a distribution view in BD64 with your "real" logical system for client as the sender and LOGSYSD as the receiver for your message type.
    4. Generate partner profiles for distribution model using BD82.
    5. Using WE20 create inbound parameters for your message type for <b>"real"</b> logical system.
    Hope it helps.
    Regards,
    Maxim.

  • How to create idoc and send it frm one sap to another sap

    hi,
    can anyone tell me the complete procedure of creating the idoc and sending it to another sap r/3
    how to create rfc destination, partner profiles, port and outbound parameter and inbound parameter
    thanks

    Hi Azhar,
    Go through the following Links
    IDOC
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sappoint.com/abap.html
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.allsaplinks.com/idoc_sample.html
    Go through the following Steps for Creating IDoc Via  ALE
    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
    Sreeni

  • Need to Reverse and Close the Purchase Order.

    Hi,
       I need a PO to be closed at the current invoiced
    amount.I GRNd the whole amount, but need this reversed and the PO
    closed. Pls let me know the ways to achive this.
    Thanks
    Rakesh.

    Question1: I need a PO to be closed at the current invoiced amount
    If do not want to process the current invoice then please select the "final invoice" indicator
    in invoice tab in purchase order tab (ME22N - transaction)
    Question2: GRNd the whole amount, but need this reversed and the PO
    Once you cancel the material document invoice will get revese automatically and NO need to do MR8M
    The histroy will be updated in purchase order histroy.
    Hope it will helps to you ||
    Thanks/
    Shrinivas

  • Send the purchase order by email with footer notes

    Hi,
       I am able to sent PO by email as attachment. 
    But Additionally I need to add footer note( like Confidential..so on)  in email content. Is there any way to do it..
    Pls help me...
    Thanks
    Rays

    Create spooll..
    Read spool and convert it into PDf file
    Thend send attachemnt(pdf) with footer note using FM SO_NEW_DOCUMENT_ATT_SEND_API1

  • Email Sending of Purchase Order Created versus Print Output

    Dear All,
    I have been successful in sending the Purchase Order created as a PDF Attachment in email.
    The problem i am facing is in the formatting of the attached output.
    The attachment has different bold characters as compared to the print output of the PO , though both the outputs are using the same sapscript.
    I am not able to find the reason for the difference.
    Only because of this reason, my delivery is on hold.
    Please guide me on how to find where the difference could be and how to rectify it.
    Thanks & Regards,
    Bhavika

    Could you tell us which fonts you tried?
    What device type did you choose? (SPAD transaction, select your output device to determine the device type)
    Could you upload TrueType fonts (one normal, one bold) with RSTXPDF2 program (do not tick "do not embed font in PDF" option so that the font is embedded in the PDF file)?
    Did you make sure that your font is not converted to another one? (SE73, printer font, choose your device type, click conversion button, and check what is the converted font)

  • Create additional field in sales order item and copy to purchase order item

    Dear SAP Gurus,
    I am hoping that someone could help me by providing me with how to implement the following 2 requirements in the SD order and in the purchase order.
    1. I am wanting to add a custom field to the SD sales order item copying a value from the vendor customer master.
    2. I then want to add a custom field to the purchase order item and copy the value from my custom field in 1. to this new custom field..
    Can you please advise how I would go about implementing the above requirements?  I am assuming that there are exits to allow me to implement these 2 requirements.
    Many thanks
    Henry

    Hi,
    For the first requirement you can use the USEREXIT_MOVE_FIELD_TO_VBAP in report MV45AFZZ.
    For the second, as I think that you will create a RFQ you can try to use the enhancement MEREQ001.
    Regards,
    Eduardo

  • Sending the Purchase Ordr frm ECC to PI(BPM) thrgh ABAP proxy communication

    Hi Experts,
         We have a requirement where we have to send the Purchase Orders(PO's) generated in ECC system to PI where the PO will be routed to webservices after some error handling(in BPM).etc.
         We are able to generate the PO's in ECC system, but are searching for a way to push this data to the Service INterface (which we have generated through ABAP proxy connection in SPROXYin ECC) which we have used for implementing the BPM in PI.
        We have thought of using BADI to push the PO's to the Service INterface.But have not been able to find a suitable BADI.
    Please help in finding a suitable BADI or Suggest any Better way for doing the same if you are aware of....
    Please respond quickly as we have short deadlines to be met....
    Thanx in advance...
    Nandan

    Hi Raja Sekhar,
      Thanx for the quick reply.
      If i have got you point right, you are telling me to right a program that will fetch the PO's and push the data into our Interface.
    Let me explain you the complete scenario, we already have a ECC to SUS thrgh PI implemeted for the same PO's generated. Our requirement is that depending on the vendor details in PO's we have got to route the PO details to either SUS or BPM.
    I had thought of writing a prgm but the abapers feel that a standard BADI for the same would lessen their efforts.
    Meanwhile can you explain with a little more detail the standard approach you are referring to... probably some material relating to this would help us...
    thanx a lot..
    waiting for your reply,
    Nandan

  • Error Occurred while saving the purchase order

    Dear Experts,
    While changing PO and Schedule Agreement using T.Code : ME22, ME32 we are facing below error message.
    Problem occurred While altering and saving the purchase order.
    Error message FGV004 - "SYST:date 00.00.0000 is not permitted" is generated
    when modifying an Scheduling Agreement that does not have a Delivery
    Schedule using ME32L.
    Please Kindly help to fix this error as soon as possible.
    Thanks in Advance.
    Prasath Manoharan

    hi,
    In addition to above..
    I also checked for the SAP note...
    It shows only one note regarding MM...
    pls check the sap note 355827..
    As per this note you need to add few corrections...pls take help of basis consultant..
    Regards
    Priyanka.P

  • IDOC - create SD Contract from a Purchase Order

    Hi,
    I need to know if exist an IDOCs to create a SD Contract from a Purchase Order and another IDOC to change a Purchase Order from a SD Contract.
    Regards,

    Hi again,
    1. PO will create ORDERS IDOC this is SAP Standard.
    2. ORDERS IDOC will be send
    3. IDOC Segment E1EDK14 qualifier 12 contains the order type. A contract is also a type of sales order. So we need to get the correct order type in the segment. One option is using the userexit proposed earlier another and even easier is asking the XI colleagues to do the change already in XI.
    4. During Inbound processing the contract will now be created.
    http://help.sap.com/saphelp_erp2004/helpdata/en/cf/ab3827940311d295e600a0c9306667/frameset.htm
    You will send a ORDRSP from your Contract (I made a mistake earlier and said ORDCHG this would be the update of the contract from the PO...)
    I think you will need to worry to much of the ORDRSP on the SD side as in fact the IDOC does not care if it is send from order or from a contract.
    Depending on your configuration in MM it will update the PO.
    http://help.sap.com/saphelp_erp2004/helpdata/en/1c/deffb0844f11d2b471006094b9476a/frameset.htm
    Bascally in regards to quantity you will need to do more on the MM side because usually it is not expected that the Vendor is chnaging quantities etc... So it is still possible:
    http://help.sap.com/saphelp_erp2004/helpdata/en/1c/deffb0844f11d2b471006094b9476a/frameset.htm
    By the way we are having the scenario with the contract in our SAP sending ORDRSP and ORDCHG for contracts and it is working fine.
    Hope it helps.

  • HOW TO BLOCK THE PURCHASE ORDER AND MARK FOR DELETION ?

    Hi ,
                        During the Creation of the Purchase order in the SAP System... After creation of the Purchase order should be blocked and a work item is created for the approver. If the Approver approves the Order then the Order is Unblocked and a mail send to the initiators inbox and the Order is Released. Similarly if the Approver Rejects the Purchase Order then its set for Mark for Deletion.
    I did Po creation and release part. But i am facing problem during the Blocking & Unblocking the Purchase order. If he rejects i need to set for "Mark For Deletion". plz help me to solve this...

    Hi,
    You can use bapi 'BAPI_PO_CHANGE' to change the status of PO and for release use bapi BAPI_PO_RELEASE.
    Hope this will help you.
    Smit

  • Excise rate and value is not getting defaulted from the purchase order

    Hi all,
    While capturing excise invoice , the excise rate and value is not getting defaulted from the purchase order and in Excise Item Tab BED,AED,ECS is Zero at both header as well as item level for only one material in STO process and if we are doing same process taking other material all things are coming perfectly and We are maintaining condition with respect to vendor,plant and material combination.Any input related to this will be helpfull and rewarded.
    Regards
    Vishal

    Hi,
    Follow STO Process for this;
    1.Create a vendor for the company code of receiving plant, using account group: 0007 using T-Code XK01.
    2. Assign this vendor to Delivering plant
    Go to XK02 >Purchasing view>Extras>Add. Purchasing data>Plant
    3. Create internal customer with the sales area of the vendor. Go To XD01
    4. In pricing procedure determination relevant to STO, assign document Pricing Procedure and customer pricing procedure appropriate for STO to get the pricing in the invoice.
    5. Maintain condition records for the relevant pricing condition.
    6. Some more setting for STO: Go to MM> Purchasing > Purchase Order > Set up STO > define shipping data for plants > Go to Receiving plant >assign customer here & Supplying SA (for billing) to Receiving plant here
    7. Go to MM > Purchasing > Purchase Order > Set up STO > define shipping data for plants > Go to Supplying plant and assign the sales area of receiving plant.
    8. Go to MM > Purchasing > Purchase Order > Set up STO > assign delivery Type & Checking rule
    Assign the delivery type to document type. In this case, Delivery type NLCC is assigned to Document type NB
    9. Go to MM> Purchasing > Purchase Order > Set up STO > Assign document Type, One step Procedure, Under delivery tolerance
    Assign the document type NB to supplying plant and receiving plant
    10. After all settings, Create the STO using T-Code: ME21N and maintain pricing conditions of freight and Save.
    11. In supplying plant Maintain condition record in sales using VK11 the same will flow in receiving plant when referring the OBD no during MIGO.
    10. Create Delivery: VL10G
    12. Picking, PGI: VL02N
    13. Billing: VF01
    Save the document and its done
    14. J1IIN - Outgoing Excise Invoice
    15. MIGO - Goods Receipt against outbound Delivery
    16. J1IEX - Capture & Post Excise Invoice
    Rgs

Maybe you are looking for

  • Installing an AIR application from the browser

    I am installing an application using a custom badge. Is there any documentation on air.swf? After air.installApplication() is called is there anyway to know what happens, i.e. some event to listen to. How can I know when installation is complete or i

  • Os command for ftp server

    I use file adapter receiver channel to transfer messages to external ftp servers. After a file is transported to the ftp server completely, I need to run a OS command to rename the file accordingly. My question is where I should put the OS command fi

  • Academic Question about Classes Method and Constructor

    Given the similarity between the Constructor class and the Method class, why don't they have a common super class for the methods they have in common that are unique to them?

  • What is the best way to deal with xcode autosave?

    Xcode 4.4 autosaves your document upon quitting but does not keep older versions. The assumption seems to be that meaningful changes are regularly committed to a version control system. Because of its code highlighting capability, I also use Xcode to

  • CR Basic: Report off center to the right within ReportViewer (Windows 7)

    Scenario: Using Visual Studio 2008 Professional SP1 w/ Crystal Reports Basic SP1 on a Windows 7 x64 system. A new project is created with a Report Viewer and a Report Document. Any data can be used for the document's data source for the purposes of r