Delete a segment in the IDOC_DATA.

Hi,
i'm sending an outbound 856(IDOC type DELVRY03).
In this,
if the E1EDL26 - PSTYV = ZPAR,
I need to delete the entire information related to that particular line item meaning.. all child segments under the segment E1EDL24.. (because I don't want the material with this item category to go to the customer.)
but I'm confused on how to do it as.. by the time I read the E1EDL26 - PSTYV, i would already have the E1EDL24 segment in my IDOC_DATA. So I need to go back and delete it..
Can someone help me with this.
<promise removed by moderator>
Thanks for all for your help!
Edited by: Thomas Zloch on Mar 8, 2011 9:44 PM

Hi Ravindra,
Define one global variable for flag. When your condition get satisfied set this flag = X.
Then in your user-exit in for segname = E1EDL20 delete other segments when flag = X.
case sgname.
when E1EDL20
if flag = X.
loop idoc_data and delete the segments which you would like to delete.
endcase.
Regards
Sachin
Edited by: sachin G patil on Mar 9, 2011 1:55 PM

Similar Messages

  • Trimming - I want to delete various segments, keeping the remainder

    QT 7 Pro Trimming problem -- I have a long movie clip, of which I want to keep various short bits. It is possible to simply delete segments that I don't want so I am left with only the bits that I DO want?  This interface allows me to only select what I want to keep, and in doing so deletes the rest -- of which is footage I want to keep in addition to my initial selection.  QT 7 on my older iMac (OS 10.4.8) can do this - you select a segment by moving two little knobs to the start point and end point of the segment.  Deleting it still leaves me with the rest of the movie. I keep deleting segments I don't want, and end up with only that that I do want.  Is this not possible anymore on QT 7 Pro my newer MBPro? 

    QuickTime Player Pro has worked the same on any machine or OS for the last (nearly) seven years. That's how long version 7 has been available. What you did in Tiger still works the same in Lion.
    The "two little knobs" are known as in and out markers and when you set them, either with the keyboard shortcuts i and o keys, drag while holding the shift key or drag each of the markers you've made a "selection".
    A selction can be something you want to keep or something you want to remove. If you're trying to remove (trim) you would make selections of what you wanted to delete which would leave you with only what you wanted to keep.
    If you are running Snow Leopard or Lion be aware that it includes QuickTime X or 10.1 and it also has a trim feature. It doesn't edit the same way as QuickTime Player 7 Pro and its version of trimming would require you to save the file each time you made an edit.
    Make sure you're using QuickTime Player 7 Pro and not QuickTime Player 10 or 10.1.

  • How to delete E1EDP19 002 segment frm the inbound ORDERS IDoc?

    Hi ABAP/EDI experts,
    I am implementing an User exit related to inbound Sales order EXIT_SAPLVEDA_001.
    Most of the time my IDocs contain the below segments.
    E1EDP19 001 (QUALF = '001')
    E1EDP19 002 (QUALF = '002')
    Sometimes, IDoc contain only E1EDP19  001 (QUALF = '001') segment.
    My problem is whenever i have two E1EDP19 segments, i want to delete the 1st E1EDP19 segment and retain the second E1EDP19 segment.
    Can anyone tell me the pseudocode for deleting the 1st E1EDP19 segment from the inbound orders IDoc.
    Am i using the correct user exit??
    Thanks,
    Creasy Matt
    Edited by: Creasy Matthew on Jan 22, 2009 12:56 AM

    Hi Matt,
    You can loop on idoc_data internal table. This table will be having all the data and the segments.
    data: l_count type i value 0,
            l_tabix type sy-tabix.
    LOOP AT idoc_data WHERE docnum = idoc_contrl-docnum.
    CASE idoc_data-segnam.
    WHEN e1edp19.
    l_tabix = sy-tabix.
    l_count = l_count + 1.
    if l_count = 2.
       l_tabix = l_tabix -1.
      delete idoc_data index l_tabix.
    endif.
    ENDCASE.
    ENDLOOP.
    I hope this will work.
    Please let me know if any issues.

  • Delete idoc segments

    Hi all,
    I need to delete the idoc segments for some condition based on the table KNVV value. It is basic type is DEBMAS05.
    I have used a wrapper FM ZIDOC_INPUT_DEBITOR as i could not find a user exit in IDOC_INPUT_DEBITOR.
    In test run we19, in debuggin i see the incorrect records/segments are getting deleted from IDOC_DATA which is the way i have coded. However when i see the generated idoc number i can see all the segments and the incorrect segments are not getting deleted. Let me know how to delete idoc segments through code.
    Note : I have tried in BD59 to reduce the idoc segment, but the condition for our requirnment cannot be possible in BD59.
      LOOP AT idoc_data.
        CASE idoc_data-segnam.
          WHEN 'E1KNA1M'.
            gwa_deb_hdr = idoc_data-sdata.
          WHEN 'E1KNVVM'.
            gwa_deb_sale = idoc_data-sdata.
          WHEN 'E1KNMB1'.
            gwa_deb_comp = idoc_data-sdata.
           APPEND gwa_aex_item TO gt_aex_item.
        ENDCASE.
       IF gwa_deb_hdr+0(3) = '004'.
          IF sy-tabix > 1.
        SELECT SINGLE kunnr vkorg vtweg INTO (lv_kunnr, lv_vkorg, lv_vtweg)
                FROM knvv
                WHERE kunnr = gwa_deb_hdr+3(10)
                   AND vkorg = gwa_deb_sale+3(4)
                   AND vtweg = gwa_deb_sale+6(2).
            IF sy-subrc NE 0.
              DELETE idoc_data INDEX sy-tabix.
            ENDIF.
          ENDIF.
       ENDIF.
      ENDLOOP
    Thanks,
    Senthil

    Just want to know.
    If the standard idoc segmets cannot be deleted through code or this doesnot work as i ran in test run we19?

  • Deleted audio segment leaves blank space that I can't remove

    I had a 5 min song and after adding pictures for a slide show, I found I only needed 2:30 of the audio clip so I split it at the end and deleted the unwanted end segment of the song. However, there is now a blank space for 2:30 left!
    I went to clip mode like some suggested in previous similar questions, but there is "no black clip" to select and delete.
    How can I "shrink" or reduce the original movie length now that I've shortened it by removing the end part of the audio?
    Thanks!

    I have experienced the same thing. It used to be thought that a stray audio clip had relocated to further out on the audio track, but I never found one. Usually, the movie reverted back to end where the 'good' audio or video clip ended.
    However, I highly endorse what Bengt recommended re: exporting your movie to Full Quality QuickTime.
    I do that and then put the quicktime movie into a new iMovie project and check the end of it. Sometimes there will be several seconds of 'snow' as seen on tv in the old days when stations went off the air at 1am. You can cut out this excess and have your movie end where it is supposed to. Just use this qt version to upload or import into iDVD.

  • Deleting derivation rule for the existing characteristic in operating conce

    Hi all
       My customer has two characteristics" Billing Doc(VBELN)" and" Warranty status" in the development and testing client and not in the production now.
    Option 1 : Is to delete them but as the data is already posted for the same in the test and development client,it is lot more complex( involves  implementation of OSS notes-SAPNET note 21207) .
    Option 2: If we decide to keep them for now:These two have a derivation rules too. So  can we simply delete the derivation rules so that data will not get posted to them( So will not effect the PSG i.e ce4xxxx table in production once the same transport is moved to production). There are no dependencies on this derivation rule.
    Option 3: Can we also remove them from segment level characteristics?
    Please let me know pros and cons ?
    I really appreciate your time and effort.
    Thanks & Regards
    Sri

    Hi,
       If the characteristics have not been transported to production then why don't you delete them in the dev/test system ? Here you can take the risk.
    To delete characteristics or value fields, perform the following
    activities:
    1. Delete the corresponding characteristics and value fields from Customizing in all clients (this includes forms, reports, planning
    layouts, and so forth). To locate characteristics and value fields, use the appropriate where-used list in the Customizing Monitor. You can access it by choosing Tools -> Analysis -> Check Customizing Settings (TA KECM).
    You can jump directly from the where-used list to the relevant Customizing transaction and then delete the appropriate field there.
    2. Switch to the screen for maintaining the data structure of an operating concern (Maintain operating concern).
    3. If you need to effect other changes to the datastucture for the operating concern before making any deletions, effect those changes and save the data structure.
    4. In order to be able to select the fields of the data structure, choose Extras -> Characteristics (or Value fields) -> Unlock.
    5. Select the characteristics and value fields to be deleted and remove them from the data structure with the "Reset fields" function.
    6. Reactivate the operating concern. The system starts by checking whether the operating concern contains any data and whether the fields to be deleted are still being used in any Customizing settings.
    7. If none of the fields are still in use, the system then starts the re-activation. If the operating concern does not contain any data or does not require the database system to be converted, the tables are activated. You are then able to activate the environment for the operating concern. In this case, the following activities no longer apply.
    If the operating concern already contains data, a system message tells you that the database needs to be converted. If you proceed, an activation log appears (at the top of the list).
    8. Analyze the activation log. If it only contains error messages telling you to convert the tables, proceed with the next activity.
    You must otherwise remove the cause of the errors before the tables can be converted. In this case, you should answer "No" to the next prompt, which asks whether the conversion transaction should start.
    9. If you still only receive error messages telling you to convert the tables, choose "Back" and start the conversion.
    10. Plan a job for the conversion. A list of the tables to be converted is shown for this. If the tables only contain a small amount of data (less than 10 000 records), then all the tables can be converted in one job. In that case, you can select all the tables.
    For larger tables, conversion should take place in several jobs.
    However, you should ensure that table CE4xxxx (where xxxx = operating concern) is the last table to be converted.
    Warning. No other changes can be made to the operating concern during the conversion.
    A copy of the table is generated during the conversion. The database system should have sufficient memory available for this copy.
    To schedule conversion as a job, use the "Schedule selections" function.
    You can display the current status of the conversion by selecting the "Refresh" icon. Tables disappear from the list once they have been converted sucessfully. If a conversion is taking a while, it is also possible to leave the transaction. You can then continue the conversion using DB requests -> Mass processing in one of the following ways:
    With the job overview. You access this by choosing System -> Services ->Jobs.
    Using the database utility transaction. You access this by choosing Utilities -> Database Utility in the ABAP Dictionary menu.
    You can use the status function to call up the status of the operating concern during operating concern maintenance. You need to activate all tables after conversion.
    11. To analyze errors that have occurred during the conversion, you can use the database utility transaction by choosing Extras -> Logs. The log has the same name as the conversion job: TBATG-date. You can also restart the conversion with this transaction.
    For more information on the database utility, choose Help -> Application help while still in the above transaction.
    12. Once you have activated all the tables in the operating concern, generate the operating concern environment from within operating concern maintenance.
    You can then use the operating concern again.
    Please, refer to the IMG documentation under Controlling ->Profitability Analysis -> Structures -> Define operating concern
    -> Maintain operating concern, for further details.
    regards
    Waman

  • Reg: Deleting a segment of an IDoc

    Hi Experts,
    We have created an extension to IDoc (added a Z segment) in 4.7 ERP and transported to the ECC 6.0.
    I want to delete the segment in ECC 6.0, which we extended in 4.7.
    I believe one way is to delete the segment in 4.7 and export the transport from 4.7 and import into ECC 6.0
    Please let me know the ways to delete the segment from the IDoc in ECC 6.0.
    Regards,
    Venu V

    Hi Karthik,
    Thanks for the replay. I want to delete the IDoc extension (a z segment added to the basic type by using we30) in SAP ECC.
    There is a option of delete in we30. Can i use the same tcode to delete the extn of IDoc? or any other ways are there to delete the ZSEGMENT added to the basic type?
    Regards,
    Venu V

  • Labeling segments of the same file

    I have dozens of short segments (a few seconds to a few minutes in length) in my timeline, all from the same file, which is several hours long and named, say, 20110301. In the timeline each of these dozens of segments is given that same name. Is there a way to label the individual segments so I can tell which is which when I'm shifting them around in the timeline?
    (My workflow thus far is to import the original file into my project, scan through it in the viewer, mark in and out points for a "keeper" bit, hit F10 to dump it into the timeline, then try really hard to remember which is which. Lather, rinse, repeat. )
    Thanks in advance for your help.

    Just an update...
    Making the clips independent didn't seem to do anything, other than to gray out that option in the ctrl+click menu. I think for the original purpose of this thread, labeling segments of the same file, it works as well as subclipping, so both of those answers were helpful, thank you.
    My second challenge (later in thread) of saving just the individual subclips or independent clips and deleting the original file remains unsolved. Media Managing it doesn't seem to be the way to go, as it claims that 45 minutes of footage is 56.5GB in space when the entire original 3 hour file is 60GB.
    Because space saving has now reached a critical point for me, I'm exporting the subclips as a QuickTime movie with the current settings so I can delete the original file and try subclipping the export and saving the individual files later... hopefully my export won't be 56GB!!
    Thanks again for all your suggestions, I'm learning a lot.

  • How can I create a fIlter to delete only "junk" from the server?

    One of my E-mail accounts is that of a major client. I handle their customer service online. Normally our protocol is to always leave all messages on the server, so for that one Thunderbird account, I have it set to never delete messages on the server.
    But the account recently started getting a lot of junk messages. Thunderbird is doing a remarkable job at marking those and placing them in the junk folder for that account. I would like to create a filter that could remove them from the server, preferably those more than "x" days old so I could monitor the activity to be sure that no important message are removed.
    I did notice that in "Filters" I can create a custom filter from a header of my choice, but can't seem to create what I want which is:
    - after mail is marked as Junk by Thunderbird to delete those messages from the server if they are older than "X" days (my choice of "X").
    - not delete any other messages from the server for that account

    I believe that did it! Thank you. I am running those changes on a secondary E-Mail address for the same job and server and it appears to be working properly.

  • Is there a way to delete all events with the same title (not added as reoccurring) without deleting one at a time?

    i currently have a calendar synced that has events scheduled in perpetuity, scheduled as individual events.  I would like to delete all events with the same title.  I do not want to delete the entire calendar nor do I want to go into every event and delete individually.  These were not scheduled by me so I do not know how they were added one by one and go on forever but they are NOT scheduled as reoccurring and thus must be modified individually.
    I can do a search and find all events, is there a way to just delete all events with the same title all at once?
    this is a Microsoft outlook synced calendar and I am seemingly unable to delete the events all at one time from Microsoft as well. 
    Please help!

    If you still have access to the Outlook calendar in Outlook, I would delete them from there. There are a number of ways to do that, but if you open the individual event in Outlook, does it show a repeating pattern? If not, then you may have to delete them individually, but that is not that difficult either. Go into the calendar and then change the view to a list view. From there you can sort the view according to subject. This should bring all of these same appointments together in the list and you can select the group in Outlook and delete them. Once you do that, you can change your view back and then sync the phone. That will remove the events from the phone.

  • Is there a way to delete multiple pictures at the same time from the iphone4s?

    Is there a way to deleter multiple pictures at the same time, from my iphone4s? I know how to delete one at a time. Thanks

    Open your Photos App > Camera Roll > At the top right corner you will see a rectangle with a right arrow, select that. Now you can select as many photos as you want and you can hit the red Delete button on the bottom right.

  • Getting Error while deleting a field from the 'Z' Structure

    Hi All,
    I have created a 'z' structure in which i have 5 fields, now i want to delete one field from the structure, but it is giving me error like Invalid Change.
    Its a structure so i cant activate and adjust as we do for Tables.(se14)
    So pls help me out asap.
    thanks & Regards,
    Dhruv Shah

    Thanks for Quick Reply.
    I have not used this field in any FM/ Report.
    I have tried log off and then log on. but it make no difference.
    Now the Other scenario is that i want to change the datatype of this field to TEXT25.
    But it is also not allowing me to change because currently datatype is TEXT20.
    So now how can i change the length from 20 to 25.
    Regards,
    Dhruv Shah

  • When using a Seagate 1T external hard drive and Time Machine to back up hourly, if I delete photo files from the Mac hard drive before the next back up, are these retained on the Seagate drive or will they be lost (overwritten) in the next backu in the ne

    Does Time Machine erase previously saved files if, say, photos are deleted from the Macbook upon the next update, or will they be stored indefinately despite the current status of the files stored on the computer? Eg. can I bckup photo files to a Seagate 1T disc and then delete them to make more room on the computer in the knowlwdge that they are always going to be on the Seagate disc? Sorry if this is very elementary but I have not used a back up before like this, and am not sure how successive backups are overlaid or retained. Thanks!!

    TM is not designed to do what you ask. As Allan wrote TM is an incremental backup not an archival solution.
    If you delete a file from the HD it will eventually be removed from the TM backup (if it ever makes it on to the backup at all).
    How long before it is removed depends on a number of factors, TM disk drive size being one factor but not the only one.
    Material that is impossible to replace and is important to you (image files usually fitting that description) need to be backed up to as least one other drive and preferably more for long term storage.

  • Can not delete Twitter mentions from the Hub

    Can not delete Twitter mentions from the Hub. When I delete, they reappear in a few minutes.

    I had the same problem,so i just deleted Twitter altogethet. Like was said before it must be bug among many they seem to have,including password compromises

  • Iv downloaded the 0845 wizard from the App Store. Registered my details and it has been working. But for some reason it won't let me log in and keep saying failed every time I try to use it. Iv deleted and re-downloaded the app and it still says the same?

    Iv downloaded the 0845 wizard from the App Store. Registered my details and it has been working. But for some reason it won't let me log in and keep saying failed every time I try to use it. Iv deleted and re-downloaded the app and it still says the same?

    I would say to start by looking on their web site... unfortunately, that appears to be dead.
    Based on the horrible ratings on the App Store (1 star for the current version), I'm not surprised it doesn't work well.

Maybe you are looking for

  • Logical database AAV

    Hi all friend ! I have problem belong Logical database, I used Logical database AAV but when I run report, i receive a message " VBAK is not specified for field selection". report test_logicaldatabase. nodes: vbak. get vbak fields vbeln. write: / vba

  • How to resize all pages -Acrobat 9 Pro Extended ? ?

    I came across a pre-existing pdf file of an old book of genealogy.  According to the front pages, it was 'Digitized by Microsoft', so I know nothing on how it was generated.  Total pages are in excess of 1,100. In viewing the pages, they are reflecte

  • Error in webi report  - ORA-06502

    Dear All, I have create an object in Universe "description" , I am using this object in WEBI report. When I run the WEBI report I am getting below error: Database error occurred :the databasr error text is  ORA-06502: PL/SQL: numeric or value error:

  • Unusual Problem importing files in Lightroom 3

    I am totally delighted with Lightroom 3 on my new MacPro, BUT I am experiencing a minor but mysterious problem when I download and import files. Here is what happens. In the right-hand panel, under Destination, I select the folder where I want the do

  • Camera Raw 7.0

    Why is it when I move to CS5 from LR4, I'm told that in need 7.0 in order to process my data properly. Plus I can't find it any where, what's the real deal?