Post IDOC internally in same SAP system

Hi All,
I used IDOC to send data from SAP to XI in my previous assignments.
Now i have a requirement wherein i need to use an idoc to post data within SAP i.e in the same system. This is because incase the idoc fails the end user can correct the data and re-process the idoc and post it again. though its not so recommended its agreeded upon in the design phase.
now my doubt is in MASTER_IDOC_DISTRIBUTE should i set the control record so that it points to the same system which means the port i create which has an RFC which will point to the same system from where the report is run. is this the correct way.
thank you.
Regards,
Jayaram

Hi,
You can test in the same system
But make sure that the using partner profile(WE21) is having Collect IDOC's option so that the IDOC are not transferred to the target system.
Hope this helps
Regards
Shiva

Similar Messages

  • How we can import an IDOC structure from one SAP system to another

    Hi Gurus,
    How we can import an IDOC structure from one SAP system to another? If we're using ALE, how can we do that? Please can someone give me the process and necessary t codes.
    Any response will be awarded!
    Thanks a lot.
    Samson

    hi!
    Define the logical system names in both the systems.
    Logical system names :SAP001
    SAP002
    SAP001 FOR 001 CLIENT
    SAP002 FOR 002 CLIENT
    These two logical system definitions should be present in both the systems.
    Assign the logical systems to the client. (in both the systems)
    Assign SAP001 to 001 CLIENT
    Assign SAP002 to 002 CLIENT
    you can See these in transaction SALE.
    After this define the rfc DESTINATION IN sm59. (in both the systems)
    In 001 client create the RFC destination name SAP002
    In the tab log on security, give the user name and password and client of the 002 client and save it.
    Similarly do the reverse in the 002 Client.
    In 001 client create the port.(Transaction WE21)
    Specify the RFC destination name as SAP002.
    Now you can define the ports, (both the systems)
    Create the partner profile for partner(ie gve logical system name of partner) , so give as SAP002.
    partner profile in both the systems.
    Now create the distribution model in BD64 and goto edit>model view>distribute.
    The same model view will be visible n distributed to the partner system also..which in this case is sap002.
    U may trigger the idoc from we19 and chk its status in we05.
    Please let me know if you need further info on this.

  • IDoc adapter with Non SAP systems

    SAP XI 3.0 help says:
    You can use the IDoc adapter to connect SAP systems (as of release 3.1) and non-SAP systems with the Integration Server using native IDoc structures
    What does this mean?
    -Naveen.

    Hi Naveen,
    Let me give a use-case in one of our projects ....we have 2 middlewares in our landscape...webmethods and XI...and in one particular instance there was a need to send an FI IDoc from webmethods to XI and forward it to R/3....
    In this case, the webmethods was treated like any other sap system for receiving IDoc into XI(with settings in IDX1)...
    Hope this might clarify a little bit...
    Thanks,
    Renjith

  • How we can import an IDOC structure from one SAP system to another w/o ALE

    Hi Gurus,
    How we can import an IDOC structure from one SAP system to another? we're not able to use ALE tech, these two sap systems are isolated.
    Any response will be awarded!
    Thanks a lot.
    Samson

    hi,
    1.One is by change pointer concept i.e by executing the RBDMIDOC.We can generate the idoc and automatically to the inbound System.
    2.By executable program also like bd10 and bd11.
    Regards,
    SHIVA(reward if helpful).

  • How to send IDocs from a non-SAP system to a SAP system

    Hi everyone i am new to SAP R/3 System.
    Currently i am required to send IDocs from a non-SAP system to a SAP R/3 System.
    There is a guide on Cost-Effective and Quick Communication between SAP and 3rd Party Systems using IDOC HTTP XML Interface. But its from a SAP system to a non-SAP system and i am able to do that.
    Is there any step by step guide where they teaches you how to send IDocs from a non-SAP system to SAP system via similar method?
    Thank You!

    Hi,
    I hope this link may help you......
    http://publib.boulder.ibm.com/infocenter/iisinfsv/v8r1/index.jsp?topic=/com.ibm.swg.im.iis.ds.entpak.sapr3.use.doc/topics/c_pack_r3_Introduction.html

  • Two different company in same SAP system ?

    Dear Gurus,
    I came across a requirement from Client
    There is a company A which is having own business . This company A operates/manage company B (all panning/execution/sales purchase/inventory etc) but not in Books of account. From legal point of view company A is funding company B & generates profit/loss.
    But practically company A manages all Business of Company B like a group company but from legal point of view it is a Third party in which company A has Investment . In management reporting they shows all the details of company B.
    The reason of this kind of arrangement is govt licence.
    In there current situation they have there own legacy system on which they manages this all things ( 2 different Data base ) & its legal .
    Can this be mapped in same SAP System ( say as different company code or any other way ) ? ? How ?
    Regards,
    Ishwar

    Dear Christian,
    Actually I feel that may be that is possible by creating a new company code but i am more concern from Audit point of view
    Auditor might have problem : why i am mapping some other (legal point of view ) company Transaction in my system ?
    if anybudy has came across similar situation please guide
    Ishwar

  • SWCV still contains IDocs/RFCs from an SAP system

    Hi
    I have imported Idoc to a SWCV. Now am trying to create one more namespace under it. When I try to create another namespace, it automatically selects the check button Import of Idoc and RFC interfaces from SAP systems permitted. If I select not permitted and try to create namespace it gives me this message
    Unable to save object XYZ , 1.0 of ABC
    Indicator cannot be undone since the software component version still contains IDocs/RFCs from an SAP system 
    Delete the objects first.
    Is it possible for me to create another namespace under a SWCV, to which I have already imported Idoc, by selecting the option " Not permitted ". I want to create another namespace and I don't want to select that option as I have already imported Idoc

    Hi,
    You no need to touch that check box, you can still create the namespace under software component.
    Just double click lick on software component, goto edit mode and click on + symbol to insert namespace and save then activate.
    Note:- As you have already imported the RFC and IDoc under your software component(not namspace as you mentioned), you keep that check box import of RFC and IDocs permitted. Dont try to uncheck that.
    thanks,
    madhu

  • Post IDOC within same SAP system

    Hi All,
    I used IDOC to send data from SAP to XI in my previous assignments.
    Now i have a requirement wherein i need to use an idoc to post data within SAP i.e in the same system. This is because incase the idoc fails the end user can correct the data and re-process the idoc and post it again. though its not so recommended its agreeded upon in the design phase.
    now my doubt is in MASTER_IDOC_DISTRIBUTE should i set the control record so that it points to the same system which means the port i create which has an RFC which will point to the same system from where the report is run. is this the correct way.
    thank you.
    Regards,
    Jayaram
    Edited by: JAYARAM MAGANTI on Aug 19, 2009 2:55 PM

    Jayaram,
    Steps you mentioned are correct.
    Pls maintain the values as I shown below , you will be able to post the idoc in the same system.
    And one more suggestion , us fm 'IDOC_INBOUND_SYNCHRONOUS'  as this will give you the idoc number in return. So that in the same program you can use it for any reporting purpose or you can show in the output screen the list of idocs generated etc.
      DATA : lv_sysid  LIKE sy-sysid.
      gwa_edi_dc-tabnam = 'EDI_DC'.
      gwa_edi_dc-mandt  = sy-mandt.
      gwa_edi_dc-docrel = sy-saprl.
      gwa_edi_dc-status = '30'.
      gwa_edi_dc-doctyp = 'ORDERS05'.
      gwa_edi_dc-direct = '2'.
      gwa_edi_dc-rcvpor = 'SAPxxx'.
      REPLACE 'xxx' WITH sy-sysid INTO gwa_edi_dc-rcvpor.
      gwa_edi_dc-rcvprt = 'LS'.
      gwa_edi_dc-rcvprn = sy-sysid.
    CONSTATNT :       gc_clnt(4)     TYPE c VALUE 'CLNT',
      MOVE gc_clnt TO gwa_edi_dc-rcvprn+3.
      MOVE sy-mandt(3) TO gwa_edi_dc-rcvprn+7.
      gwa_edi_dc-sndpor = 'SAPxxx'.
      CLEAR lv_sysid.
    *Here you need to populate your sys id lv_sid
    *example lv=sid = 'PDV'. "pdv is our producion system
      REPLACE 'xxx' WITH lv_sysid INTO gwa_edi_dc-sndpor.
      gwa_edi_dc-sndprt = 'LS'.
      gwa_edi_dc-sndpfc = 'LS'.
      gwa_edi_dc-sndprn = gc_sndprn."Comming as from Parameter.
      gwa_edi_dc-credat = sy-datum.
      gwa_edi_dc-cretim = sy-uzeit.
      gwa_edi_dc-mestyp = 'ORDERS'.
      gwa_edi_dc-exprss = 'X'.
    CALL FUNCTION 'IDOC_INBOUND_SYNCHRONOUS'
          EXPORTING
            int_edidc      = "control record ie gwa_edi_dc
            online         = 'O'
          IMPORTING
            docnum         = lv_docnum " it gives idoc number
          TABLES
            int_edidd      = "pass data record
          EXCEPTIONS
            idoc_not_saved = 1
            OTHERS         = 2.
    Now you can use the idoc number anywhere you want .
        wa_idoc-docnum = lv_docnum.
    Best Regards,
    Vvieks
    "Grow and help others to grow"

  • Posting idocs in sequence in SAP from file (without BPM)

    Hi,
    I have a requirement of posting the TWO idocs from the single file. But I need to send the idocs in sequence. Can you anyone explain the process  how we can ecomplish from XI without using BPM.

    Hi,
    you can ONLY do that if your <b>ERP,R3 (IDOC receiver system) system
    is based on WAS 6.40</b>
    the whole scenario is described step by step in my book:
    <a href="/people/michal.krawczyk2/blog/2006/10/11/xi-new-book-mastering-idoc-business-scenarios-with-sap-xi"><b>Mastering IDoc Business Scenarios with SAP XI</b></a>
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Inbound idoc failing to reach SAP system.

    Hi All,
    We are upgrading our SAP system from release 700 to 730. Post upgrade we have identified that idocs which are supposed to reach SAP as inbound are failing in Biz Talk with below message.
    Error details: Microsoft.ServiceModel.Channels.Common.XmlReaderParsingException: The segment name is not valid for the IDOCTYP, Release, or CIMTYP. Segment name: E2EDT37003GRP   IDOCTYP: SHPMNT03    Release: 700    CIMTYP: . Ensure that your message xml validates against the operation schema.
    This happening for only one inbound idoc which is using SHPMNT03 idoc.Whereas other inbound idoc which is using /AFS/ORDERS05 idoc is reaching SAP without any issues. I am bit confused why this is happening for idoc SHPMNT03.
    Please let me know your thoughts.
    Thanks,
    Gowrinath.

    Hi Ramya,
    Thanks for your response.
    In Biz Talk schema is designed for 700 release idoc.Whereas our system is upgraded to 731 release.
    Hotfix is for Biz Talk. Can't we implement any solution in SAP side.
    Thanks,
    Gowrinath.

  • Data elements for IDoc Segments to non-SAP system

    Hi,
    I need to create IDocs for transferring data to non-SAP system. When I create segmet fields should I create new data elements for all the fields with attributes specific to receiving system? Because there are many fields where the field attributes of SAP system do not match the corresponding fields of receiving non-SAP system.
    Thanks in advance!!
    Regards,
    Sriram

    Hi Sriram,
    When I create segmet fields should I create new data elements for all the fields with attributes specific to receiving system
    Is it custom  segments .
    Regards,
    Madhu.

  • Issue with Chinese characters while sending IDOCs from PI to SAP system

    Hi,
    We are working on File to IDOC scenario where in some of the fields are having Chinese characters. In SAP system, we noticed that the Chinese characters are getting replaced with # where as in PI output payload we are able to see the correct Chinese characters. The systems involved are PI 7.4 and SAP ECC -6.0.

    Like in dual stack where we have an option to choose unicode/ non-unicode, i don't see any option in single stack.
    However not sure if it works but you can give a try..
    I assume you have created the RFC destination in NWA.
    Go to RFC destination ->Specific Data -> Advanced Settings - here we have an option to mention the code page.
    You might want to mention the code page for chinese char and see if it helps..
    Before doing this, do checkMark's suggestion.

  • ALE: Sending IDOC inbound from non-SAP system

    Hi
    How does one need to setup the SAP system to accept data from an external non-SAP system. Should one setup some sort of conection to trigger an import to SAP?

    Hi,
    On the SAP side you need to create a partner profile in T.code: WE20 of type LS. And add the message type, idoc type in the inbound parameters section of it.
    And you must also specify the partner number you created here, on the IDoc control record.
    This link from SAP help, will provide some addition data.
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a6524507d11d18ee90000e8366fc2/frameset.htm">http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a6524507d11d18ee90000e8366fc2/frameset.htm</a>
    Hope this helps.
    Regards,
    Sumant.

  • Move IDOC Configuration from one sap system to other sap system

    Hi All,
    I have a scenario where in we need to move the SAP Configuration including Port,partner funtions details etc to other Sap system .As per my knowledge we have some SAP Standard tables which stores all the SAP Config data .So my thought is that if we move those table entries from sorce sap system to target sap system the task will be completed however i dont know which table entries i need to move.Kindly suggest.
    Venu

    Many of these IDoc settings are not asking for transport requests, since they are considered master data (table class A). They are to be done directly in each system, because the are often linked to information that is or might be specific, like master data, logical system names, path names, etc...
    Please also search for previous discussions, you are probably not the first one encountering this issue.
    Thomas

  • Is it possible to receive IDOCs from a non-SAP system?

    Hi,
    I'm facing a problem where I have to configure SAP MII (12.0) to receive IDOCs from a non-SAP client. Is it possible? I'm dealing with a system named Hydra (developed by MPDV) and I'd like to know what I should configure in Hydra systems in fields like: PROGID, GWHOST, GWSERV, SYSNR, CLIENT etc.
    Anyone can help me?
    Thanks a lot in advance

    Unless Hydra emulates ECC sending IDOCS, then you just might want to use the WSMessageListener (http://help.sap.com/saphelp_xmii120/helpdata/en/45/6a86ac88130dece10000000a11466f/frameset.htm) and configure your message processing rules accordingly.

Maybe you are looking for