Outbound idoc has data from previous idoc as well

Hi Experts
I am doing the goods receipt against a scheduling agreement using idocs. If this goods receipt is succesful, I am triggering an outbound idoc informing the WMS of the goods receipt. For example, if idoc number 1 comes in for GR , code has been mentioned in the inbound function module for trigger of an outbound idoc A. Please note that the difference that this isnt the case of an output type.
Now the problem that arises is , the idoc data for outbound idocs is being accumulated and sent. For example, if 1 is the GR idoc, A is the outbound idoc, then 2 is the 2nd GR idoc, then AB is the data coming  2nd outbound idoc (instead of just B), then 3 is the 3rd GR idoc, then ABC is the data coming  for 3rd outbound idoc(instead of just C)
I am a little confused about the same as to which area this pertains to and would really appreciate quick help on the same.
Regards
Shubhankar

Hi,
How are you testing this functionality ? Is it using WE19 test transaction or ??
If that is the case then please come out of transaction everytime you process the idoc.
Also, clarify your scenario in more detail.
Processing of your single inbound idoc creates more than one outbound idocs or
for every inbound idoc which is processed you are creating one outbound idoc in user exit.
Also check if the idocdata internal table is refreshed once an outbound idoc is created.
If possible please send your code.
KR Jaideep,

Similar Messages

  • How to edit data from an IDOC with errors and reprocess it

    Hi,
    We are working with SAP XI for communicate with an external systems by files (external) to IDOCS (SAP R/3).
    Sometimes we need to edit the data from an inbound IDOC, because the external system generates wrong information and that can't be processed directly.
    We had seen posts like:
    But we wanna to do it with no ABAP editor.
    ¿Can we change the data from the IDOC in other way (transaction) and reprocess it?
    We tried with /WE05, pushing EDIT button, but can't edit the data from the IDOC.
    Thanks in advance for your help
    Regards,
    Federico Martin

    Keep Looking at forums i founded:
    change idoc data
    To change the Inbound IDoc,
    1)Go to WE05/WE02, enter the Inbound IDoc number and Execute.
    2)Double Click on the segment (Page Icon) where you want to change the Data.
    3)In the Screen 'Display data record for IDoc' , Go to menu 'Data record' and click on 'Display - > Change'. Then it display a popup information 'Changes to the IDoc are written to the database' , then press enter .
    To Process the Edited Inbound Idoc , execute the program 'RBDAGAIE' in SE38 and enter the IDoc number.
    Thanks
    Sekhar
    AND
    /people/raja.thangamani/blog/2007/07/19/troubleshooting-of-ale-process
    Also if you have something to say about it will be appreciated
    thanks

  • TS4036 I added Icloud to join my calendar to another person. It erased all history date from previous months. how do I get that data back?

    I added Icloud to join my calendar on my phone to another person. It erased all history date from previous months. how do I get that data back?

    i found the answer to the first part: reboot and keep hold of command+r
    this gave me a list of options
    one of them was to reinstall lion from fresh
    i went for this
    dont know why... but all forum posts i read said u should delete hard disc? theres an option for this
    which is the right option?
    any suggesstion where i go to register new mac would be great
    thanks

  • Communcation idoc not formed from master idocs

    Hi,
    I thoroughly searched all threads and could not find one on this.
    We have an issue where when we run RBDMIDOC program in production system only master idocs are formed, and no communication idocs are formed. There is no error message. But in testing system communication idocs gets generated from master idocs. We encounter no error.
    I checked partner profile and distribution model in testing and production, they were same.
    My query is that if the Program is successfully generating communication idocs in testing system, why not is it doing so in production system. Please help me on this.
    Thanks & Regards
    Amit Sharma

    Hi,
    We had same kind of issue. This was happend due to Distrubution channel not properly created.
    We re created the Distrubution channel agian properly then it worked fine.
    Check the distrubution channel config . this will solve the issue.
    Regards,
    Shanumgavel chandrasekaran.

  • A message saying I had to restore my iPad to factory settings came up, can I recover data from previous back-ups?

    Tonight, a message came up on iTunes came up saying I need to restore my iPad to factory settings came up. Is there any way I can avoid doing a factory restoration? If not, can I recover data from previous backups?

    If you got the message that you need to connect to iTunes, there is no choice now but to restore the iOS software. Yes, you can restore from a backup after you restore the iOS software.
    You can only restore now by connecting to your computer and using iTunes, and at the end of the restore process, you will be asked if you want to restore from your iTunes backup to which you will say yes and then sync your iPad as well. Syncing will transfer all of your apps, music, movie, books, photos etc, back to the device. If you do not backup and sync with iTunes, you can still restore from an iCloud backup after you restore the software in iTunes.
    How to backup and restore from a backup
    http://support.apple.com/kb/HT1766

  • LR is using meta data from previous edited photos on new imports

    LR is using meta data from previous edited photos on new imports-
    When I am importing new photos to a new catalog LightRoom gave all the photo settings that I had used on a previous catalogs photo I had to delete the catalog because I could not find an answer anywhere. Tried the deleteing and importing 3 times with same result.
    Once I did Start another new catalog and pressed reset on everything I could find it worked.
    What can I do if this happens again? Anybody know what setting that involves?

    On the right side of the Import screen, there's a heading "Apply during import". (If it doesn't show, right-click on the panel on the right and choose it from the menu.) One of its sub-fields is Metadata. That field and the Keywords field below it, I think are "sticky". You need to make sure that they contain the metadata that you want applied in your current import.
    It's almost always a bad idea to delete your catalogue or re-import images. Both those things fall at the very end of possible remedies because they cost you a lot of work, and there are almost always cheaper ways of solving your problem.
    Hal

  • How does iCloud manage app data like whatsapp ? Does it overwrite the data everytime I backup to I cloud with the data on the phone or it merges the data from previous backups with the new data?

    How does iCloud manage app data( like whatsapp) ? Does it overwrite the data everytime I backup to I cloud with the data on the phone when i backup or it merges the data from previous backups with the new data?

    You need to subscribe to iTunes Match to store your music on iCloud:
    http://www.apple.com/itunes/itunes-match/
    To transfer iTunes Store purchases made on your phone to your computer, connect your phone then choose "Transfer purchases..." from the File menu in iTunes.
    Photostream transfers photos taken on your iOS devices to other devices and your computer. For troubleshooting Photostream see: http://support.apple.com/kb/TS3989

  • If i uninstall windows 8.1 from my macbook pro, will i lose all the data from mac partition as well?

    if i uninstall windows 8.1 from my macbook pro, will i lose all the data from mac partition as well?

    Depends on how you do it
    If you create a partition with Boot Camp and format that partition correctly
    Then install Windows your data should not be touched
    If you do anything wrong or there is any mishap during the whole procedure you could lose everything
    Hence the reason I suggest that you backup first
    Allan

  • Unable to read data from previous calls...!

    I am trying to capture data from the previous calls using the following code...
    The program "/irm/sapliparm" has value in the variable "gs_ipar_infocus-x-arhdr-artyp" at runtime. I am able to see this value in debug mode. I need this value in a variable in my routine. Below is the code that I have written, but, this is not working. sy-subrc is 4 at the assign statement.
    data: artyp type /irm/iparhdr-artyp,
             lv_artyp type /irm/iparhdr-artyp,
             g_iparhdr type /irm/iparhdr,
             objky type nast-objky,
             line type string,
             lv_var type string.
    FIELD-SYMBOLS: <lv_artyp> type any. "/irm/iparhdr-artyp.
    move '(/irm/sapliparm)gs_ipar_infocus-x-arhdr-artyp' to line.
    lv_var = line .
    assign (lv_var) to <lv_artyp>.
    if <lv_artyp> is assigned.
       move <lv_artyp> to artyp.
       unassign <lv_artyp>.
    endif.
    I want to capture the value in variable "(/irm/sapliparm)gs_ipar_infocus-x-arhdr-artyp" inside my program.
    Please let me know if you have an idea on how to capture the value.
    Thank you in advance,
    Srinath

    Srinath,
    The trick you are using seems OK to access standard program parameters which are not available in user-exits / BADIs.
    I am also using similar code at some places and is working well for me.
    Is gs_ipar_infocus-x-arhdr-artyp a single variable or a nested structure ?
    Define <lv_artyp> as type of  /irm/iparhdr-artyp and try.
    Define lv_var of chat type and try.
    My sample code which works well is as below :
    constants: prgwa(30) type c value '(SAPMV50A)XVBADR_SAV[]'.
      types: t_sadrvb type table of sadrvb.
      FIELD-SYMBOLS: <prgwa> type t_sadrvb ,
                                   <watab> type SADRVB.
      assign (prgwa) to <prgwa>.
      if <prgwa> is assigned.
        loop at <prgwa> ASSIGNING <watab> .
        endloop.
      endif.
    I hope it helps you find your problem.
    Regards,
    Diwakar

  • My Tomcat server always shows data from previous run !!

    Hi
    I have html form whose method is post and submit data to jsp .The JSP then process the input data , produce some images and place them in appropriate directory and uses <img src=.. > to show them in the browser. But I am always getting the images from previous run . If I refresh , then I get the right images. Its so annoying. Since I am the developer, I know that I am not getting the right image. But other users might think that my program has bugs.Well it might be a bug . Is there anything I can do in my application to prevent this? Pls help/suggest me. I am new to web Application.
    Advance thanks!

    I'm not saying to change the image file name... all I'm saying is write the image tag's source URL with a unique query string parameter (such as the current time).
    If the image files are different names each time, there's not going to be any caching, so it shouldn't be a problem. If the image files are the same name each time (the image generator overwrites whatever is there already) then this is where the caching becomes a problem for the browser. So you don't need to do anything except what I already said, add ?x=timestamp to the image file name in the image source attribute. This doesn't change the image file name, it will still get the same image. It'll only prevent the browser from going to a cached image when the next time it loads, cuz the URL will be different.
    As for Scottie's comments... the reason is so that the browser doesn't have to load the image from the server every time. It's generally expected that most content on the web is not changing, unless the server includes headers with the file that specify when the file expires. For most servers, you have to set up special general rules about setting expiration times (x hours/days/etc.) for it to use based on file type. With JSP, you can manipulate the headers in the JSP page, but this just applies to the page, not the images or other content in the page, which are separate browser requests.

  • Restore Data from Previous Day

    I have my SQL Database Web Edition hosted on Azure, some stupid user deleted his data, how can I restore from previous day data? 
    TIA
    SV

    Hi vai,
    According to your description, as Mekh’s post, Microsoft Azure SQL Database service has built-in backups to support self-service Point in Time Restore ,Geo-Restore, Point in Time Restore and Geo-Restore are enabled for Basic, Standard, and
    Premium service tiers.
    In a SQL Azure Web database, you need to create a backup, then it will restore and protect your data from application or users errors.
    There is an article about how to setup a backup and restore strategy for a Windows Azure SQL Database. You can review it.
    http://www.mssqltips.com/sqlservertip/3057/windows-azure-sql-database-backup-and-restore-strategy/
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Workspace Form Not being Rendered with Updated Data from previous level

    Hi
    I have a process in wherein a reader extended PDF form is filled and kept in the watch folder.
    Then the PDF is picked up and a two level approval process starts in Workspace.
    The initial step in my process takes the PDF document and extracts the XML data ("processFormSubmuission")
    Then I have an "Assign Task" where I have an xfaForm variable (lev1form) as input, where I use Sample Forms/ RenderPDFForm to render the PDF form in Workspace.
    I have also configured the Submit service using sample forms / submit PDF form.
    At the initial level the form is populated correctly in Workspace
    But if the user edits the form and passes it on to the next level of approval,
    the edited data is not displayed to the next user It show the same old watch folder submitted data.
    How do I reflect the changes? Can I update the xml file somehow upon submission at first level?
    I also tried using a different xfaForm variable (lev2form) configured using default render service. As output of the first assign task.
    But it does not work this way too..
    Please help me how I should go about now..
    Thanks..

    When you extract the data from the form it is already XML.....or it should be. I do not use ProcessFormSubmission .... there is an easier way - under Common/Form Data Integration there is an Export Data service that will take your form as input and create a document that contains your data as output. You can then use a setValue to change the doc object into an xml object (doc object on right, xml object on left). Once it is xml you will need to see what the format is so either write it out or dump it to the log. Ultimately you want to get down to the forms root node and set that and all of its children to the xfaForm variable. The xfaForm variable is a complex object that has multiple nodes beneath it. Use a setValue service to put the xml you extracted into the xfaForm Var. In the XPath editor you can expand it out and put the xml data under this node:
    xfaFormVar/object/data/xdp/datasets/data
    Now your xfaForm var is ready to go

  • Restoring Data From Previous Install of iTunes

    I had a hardware problem with my previous laptop, yet I had been doing weekly backups of data on the laptop. I now have a new laptop and want to restore iTunes and the associated music I currently have on my iPod Shuffle. Is there a way to do this? I have restored data into My Music folder and continue to get the error:
    the original file could not be found...
    Is there additional data I need to restore?
    Shuffle   Windows XP  

    When you use BlackBerry Link to transfer data from an old device to a new one the software should prompt you to connect your old device. That's when you connect the Z10 (as long as you didn't delete everything from the Z10). It copies and then it prompts you to connect the new device. 
    To make sure BB Link connects to the new device, go into that device's Settings > Storage and Access and make sure you have USB Connection set for "Connect to PC" and not to "Autodetect." You can try toggling to Mac and back to PC if it doesn't recoginize the connection.

  • Restoring data from previous device not working

    QUESTION:
    My question is, am I able to transfer data from my previous Blackberry 10 device and onto my new Blackberry 10 device if I do not have my old device anymore? (Keeping in mind that I have the previous device data backed up).
    Problem:
    Ok so:
    1. I purchased the Z10 and started adding contacts, apps etc.
    2. I purchased the Q10 and transfered data using the switch device system
    3. The Q10 I had purchased was faulty so before I handed it in to get a new Q10 I backed it up so I could restore its data on the new Q10.
    4. Once I received the new Q10 I handed the old one in and went home and attempted to do the same method of transferring my data across
    Turns out that you need your previous bbry for this action to be able to work so I thought I would just connect the new Q10 into Link and just click on restore data and using the backup on my previous Q10 (the faulty one).
    5. I get an error every time saying that the restore could not be completed because; did not recognise device, try unplugging and replugging etc etc.
    Attempted Resolution from reading the forums:
    > Restarted PC
    > Took bbry battery and sim card out
    > Restoring data via Applications > Media > Settings
    > Removed device from Link
    > Restarted bbry
    > Full security wipe and tried again

    When you use BlackBerry Link to transfer data from an old device to a new one the software should prompt you to connect your old device. That's when you connect the Z10 (as long as you didn't delete everything from the Z10). It copies and then it prompts you to connect the new device. 
    To make sure BB Link connects to the new device, go into that device's Settings > Storage and Access and make sure you have USB Connection set for "Connect to PC" and not to "Autodetect." You can try toggling to Mac and back to PC if it doesn't recoginize the connection.

  • Help find the Last run date from previous month

    Hi all
    I am stuck trying to find the Last Run Date from the previous month.
    select distinct(date_ran) from TABLE X where date_ran like '%/11-%' order by date_ran desc gives
    "03/30/11-06:19
    "03/25/11-03:01
    "03/24/11-03:00
    "03/23/11-03:00
    "03/22/11-03:00
    "03/21/11-03:00
    "03/18/11-03:00
    "03/17/11-00:00
    "03/16/11-06:31
    "02/15/11-07:42
    "02/15/11-06:00
    "02/14/11-08:19
    Here the result I am trying to acheive is 02/15/11-07:42 ;Note the column date_ran is a VARCHAR2(255) and not a TIMESTAMP
    I tried
    select ADD_MONTHS(to_date(max(date_ran), 'MM/DD/YYYY-HH24:MI'),-1)
    from daily_tests_a
    where date_ran like '%/11-%'
    order by date_ran desc
    which returns 2/28/0011 6:19:00 AM and that is not the result I am looking for
    Regards
    SMK

    Welcome to the forum!
    user2931503 wrote:
    Hi all
    I am stuck trying to find the Last Run Date from the previous month.
    select distinct(date_ran) from TABLE X where date_ran like '%/11-%' order by date_ran desc gives
    "03/30/11-06:19
    "03/25/11-03:01
    "03/24/11-03:00
    "03/23/11-03:00
    "03/22/11-03:00
    "03/21/11-03:00
    "03/18/11-03:00
    "03/17/11-00:00
    "03/16/11-06:31
    "02/15/11-07:42
    "02/15/11-06:00
    "02/14/11-08:19
    Here the result I am trying to acheive is 02/15/11-07:42 ;Note the column date_ran is a VARCHAR2(255) and not a TIMESTAMPThat's a very bad idea. Points in time should always be stored in DATE (or maybe TIMESTAMP) columns. If not, you're going to waste resources converting them to DATEs whenever you need them to behave like DATEs, and risk run-time errors because of bad data.
    Normally, the "previous" month means the month before the current month. In April, the previous month is March.
    By "previous" month, do you mean the 2nd latest month in the table? That is, this data contains data from February and March, 2011; March 2011 is the latest of those months, February 2011 is the next-to-last, and so is that why you want a date from February?
    I tried
    select ADD_MONTHS(to_date(max(date_ran), 'MM/DD/YYYY-HH24:MI'),-1)
    from daily_tests_a
    where date_ran like '%/11-%'
    order by date_ran desc
    which returns 2/28/0011 6:19:00 AM and that is not the result I am looking for
    Regards
    SMKTry this:
    WITH   got_real_date   AS
         SELECT     TO_DATE ( SUBSTR (date_ran, 1, 14)
                   , 'MM/DD/RR-HH24:MI'
                   )     AS real_date
         FROM     table_x
    --     WHERE     ...     -- If you need any filtering, put it here
    SELECT     TO_CHAR ( MAX (real_date)
              , 'MM/DD/RR-HH24:MI'
              )     AS last_date
    FROM    got_month_num
    WHERE     real_date     < (
                               SELECT  TRUNC (MAX (real_date), 'MONTH')
                         FROM    got_real_date
    ;Edited by: Frank Kulash on Apr 5, 2011 3:59 PM

Maybe you are looking for