Inconsistencies when processing Multiple IDocs.

Hi
    When a customized IDoc comes from an external system
    to my R/3 System,GRN(mb1c) and Delivery note(vl01n)
    documents are created through call transaction.
    If one IDoc comes the GRN and Delivery created
    correctly. If Multiple IDocs comes arises
    inconsinstency. The inconsistency is, GRNs are created
    correctly but the Delivery created have items data
    wrong ( actuallly it should match with the GRN ).
    As per my understanding when multiple IDocs comes
    parallel processing of Inbound Function module takes
    place, so the inconsistency. If this is right, how
    to ensure that only one IDoc processing take place
    at a single point of time.
    hope i made my problem clear.
Thanks & Regards,
Abhimanyu.L

Hi Abhimanyu,
It's an inbound idoc ,so when we write the custom function module , we will loop the idoc_data ryt?
Try like this
read table idoc_contrl into wa_idoc_contrl
where mestyp = 'zmessagetype'.
if sy-subrc eq 0.
loop at idoc_data into wa_idoc_data
where docnum = wa_idoc_data-docnum.
case wa_idoc_data-segnam.
when 'ABC'.
WHEN 'XYZ'.
ENDCASE.
endloop.
endif.
Regards,
Nagaraj

Similar Messages

  • IDOC - Web Service scenario gives errors when processing multiple IDocs

    Hi,
    I have an integration process defined in PI 7.1 that contains four major steps :
    -     Receive DEBMAS IDoc
    -     Call a RFC to get additional information
    -     Call a MS Dynamics web service to retrieve the MS Dynamics customer account number via the SAP customer number (synchronous call)
    -     Call a MS Dynamics web service to update customer info (asynchronous call)
    This process works well when one IDoc is processed.
    If however 10 Idocs are submitted, some updates are processed correctly, most of them are not (the find service call works perfectly fine). Sometimes 3 work fine, sometimes 1 (for the same 10 IDocs submitted)
    I did a test with SOAP UI where in a test script I submitted the 10 update service calls and this works fine.
    The error that is given in the adapter engine SOAP communication channel is :
    Message processing failed. Cause: (415)Cannot process the message because the content type 'multipart/related; type="text/xml"; start="<45504935B855BA3ACA0EA2FD503BC60F>"; boundary="----=_Part_20_1319086528.1239082062538"' was not the expected type 'text/xml; charset=utf-8'.
    I noticed in the message content that the SOAP calls that go wrong have two payloads attached, one for the Main Document and one for the XI Context.. The ones that are processed correctly only have one payload, the Main Document
    Anyone an idea what the cause can be ?
    Thanks,
    Jan

    Hi,
      Please check the transaction idx5 in PI system and see whether the IDOC status by double clicking on the corresponding Transaction ID.
      I think this might be due to some invalid data coming from the source system
    Thanks,
    Tiny

  • SendToPrinter delays when processing multiple prints with Watermark

    Hi LC friends,
    We are running a JBoss turnkey LC ES2 SLB (Server Load Balancing) setup. We have a process where we merge .xml data and .xdp form-design to a pdf.
    The pdf with Watermark is achieved and printed once or twice. When we loop and print the 2 times - the first print is quickly BUT with the second print takes 17 seconds to process.
    This is the flow of the print routine
    *) PDF with watermark produced with invokeDDX
    1) convert PDF to postScript  (Service: LC Output > Convert to PS)     about 500 ms to process
    2) sendToPrinter     (prints first copy)     about 100 ms to process
    3) setValue     (add one to count and loops back to SendToPrinter)
    4) sendToPrinter     (Delays - then prints second copy)     about 17 SECONDS to process
    I have tried to print pdf without watermark. In this case the SendToPrinter only delays in 1400 ms. Can anyone tell me why LC SendToPrinter is waiting??.
    I would expect it just print by coping to printer, and therefore have no delay. Any ideas??
    A java custom component might be a more effective way, but would expect Adobe LiveCycle to handle this out-of-the-box!
    Help is very much appreciated
    cheers,
    Thomas Groenbaek

    Try a controlled test - create a new blank file, say 6 x 4 @ 300ppi with a white background and save it as a psd. Then run Process Multiple Files against this one file using the rename files option and with your watermark settings and see if it works on that.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • Processing multiple IDocs

    Hi All,
    I am working on IDOC to file scenario.
    We have one batch job running on SAP R3 system which generates IDocs.
    I have to process these IDocs generated by the batch job.
    My question is, can we hold IDocs on SAP R3 system and send to XI system togather after specific intervals?
    Hope I am clear with the question.

    Of course you can.
    When you create an partner profile for your outbound idoc types, you can specify the option of collecting the idocs (There will be a radio-button for the same.
    Then you can schedule outbound idoc processing programs as per your requirement.
    If you want to collect the idocs in various other ways, look at this blog:
    /people/michal.krawczyk2/blog/2009/05/21/xipi-collecting-idocs--possible-ways-with-pros-and-cons--5-ways
    Regards,
    Ravi

  • Link business document with an existing archive when processing an IDoc

    Hi Gurus,
    I am trying to configure the linkage (Archivelink) of existing archive documents to new business documents created by processing an IDoc. Is there a standard parameterization that allows to input the Archivelink signature during the Business document creation process ?
    Many thanks in advance,
    Guillaume Secco

    I don't see what the problem is with printing to PDF using the Adobe PDF printer as you did with the other tool. Then open your new Excel PDF and do the same process as before (assuming it worked for you). Just go to the Tools>Interactive and add a button field (I assume this is what you did before) and put the file there. At least give it a try as I think that is what you said you used to do.

  • Email notification to specific user when processing multiple files at a time

    Hi 
    I am new to SSIS and error mail notification ,can some please provide details for my urgent and prioritized task in my project.
    below is the requirement
    I have a package for multiple file processing using for each file enumerator .each file having same column definition but for different
    users and different name .
    i have some mandatory fields to form unique id on combination
    1.when files processing any data missed on mandatory fields it should alert users saying following line and fields are missing mandatory
    information 
    2.email notification should send to respective users based on file name.
    example :
    file1:bitunimous.xls 
    file 2.oxford.xls
    each file having following fields
    file 1:bitunimous.xls
    claim no: claimant: subclaim:
    1001 abc 0 
    1002 abc 1 
    1002 abe 0 
    1004 0
    here bitunimous.xls missed claimant value for 4th line then email needs to send to [email protected] as
    line no 4 missed claimant information for unique key generation like that.
    file 2.oxford.xls
    claim no: claimant: subclaim:
    2001 det 0 
    2002 pre 1 
    pqr 0 
    2004 frc
    here oxford.xls missed claimno value for 3rd line then email needs to send to [email protected] as
    line no 3 missed claimno information for unique key generation like that.
    can anybody please provide solution 
    Thanks .
    Ambed

    You need to have a package with below work flow
    1. ForEachLoop container with file enumerator to loop through files
     Have variable inside loop to get the filename during each iteration. Create another variable called emailaddress, set EvaluateAsExpression property to true and set expression as
    REPLACE(@[User::FileName],".xls","") + (DT_STR,20,1252) "@xyx.com"
    2. Add tasks for validating data. Capture details of error on a string variable @[User::Error]
    3. link a sent mail task to previous task and choose expression and constraint option. Set Constraint as On Completion and Expression as LEN(@Error) > 0
    Inside Sent mail task set expression for ToLine and MessageSource properties to map to variables @[User::EmailAddress] and @{User::Error] respectively to sent notifications
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Inconsistent Errors when processing  IDocs using custom Function Module

    I am encountering a most perplexing error. Here is the situation.
    We have a custom function module to update data in the EH&S system. We are having a bizarre error occurring. This is the basic processing of the function module:
    1. IDoc data is read and loaded into an internal table.
    2. Data is run through a series of checks to determine if the data is valid for entry into the system.
    3. After validation we use function module  C1F2_SUBSTANCES_READ_WITH_REF to read  characteristic data for the  substance. This data is used to validate whether current data exists to allow for loading of the IDoc data. (This is the step where the IDoc is receiving an error even if the data is valid. This only occurs if we are processing a large amount of Idocs and one IDoc contains valid data and another invalid data for the same substance. It occurs even if the Idocs are not processed in sequence.  If individually processed or reprocessed after initial failure they pass. This is what is so confusing!) If it exists, a flag is set and  the data is loaded using function module BAPI_BUS1077_CHANGE to modify the data.
    4. If the flag is set to allow further processing, the function module C1F2_SUBSTANCES_READ_WITH_REF is used again to select different characteristic data for the substance. A similar validation process occurs and if it passes, data is loaded using BAPI_BUS1077_CHANGE to update and BAPI_BUS1077_CREATE to create new data.
    Here is the situation:
    When processing one valid record for one substance, the record loads successfully.  When processing multiple valid records (all are valid) for one substance, they all load successfully.  The problem occurs when attempting to load valid and invalid records for the same substance.  Some times the program successfully loads the valid data (as expected).  Other times, it will not load any records.  It is not consistent!
    The order of IDoc processing does not have an impact on the success of the load.  Whether the valid or invalid record processes first does not have an impact on the success of the valid substance load.
    Does anyone have ANY Idea of what is going on? I am clearing all fields in the function module before processing occurs. I cannot find what is causing the error to occur.
    HELP!
    Jim Hardy

    I have some further information. It seems that if data for a substance is sent in two separate Idocs, one with valid and one with invalid data, As long as the two IDocs are processed consecutively, they process correctly. If they are separated by IDocs containing other substance information, they fail.
    thanks
    Jim

  • EDI : Exit when processing message type CLFMAS

    Hi,
    Does anyone know any exit when processing inbound IDOCs of message type CLFMAS ?
    I believe there's no user exit, but maybe there's any other kind of exit but i didn't found it.
    Thanks,
    Paulo Sousa

    Hi,
    You have two open FI events
    OPEN_FI_PERFORM_CLF00100_E
    and
    OPEN_FI_PERFORM_CLF00200_E
    Use transaction FIBF to include your own functions within these events.
    Darren

  • Processing of multiple IDocs and their status

    Hi guys,
    I have a problem with IDoc processing in R/3. I send multiple IDocs into R/3. These are my own IDoc types, and I send them there in a "package". Let's say, I send 5 IDocs of the same type. Each of them has the number, and each of them has the number of the whole set - this means - you know, that this one IDoc is the 1st from the 5, this one is the 3rd, and this one is the last. When they are sent, the processing of them comes... And I have an ABAP program, if the last of them is processed, errors are taken and a new report IDoc is created and sent into external application.
    THE PROBLEM IS: the processing of the IDocs is parallel and when the - let's say 4th IDoc processing takes longer time than the 5th processing takes, not all of the errors are taken into the report, because some errors may occur after (the 4th IDoc processing is independent).
    Do you have any ideas, how could I solve this problem?
    Thanx, Peter

    Peter,
    Here is my suggestion, the code that actually checks for errors and sends a report IDOC, why can't we put in a check to see if all the IDOC's of a particular set have been processed or not.
    How exactly this new report IDOC is being created, there has to be some kind of logic to find out IDOCS that belong to the same set.
    Regards,
    Ravi
    Note : Please reward the posts that help you.

  • JDBC to IDoc ( error when mapping multiple JDBC records to IDoc)

    Hi,
    I am working on JDBC to IDoc scenario, I have declared row as 0 to unbounded and by default the IDoc structure is 1..1.
    Inorder to map multiple rows from JDBC to get multiple IDoc's, I have changed the occurrence of IDoc in "Messages" tab of Message mapping to 0 to unbounded.
    I have mapped "row" to "IDoc".
    When I test the mapping, it works fine, giving the same number of IDoc's with that of row.
    When I test end to end, in SXMB_MONI, it gives me following error:
    <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_IDOC_RUNTIME</SAP:Code>
      <SAP:P1>MSGGUID 54A3A64E895D48EC3F20C69FEFE2E82B: Tag found instead of tag IDOC BEGIN=</SAP:P1>
    can any one help me out with this.
    Thanks in advance.

    Hi Jwalith,
    Check this blog from Michel
    The specified item was not found.
    Make sure that you changed occurance as per this blog.
    hope this is helpful
    regards,
    Venkat.

  • Send mail to a specific user group when an Inbound Idoc processing fails

    I am using standard Message type DEBMAS, but the process code is customed (say ZDEBM as the function module is customed). Can you tell me what configurations are required to activate the error notification message to a user when the inbound idoc fails?

    hi,
    i think u need to check tcode swu3 for automatic workflow customizing and check in we40 (error AND STATUS PROCESSING) whether the processing code is assigned to the workflow task.
    if it is assigned,the workflow will be automatically triggered and the mail will be sent to the user by itself.
    ALE error handling uses workflow. A standard task is provided for each message type. Task TS20000051 is used for all BAPIs.
    Workflow functions as follows:
    A task (work item) is generated for the error handling and stored as a message in the inboxes of the employees responsible.
    If one of these employees processes the work item, the standard task method for error handling is started. The user can, for example, restart IDoc processing.
    If the IDoc is processed successfully, the work item is deleted from the inboxes of all the employees involved.
    For this procedure to function, the employees responsible for a particular message type and partner (sender or receiver) must be defined as follows:
    1. A hierarchy of organizational units (for example, "sales office") and positions (for example, "customer officer for customer X") is created and employees are assigned to it.
    2. The standard tasks for error handling (for example, an error related to an inbound sales order) are assigned to the relevant organizational units or positions (for example, "sales office").
    3. The organizational unit, position or employee responsible for dealing with the error are specified for each partner and message type in the partner profiles.
    If an error occurs, the system determines:
    1. The employees responsible using the staffing schedule of the organizational unit or position linked to the standard task.
    2. The employees defined in the partner profiles (using position, user ID, or organizational unit).
    3. The employees appearing in both groups represent those who will receive a work item in their inboxes.
    regards,
    pankaj singh

  • Error when trying multiple inbound interface determination for IDOC

    Hi !
    I have this scenario: File -> XI -> IDOC. 
    For each source file, I need to send multiple idoc packages, all to the same business system, but each package should be the result of different interface mappings.
    All mappings have same source and target message types...e.g. source: MT_MyFile, target: CREMAS04.
    To avoid creating a generic mapping program, we need to duplicate the current mapping program, make it handle the new case, and then add it as second interface mapping in Interface Determination, with same inbound interface, but different interface mapping, without conditions. All interface mapping should execute.
    We are receving this error:
      <SAP:Code area="IF_DETERMINATION">CX_ID_PLSRV</SAP:Code>
      <SAP:P1>Inbound interface was found more than once (for same sender and receiver) for outbound interface urn:xxxxx/xxxx:.MI_xx_xxxxxxxx_xxx_xx</SAP:P1>
      <SAP:Stack>Error when determining the inbound interface: Inbound interface was found more than once (for same sender and receiver) for outbound interface urn:xxxxx/xxxx:.MI_xx_xxxxxxxx_xxx_xx Inbound interface was found more than once (for same sender and receiver) for outbound interface urn:xxxxx/xxxx:.MI_xx_xxxxxxxx_xxx_xx</SAP:Stack>
    Any clues?
    Regards,
    Matias.

    Hi Satish !
    Thanks.
    I need to send different IDOCs to SAME business system.
    In Interface determination I need this:
    Inbound Interface -
    Condition -
    Interface Mapping
    <b>IF_1</b>                     no condition                   <b>M_1</b>
    <b>IF_1</b>                     no condition                   <b>M_2</b>
    I need to send BOTH IDOC packages to same business system.
    But it keeps throwing the posted error.
    Regards,
    Matias.

  • How the Queue will be created to process the  Multiple IDOC's into  1 Queue

    Hi Sap All.
    when i went into the Transaction code we14 and when the press F4 for search help in the field  Queue Name it displays me the several queues with the Port referring to B0018(refers to PI Box) ,which means that the IDOC's will be sending to PI.
    here my Question is how the Queues get created ,what is the Transaction code for creating the Queues in SAP-R/3 and how we we setup the SAP-R/3 Box in order to send multiple IDOC's into one queue.overall my question is how we wrok on Queues ?
    could any body help me in driving me to the best way.
    regards.
    Seetharam.

    If you have the drivers CD or the LV 6 installation CD, then you could try installing just the traditional DAQ drivers.  I will do a search if I can find them...Good news, I found the drivers that you may need.  Here is the link to download.
    After you install it, look in the vi.lib folder for the DAQ folder and see if you have a dozen
    .llb files. That is where you will find your missing vi's. You may also check into the LV2009 folder to check to
    see if the driver got installed there. I think the driver only gets
    installed for a single version and it might default to the latest at that time (I did not check which one it was).
    In any case, look for the missing VIs in the \National Instruments\LabVIEW 2009\vi.lib\Daq\ folder.  The VIs are contained in the .llb files so you
    can't just search for them through Windows.  Look in the AI.llb file using LabVIEW.
    Here are issues that you may encounter.  The link is to the DAQmx driver (I thought it was for traditional DAQ )
    http://forums.ni.com/t5/LabVIEW/Error-10461-10008-​DIO-Port-Config-Legacy-lvdaq-dll/m-p/947104
    Someone with a similar problem.  It won't help you, but kinda explains what you are going through..
    http://forums.ni.com/t5/LabVIEW/Since-upgrading-la​bview-many-sub-vi-s-such-as-DIO-Port-Config-vi/m-p​...
    Although the recommendation in this thread is to use the same LV version and driver as the previous machine, we know it is not your case.  Newer LV version... and maybe the latest Traditional DAQ drivers...  May be worth reading:
    http://forums.ni.com/t5/LabVIEW/An-error-occurred-​loading-VI-AI-Group-Config-vi/m-p/734547
    Traditional DAQ 7.4.4
    http://digital.ni.com/softlib.nsf/websearch/E42B7A​3564AB2F1A862572A7006D1564?OpenDocument

  • Elements 11 crashing When using Process Multiple Files

    When I use Process Multiple Files and click on the Browse button, the wheel turns and doesn't work anymore.  It just stays there for awhile.  I would reinstall, but I don't know where the product key is.

    Hi csssaratoga,
    Thanks for posting on Adobe forums.
    Please find the download link for Elements 11
    Download Photoshop Elements products | 11, 10
    To find the Serial number please check the following aritcle
    http://helpx.adobe.com/x-productkb/global/find-serial-number.html
    Let us know if this helps.
    Regards,
    Sandeep

  • Release Locks when Processing  IDOC

    Processing of IDOC fails when any user is accessing the purchase order. How to lock are release the lock diuring IDOC processing.

    If some user is in change mode, the system doesnt allow any other process (be it IDoc or Function Module) to change the document.  This is to prevent data inconsistency, the only way to release the lock is exiting the document in change mode.  You can reprocess the IDoc in BD87.
    hith
    Sunil Achyut

Maybe you are looking for

  • Changing default plant in third party sales order

    Hi Gurus, Kindly help me understand the reason. I have created a 3rd party sales order for service material.It is determining plant SCB1 when there are three plants active in the sales organisation SC00. The shipping point for SCB1 is SC01 (as it is

  • Export failing

    I've been trying to export 2320 photographs. It manages to export 652 of them and then gives the error message: Unable to create /Volumes/.... Giving the directory I'm exporting to. I've tried making it a simple directory name, I've tried deleting th

  • PDF Download From Servlet

    Hi guys, I'm having issues creating a file download servlet to download pdf files. I can successfully download text files using this code. For some reason however I cannot download a pdf using the same code. On execution, the browser will present me

  • Proper way to scale assets for multiple devices

    I am working on an ActionScript Mobile app which I intend to build for iphone 3gs, iPhone 4 and iPad 1&2. What is the correct way to scale assets such as background images so that I may be able to use the same graphical assets for all of the mobile d

  • Suitcase Fusion has detected an incompatible versin of FMCore. Suitcase Fusion can not continue. ??

    Suitcase Fusion has detected an incompatible version of FMCore. Suitcase Fusion can not continue. What does this tell me?