How to ignore segment occurances in IDoc

Hi
I have a IDOC to file scenario.
How do i ignore the first segment of a multiple accuring segment. For Example if the segment E1EDXX occurs 5 times in the IDOC i have to ignore only the first (segment)occurance and the remaining 4 (segment )occurances shold be mapped to the target
How can i map this
Any udf or nodefunctio combination would really be appreciated
Thanks
-keerthi

Hi
You can try to build an UDF
//you initialize the array since one.
if (list.length >=5){
   for (int i =1; i < list.length ; i++)
    { result.addValue(list<i>); }

Similar Messages

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

  • How to see Segment Version in IDoc

    Hi,
    is there any way to see the Segment Version in an IDoc ?
    We had the problem that an old version(Segment) was entered in the WE20(receiverdetermination) and we havent known this.
    any ideas ?
    Gordon

    hi Michael,
    that is not the thing i wanted.
    If you have the newest version in WE31 but you have entered an old release in WE20 outbound parameters. The idoc is filled with the old segment version.
    I only want to see the segment version in the outgoing idoc ?
    IS there a way to see that ?
    I have changed the release in we20 and after that the newest segment version was taken the idoc was ok!
    Gordon.
    Message was edited by: Gordon Breuer

  • How  can create SEGMENTS and IDOC TYPE in BADI in ECC 6.0 version

    Hi All,
                Can any one help, how  to create SEGMENTS and IDOC TYPE in BADI in ECC 6.0 version.This is my task.
    Given BADI name was----VENDOR_ADD_DATA_BI .
    Thanks

    Anil,
    look at this thread ..may be this helps you.
    Re: 824 IDOC and BADI/User Exit
    sateesh.

  • 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

  • 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

  • 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

  • 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

  • How to ignore programmatically some items during a query ?

    Hi all,
    The process of my application is like this : first of all the end-user enters some criteria , then he/she presses a button to search for the possible results matching the criteria entered (execute_query). The possible results are displayed through a multirecord based datablock.
    The criteria screen has two parts , say part_a and part_b. When the end-user does not enter any criteria in part_b then the datasource of the results block should be a table , say data_source_1 ; and if some criteria are entered in part_b then the datasource of the results block should be a view , say data_source_2.
    The datasource data_source_1 has less number of columns than the datasource data_source_2 , but all of data_source_1's columns are included into data_source_2.
    So my problem is when the datasource of the results block is set to data_source_1 then there are unknown columns when executing the query (alert error). All of the columns of data_source_2 are included in the results block , and all of the columns of data_source_1 are automatically there because mathematically speaking data_source_1 is included into data_source_2.
    I have tried to use in the pre-query trigger of the results block this statement : set_item_property('results_possibles.column_a',queryable,property_false); but the same error still occurs.
    So how to ignore these items ?
    Thank you very much indeed.

    After looking at what you did to try to solve the problem, I'm not sure what the actual problem is.
    You can make both datasources have the same number of columns by selecting nulls:
    data_source_1: select a, b, c, null as d, null as e from <table>
    data_source_2: select a, b, c, d, e from <view>
    If you have a field which is used to query a column which is included in data_source_2 but not in data_source_1, and that field is populated when you run the query, then just set the block's default_where to ignore that field.
    eg
    data_source_1: where...and c like nvl(:control.c,'%')
    data_source_2: where...and c like nvl(:control.c,'%') and d like nvl(:control.d,'%')...

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

  • 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

  • How to create FI Document in Idoc.....

    Hi Abapers,
    I hve small doubt that
    how to create FI Document in Idoc.....?????s
    I was new to the Idoc creation .......
    can u give me step by step process..............
    Thanks & Regard
    Ravi Sarma

    Hi Rahul,
    As per my understanding you are loking for creating the IDOC per FI document.
    So if in case the multiple rows have retrived from Oracle Join query then Multiple IDOCs to be created. Per row one IDOC.
    You can do this just by changing the Occurance of IDOC
    Export the XSD structure of imported IDOC from IR and modify the occurance of IDOC field as below example
    <xsd:element name="IDOC" type="ZTEST_IDOC.ZIDOC" maxOccurs="unbounded" />
    Then Import the xsd file as external defination and use it directly in mapping.
    It will create the multiple idocs  with mapping Row field of Oracle structure to IDOC field
    Thanks
    Swarup

Maybe you are looking for

  • Hello i have a problem with my airport express the music sizzles? Why?

    Hello i have a problem with my airport express the music sizzles? Why? What can i do?

  • DVD drives rendered useless

    Hello, Recently, my G5 Dual 2.0 decided that it would no longer burn DVDs. I have previously burned many DVDs on the internal superdrive (a Pioneer DVR-107D) as well as my external LaCie (a Pioneer DVR-K12D), and an older 1x LaCie. Now, I get the sam

  • BBP_CATALOG_TRANSFER  - Determine the caller / document type

    Hi Gurus, I need to implement a logic which should be triggered (during catalog transfer) for limit confirmations only (One can add items from catalog when doing limit confirmations). However i do not the confirmation guid / PO number etc in the inte

  • IFS-30002

    The problem is that when i try to upload a file from a client into the iFS usign both de WebUI and the WindowsUI iFS throws an exception: iFS-30002: Unable to create NewLibraryObject After that one, an other error is displayed: java.lang.exception: N

  • Shared Components Application Processes - (Documentation for Reset

    There's a "Reset" button on the page, Application Builder > ... > Shared Components > Application Processes. But before everyone jumps in to tell me that it does a reset ... that's not my question. My question is: <font color="green"><font size="4">W