IDOC Direction

Hi Experts,
        I had a  question on IDOC,
1. How will the system determine the Direction of the IDOC for a PO for a Vendor, if the vendor has both Inbound and Outbound parameters defined in his partner profile, does a PO has a Inbound process code? (because, we may also receive PO from customer)?
  so please help me out
Regards,
MAX

Hi Max,
In this specific case of PO, the outbound and the inbound message types differ - inbound ORDERS has a process code that generates a sales order, not a PO. It is PORDCR1 that generates a PO. On the outbound side, there's no process code that generates PORDCR1 from the PO, only ORDERS (and ORDCHG for order change).
But in the general case, the same message type can be both for inbound and for outbound. Your document can call the ALE service by means of output determination (or some other function) to generate an IDoc. In such case the "outbound" part of the partner profile will be used.
On the other hand, an external system can place the IDoc in SAP and call the ALE service to process it - ALE will then check the inbound part of the partner profile.
I.e. it is the calling application that tells if the outbound process shall be initiated or the input process.
BR
Raf

Similar Messages

  • LSMW with Idocs directly created

    Hello,
    I'm using the LSMW with Idocs for the migration of business partners in CRM.
    During the step "convert data" I have the choise to create the Idocs directly (without creating the file first).
    Some days ago everything was well working. But without knowing what I've changed in LSMW, this is no longer possible.
    I get the same screen as when I want to create a file ".conv", but the name of "converted file" is not named. Instead there is a message "no directly creation of Idoc"
    What do I do wrong? What do I have to change?
    Thanks in advance!
    Nicole

    you have to always convert the data after reading the data.
    please check in the specify files section you have given the file name for the converted data in the application server.
    you will not get the option to create idocs directly in the convert data step.
    please let me know if you any more details.
    regards
    vivek
    reward points for all the useful answers

  • Picking a IDOC Flat File stored in SAP R/3 Application Server by SAP PI

    Hi,
    Can SAP PI pickup a IDOC Flat File stored in SAP R/3 Application Server Directory and send it back as an Inbound IDOC.
    Scenario:
    We have a data in the EXCEL Sheet, which will be used to a fill an IDOC and the IDOC will be just save in the SAP R/3 Application Server Directory, but can not be triggered due to its peculiar behavior. Afterwards, SAP PI should pole the SAP R/3 and pick up that IDOC Flat File from the R/3 Application Server and send it back to the SAP R/3 as an Inbound IDOC.
    For Ref: IDOC does not have a Outbound Process Code, thus can not be triggered and send to SAP PI. It is always used as a Inbound IDOC in SAP R/3 system.
    Regards,
    Saurabh

    SAP PI should pole the SAP R/3 and pick up that IDOC Flat File from the R/3 Application Server
    If SAP PI = 7.11 --> /people/william.li/blog/2009/04/01/how-to-use-user-module-for-conversion-of-idoc-messages-between-flat-and-xml-formats
    send it back to the SAP R/3 as an Inbound IDOC
    why to send  some information again into R3 which it already has? cant some internal code in R3 read the info from excel and then update the IDOC directly?

  • Problems with sender IDoc scenario

    hi experts..,
    when i create message Interface for a Outbound Idoc my scenario is not working.
    if i use idoc directly instead of message interface its working properly
    And in Interface Determination if i gv interface mapping we are gting errors and without mentioning interface mapping in Configuration its is working fine
    can any one explain me what is the reason for my two questions
    thx in advance
    john wesly

    Hi,
    I will explain one example by taking one IDOC
    we have ORDERS05 Idoc and we are using the same Idoc for two scenarios
    Scenario1 -
    IDOC---File( FTP Server)
    Scenario2----IDOC-JDBC
    Now let us assume that we have configured two scenarios.
    If we trigger the IDOC Orders05 from SAP R/3 means
    1) The Idoc will be triggered and it will reach to XI.
    Now your doubt is which Receiver will be take place and to be executed.
    This time the problem my come or may not come, let it be like that.
    If your requirement is like the above mentioned thing means
    1) We can develop a single scenario like
                     IDOC-------File( FTP Server)
    JDBC
    Here what we have to do is when the idoc comes to xi we have route the Idoc to the particular receiver based on some condition in Receiver Determination
    And one more thing is in mapping also if we have two mappings then we can use Interface determination based on condition which interface mapping to be execute.
    I hope this clears yor doubt
    Regards
    Seshagiri

  • Idoc - BPM - Idoc

    Hi,
    My Scenario is as below:
    An Idoc is sent from ERP to XI. based on a value in a specific segment, It has to call a Web Service. The outcome of Web Service has to be put into another segment of idoc and send the Idoc to CRM.
    I have done configuration in such a way that Idoc from ERP goes directly to CRM. This is working properly.
    Now I have to use BPM to model the above process instead of Idoc directly going from ERP to CRM.
    Can any one help me of how I should start this scenario in BPM. What is the first step in modelling this using BPM.
    Thanks,
    Prasanna

    Hi
    Go through this link for reciever IDoc Adapter
    <b>http://help.sap.com/saphelp_nw04/helpdata/en/96/791c42375d5033e10000000a155106/content.htm</b>
    And this is a link of Problem Analysis Guide <b>Sending an IDoc through XI Failed</b>
    <b>http://help.sap.com/saphelp_nw04/helpdata/en/6a/e6194119d8f323e10000000a155106/content.htm</b>
    Hope it help
    Regards
    Arpit Seth

  • ALE-IDoc in WebDynPro Java - Is it possible?

    Hi All,
    As we know we can create RFC function module to access R/3 data from WebDynpro Java, but I would like to know, is there any other way to access R/3 without RFC function module? Because I would like to get data from IDoc directly without using function module, which present in R/3 side.
    Could you please explain me?
    Thanks & Regards,
    Sheik

    Hello
    No need to create a new one.
    There are already lots of standard FM present on the abap side which you can use to read the data of an idoc
    e.g.
    IDOCTYPE_READ_COMPLETE
    IDOCTYPES_LIST_WITH_MESSAGES
    IDOCTYPES_FOR_MESTYPE_READ
    SEGMENT_READ_COMPLETE
    IDOC_RECORD_READ
    Use these standard FMs as RFCs for reading data from afuntion module.
    Thanks
    Sarbjeet Singh

  • IDOC to flat file and vice versa

    Dear community,
    we should send IDOCs to flat files and read plain files and map them to IDOCs.
    Is there any comfortable way to do this without doing a huge content conversion for
    IDOCs? Exist a SAP standard for such process?
    We receive the IDOC as normal IDOC. Would it be more easy to save the IDOCs
    directly as flat file on ERP file system??
    System PI 7.11
    IDOCS: WHSCON, WHSORD and WMMBXY
    Regards
    Chris
    Edited by: Christian Riekenberg on Feb 1, 2012 2:41 PM

    Hey folks!
    We have a PI 7.31 SPS5 Java-only installation here and are using the module IDOCFlatToXmlConvertor. For single IDocs with one line for the EDC_DC40 header and the others for the IDoc payload the conversion works. But when we want to process multiple IDocs from the same type within one file, we see this error in the log:
    Module Exception 'com.sap.aii.af.idoc.exception.IDOCModuleException: No data segments for DOCNUM = ' found, cause: <null>
    Are there any requirements how the multiple IDocs have to be structured within the file?
    Best regards
    Heinrich
    Update:
    I found out that the module wants each record to contain the corresponding DOCNUM to find the matching records. The non-SAP sender system normally does not set this value. Is there a way to "convince" the module to convert the IDocs nevertheless?

  • IDOC to flat file without XML conversion

    Hi,
    I want to implement a scenario like this:
    IDOC --> XI --> flat file
    The flat file has to have the IDOC structure as you have when you write an IDOC to the R/3 file port. But we want to have this process running through XI.
    When you use the IDOC Adapter the IDOC is converted to XML first, which is time consuming. So this I want to skip this step.
    So is it possible to receive the IDOC directly in XI without converting it to XML? How should this process be designed.
    Ron

    Ron
    Looks like you need IDOC tunneling. It is possible by making a configuration parameter.
    You can find more information in http://help.sap.com/saphelp_nw04/helpdata/en/ab/bdb13b00ae793be10000000a11402f/content.htm
    While you try it, I will try to simulate this requirement in our system and let you know the result.
    KK

  • IDOC reposting

    IDOC No. A1 is generated with error. We process it by tcode we19 by putting value manually , but it get posted successfully with new IDOC No.A2.
    A1 still remains with error status code in IDOC.
    How IDOC can be successfully posted with same idoc number.

    Hello,
    You can change an IDoc directly in WE05. To do this, display the IDoc, and expand the data records section. Double click on the page icon next to the segment you want to change. You will get a display screen, but if you go to
    the data record menu, you can change this to edit. I think this creates a copy of the original IDoc - you can then process this through BD87.
    Another method is to use we19. There you can also copy an existing IDoc and re-process.
    Regards
    Gangaprasad

  • Assignment IDX1 port to sender idoc adapter ...

    Hi gurus,
    I have a big problem and I don't have any idea how to solve it. Please, help me.
    I have a non-SAP system, regular SAP ERP and SAP XI and I need to transfer IDocs between them.
    There is no problem to send IDoc from ERP to XI and forward it to non-SAP system. Unfortunatelly communication in opposite direction doesn't work. XI is not able to receive IDoc sent from non-SAP system because appropriate metadata can not be found in IDX2 cache.
    In configuration of communication channel for sending IDocs to non-SAP (receiver idoc adapter) I selected IDX1 port that is directed to the ERP and it's worknig fine. I can send IDoc from XI to non-SAP.
    But in configuration of communication channel for receiving IDocs from non-SAP (sender idoc adapter) is not possibility to determine any port. Does exist a way how to force sender idoc adapter to use some specific IDX1 port?
    Thank you in advance for every reply!
    Regards,
    Zbynek

    The IDocs are sent from non-SAP system by means of tRFC. Connection type of the RFC destination is type T (TCP/IP) and activation type is Registered Server Program.
    If we sent the IDoc directly into SAP ERP (where the IDoc Type is known) everything is fine
    Edited by: Zbynek Kabrt on May 19, 2009 8:59 PM

  • IDOC Monitoring in PI

    Hi Experts,
    Please Help me,
    Using SAP to send an IDoc directly into Gentran system, then is it possible to monitoring the status of the IDoc through WE02/WE05.
    Using  XI/PI to the IDoc flow to/from SAP to/from PI and then to/from Gentran,
    Then also we can still be using WE02/WE05 to monitor the status of IDoc?
    I needs to be clear for the following,
    1) Are we using we02/we05 to monitor PI idoc's
    2) what does PI monitor and How we can monitor it?
    Also please suggest me How monitoring was actually done in PI?
    Thanks in Advance.
    Regards,
    Senthil Kumar M

    Hi Senthil,
    You need to understand one thing that we use both PI and Gentran are middleware tools. The data is coming from SAP.
    Scenario1:
    SAP is connected to Gentran directly. If you want to send EDI documents then you send idocs directly to Gentran and from there it sends to your EDI partners. Now to monitor in sap we use WE02 and 05 whether they are successfully created and processed coming in and out of sap.
    Scenario2:
    SAP is connected to PI. Now here pi uses Seeburger adapters to send the edi documents to its trading partners. Now still from sap we use we02 and 05 to check the idocs in sap. Now once left from sap they should be in pi and we can monitor with transaction sxmb_moni for any errors on integration engine or from the seeburger Runtime work bench communicaiton cahnnel monitoring for any errors in j2ee engine.
    Now it doesnot make sense to send data from sap>pi>Gentran. Because the use of PI and Gentran are same and it makes no sense to use both of them until unless you have the requirements.
    You can see the very old troubleshooting guide:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/bd5950ff-0701-0010-a5bc-86d45fd52283?quicklink=index&overridelayout=true
    Regards,
    ---Satish

  • IDOC Monitoring urgent

    Hi SAPpers,
    Does anybody knows what is IDOC Monitoring?
    The step by step configuration for IDOC monitoring.
    Was is the purpose of that?
    What is the Tcode for monitoring IDOC?
    Thanks will be rewarded

    Hi,
    Use
    You can easily and effectively monitor inbound and outbound processing of IDocs using special reports and graphic displays. An agent can also be notified automatically using a workflow if an “emergency” occurs (active monitoring).
    Features
    The following tools are available for monitoring:
    ·        IDoc Display
    All the other fields of the control record are available as selection criteria as well as partners and messages
    -   IDoc numbers
    -   Ports
    -   IDoc types
    You can display a tree structure of the IDoc directly using the IDoc number. The IDoc list is displayed again if several IDocs are selected.
    ·        IDoc Statistics
    The IDocs are sorted and represented graphically according to predefined status groups. Lists and individual IDocs can be displayed using mouse clicks.
    ·        IDoc Search
    You can select IDocs according to their business content, that is, according to the data contained in the segments.
    ·        Error and Status Processing
    Error and status codes are defined for the IDoc transfer. These codes can be assigned to a workflow task, which informs the agent automatically in a procedure.
    ·        Monitoring the Inbound Queue
    If you can receive IDocs via qRFC, you can monitor the inbound queue using a special transaction.
    ·        Monitoring the Outbound Queue
    If you can send IDocs via qRFC, you can monitor the outbound queue using a special transaction.
    ·        Active Monitoring
    This function provides you with a report that informs you if the number of critical IDocs exceeds a certain threshold.
    Active Monitoring Locate the document in its SAP Library structure
    Use
    This report automatically informs the agents responsible if too many incorrect IDocs are found.
    Integration
    Active monitoring is not used for processing or reimporting of an incorrect IDoc. Exception handling of every incorrect IDoc is responsible for this.
    Activities
    You plan the report to run regularly with a variant. The variant also informs the report of the status values to be selected: If the critical status contains more IDocs than specified in the critical number of IDocs, a message is sent to a predefined recipient.
    The recipient receives the notification in the form of a work item displayed in their Business Workplace. If they execute the work item, the IDoc statistics are displayed with the values determined at the time of evaluation. The agent can display the current status of these IDocs using the Refresh function. The selection criteria which led to the notification are also used for this evaluation.
    Example
    An important customer orders goods using EDI on working days, between 8am and 6pm. These goods are to be delivered at 4pm the next day. To ensure that the delivery is made on time, the ordered quantity must be recorded by midday on the day of delivery. The active monitoring function is to be used at 8am every morning to determine whether there are any orders which could not be processed automatically. The report, therefore, is started at the same time every day and 0 is selected as the critical number of IDocs. The agent responsible is notified if any incorrect IDocs are found and can then manually process the outstanding orders by midday.
    For more information see
    Schedule Monitoring Job (example)
    A processing status is assigned to an IDoc during processing (e.g. Status03: Data Transfer to Port OK). These status values are in turn assigned to a higher level status group (e.g. Output: IDoc Transfer Successful). This assignment to a status group is referred to as Qualification. You can change the assignment of status values to status groups in the Edit Status Values transaction.
    Procedure
           1.      To edit the status groups, choose the ALE customizing transaction SALE ® Set-Up System Monitoring ® Set-Up IDoc Status Display ® Edit IDoc Status Values (WE47).
    A list of statuses which have been defined is displayed.
           2.      If necessary, choose This graphic is explained in the accompanying text. By double-clicking on the status that you wish to assign a different status group, the detail screen is displayed.
           3.      The status group is displayed in the Qualification field. Use the F4 input help for an explanation of the numbers.
           4.      Select Save.
    ExampleExample
    Status 25 (processing despite syntax error (outbound)) is assigned status group 1 = “Outbound: IDoc generated". Replace 1 with 5 for “Outbound: IDoc Interface error".
    Chek Tcodes in WE02 OR WE05
    Regards,
    Phani,
    Points If Helpful.

  • Thirdparty sending Idocs to PI

    Hi All,
    We have a requirement in which thirdparty can sending Idocs directly.
    So we configured scenario as below:
    1)Thirdparty will send Idoc to PI
    2)PI will do the data modifications in mapping
    3)And forward idoc to SAP.
    now here when Thirdparty system is trying to send some Idoc we get error "RFC_ERROR_SYSTEM_FAILURE".
    Can anybody suggest me some blog or link which talks about similar requirments?
    We have created Logical system , Business system in PI Development and configured further ID settings.
    I am not sure what is wrong in this?
    Thanks and Regards,
    Atul

    Hi,
    Since you're having problems determining the queue i suggest a different approach,
    look for the RFC destination (transaction SM59) that your IDoc adapter is using and deliberately make the connection fail e.g. remove the user for the RFC (NOTE: this is applicable only if you want ALL message types for that destination to be stopped, otherwise if there is only a specific message type that you want to stop then go to IDX2 and delete the metadata for that message type)  both of this will result to your IDocs being stucked tRFC (transaction SM58)  you have stopped the IDoc flow with this
    Then you can go to transaction SMQ1 of XI and you will see there the queue that your IDocs are using, as suggested by others most likely of queue name XBTO***
    You can revert back the alterations done once you want the IDoc to flow again, stucked entries in SM58 you can process by running report RSARFCEX from transaction se38
    Hope this helps
    IF this is an XI Production box you may need to get the appropriate changes be approved by your Controller as this is only a temporary change and not a change request, hence only a workaround
    Edited by: HJ Dlec on Jul 17, 2008 7:38 AM

  • IDoc Message Structure Missing from Condition Editor - SWCV Dependency

    Hi All,
    I have an issue whereby I am missing the Message Structure in the Condition Editor Dialog while doing Receiver determination. I have seen others posts with the issue but none of the solutions seem to apply to me. My config:
    I have a SWCV called MY_SAP_BASIS, which is defined in the SLD with SAP BASIS as prereq. I import this SWCV into IR and build some objects. I wish to use an IDoc, so I import it into SAP BASIS, and it appears under my SWCV (MY_SAP_BASIS) in the "Basis Objects" section, but not directly under "Imported Objects" - as I would expect because of the relationship created in the SLD.
    My issue comes when I try to create a Rec. Determination. I want to use the condition editor, for multiple receivers, but when I click on the button to bring that up, first I get the error "Message interface does not exist in any software components installed on this business system", then when I try to use the Structure of the IDoc for an XPath, the structure browser is empty.
    I can't see why this would be. If I look in the SLD, and look at the Business System in question, it lists MY_SAP_BASIS and SAP BASIS as being installed.
    Also, when I do a "Where used" in IR on that IDoc, using my own SWCV and SAP BASIS, I get the same list. I have also checked the GUID's between the SLD and IR, and they are identical (except fpr hyphens in the display, which I am assuming don't matter).
    Anyone have any ideas? I assume that if I import the IDocs directly in MY_SAP_ERP, I will be able to solve this. But I would rather the Software Dependency worked!
    Many thanks.

    Jai/Michal,
    Many thanks for your replies. But unfortunately I had already checked this and I don't think it is the issue. My first message probably wan't as clear as it should have been: I have a Product "MY_SAP_BASIS" - this has one SWCV under it, also called "MY_SAP_BASIS". This SWCV has a dependency on "SAP BASIS 4.6c". Now, on the Technical and Business systems involved, the Product "MY_SAP_BASIS" is installed. This, as you would expect from the dependency, brings across the "MY_SAP_BASIS" SWCV and the "SAP BASIS 4.6c" SWCV, so they are both installed on the technical system . So I don't know what else I should be adding? Unless my understanding of Software dependencies is incorrect, I think my config looks right in the SLD. The SWCV under which the IDoc imports are done is "SAP BASIS 4.6c", and this is installed on both the technical and business system. The only difference is that it gets there through a software dependency, and is not added "directly". In IR I can see the imported objects under the "MY_SAP_BASIS" SWCV - in the "Basis Objects" section.
    Is there anything else anyone can suggest?

  • Processing FINSTA IDoc

    Hello Gurus,
    I am working on Electronic Bank Statement. I have already configured all the settings for EBS. However, with regard to FINSTA IDoc Inbound, I am not sure how to map these segments with MT940 file format file that Bank is sends us. Also, may I know how will these FINSTA idocs be processed into SAP. Will they trigger FF.5 automatically or would update directly in the tables FEBKO? What if these statements need post processing in FEBAN?
    PS: In the event of Bank sending the FINSTA idocs directly as inbound, do we need to map them further.
    Can anyone answer my queries?
    Thanks in advance,
    NK

    Hi,
    This thread has been created some time ago and recieved no response. Can you please close if you feel this issue/query has been resolved in the meantime. If it has not then please provide additional information in relation to your query. By providing updates to your thread it moves you thread to the first page of thread and increases visibility and possiblity for the multiptude of experts in SDN Forums to offer their support.
    Therefore please update with more information or close thread.
    Thank you for your assistance.
    Regards,
    Brendan.
    (ERP FI/CO SDN/WIKI Moderator)
    http://wiki.sdn.sap.com/wiki/display/ERPFI/ERP+Financials

Maybe you are looking for

  • Can not install trial PSE6 on Mac 10.5.6

    I have downloaded the trial version, but everytime I try to install it, it gets to the end of the process and I get the following message: Successfully installed: 1 component Shared components Errors: 2 components Adobe Photoshop Elements/component i

  • All SharePoint sites showing "This page can't be displayed"

    Hi everybody, I am facing a very odd situation on one of our SharePoint 2007 server. (single server farm) All sites even Centeral Administration are showing "This page can't be displayed". I can't go to any sharePoint page. I can ping the server and

  • Why is google doing this to my site?

    Hello! Ok I have a site finally that I did: www.hopeproject.co.za But for some reason i cant get google to say what I want it to say if I search my name. See attached google image. What I want to say is: The artwork of Wesley van Eeden including illu

  • Changing IP after Promote to DC

    Hi i am prepare a Server with Win server2012 R2, and after that i need to send to finall client. the issue is: i am using here the range of ip  192.168.1.0, but on cliente it will 192.168.10.0 can install, promote to DC the server using the primary i

  • Yahoo won't accept my e-mails

    For about 2 weeks I haven't been able to send e-mail to anyone with a Yahoo account. Their tech support has been unhelpful. This is the return message I get. Any ideas? This Message was undeliverable due to the following reason: Your message was not