Skip to Content
avatar image
Former Member

IDOC-XI-FILE

Hi,

My scenario is IDOC-xi-file. I need to get output file as for every schedule line item, I need to generate Header data, Line item data.

For example: my output file has fields of Header data, Line item data and Schedule Line data.

Source is

<Idoc>

<E1Header>

</E1Header>

<E1EDP01>

<E1EDP20>

</E1EDP20>

</<E1EDP01>

</Idoc>

This is my Target Structure.

<Recordset>

<Data>

<Header>

</Header>

<Lineitem>

</Lineitem>

<ScheduleLine>

</ScheduleLine>

</Data>

</Recordset>

Here for every value in the Schedule line <E1EDP20> I have to repeat all the fields in the target structure( Header and Line item). How can this is solved? Thanks in advanceĀ…

Regards

Gowri K

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Aug 10, 2006 at 12:40 PM

    Hi Gowri

    You can do this by using node funtions removeContext()

    splitByValue() etc..

    You please do as follows

    E1EDP20--->Header

    E1EDP20--->Lineitem

    E1EDP20->removeContext>splitByValue(each value)-->lineItem

    thanks

    Prasad Babu Nemalikanti

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 10, 2006 at 01:35 PM

    Hi,

    Try this way..........

    <E1EDP20>--


    remove context----Data

    <E1EDP20>--


    remove context----Header

    <E1EDP20>--


    remove context----Lineitem

    <E1EDP20>--


    remove context----ScheduleLine

    Create one Advanced user defined function with 2 input arguments(suppose copyEachValue)...

    Code :

    for(int i=0;i<a.length;i++)

    {

    result.addValue(b[0]);

    }

    For the above UDF give the following two inputs..

    <E1EDP20>------\

    copyEachValue-splitbyvalue-Field(Header)

    Field(Header)--/

    Do the above mapping for every field in Header and LineItem.

    For schedule line items...map the fields as it is....

    It may solves your issue...

    Thanks & Regards,

    sekhar

    Add comment
    10|10000 characters needed characters exceeded