Capture message ID / IDOC numbers (IDOC-XI-HTTP)

Hi! I am running a IDOC-XI-HTTP scenario and am trying to figure out a way to capture the XI message ID and the IDOC number to which it is linked and send this to back to the source system such that the user can see the data. This is needed to support easy follow up on issues.
Does anyone have experience on how to grab this kind of data at runtime? I know I can output the message as a file to the filesystem but this is not an option.
Any bright ideas would be much appreciated!
Thx, Duncan

Hi Prakash
Really really helpful. Can grab the message ID now. However, I am still not my end point. Basically, my scenario is as follows:
Source SAP --> IDOC --> XI --> Map --> XML --> External Party
I don't want to the put the message ID in the message to the External Party but rather write it back - probably via RFC - to it source SAP system. Net, dusire scenario is as follows:
Source SAP --> IDOC --> XI --> Map --> XML --> External Party
+ Message ID --> Source SAP
Any ideas? Will award points for your previous reply as that already helped a whole lot.
Thx
Duncan

Similar Messages

  • Capture Messages while Inbound processing of IDOC

    Hi ,
    I have a scenario where in i have to upload a file from application server using inbound IDOC. I am using the program RSEINB00 (using submit) for this, The idoc is getting posted successfully but i need to capture the messages in form of a log so that i can find out what all IDOC numbers are generated and how many of them. In case any error is there. I need to display a log of it.
    Timely help in this regard will be appreciated and rewarded suitably.
    Rgds,
    Kewal
    P.S. : Please suggest if there is any other method to process inbound IDOC (accept we19 TX)

    Hi kewal ,
    As per the scenario explained by you , I suggest you to do following steps
    1.The program you are using is RSEINB00 , has a function mosule present named ' IDOC_ERROR_WORKFLOW_START'. This function module can gice yo the Error message log in case of Inboung IDOC processing fails.
    2.You have two options , eithe you find out any user exit and atttach your own code to it or Complaetely cope that code into your z-program. Int he function module mentioned above , the export parameter  ' G_MESSAGE_FIELDS ' wud give you the error message , error status , error no etc.
    3. So for the INbound IDOC status messages starts with 51-70 , so depending upon ur logic , read all those message into an internal table .Then transfer that to a file .So an error log can be genearated.
    I hope this solves ur problem.
    Regards.
    Note: Reward if useful.

  • Capture Idoc numbers for outbound INVOIC02

    Hi,
    We have a requirement where we need to capture the idoc numbers before it is dispatched.
    IDOCS are populated by FM IDOC_OUTPUT_INVOIC using process code SD09 for custom output type(EDI processing).
    Our requirement is to capture these idoc numbers into a custom table which will be used for further custom processing. The user exits in the above FM are good for just for segment population.
    What is the best approach to capture these idocs? Is there a user exit to capture these idocs?
    Thanks,
    Pratik

    sorry wrong forum

  • Creation of  New Message Type for Extended IDoc

    Dear Friends,
    I want to create New Message Type for MATMAS and want to Active Change Pointers accordingly. Thru this Message Type how can I able to use Extended IDoc which I have created for Basic Idoc Type MATMAS05.
    I am Sending Data from SAP to XI ; Any one can help me in this How can I create the Message Type with the IDoc Extn .
    for Change Pointers.
    Warm Regards,
    Naveen Mutyapu.

    Hi naveen mutyapu,
    see these links
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm#_Toc8400404
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a6620507d11d18ee90000e8366fc2/frameset.htm
    http://www.sappoint.com/presentation.html
    http://www.allsaplinks.com/idoc_search.html
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://www.erpgenie.com/sapedi/idoc_abap.htm
    http://www.allinterview.com/rss/interview-questions/new/SAP-ALE-IDocs.xml
    happy learning.
    thanks
    karthik

  • ** HTTP 401 Unauthorized - IDoc to IDoc scenario

    Hi Friends,
    I am doing IDoc to IDoc scenario. For the sender side I am using XI adapter instead of IDoc Adapter. Because, we don't have access of third party source (SAP) system. We take the source payload from message mapping and test the same in RWB --> Component Monitoring --> Integration Server --> Adapter Engine XD1 --> Test Message Tab.
    After give all the sender details, when I test the scenario, it throws the following error 'Error while sending message; invalid content type for SOAP; TEXT/HTML; HTTP 401 Unauthorized'.
    What could be the problem ? Could you kindly tell me friends.
    Kind Regards,
    Jegathees P.

    Hi
    Check Pipeling entry in SLD
    SLD -> Business System -> Open your XI business system and check for the pipeline entry there.
    It should be  http://server:httpport/sap/xi/engine?type=entry
    Check also this blog for HTTP 401 Error
    Http* Errors in XI

  • Message Types in DELVRYxx IDocs

    Can anyone tell me why SHPORD/WHSORD/SHPCON/WHSCON message types apply for idoc DELVRY03 but not for DELVRY05?  I thought each new version of the IDoc would still be used for the original message types.
    Thanks,
    Keith

    Maybe because of some problems. For example : [Note 971803 - No IDoc object types for SHPCON and WHSCON|http://service.sap.com/sap/support/notes/971803].
    But I found no proof of this change! Normally it can't be changed without a note (I mean, without informing).
    For information, this note created the messages : [Note 311664 - Assignment of IDoc type DELVRY02 is incomplete|http://service.sap.com/sap/support/notes/311664].

  • Mapping every record in a given message type to an IDoc

    Hi all,
    As per the requirement, I have a message type which stores a number of records from the database. The root node of the message type repeats as many times as the number of records. I need to map this message type to an IDoc with an IDoc created for each record. However, the pre-defined structure of IDoc has the root node occuring only once. Can the mapping of every record to an IDoc be acheived by using Message tab of the message mapping to have the IDoc occurence as 0..unbounded?
    Thanks,
    Amit

    Hi,
      In message mapping Change the occurence of the IDOC as 0 to unbounded in the Target message inside Messages Tab.
    Also change the occurrence of IDOC in the Interface mapping as 0 to unbounded.
    Thanks,
    Tiny
    Edited by: TINY MAMPILLY on May 7, 2009 11:14 AM

  • IDoc to IDOC, Message Mapping settings

    Hi!
    I am going to implement IDoc to IDOC scenario.
    The IDOC should be send from SAP ECC 6.0 system, client 100 to the same system in client 200 via SAP XI.
    I have chosen the message type MATMAS05.
    Questions
    - What is the minimal message scenario (MATMAS:MATMAS05 to MATMAS.MATMAS05) in message  mapping?
    - when I change some mapping attributes do I need to activate the other related objects (e.g. Interface Mapping, etc.)?
    My problem is that the IDOC will be received in SAP XI, but has the following error:
    Error: must node 'E1MARAM' failed in structue MATMAS05
    How can i correct this error?
    Thank you very much!
    regards
    Holger

    Hi Holger,
    >    * What is the minimal message scenario (MATMAS:MATMAS05 to MATMAS.MATMAS05) in message >mapping?
    No Mapping at all or a direct 1:1 connection of all corresponding fields.
    >    * when I change some mapping attributes do I need to activate the other related objects (e.g. Interface >Mapping, etc.)?
    You only have to activate objects that you changed - so no.
    From the error I guess that a node in the target structure is not created although the idoc-definition states it as mandatory.
    Do you really need the mapping? Does the incoming IDoc also miss the Node?

  • IDOC to XML using HTTP

    Hi Friends,
    Is there any possibilities to Convert IDOCs as XML using HTTP Adapter in SAP PI?
    Because in my Scenario i need to send Idocs from ECC to Red Prariie using SAP PI.
    Also is it there any possibilities using FTPS?
    Please help me.
    Thanks.

    Hi PIstarter,
    Sure this is possible. Just treat the IDoc like any other Service Interface that you use in the HTTP Receiver Adapter. You can even use the no-mapping approach if no additional processing is required by PI.
    Hope this helps,
    Greg

  • How to Send Idoc Acknowledgements back to Http sender (Http to Idoc)

    Hi
    I have scenario: Http To Idoc
    first requirment:
    i need to map xml file come from HTTP Sender to Idoc (SAP system), and need to send Idoc acknowledgements/status back to Http sender.
    second requirment:
    while mapping COM Xml file come from Http to COMMAT04 idoc into SAP system i need to to check whether corresponding material already exist in R/3 or not, if material is not exist, process should be cancelled and alert should be raised. ( i mean to say before sending COMMAT04 idoc into SAP, corresponding material should be exist already, if not alert should be send to  http sender)
    please thrown some inputs, if sombody has already done with htis....
    Thanks in Advance, and help would be appreciated..
    Thanks and Regards
    Rajesh Babu

    Just providing the specifics that Suhail has intended.
    How to handle IDOC Acknowledgements in XI.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f6d2d790-0201-0010-9382-b50b499b3fbe
    RFC Mapping Lookups:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
    Regards,
    Ravi
    Edited by: Ravi Kanth Talagana on Jul 7, 2008 3:32 PM

  • BADI_BUILD_MESSAGE + IDOC numbers required

    Hi,
    I am setting up an alert notificatio in solution manager for IDOCs. It is working fine. But the requirement is to extend the functionality  and add idoc numbers also in the same mail alert. I found a BADI  "BADI_BUILD_MESSAGE"  for this purpose.
    Please help me to suggest if this is the correct  BADI and also where(in which parameter of the badi) will I find the IDOC numbers. I could not find the source of the IDOC numbers as this is running in background system.

    Check if note 1609090 can help you.

  • Logic to update the table with IDOC numbers

    Hi all,
    I have an issue while I am running my interface. The IDOCs are getting generated and are displaying in WE02 successfully. But in my logic, I have a requirement to update these created IDOCs in a customized database table. This table has the IDOC number as the first key field.
    Now the issue is that when a file is placed on the FTP server with the data, the IDOCs get generated with no doubt but the table is not getting updated with these IDOC numbers due to which my other data is also not seen in my table.
    Please help with the logic that I need to place to update these IDOC numbers in my table.
    Thanks.
    Taarikha

    Also, this is happening when the file is placed. But when i run it manually through WE19 one by one, it has no problem. When it collectively run thorugh the file in background, this issue is ocuuring. Please help.
    Thanks.
    Taarikha

  • Idoc numbers for a certain output in Sales Orders

    I have more than hundred Sales Order
    One EDI output was triggered (with a unique partner type) from each of these Sales Orders.
    How to find idoc numbers for all these Sales Order for this particular output?
    I tried WE09 giving Segment and field with value....two issues with this. first is it is not working for me...not records found.
    Secondly It take one value at a time. I can't do this for every Sales Order
    Is there any database table or something else to find these idocs?
    Thanks a lot!

    Hi,
    if this special partner type is the partner type of the IDoc receiver, then you can search for relevant IDocs in transaction WE02.
    If you need a partner type out of the sales order data, then it is stored in table EDID4 "IDoc Data Records".

  • Posting goods issue using Message type SHPCON and idoc type DELVRY03

    Hi SAP Gurus,
    I am using message type SHPCON and idoc type DELVRY01 with processing code DELV to post goods issue for a delivery note.
    I tried to simulate the inbound entry via WE19. The scenario should be posting goods issue based on the delivery order.
    In some cases, quantity issued is less than the quantity in the DO. For this, I need to change the delv quantity in the DO via VL02N before I select Post goods issue button. This will change at the same time post the goods issue.
    What I have filled up are the fields:
    E1EDL20-VBELN = DO num
    E1EDL20-VSTEL = Plant
    E1EDL18-QUALF = "PGI"
    E1EDTH13-QUALF = "006"
    E1EDTH13-NTANF = date today
    E1EDL24-POSNR = 000010
    E1EDL24-MATNR = material num
    E1EDL24-WERKS = delv plant
    E1EDL24-LGORT = sloc
    E1EDL24-LFIMG = updated quantity
    But everytime I simulate using WE19, the entire quantity in the DO is not changed at all. The goods issue quantity posted is still the original DO quantity.
    May I know how to do this? Thanks.

    Put value in E1EDL24-LGMNG for qty to pgi.

  • Store archiving IDoc's to an HTTp content server

    Hi Guru's,
       I want to store the archived IDoc's to an HTTP content server. 
    i have created an content server on OAC2 and i dont know how to link the archived IDocs to an HTTp content server.
    I searched many forums, but i cant get the exact solution for this.
    Could anyone help me on this..  pls...
    Thanks in advance,
    murugan..

    Hello,
    I will take a final call on this - As i understand all the configuration is correct but not updating in link tables.
    I also understand system Id is ok as PO and IDoC are working.
    In Content repository creation for PO & IDoC you will be taking document area as Data Archiving but for Printlist content repo you have to select ArchiveLink.
    If you have done above then check connectivity and send the certificate
    In your Archive server (IXOS, EASY, DOCUMENTUM or so on ) Check same content repository is properly configured.. if possible refresh it. Check for certification from SAP.
    You are facing connectivity issue so cross check carefull all archive server level.
    Lastly check oss note
    Let us hope for the best.
    -Thanks,
    Ajay.

Maybe you are looking for

  • Question onTwo EUL in One environment

    Hi Experts . We are planning to have Fusion middleware setup for Discoverer . we have two EUL's in two different databses . Please let me know how can i create config the environment to use both the discoverer EUL's. i have created two different repo

  • Has Anyone Been Charged for the RSD Repair?

    In all the talk about the MacBook's RSD (Random ShutDown) problems, I haven't read anything about a repair fee. It always struck me as a faulty unit that Apple was fixing to make it as it should be. (That is, the "problem" isn't a result of anything

  • Firefox on Win 7 64 won't shutdown when closed. how do I fix this?

    On Win 7 64 bit Home Premium version my Firefox won't shutdown when I close it. This started since the upgrade to version 29. It is very annoying to have to go to the task manager and stop the process in there every time I exit Firefox. How to I corr

  • VNI-2015 : / OEM Load Wizard

    Hi, I try to load data into a table using the Load Wizard in OEM(2.0.4) on an 8i 8.1.5 running in W2K. The job results with the message "VNI-2015 : authentication error ". Is there anyone who can give me an advise for a solution or a hint on where I

  • What is the optimum setup arrangement for Time Capsule with an ATT Uverse Router?

    I recently installed a Time Capsule in conjunction with my ATT Uverse router.  I read alot of information regarding the setup. Most articles sugessted to disable the ATT router and let the TC handle the router function.  I was hesitant to do so as I