Skip to Content
0
Former Member
Aug 04, 2008 at 11:32 AM

User Defined function for checking the value is XML field 4 passing 2 IDOC

16 Views

Hi,

I have a file to IDOC scenario where the incoming XML strcuture contains the following data:

<EmployeeMasterData>

<Header> .....</Header>

<Body> ...

<Employee_Business_Unit>BU400199</Employee_Business_Unit>

<National_Insurance_Number>TN216600D</National_Insurance_Number>

......

</Body>

<Trailer>

<Identifier>FTR</Identifier>

<Number_Of_Records>1124</Number_Of_Records>

<Blank_Entry />

</Trailer>

</EmployeeMasterData>

The data in the National_Insurance_Number tag should be checked as follows:

If the first 2 characters in this tag contain 'TN' like above, the value moved to the target IDOC segment-field should be ' ' else, the value should be moved as it is.

I need to define a User defined function for this.

Can you please help me how to do this?

Regards,

Archana