New Header Segment in Extension IDoc

Hi,
I want to create a new header segment in Extension IDoc.
I am not able to create. I want to extend the Basic IDoc DESADV01 by adding a new header segment (Batch numbers, ID's and with time stamp).
The remaining segments should be under this segment only.
Is it possible that or shall I create Custom IDoc?
Thanks in advance.

Hi,
You can not create new header segment when extending IDoc type DESADV01.
System only allows you to insert as child segment instead.
If you still want to create new header segment, then you need to create a custom IDoc.
Regards,
Ferry Lianto

Similar Messages

  • Extension Idoc for ORDERS05..

    Hi,
    I want to add one field (VBAK-FAKSK) as an extension idoc to ORDERS05 Basic idoc type.
    My problem is in this Basic type (ORDRES05) under which segment, i have to add this field (VBAK-FAKSK).
    Can one help this problem would be great appreciable.
    Best rgds,
    srihari.V.

    VBAK is the header data table for the Order.
    E1EDK01 is the Main header Segment for ORDERS05 Idoc, so I think it shold go into that segment.
    Refer this link for more help:
    http://help.sap.com/saphelp_erp2005/helpdata/en/dc/6b7d6243d711d1893e0000e8323c4f/frameset.htm
    Regards,
    Ravi

  • Determining new segments for an idoc.

    hi guys,
    i have to map data on an idoc. the problem is that in the idoc there can be header and item segments. using an element referred as Id , i must be able to create a new segment for the idoc.
    can anyone please help me.
    thanks in advance

    Hi,
    You can use CreateIf Node function to create the segments based on the condition.
    <Condition>-CreateIf NodeFuction--<Node of the target segment>.
    The target segment will be created only if the condition is true.
    See the below link for more details.
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    Regards,
    Shweta

  • How to include a new segment in FIDCCP02 idoc (OUTBOUND)

    Hi,
    I would like to know in which EXIT or BADI I should append my new segment to the idoc data.  I have created the new segment to add new Z fields that I added before on the BSEG, and I have created the enhancement of the idoc and put the new segment in the correct place.
    Best Regards

    Adrian,
    Isn't the BADI IDOC_DATA_INSERT the correct answer?
    Regards,
    Ashvin

  • Which segment in INVOIC IDoc holds Allowance value @ header level?

    Hi all,
    I want a segment in INVOIC IDoc to hold SAC (Service Allowance and Charge) Values @ Header level. Plz suggest me one. I know @ item level SAC values are stored in E1EDP26 segment. Tell me which segment i can use it for holding SAC values at header lever??
    Thanks,
    Creasy

    Thanks MxG for your reply.
    I have a scenario. I have to accommodate EDI SAC codes into SAP through IDocs(inbound vendor invoice (FB60)). I have around 4 to 6 SAC codes which have values that will be either credited or debited to GL accounts. some are at header level and some are at detail level.
    How come I implement this scenario. I have no clue to implement this scenario.
    Plz do reply.
    Thanks very much,
    Creasy

  • 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

  • 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.

  • Material Master Upload though LSMW - How to add new custom segments to LSMW

    Hi,
    I have an existing LSMW to create material master idocs (ZMATMAS) from legacy file. Now I need to add new custom segment under E1MARCM, for example say ZMARC1 which will have 2 new custom fields.
    1. I created the segment through WE31 and released it.
    2. I created an extension to ZMATMAS using WE30 and released it.
    Now Im trying to change the LSMW so that I will have the new segment ZMARC1 under E1MARCM so that I can do the field mappings. But I am not able to get it done. i.e. I dont know what should I do so that I can get the new segment in LSMW.
    I tried giving the extension in the first step of LSMW. i.e. Maintain Object Attributes but its not allowing me to give an extension. Do I need to add to the basic type ZMATMAS05 and release it to get it reflected in LSMW.
    Please give your suggestions.
    Thanks a lot in advance.

    Hi
    U can not add u r 'Z' program in Maintian attributes of LSMW.
    But U can create the BAPI and assign Business object, Then u can use u r Business Object in Lsmw.
    Regards,
    Raghu.

  • Segment E1ADRM4 in idoc SHPMNT05 only allows 10 partners

    We have to post an extension of Idoc type SHPMNT05, with all the shipment and delivery information. For a concrete shipment, we have 15 different partners. However, segment E1ADRM4 doesn't allow more than 10 iterations. Why the system only allows to post 10 partners? Will we need to implement a new Z-segment to post the rest of the partners or do you know any other alternative solution?
    Thanks in advance.

    Hi Carlos,
    We encountered similar issue on another IDoc type, based on which I will suggest you to do the following.
    You can go to WE30 -> SHPMNT05 IDoc double click on segment E1ADRM4 and check that it is arbitrarily defined to have a maximum number of 10 records in an IDoc. This is the reason why the system won't allow you to have more than 10 of these.
    Since you can't modify this as it falls in SAP name space, what you can do is to create an extension to SHPMNT05 IDoc say ZSHPMNT05 and insert a Z1ADRM4 at the same level as E1ADRM4 below it. You can instruct the EDI / Warehouse / partner to populate and send these Z1ADRM4 segments when E1ADRM4 exceeds 10.
    Inside IDOC_INPUT_SHPMNT function module you can copy the Z1ADRM4 segments as new E1ADRM4 segments and insert them below existing ones in EXIT_SAPLV55K_020 in internal table IDOC_DATA
    Later in FORM shpmnt_application_process, SAP processes these segments and will call function SD_SHIPMENT_PROCESS to create the shipment. I verified that there is no limitation on number of E1ADRM4 segment that can be processed here (which again shows that the number 10 is arbitrarily chosen by SAP with the belief that it will never be exceeded!)
    Subsequent to this, EXIT_SAPLV55K_022 is called. Here you can delete the extra E1ADRM4 segments that you appended, so that IDoc will not fail because of syntax check, just in case. This may or may not be required, you can check out.
    You can see all the above sequence of processing in IDOC_INPUT_SHPMNT -> PERFORM SHPMNT_IDOC_PROCESS -> PERFORM shpmnt_application_process
    Best regards,
    Vishnu Tallapragada

  • Extension IDOC

    Hi
    I need a step-by-step procedure for creating extension IDOC?
    Points will be rewarded in advance
    Thanks

    Hi Jayasree
    for extended idoc,these r the following steps u need to follow.
    1>we31(create new segments with fields u want to populate)
    2>we30(create an extension idoc type).in we30 u will get to radio buttons.1>basic type 2>extension.click on the extension and then copy the basic type.Now will get all the segmnts .Now add the new segments under the parent segement which needs to be extended.
    3>attach the extended idoc type to basic type and message type to tcode WE82.
    4>Now u have to search for an exit where u have to write ur code in order to populate the fields which u have extended.Basically u will write in the Function module.Make sure u r writing in the correct exit.Evry messagetype will have a function module.
    5>create a project in cmod and activate the function exit.
    Regards,
    Nagaraj

  • 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

  • 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

  • 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

  • Error when segment of an IDOC is edited in we31

    Hi All,
    I want to edit an segment of an idoc in we31, I want to add new fields to a segment. When I try to do this i get an error message "Segment type E1BP****** is flagged as generated". How can i edit the segment in this case now?. Is there any customizing related to it.
    When i see this segment type in table EDISEGMENT, it is marked as generated (field generated is set to X)
    Edited by: Devendra A M on Feb 5, 2009 7:03 AM

    I guess you can do one thing ... you can CANCEL RELEASE the segment and then make necesasry changes and then again RELEASING the segment.
    you can also visit this link
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
    in that you go to the "Change Segment" sub-topic.
    Edited by: Premal Mistry on Feb 5, 2009 11:47 AM

  • Finding Mendatory fields in a segment of an IDOC

    Hi All,
    Can anyone tell me how to find out the mendatory fields required in a segment of an IDOC if we are going to upload data using IDOC technology.
    Thanks in Advance.

    Hi Ginger,
    Can anyone tell me how to find out the mendatory fields required in a segment of an IDOC if we are going to upload data using IDOC technology.
    The fields in the IDOC can never be made mandatory but the Segments in the IDOC can be made mandatory.
    If segment is mandatory it means that atleast one field in the Segment should be filled.
    generally while defining the IDOC Header data is made as the mandatory segment with Minimum number  1 Maximum number  1 and rest all as optional and can occur more than once.
    Hope this clarifies!
    Regards
    Shital

Maybe you are looking for

  • How to close RFC connection in one script coding

    In one script, I am using the REF command to call another 2 scripts and these called scripts shd be run on same C36 ( test system). I shd close RFC connection between these 2 scripts. That is , once the 1s script over the RFC shd be closed and the us

  • How do I set up a network hard disk so I can restart my MacBook from it?

    I have a 2TB Freecom XS Network hard disk, and I want to be able to restart my MacBook from it with my current OS, Leopard 10.5.8, when I have upgraded the OS on the MacBook to Snow Leopard 10.6.3 [as a possible precursor to Mavericks or even Yosemit

  • JTree + FK with same value causing problems

    Hi I can't figure this out. If I create biz components for 2 tables having a parent-child relationship and a jTree with appropriate rules, things are ok only if the parent's id are of different values than the child. When parent.id and child.id have

  • MB 13 aluminum with XP Pro, computer locks with second monitor attached

    I have a new macbook 13 unibody with windows XP pro, SP 3 installed. When i use an external monitor in dualview, the computer hard locks after the computer is left idle for a while - I think when power management tells the screen to shut off. The com

  • Failure at step5 of clusterware configuration assistant

    Hi all, I'm about to install RAC 10g R2 on Win 2003. I've used iSCSI technique in order to share a storage. I've passed every sections but VIP at cluvfy. I can add my 2 nodes during installation process. But at Clusterware Configuration Assistant at