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

Similar Messages

  • Deleting a segment in an IDOC - ABAP - IDOC Scenario

    Hi All,
    I stuck at one issue..when we send delivery shipment notice through EDI..it takes output type "YSH1'. whenever in line item category is 'YPLC' the idoc sending failure..
    So the requirement is whenever output type is 'YSH1' and item category is 'YPLC'..the IDOC segment should be delete at runtime...
    So...Let me know Is there any Function Module to delete the IDOC particular line item segment E1EDL24..in the EXIT .."EXIT_SAPLV56K_002".
    If there is not any function module please let me know how to delete the segment at runtime...
    Please Help me ASAP..
    Thanking you all
    Surya
    Message was edited by:
            Suryakant Baranwal

    Hi Sivaparvathi
    I am really so thankful to you for your suggestion..
    Please guide me how do I make changes in RBDOUTPU program which make possible to delete the particular one segment or more than one segment according to item category of line item data.
    I am manipulating data in EXIT 'EXIT_SAPLV56K_002' and the data is filled in the IDOC before processing of this EXIT ..in the function module  'IDOC_OUTPUT_DELVRY' ..Please correct me if my understanding is wrong..
    So how do i delete the existing segment of IDOC in this USEREXIT...
    Please help me...
    Thanking you
    Suryakant Baranwal

  • Deleting a segment in an IDOC - XI - IDOC Scenario

    Hi
    I am relatively new to XI. I would appreciate any help on the following issue.
    I have a requirement to send Material Master information from one R/3 system to multiple R/3 systems via XI. These IDOCs have multiple segments for the Description segment (E1MAKTM). Some of these systems are unicode enabled and some are not. This means the IDOCs sent to all the non unicode systems should not have some of the description (E1MAKTM) segments in it. To achieve this I need to read the Language key in E1MAKTM and then decide whether to keep the segment or not, but I am not sure about where to do this.
    Should I be creating a scenario for this using BPM or is there a way of doing this using the Mapping interfaces? I would appreciate if any one could please give me some input on this or point me to a right documentation which could help me.
    Thanks & Regards
    Praveen

    Hi,
    Thank you for the quick reply..
    Michal, The segment needs to be removed in case of some languages. If I leave MAKTX field as blank I will still have a segment.
    Bhavesh, I tried this and I couldn't get it to work for some reason, This is what I did.
    1. Auto mapping for MATMAS between the source and the target.
    2. Removed the mapping for the segment E1MAKTM.
    3. Used the standard functions with logic as follows
       IF SPRAS = Constant with value EN
        Assign E1MAKTM to the target.
    4. Tested this mapping using the option in Repository by creating 2 segments for E1MAKTM, one with SPRAS as EN and the other with SPRAS as ES. The target should have only one segment once it goes through the above mentioned logic, but for some reason it is having both of them.
    I would appreciate if you could give me some suggestion on this situation.
    Thanks & Regards
    Praveen

  • Problem filling segment E1BPADR1 in idoc Salesorder_createfromdat201

    Ladies and Gentlemen,
    I have a problem with populating segment E1BPADR1 in idoc SALESORDER_CREATEFROMDAT201.  My client is already using the idoc to successfully post Inbound Sales orders.  Now, they wish to add additional address data to the Sales Order Partner Address screen.  The standard partner segment (E1BPPARNR) permits them to fill some data which they are presently filling (i.e. Name 1, Street 1, Country, etc), but they have a requirement to fill additional fields Street2, Street3, etc. 
    When I add fill segment E1BPADR1, the data in segment E1BPPARNR is removed from the created Sales Order so that the data from segment E1BPPARNR is deleted, and no new data from E1BPADR1 is updated. 
    Has anyone experienced similar problems, and any ideas on how to get around it?  Points rewarded for useable suggestions.
    Regards,
    Steve

    Done

  • 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

  • How we remove duplicate segments from an idoc

    how we remove duplicate segments from an idoc.

    Hi Manju.
    Go to T-code WE19------->Give your Existing Idoc Number or Basic Type --->Get in Select your (Nodes) segment and Click on "Delete Indicator"
    Regards,
    Seegal

  • How to add a custom segment in standard IDoc?

    Hi,
    I want to add a custom segment in stanard IDoc type (eg. MATMAS). I don't want to go for extended idoc (copying stanard idoc into zidoc and adding custom segment).
    Please tell me.

    Hello
    Transaction BD10 uses fm MASTERIDOC_CREATE_REQ_MATMAS which in turn uses MASTERIDOC_CREATE_MATMAS to create and distribute material master IDocs.
    Fm MASTERIDOC_CREATE_MATMAS belongs to function group MV01 in package MGV. Here you will find the user-exit function group XMGV.
    Perhaps EXIT_SAPLMV01_002 might be useful for you.
    Regards
      Uwe

  • Get the value of a particular field in a segment of an Idoc

    Hi All,
    I have a requirement where I need to write a report which will fetch the value of a particular field in a segment of an idoc.
    I have the idoc number segment and field name as input parameters by which I can fetch Sdata from EDID4 but the confusion is how to find the exact field value from that Sdata. How to Map the SDATA to the segment structure.
    Please advice...

    Hi,
    I have one last doubt that may be you people can help with... The user will be giving the segment name and field name as input. So by following Kesav's code while i can get all the values in the segment structure at runtime please suggest how to display any one field from that structure given that that particular field will come at runtime.
    EX: user gives an idoc number 123 (say belonging to Orders basic type)
                                 segment E1EDK01
                                 field  BELNR.
    So i need to display the value of E1EDK01-BELNR of idoc number 123.
    Please suggest how to achieve this....

  • Error when Adding a segment to an IDOC

    Hi I have added one segment to an IDOC through one user exit and it is giving the error with status 26.
    Here I am pasting the error details,
    The segment E1IDT02 does not occur at the current level of the basic type PEXR2001 (extension ).
    This error can have several reasons:
    The segment E1IDT02 is assigned to a group whose header segment does not occur.
    The segment E1IDT02 does not exist in the syntax description of the basic type PEXR2001 (extension ).
    The sequence of segments in the group in which the segment appears is incorrect.
    Previous errors ('mandatory' segment or group missing) may be due to this error.
    Can any body help me, and let me know what can I do to avoid this.
    Thanks,
    Deepak.

    Actually in the basic type of IDOC, there is no segment with this name. But I am adding this directly in an user exit. Can you tell me what is the actual procedure to add a new segment to the basic type of IDOC
    Thanks
    ravi

  • IDOC-Segment Created a idoc document against Billing document

    Dear All,
    Thanks in  advance.
    Already created a idoc document against Billing document and one of the IDOC segment is not in the IDOC document output segments(WE05) actually it missed the segment.
    so i want to add the segment which it was missed during generation of IDOC document against billing document.
    Example:
    a) IDOC document misses one segment let suppose "Seg1".
    b) In "Seg1" it have only one field let suppose "Field1".
    c) But "Field1" does not have any value while generation of IDOC document so it doesn't create the respective segment in IDOC document.
    d) so here, i want to edit the IDOC document to add the "Seg1" in the IDOC document and reprocessing the IDOC document.
    Please help on this issue.
    Regards,
    Sridhar.

    Hello,
              If your requirement is to have the Segment even with only 1 Field, you'll have to create an Idoc Extension in WE30.
             In order to populate the Custom Segment, Use the Customer Function '002' in the IDOC_OUTPUT_INVOIC which is EXIT_SAPLVEDF_002 where you can actually insert the Segment as a Child Segment of an Appropriate Segment.
            You can go for Custom segment with the IDoc Extension so that you dont have to manually insert the Segment again and again while reprocessing it.
    Thanks and Regards,
    Venkat Phani Prasad Konduri

  • Populating the SEGMENT attribute for  IDocs

    When mapping to an IDoc, each IDoc data element has a corresponding SEGMENT attribute, which I assume is the sequential segment number of the segment in the IDoc.
    Does that value need to be set, or does the IDoc adapter take care of it? If I do need to map it, how can I do it, because I would need to find a way of generating a running number either in the mapper, or externally in an XSL mapping file.

    Hi,
    OK thanks for explicitly stating thae answer! I was hoping for that.
    BR,
    Tony.

  • How to include segments to  standard idoc PEXR2002 ..

    How to include the below segments to the standard  idoc PEXR2002 ..
    E2EDK02
    E2EDK12
    I want to map the check number to E2EDK12-BELNR depending on the document number.
    I have a recording in shdb..but my real question is it where to have this logic..
    Any suggestion would be highly appreciated.
    Thanks,

    U will have to create IDoc Extension for this.
    Goto WE30 select the Radio button Extension.
    Link it with the basic Idoc Type.
    Then attach the new segments in the IDoc.

  • Use of segment E1KONP in IDOC COND_A01

    We are today using the VARKEY field in segment E1KOMG in IDOC COND_A01 with all the fields in the spesified condition table for a condition type.
    Instead of generating X quantity of IDOC´s we would like to repeat the segment E1KONP with different customers. All the other fields in the condition table have the same values.
    The field customer is available in segment E1KONP.
    What can we do with the IDOC or other configuration to tell the IDOC using customer from segment E1KONP and not from field VARKEY in segment E1KOMG? We still need to use VARKEY for the other fields in the condition table, since we use som Z fields in our condition table.
    I am struggling findig documentation according to our problem.
    Best regards,
    Terje

    Hi Terje Pedersen,
    Did you get a solution to your problem?? I too am facing similar kind of problem. Instead of multiple IDOCS for COND_A01, I need to create only one.
    Please suggest.
    Thanks & Regards,
    Abhishek

  • Add segments to an idoc already in the database?

    Hi All,
    I have a requirement to add segments to idocs that are already in the database.  I had hoped to use Function Group EDI1 to do so, but the FM EDI_SEGMENTS_ADD_BLOCK only works for creating idocs from scratch.  There is a FM EDI_CHANGE_DATA_SEGMENTS, but it appears to only allow changing segments that already exist, not adding new segments.
    How would you handle this one?  This is the first time I've been tasked with adding segments to an idoc OUTSIDE of a user exit during create, and I'm unsure how to proceed.
    Thanks,
    Bryan

    If it is standard IDoc segment, i am sure you can use this FM
    FU EDI_SEGMENTS_ADD_BLOCK
    Short Text
    EDI interface: Add block of data records
    Each call of the function module 'EDI_SEGMENTS_ADD_BLOCK' inserts a block of data records into the IDoc. In each case the EDI interface records the current position in the IDoc and appends the block of records at the end.
    The data records are transferred to the function module in an internal table. This table is NOT initialized in the function module, that is, the parent program must carry out an initialization (REFRESH) during a repeated call.
    Application data is transferred to the data record. The data record consists of a general administration part and of the field 'SDATA', which contains the application data.
    The administration part contains information that describes the data record in the context of the Intermediate Document (for example, the IDoc number).
    The fields 'SEGNAM' and 'HLEVEL' must be filled by the parent program.
    The fields 'SEGNUM' and 'PSGNUM' can be filled by the function module or can be transfered during the function module call. They are checked for consistency in this case.
    With the help of an ABAP/4 Dictionary structure, the field 'SDATA' can be split up and interpreted. The documentation for these structures can be found using the program 'RSEIDOC1'.
    The function module can only be called in 'CREATE' mode.
    Parameters
    IDENTIFIER
    IDOC_CONTAINERS
    Exceptions
    IDENTIFIER_INVALID
    IDOC_CONTAINERS_EMPTY
    PARAMETER_ERROR
    SEGMENT_NUMBER_NOT_SEQUENTIAL
    Function Group
    EDI1

  • Idoc segment version in idoc type

    hi,
    we have just upgraded our R/3 system from 4.6c to SAP ECC 6.0. We then tried to send idocs to SAP XI 3.0 SP 20. However the idocs failed due to wrong segment version of idoc. It did not match the loaded metadata in XI. I know that in WE20 you can control the segment version used to send to XI. In the communication channel in XI you can also set the segment version.
    So my question is: Is the correct way to handle sytems requiring diffenrent verions to import the newest metadat in idx2 and then  control the versions asper the above paragraph?
    Any comments are apreciated.
    kr Rasmus

    Hi,
    for sending IDocs to XI no adapter is necessary. It should be enough to reload the metadata in idx2:
    http://help.sap.com/saphelp_nw04/helpdata/en/ab/bdb13b00ae793be10000000a11402f/frameset.htm
    Regards
    Patrick

Maybe you are looking for

  • How to deactivate other phones from using my itunes account

    Please help how to deactivate other phones from using my itunes account?

  • Line items transfter one gl to another gl

    Dear Expers, Please guide me,   i have one gl code without Openitem management i have posted some entries also, now i want to activate Open item management, i have tried to activate through program but it is telling line items are there. how to trans

  • How do I identify a problem in an event?

    Friends, I've updated to FCP X 10.1.  An event that I created after updating and for which I created a project suddenly displayed a yellow hazard symbol next to the name of the event.  This suggests that there is some sort of problem with the event o

  • Wlst.cmd file couldnt run from the cmd prompt

    Hi friends, when i tried to run the wlst.cmd file in a windows cmd prompt, it is not running as it is saying like the system cannot find the path specified I tried like the below Microsoft Windows [Version 5.2.3790] (C) Copyright 1985-2003 Microsoft

  • Charting effects issue

    Hi everyone, I'm writing some software that makes use of Flex charting. I really like the look that the Flex SeriesZoom class provides, but I am having a problem--this works fine when I change the dataProvider, but I am having trouble in cases where