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.

Similar Messages

  • 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

  • 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

  • Create Document and send

    Dear Friends,
    i have ECC6.0 loaded, When i put transaction code IW23, Take a notification number, try to prepare and send a document or mail
    by creating document and send by adding the recipent type.
    in recipient type iam not able to find out complete options like saplogon etc etc.
    But with some other user i can see those options easily.
    Please Suggest. Thanks in Advance
    RP

    Hi Gagan,
    Thanks for the answer, it was authorization problem only.
    i have checked it with su53 and then through PFCG i added the authorization transaction to one of its role.
    The Problem is solved, i can see those options for that usse also.
    Thanks and Regards
    RP

  • Want to replicate Payext  IDocs and send them to another logical system

    Hi all
    we are generating payext Idocs to a bank partner profile using rffoedi1 program. Our requirement is to replicate the same payext IDoc and send to another logical system using a different partner profile.
    I have a rough idea of sucking data from EDID4 table....
    Can any one let me know how the code looks like If we have to create same IDocs again with different control record with same kind of data?
    can some one throw their ideas of doing this with less development work?
    Thanks
    Steve

    Try this way:-->
    1.Using fm IDOC_READ_COMPLETELY get complete data of IDoc you want to send, then change the Header record (EDIDC) with new partner profile, port and other values
    2. Pass these values to fm MASTER_IDOC_DISTRIBUTE.
    (pl remember to clear EDIDS values before calling above said fm)
    This will send your IDoc to new destination
    a®s
    Edited by: a®s on Apr 10, 2008 3:41 PM

  • How do I remove an unwanted toolbar?  I added a radio station to my ibook and it set up its own toolbar so when I go to Safari I have to use it.  It involves using Bing for everything as well.  It's very annoying and I want to remove it.

    How do I remove an unwanted toolbar?  I added a radio station to my ibook and it set up its own toolbar so when I go to Safari I have to use it.  It involves using Bing for everything as well.  It's very annoying and I want to remove it.  I can't just type in a URL and have it go to the site.  It takes me to all of Bing's choices.  Also, when it anticipates what I'm typing (incorrectly) and I have to delete it's guesses all the time.  Can anyone help?

    Have you looked at Safari's menu bar > view> toolbars to see if it can be unchecked from there,also see if there is a button to collapse the toolbar on the bar itself.

  • When I connect my iPod to the computer, it connects for only about 5 seconds and then disconnects on its own before synching. How do I fix this?

    I had my iTunes and library on my home computer.  The computer crapped out along with the hard drive.  I have my library on my iPod and want to put it on my new computer, but any time I connect the iPod to my home computer (and work computer for that matter), it only connects for about 5 seconds and then disconnects on its own.  I go to look at the iPod as a hard drive and I have nothing but empty folders (contacts, calendar, recordings and something else), but nothing is in them.
    1) How do I get my iPod to connect to my computer?
    2) How do I get my iPod to connect to iTunes?
    3) Why don't my music files on my iPod show up on my computer?
    I have uninstalled iTunes and reinstalled iTunes.  I have done the "trick" of hitting the 'Menu and Center' buttons at the same time unitl the Apple icon appears.  I have tried going into Disk Mode.  I don't know what to do now.  The word "Resetting" scares me because this is where I have my 150 GB of music stored and I'd rather not have to upload my CD's again.............will resetting affect that?  The word "Restore" is even scarier!!!
    Help!

    i am using a cable connector like this one.. it works with audio when pluged into a stereo but not a TV.i am trying to display video from ipod, also from other apps.. i also want to know why it does not work.
    i use the video app on the iPod and video stored on other aps.

  • My iPod got wet, I put it in a bag of rice for 4 days now the Ipod Works in my music player dock, but wont connect to pc and wont work on its own.

    My iPod got wet, I put it in a bag of rice for 4 days now the Ipod Works in my music player dock, but wont connect to pc and wont work on its own.

    Greetings Socs4bill,
    It seems your iPod has been exposed to liquid and is not operating properly. Based on the information you have provided, it appears your iPod needs to be serviced. The following link should help you get started with the process and has links with additional information on topics such as warranty and service pricing, battery replacement, and express replacement service.
    Apple - Support - Service Answer Center
    Thank you for contributing to Apple Support Communities.
    Best,
    Bobby_D

  • Ever since I downloaded the new iOS 7 my screen will not turn up and down and it rotates on its own side to side.it will not face the way I want it to go. How do I fix it?

    Ever since I downloaded the new iOS 7 my screen will not turn up and down and it rotates on its own side to side.it will not face the way I want it to go. How do I fix it?

    I've been working on this all day!!! I've tried everything I know of and can't get it to load either. Sounds like lots of people are having problems. Here is what I have so far...I have uninstalled EVERYTHING on my pc from apple and reinstalled itunes to no avail. I have tried all sorts of things I've read as fixes online. NOTHING has worked. Here is something interesting that i have noticed though. my main pc (which is the one i have always managed my itunes account with for years) is a 32 bit system running windows 7. Yesterday I installed itunes for the first time on my new netbook which is a 64 bit (windows 7) system and it works just fine. i have three other laptops (all window 7) in my household that are all 64 bit operating systems and ALL have updated to 10.5 and THEY ALL work fine. this is FOUR 64 bit systems ALL updated w/10.5 that work and ONE that is a 32 bit that will not. Can't get any help from apple. their suppot *****! I want to get someone on the **** phone or a live chat but cant. *** APPLE????? please let mw know if you find SOMETHING i can try next. I'm out of ideas and patience!

  • I can't make a call but i can received calls and send text messages its say you cannot make a call check the phone settings!

    i can't make a call but i can received calls and send text messages its say you cannot make a call check the phone settings!

    It is not a cell phone.

  • Ipad Mini has started zooming and opening apps on its own

    Ipad Mini has started zooming in and out and opening apps on its own.  I have gotten back to factory settings and it is still happening.  Help!!

    Reset the device:
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    If that doesn't help, tap Settings > General > Reset > Reset All Settings
    * No data is lost due to a reset

  • My iPhone 5 started acting wierd earlier and the touched lived its own life. Suddenly it began the iPhone started to turn itself on and off several times, before it got a blue screen and wouldn't start again. What do I do?

    My iPhone 5 started acting wierd earlier and the touched lived its own life. Suddenly it began the iPhone started to turn itself on and off several times, before it got a blue screen and wouldn't start again. What do I do?

    press and hold the home button and the lock button together for atleast 10 secs or till the time u see the apple logo,once you see the apple logo,let go off the keys... good luck

  • Ipod touch is skipping and changing songs on its own

    My ipod  touch skips like a scratched cd and changes songs on its own when i am outside with it.  I usually take it to the pool and listen while i'm laying out but recently it started doing this.  I don't let sunlight hit it directly i have it covered by my leg or a towel.  When i come home it starts working again.  Is this a common problem and i cannot take it outside when it is hot, or do i have a defective one?

    - Do you have the headphones with a remote? Sometime there is problems with sporatic signals from the remote especially with moisture/high humidity.
    - Try the standard fixes:
    - Reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup
    - Restore to factory defaults/new iPod
    If still problem that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • My apple macbook pro is about 16mths old, its trackpad seems to have gotten a life of its own. it will be fine then after a few minutes the arrow on the page will start moving and clicking all on its own, im not sure what to do?

    My apple trackpad seems to have a mind of its own, it will be fine then it will go wild and start moving all on its own, clicking and going from left to right in spastic motions, what do i do, is it a virus or dust or what?

    Does your "System Preferences > Sharing" look like this (no sharing options have check marks)?

  • Collect idocs and send to receiver?

    Hello All,
    Can any one send document or blogs related to the collecting all the IDOCs and at the end of the i need to send it to receiver side.
    Thanks and Regards,
    Chinna

    Hi ,
    Check out these blogs:
    IDOC Collection
    /people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm
    /people/michal.krawczyk2/blog/2009/05/21/xipi-collecting-idocs--possible-ways-with-pros-and-cons--5-ways
    Idoc collection w/o BPM
    /people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm
    /people/michal.krawczyk2/blog/2007/12/02/xipi-sender-idoc-adapter-packaging
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30ea2fdf-f047-2a10-d3a2-955a634bde6b
    Regards,
    Sarvesh Desai

Maybe you are looking for