Idoc extension with non-mandatory segments

Hi,
I have a generic question on extension of IDOCs. If we are creating a child segment of a standard segment in extension, can we create a child as mandatory segment of a non-mandatory parent segment, here parent is some standard/custom segment and child is a custom segment. I have confusion on this as the system allowed on this as how a child segment can arrive in Idoc if parent segment is missing.
Regards,
Harsh.

Referred to WE60 for documentation. Cannot have blank segments while using the test tool WE19. Works fine in real time environment.

Similar Messages

  • IDOC extension with SAP Upgrade

    Hi,
    I'm using IDOC extension in my scenario. I just concern that if one day my company decides to update SAP into a newer version. Would that has any impact on my IDOC? Becasue in T-Code: WE82 that I use to assign IDOC extension, there is a field for SAP Release version. If Release version is changed, Do I have to come to this T-Code and add my extension to the new release?
    Thanks,
    Pavin

    Hi,
    From Release 4.0 the IDoc type is identified via the basic type  and extension  fields and no longer via the DOCTYP field. Therefore, the different identification fields must be assigned to each other so that new extensions can be used for communication with older releases.
    IDOCTYP and CIMTYP must be converted to DOCTYP in the following cases:
            You are communicating with an R/3 System with Release 3.0/3.1.
            You or your business partner are using an EDI subsystem with an older release status.
            You are communicating with an R/3 System with Release 2.1/2.2 or an R/2 System which has defined and therefore u201Crecognizesu201D your extended IDoc type (as a former intermediate structure). This case is extremely rare.
    You can convert the fields in the IDoc type editor (transaction WE30) with which you have defined your 4.X extension (Environment ® Conversion ® IDoc type).
    Hope this link helps u...
    http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b7f2f43d711d1893e0000e8323c4f/frameset.htm
    Edited by: anil sasidharan on Mar 3, 2009 11:04 AM

  • IDoc adapter with Non SAP systems

    SAP XI 3.0 help says:
    You can use the IDoc adapter to connect SAP systems (as of release 3.1) and non-SAP systems with the Integration Server using native IDoc structures
    What does this mean?
    -Naveen.

    Hi Naveen,
    Let me give a use-case in one of our projects ....we have 2 middlewares in our landscape...webmethods and XI...and in one particular instance there was a need to send an FI IDoc from webmethods to XI and forward it to R/3....
    In this case, the webmethods was treated like any other sap system for receiving IDoc into XI(with settings in IDX1)...
    Hope this might clarify a little bit...
    Thanks,
    Renjith

  • Search page with Non-Mandatory Fields

    JDev 11.1.2.3.0 ADF BC
    I have a Search page that has 12 fields where Nothing is mandatory while inputting at least one(any of the fields) is mandatory. I am looking to reduce the code in this case, I don't want to use a Stored procedure or backing bean method to handle the if and else's. I would be excited to handle this at the Model part itself(Writing a proper SQL query or by means of bind variables/view criteria).
    Hope the use case is clear.

    You can use ViewCriteria with Validation property set to "Selectively Required"
    Dario

  • Idoc Extension...Access Key

    Hi Guru
    Require your suggestion.
    I have to extend the standard idoc DEBMAS05 but when i am doing it asking for Access Key.
    Now i don't want to use access key. So what is other option for it,
    Can i copy the all DEBMAS05 idoc as ZDEBMAS05 and then do the extension....
    If yes then in  that case do i need to to make ZDEBMAS  Message Type or i can use the same DEBMAS Message for ZDEBMAS05.
    Please give me Steps how to procees for Copy the Besic type.
    Rgz
    SA

    Hi
    here is my scenario
    Can you help me on following.
    I am working on DEBMAS05 Idoc.
    Sender system sending  DEBMAS05 Idoc which is an Idoc Extension with two Z segment.
    Now here is my problem.
    In Receving system if i am extending the DEBMAS05 its asking for Access key.Which i don't want. Is any other alternative of doing this?
    I have two below option but not much clear about it.
    1. If i copy the DEBMAS05 to ZDEBMAS05 and then do idoc extension.In this case do i need to also make ZDEBMAS.
    or i can using DEBMAS as Message type for ZDEBMAS05?
    2. I found one function-exit 'EXIT_SAPLVV02_001' in (user-exit VSV00001) which has description 'Read and Post Additional Export Customer Master Segments'.
    can i use above function-exit  in DEBMAS05 without extending the Idoc for Z fields in reciver side.
    i am just evaluating above option so that i do not use Access Key.If above option is not valid then i may use Access Key,
    Please suggest.
    Regards
    RJ

  • Problem in Idoc extension for ORDERS05

    HI all,
    Am facing problem in inbound idoc, we have extended the Idoc ORDERS05 with one custom segment, and written the code in user exit EXIT_SAPLVEDA_001 and include ZXVEDU03 exit is triggering properly, sales orderis genarted successfull, but z-fileds are not updating in VBAK table,
    so plz help....
    Regards,
    Suresh.D
    Edited by: suresh dameruppula on Oct 20, 2009 2:39 PM

    Hi Suresh,
    The function exit and the include what you found is to read data from the IDOC segment into either internal table or structure.
    That's the first step which you have done is part of the below set:-
    EXIT_SAPLVEDA_001 & ZXVEDU03
    Now you need to populate the which you have read from the idoc into the document for that you need to write the code in the below set. The below one is a function exit which will be called during the BDC. You can see this below
    Aufruf Transaktion Auftragerfassung VA01                             *
    call transaction Order Entry VA01                                    *
            CASE xaprau.
    at line number 131 in the function module IDOC_INPUT_ORDERS.
    EXIT_SAPLVEDA_002 & ZXVEDU04
    Please let me know if you still have any further queries.
    Thanks,
    Mahesh.

  • IDOC EXTENSION FOR DEBCOR

    Hi gurus,
    can anyone of you please tell me step by step procedure to create an idoc extension, lets say for DEBCOR.
    Thanks,
    Rajeev

    hi rajeev...
    can u please share me the detail description of how to go for Idoc extension with an example.

  • IDOC: How to create child segment with abap code.

    Hi,
    I'am trying to write an abap code to create segments for an Idoc which structure is the following:
    ZLE_00060_DLVY
    >  E1EDL20
    > Z1DEL_CONS
    >Z1DEL_MAT_HEADER
    > Z1DEL_MAT
    > E1EDL20RET2
    > E1EDL22
    > E1EDL21
    > E1EDL23
    > E1EDL51
    I receive a sintax error: Error in IDoc with status 26 .
    Checking the result I note all segment at the same level and an error about the segment E1EDL22
    EDI: Syntax error in IDoc (segment cannot be identified)
         Message no. E0078
    Diagnosis
         The segment E1EDL22 does not occur at the current level of the basic
         type DELVRY05 (extension ZLE_00060_DLVY).
         This error can have several reasons:
         o   The segment E1EDL22 is assigned to a group whose header segment does
             not occur.
         o   The segment E1EDL22 does not exist in the syntax description of the
             basic type DELVRY05 (extension ZLE_00060_DLVY).
         o   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.
    Procedure
         Please check the IDoc or the syntax description of the basic type
         DELVRY05 (extension ZLE_00060_DLVY).
    After the error I have:
    data records
    E1EDL20
    Z1DEL_CONS
    Z1DEL_MAT_HEADER
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    E1EDL20RET2
    E1EDL22
    E1EDL21
    Abap code:
            idoc_data-segnam = 'Z1DEL_CONS'.
            idoc_data-sdata = s_z1del_cons.
            append idoc_data.
              idoc_data-segnam = 'Z1DEL_MAT_HEADER'.
              s_z1del_mat_header-tsegment = 'MATERIAL'.
              idoc_data-sdata = s_z1del_mat_header.
              append idoc_data.
            clear idoc_data-sdata.                            <<<<<<<<<<< how to indent the structure because this is a child.
             idoc_data-sdata = s_Z1DEL_MAT.
             idoc_data-segnam = 'Z1DEL_MAT'.
             append idoc_data.
             idoc_data-segnam = 'E1EDL20RET2'.
             idoc_data-sdata = s_E1EDL20RET2.
             append idoc_data.
             clear idoc_data.
             idoc_data-segnam = 'E1EDL22'.
             idoc_data-sdata = s_e1edl22.
             append idoc_data.
             clear idoc_data.
             idoc_data-segnam = 'E1EDL21'.
             idoc_data-sdata = s_e1edl21.
             append idoc_data.
    Any help will be well appreciated.
    Thanks in advance.
    Regards,
        Giovanni

    Hi,
    following in debugging mode the abap code of the INCLUDE ZXTRKU02 where is defined the TABLES IDOC_DATA STRUCTURE  EDIDD, I find that all field of the table IDOC_DATA are not set. More exactly my expectation is to find values for SEGNUM, HLEVEL, PSGNUM.
    In a few words I need to execute an enhancement, via abap code, of the struscure of the idoc before sending it out since I have a requirement to test this enhancement in my XI environment, receiving as input this ideoc modified.
    Then, I need to add a new segment and one child.
    Any suggestion will be well appreciated.
    Thanks in advance.
    Regards,
        Giovanni

  • Issue:EDI: Syntax error in IDoc (mandatory segment missing):Idoc extention

    Hi all,
    I have extended the the standard IDOC MATMAS05  classification view with structure as below-
    E1MARAM                        Master material general data (MARA)--->Mandatory segment
         Z1KLART                        KLART --->Extended chaild to E1MARAM
             Z1CLASS                        segment for class --->Extended chaild to Z1KLART
             Z1CHARACTERISTIC               CHARACTERISTIC --->Extended chaild to Z1KLART
         E1MARA1                        Additional Fields for E1MARAM
         E1MAKTM                        Master material short texts (MAKT) --->Mandatory segment(Child   to                                                                               
    E1MARAM )
    I am getting an error in IDOC fro material master as:EDI: Syntax error in IDoc (mandatory segment missing ).
    Diagnosys By system is :*The segment E1MAKTM has the attribute 'Mandatory' in the syntax description of the basic type MATMAS05 (customer enhancement ZMATMAS05). However, the segment is missing in the IDoc. The segment number logged in the status record identifies the item before which the segment is missing.
    This error may have been triggered by an unidentifiable segment before the expected mandatory segment.*
    Please help to resolve the issue.
    Thank you.
    Edited by: sanu debu on Apr 30, 2009 11:25 AM
    Edited by: sanu debu on Apr 30, 2009 11:31 AM

    Hi,
       You cannot add an segment in the middle of other segments.
    YOu have to add any segment at the last.
    If you want to add a segment as the child of another segment, it should be added after the last child of the parent segment.
    In you case, you have to add your segment after the E1CUCFG segment.(NOt under that segement)
    Regards,
    Ravi Kanth Talagana

  • IDOC: Problem with data filter for IDOC extension field

    Hallo!
    I've created an idoc extension for the basic type DEBMAS06 that works fine. Now I want to use a data filter for one field ( company code ) of my segment. Every segment with a company code different from 100 should be filtered and not send to the other client. But what happend is that for all customers that have at least one company code different from 100, all segments including the one with cc 100 were deleted and a error "Segment ... does not exist for message type DEBMAS" appeared on the screen.
    Does anyone have any ideas about this problem?

    Not sure about changes to be made at the filtering options.
    An alternative would be sending the data to XI as it is and perform the mapping to remove the unnecessary segments.
    Disadvantage: Unnecessary processing of segment would be done at XI.
    Advantage: The integration logic would be completely handled by XI.
    Regards,
    Prateek

  • Make a mandatory segment of a flexfield as non mandatory in iprocurement

    Hi all,
    I have a desc flex field in the requisition header, there are 3 segments and i want to display only two of them. Out of the 3 segments one of them is a mandatory segment, one which i do not want to display. when i display the other two segments and proceed, i get an error saying , there is no value for a required segment. So can anyone let me know how to make that segment as non required, only in self service, but i want it to be a required segment in core application.
    Thanks

    Hi Nizam,
                       You can check the component 'BT111H_OPPT' view 'BT111H_OPPT/ItemsList ', context node 'BTADMINI' has onclick action implemented for item list in opporrtunity transaction. In the same way you can do the coding.
    Hope this helps.
    Regards,
    Ruby.

  • How to isolate error with a record/segment in IDOC with multiple records

    I have an IDOC with multiple records/segments (typically 1000 records/segments). Sometime XI can not process the IDOC because of some control characters in data.
    1. How can I pre-processed the IDOC to remove those control characters?
    Can I use XPATH expression/Java class to do it? How can I configure the XPATH expression/Java class in XI to pre-process the file?
    2. Until I have answer to 1st question. I would like to find out the error is exactly for which record? What configuration can I do in XI to isolate the error is with which record/segment in IDOC?
    Thanks in advance.

    Split the IDoc.
    with in the UDF, after the validations if every thing fine, pass as successful records to success_MT and pass it to target system using Branching in BPM.
    if errors found in the record, then store the error records in Hash table with in UDF, get the IDoc number, frame as a string and raise alert.
    U have to do this in the context of IDoc.
    If U wanna get the IDoc Number, Segment Name and field name for every failure, U can pass the expected error field name as constant to UDF, frame the sentence in the UDF like -> <b>IDoc 1234321 segment – SEG001 – field – FLD03 has a special character ‘*’</b>.
    If U wanna pass this string to source/target, U can do in error messages branch in BPM.
    U must use BPM for splitting the IDoc, since it is multi-mapping.
    reg.,
    Yallabandi.

  • Idoc Types with customer extension in XI

    Hello,
    I have a question / problem.
    Is it possible to import an IDOC Type like HRMD_A06 with an customer extension like ZRMD_A06 into XI ?
    I have no idea how that could works ...
    Thanks for your feedback !
    Regards
    Florian

    Hi,
    You can import IDoc structure with extensions also. It will be same as importing normal idoc structure.
    We have done many like that in our project.
    What is the problem you are facing ?
    Regards,
    Sridhar

  • EDI: Syntax error in IDoc (mandatory segment missing)

    HI all,
    Error Message - EDI: Syntax error in IDoc (mandatory segment missing)
    Status ID - E0
    Message No - 072
    Status of the IDoc - 26
    Please help me how to solve this issue?
    Thanks,
    Srini

    Hi,
    This error normally comes up when the sequence of segments has been disturbed.
    For successfully posting an IDOC you need to maintain the sequence of the segments as in WE30.
    You can also check which segments are mandatory in WE30 by clicking on the segment name and the pop up that comes.
    Thanks,
    Manish

  • Mandatory segments and fields of Idoc...

    Hi Experts,
    I am very keen to know the mandatory segments and fields of the ORDERS05 IDOC so can you please let me how to check the mandatory feilds and segnents of this particular Idoc.
    Thanks in advance.Your help is highly appreciated.
    Thanks,
    Kiran.

    Hi,
    U can check in WE60 transaction code where u have to specify the basictype ORDERS05 AND THEN CLICK ON HTML FORMAT BUTTON..Now u can see the documentation of the idoc...
    Regards,
    Nagaraj

Maybe you are looking for

  • I no longer have the info icon for a manual sync.

    I'm trying to do a manual sync with an iMac which I've done many times before and the "info" icon is missing from the list of syncable features. What am I missing?

  • Aperture 3 smoothing edges of a jpg that consists of text

    I have typed some text in keynote and exported as a jpg.  Now I want to print the image without the sharp step like edges on the letters.  Does anyone know how to adjust the image to create smooth edges on a photo that is just lettering?

  • Installing new flash player?

    Please can someone help me? I've been trying to install the new flash player 11.7 for days and it refuses to install. I have internet explorer 9 64-bit, windows 7. I've tried everything that everyone has said. I've turned off my firewall, enabled scr

  • Pl/sql(help me please)

    I have a problem. When I read from a file I must respect the following rules: The only characters admitted are : Number: from 0 till 9 Alphanumeric: Blank and A....Z (capital letters). (The not capital letters and the letters with accent are deleted.

  • Controls lose data binding when added to cluster

    Please forgive me if this is a newbie question, but I can't seem to find an answer. In a nutshell, I have an array (constant) of strings and a cluster of booleans.  I want to search the name of each boolean in the cluster for a match to a string in t