Asociating IDOC to IDOC based on content

I have the following scenario  R3 - > XI - > none SAP
The XI receives an IDOC from R3 and posts it to the None SAP system
The data that is received back is like an Aleoud Idoc but since it comes from NONE SAP system XI process it as a regular IDOC.
I want to build a report based on the Message content (not ID for example by material ID) and to associate the generated ALEUD to the original IDOC that R3 posted
How can such a report be build?

hi,
you cannot get to message data that easily
but you can try debugging TCODE: SXI_monitor
to see which classes allow you to get the message data from XI tables
but if you try to "correlate" your messages on
the basis of IDOC number you won't have to do it
cause you can get the data from the tables that I've shown you
Regards,
michal
Message was edited by: Michal Krawczyk

Similar Messages

  • Splitting Purchase Order Idoc based on qty

    Hi All,
    I am having a requirement wherein i have to insert multiple line items in purchase order idoc  based on quatity .Eg if the line item qty is 3 then the same line item has to be repated for 3 times and purchase order idoc has to created with 3 line items.I am trying to do this User exit EXIT_SAPLEINM_002 which is used Customer Enhancements to Data Segments: Purchasing Document (Outbound ).Can anybody tell me how can i go ahead inserting multiple lineitems in purchase order idoc based on the qty.So, Can anybody know how to handle this scenario? Also, can you please let me know whether is there any standard procedure for handling this scenario
    Thanks in advance
    Regards
    Saravana

    Hi,
    Use t.code ME2M or ME2N , enter account assignment category A & then choose selection parameter WE101 (open goods receipt) and execute.
    Regards,
    Biju K

  • Creating  idocs based on invoice number ocurrences

    Hi ,
    I want  to create idocs based on invoice numbers .
    Lets say i have a file coming in from sender system
    Invoice1 material customer value
    Invoice1 materail1 ..........
    imvoice2 material2.....
    invoice2 material1.....
    invoice1 material3..
    Invoice3. material4....
    So for Invoice1 only one Idoc should be created  similarly for invoice 2 which is ocurring twice in the file
    only 1 idoc  should be created
    Let me know how to achieve this ..  by UDF , or by split by value
    please help
    thnx
    Chirdip

    Hi,
      Change the IDOC occurance to 0-unbounded.Export the xsd change the occurance and import it to external definition.
    Map Like below:
    invoice number--removecontext--sort--splitbyvalue(valuechange)--IDOC
    other fields you need to map like below.
    invoice number--removecontext--sortbykey--SplibyValue(Each)---IDOC fields
    source field----removecontext------
    Regards,
    Prakasu.M

  • Multiple IDOCs based on multiple fields in File to IDOC mapping

    Hello Experts,
         I have a requirement to create multiple IDOCs based on multiple fields.
         Earlier my requirement is to create IDOCs based on ShipID (i.e., for every ShipID new IDOC...I achieved this).
         But now the requirement was to create IDOC based on two more fields like
    Source:
         ShipID1
         FieldA with value1 
         FieldB with value1
    Target :
         1 IDOC to create
    and If
    Source:
         ShipID1
         FiledA with Value2
         FiledB with Value2
         ShipID1
         FiledA with Value1
         FiledB with Value2
    Target:
         2 IDOCs based on FiledA
    Like wise IDOC should create for every change in FiledA and FieldB.
    If FiledA and FiledB has no changes then create IDOC based on ShipID
    please help me in achieving this as this is an urgent requirement.

    Hi Prasad -
    Just concat all the three fields - shipID1, FieldA and FieldB and
    remove contexts
    split by value (value changed)
    collapse contexts
    This way whenever there is a change in any of the above fields you'll have separate IDOC..

  • How to split the IDOCS based on document number change whit out BPM

    Hi all,
    Thanks,for giving the responce..
    Scenario:File to IDoc.
    Problum1 : How to Split the IDocs based on document number change in the source file with out BPM.My file contains document numbers like
    20000092
    20000092
    20000092
    50000050
    50000050
    50000065
    I want 3 IDocs in target system.i.e 1 for 20000092,20000092,20000092
                                                       2 for 50000050,50000050
                                                       3 for 5000006
    By using external definations i am getting 6 IDOCs insted of 3.
    Problum 2:Is there any chnges/modifications in Directory when we are using external definations.
    Could u plz provide me the step by step process(Repository/Directory) with using of external definations.
    Thanks in advance.
    Regards,
    KP

    HI,
    for this no need of BPM.
    You can think of Idoc bundling concept to acheive this-just you need to do the external definition to change the idoc occurence
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
    to achieve for each document no, one idoc, you can write small user defined function in the mapping with context handling you an achieve this.
    For this e.g
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6bd6f69a-0701-0010-a88b-adbb6ee89b34
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/877c0d53-0801-0010-3bb0-e38d5ecd352c
    Regards,
    Moorthy

  • BAPI/FM to create idoc based from another(Just like WE19)...

    Hello Experts,
    Are there any BAPI to create a new idoc based on an existing one just like the functionality of WE19?
    Thank you guys!

    But looks like this function module is opening CO07 in SAPGUI...i actually need to call the function module from web application and create the add-on order. Please advise.
    Besides..i can pass the KTEXT value during the function module call itself right? can you pls tell me the reason why i need to force this in the enhancement spot?
    Regards,
    Kumar.
    Edited by: Kumar Kasavaraju on Aug 28, 2009 11:02 PM

  • IDoc based asychronus data transfer

    Hello Experts,
    IDoc based asynchronus data transfer from a non-SAP application to BW is required to be set up.
    I understand that SOAP based XML data transfer will achieve the same goal - however our requirement is to use IDocs. It would essentially be a push type of extractor sending data to BW asynchronusly.
    Has anyone tried this before? Please share your experiance/ideas.
    Thanks,
    Yogesh
    Message was edited by: Yogesh Baviskar

    you will have the option when you create the infocube. select "Data transfer wth Direct Access" option. Then you create the DTP by giving the data source details.Once you have created the DTP, right lick on cube and select activate direct access.

  • How can we trigger an IDOC based on Orders creation.

    Hiii...experts,
                            After searching alot in SDN i am taking this very commonly asked to experts in the hope of a better understanding.
    If i create a sales order means.. i want to trigger a IDOC based on certain Condition on ORDER data .. how can we do this..
    when ever i'm creating a sales order it should be automatically trigger a IDOC , Because when ever sales ordre was created in R/3 system it should be transferred to some destination...
    And pls tell me about the reports that does the job of collecting required data from the sales order and converts it into a IDOC.
    so, how can we trigger an IDOC based on Orders creation..
    pls help.
    Ram.

    Use IDOC_OUTPUT_ORDERS for creating IDOC
    you need to maintain condition records & output type
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 10, 2008 4:18 PM

  • Create Idocs based on Company Code change & Line Items less than 950

    Dear all,
    I am trying to create the Idocs based on the flat file in the following way.
    1) Create the Idoc per company code
    2) If company code exceeds 950 lines then create another Idoc
    I am trying to follow this BLOG and could not be able to achieve it because in the Blog explained with flat structure and my case is Idoc structure.
    /people/claus.wallacher/blog/2006/06/29/message-splitting-using-the-graphical-mapping-tool
    I changed the Idoc Occurrence and imported to External definition.
    I am able to do the both check individually but not able to put them in combining.
    Please advice..
    Regards

    Company Codes -> sort -> SplitbyVlaue(Valuechange) -> CollapseContexts -> remove contexts
    AND
    Contact(CompanyCodes, Lines) both in header context - removeContexts - SortbyKey(CompanyCodes) -
    formatbyExample(Company Codes -> sort -> SplitbyVlaue(Valuechange)) - count - greater(>950)
    Srikanth Srinivasan

  • Get Archived IDocs based on IDoc creation date

    Save Our Environment. Save Yourself.
    Hi Experts!!!
    We need to get the archived idocs based on the idoc creation date. If I give some date, then I should get all the idocs that are archived in that period. How can this be possible?
    One more doubt is - I checked the logical path in FILE for archived idocs. But when I go to that in AL11, I can not see any data in that. Where can I find the details of all the archived idocs?
    I serached in SCN for the same but in vain.
    Please help me out. Thanks.
    - I'm not an environmentalist.  I'm an Earth warrior.

    Please find the code to read archeived idocs
    FORM read_datarecord.
      STATICS ls_open TYPE boolean VALUE false.
      DATA: ld_tabix TYPE sytabix,
            lt_edidc TYPE STANDARD TABLE OF edidc,
            ld_edidc TYPE edidc.
      MOVE syst-tabix TO ld_tabix.          
      IF int_edidc-mandt IS NOT INITIAL.
      ELSE.
        IF gd_use_as IS INITIAL.
          IF ls_open = false.
            CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ'
              EXPORTING
                object         = 'IDOC'
              IMPORTING
                archive_handle = gd_archive_handle
              TABLES
                archive_files  = gt_arch_sel.
            MOVE true TO ls_open.
          ENDIF.
          CLEAR ld_edidc.
          WHILE ld_edidc-docnum <> int_edidc-docnum.
            CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT'
              EXPORTING
                archive_handle = gd_archive_handle
              EXCEPTIONS
                end_of_file    = 1.
            IF syst-subrc IS INITIAL.
              REFRESH lt_edidc.
              CALL FUNCTION 'IDOC_ARCHIVE_GET_TABLE'
                EXPORTING
                  archive_handle   = gd_archive_handle
                  record_structure = 'EDIDC'
                TABLES
                  t_data           = lt_edidc.
              READ TABLE lt_edidc INTO ld_edidc INDEX 1.
              IF ld_edidc-docnum = int_edidc-docnum.
                CALL FUNCTION 'IDOC_ARCHIVE_GET_TABLE'
                  EXPORTING
                    archive_handle   = gd_archive_handle
                    record_structure = 'EDIDD'
                  TABLES
                    t_data           = int_edidd.
              ENDIF.
            ELSE.
              EXIT.
            ENDIF.
          ENDWHILE.
        ELSE.
          CALL FUNCTION 'EDI_IDOC_GET_FROM_ARCHIVE'
            EXPORTING
              docnum                       = int_edidc-docnum
            TABLES
              int_edidd                    = int_edidd
            EXCEPTIONS
              idoc_not_in_infostructures   = 1
              idoc_read_error_from_archive = 2
              archive_close_error          = 3
              others                       = 4.
          IF sy-subrc <> 0.
          ENDIF.
        ENDIF.
      ENDIF.
      IF ls_open = true AND ld_tabix = anz_int_edidc.
        CALL FUNCTION 'ARCHIVE_CLOSE_FILE'
          EXPORTING
            archive_handle = gd_archive_handle.
      ENDIF.
    ENDFORM.                               " READ_DATARECORD
    PS if you don't have auth to SARA then get auth . you need to talk to your business owner or talk to basis to get auth

  • Multi-mapping based on content field

    Hi guys,
    I'm doing a scenario with mult-imapping 1x2, based on content field I'll create message1 or message2. If the source content has both key fields (ex. A = message1 and B = message2) the scenario works well, but if only one key field comes (ex. A to create only message1), an error occurs inside the transformation step of BPM. It seams BPM is waiting for message2 ...
    (note: I'm using BPM because one of these messages is an IDoc)
    Anyone has faced this issue?
    Thanks in advance,
    Ricardo.

    Hi guys,
    Thanks for the prompt answers.
    I already have the occurrences with 0..1 (optional) and it doesn't work :s If I look into message mapping, I see that message1 and message2 are always 1..1 and there is no way to change it. In the messages tab you can only change the occurrence for the low level of each message1 or message2. Every time I test this mapping the header of message2 is always created even without content and that’s the problem and I don't know how to fix it...
    Any ideas?
    Thanks in advance,
    Ricardo.

  • Why is elements better at photomerge than CC- CC does not appear to automatically fill image based on content but elements does when merging a panorama. Also the stitching is visable in CC but almost perfect in elements- why?

    I took 6 panorama shots of a scene and used CC to Photomerge them as one. Couldn't see where to automatic blend the edges and there was 'stitch' lines when the images were merged. So i did the same in Elements 11 and it was perfect. Am i doing something wrong in CC or perhaps not doing something at all?
    Any help, please?
    Dave

    Hi - Thanks for taking the time to reply and i appreciate the remarks- if a little harsh- we all have to start somewhere and i am fully aware of the limitations of Elements which is why i decided to add CC to my software. I can only say that if an inferior quality software from Adobe does the job well then CC must also be suited to doing the same which is why i can only think, from your comments, that i have not done something simple- however- following tutorials to get to the end result should have sufficed- it didn't so perhaps i will consider posting the difference between the two applications- and, perhaps suffer a few more 'harsh' comments. The learning curve is quite steep and i am a visual learner, but i'm also not totally incompetent:)
    Kind Regards
    Dave Munn
    Original message----
    From : [email protected]
    Date : 02/02/2015 - 06:45 (GMTST)
    To : [email protected]
    Subject :  why is elements better at photomerge than CC- CC does not appear to automatically fill image based on content but elements does when merging a panorama. Also the stitching is visable in CC but almost perfect in elements- why?
        why is elements better at photomerge than CC- CC does not appear to automatically fill image based on content but elements does when merging a panorama. Also the stitching is visable in CC but almost perfect in elements- why?
        created by station_two in Photoshop General Discussion - View the full discussion
    First a clarification: you are not addressing Adobe here in these user forums.  You are requesting help from volunteers users just like you who give their time free of charge. No one has any obligation to answer your questions.
    I'll give it my best shot anyway.
    Few folks in this forum are really familiar with Elements, for which there's a dedicated, totally separate forum.
    Different engineering teams, also.
    From this perspective, it will be difficult to give you a direct answer to your "why?" question.
    Personally, I blend very large panorama shots in Photoshop proper since I can't even remember when without any issues whatsoever, up to and including in Photoshop CS6 13.0.6.
    Without being at your computer and without looking at your images, I couldn't even begin to speculate what you are doing wrong in Photoshop, which I suspect you are.  The least you could show is post examples from your panoramas that have gone wrong.
    I can tell you that panorama stitching requires significant overlap between the individual shots, besides common-sdense techniques like a very solid tripod and precision heads.
    The only version of Elements I have ever used for any significant time was Elements 6 for Windows, which I bought in 2008 to use on a PC (I've been an avid Mac user for 30 years).  I found Elements so limited and so bad that I successfully demanded a refund from Adobe.  IU mention this only to emphasize that I can truly only address your question from a Photoshop (proper) and Mac user point of view.  I couldn't care less about Elements, but if you have comparison examples of panoramas processed in both applications, by all means post those two.
    Generally speaking Photoshop is a professional level application that makes no apologies for its very long and steep learning curve, while Photoshop has many hand-holding features for amateurs and beginners.
    Perhaps the bottom line is that you should stick with Elements if you personally manage to get better results there.
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7152397#7152397 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7152397#7152397
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in Photoshop General Discussion by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • From SharePoint Content Database, Using SQL-Server Query how to fetch the 'Document GUID' based on 'Content Type'

    I want to get all the documents based on content type using SQL Server Query. I know that, querying the content database without using API is not advisable, but still i want to perform this action through SQL Server Query. Can someone assist ?

    You're right, it's not advisable, may result in corruption of your databases and might impact performance and stability. But assuming you're happy to do that then it is possible.
    Before you go down that route, have you considered using something more safe like PowerShell? I've seen a script exactly like the one you describe and it would take far less time to do it through PS than it would through SQL.

  • Tabbed panel with adjustable/variable height based on content

    Is there anyway that you can create a tabbed panel with adjustable/variable height based on content in each tab?

    Abhishek,
    Thanks for your reply, however, it is not working with Muse. I added the Javascript to the head section and adjusted iframe and it displays as a small square in the upper left hand corner, unable to view the whole page.
    Inserted into head section --
    <script type="text/javascript">
       function resizeIframe(obj)
      obj.style.height = 0;
      obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';
       </script>
    inserted as an html object --
    <iframe name="MycoSmooth" src="http://www.mycosmooth.com" frameborder="0" scrolling="no" id="iframe" onload='javascript:resizeIframe(this);' />
    Below is the result:
    The purpose is to have an independent website run the blogging capabilities, since muse doesn't directly support blogging as of yet.
    Since the site is on a different domain, I am running into cross domain issues and it won't get the height of the page. The methods that apparently work use php and I am unsure how that would work in muse, if at all.

  • OSX Dims Screen based on Content

    I've been noticing that my screen appeared to be dimming randomly (or at least it seemed random at first). I search the web and found tons of people complaining about the same behavior, and adjust their energy settings and ambient light settings, but none of it worked. Their Macs kept on occationally changing the screen brightness.
    Idleness wasn't the issue: During my tests I was actively using the computer (and I'm plugged in)
    Ambient Light: There was no change in ambient light, so it wasn't this either (and I disabled this setting and the behavior persisted).
    However, what has changed is the contents of my screen. If I go to a website with really dark graphics, or go full screen on some movies, the screen brightness turns down. I can reproduce this "dimming" effect consistently... and then I found this:
    http://www.macrumors.com/2013/01/22/apple-granted-patent-on-methods-for-dimming- screens-based-on-content-needs/
    Apple has a patent that allows them to dim screens based on their contents. I am certain this is what is affecting our screen brightness. This is meant to be a power saving feature according to the patent, but it is SUPER annoying. What I can't figure out is how to turn this setting off...
    Any help would be great.

    http://www.youtube.com/watch?v=KZQTul8k-OM

Maybe you are looking for

  • Receiving error ORA-01555: snapshot too old:

    Need some info... Currently seeing ORA-01555: snapshot too old: rollback segment number 18 with name "_SYSSMU18$" too small. Info: SQL> show parameter undo NAME TYPE VALUE undo_management string AUTO undo_retention integer 4200 undo_suppress_errors b

  • Using portal theme in web dynpro tables

    We are currently running EP6 (NW04).  Is there a way to make our java web dynpro table ui elements use the portal theme?  All tables appear blue unless they are checked as readonly in which case they are white.  I see there is a TableCellDesign ui el

  • Print option for PDF only...

    Hi all, Any suggestions on how we can delete the Print option for HTML format while having it for PDF format? Thanks.

  • Ping the WAN IP no response

    We have two ASR9K each with a WAN link to upstream,  ASR configuration are similiar, however, one ASR WAN IP ping from Internet no response even remove all ACL appied,  wonder lpts apply to the control-plane, I am new in lpts, see can give me some hi

  • IPhone 5 shuts down at 37% battery power...

    This has happened 6 times now - all random times (twice when using FaceTime, twice when taking pictures and twice when texting/emailing). When I try to reboot phone I get screen that shows no battery power remains and that you need to plug in phone.