on 08-19-2015 11:49 AM
hi All,
my requirement is
Source contains different records which are under some header, i want to create a segment at the target side with the value from the record, like if the record contain feild Debit/Credit = DR then the GL segment should be created.
Source suructure
<Request_Key>
<Header>
Record(1)
Debit/credit value : DR
Record(2)
Debit/Credit value : CR
</Header>
</Request_Key>
<Request_Key>
<Header>
Record(3)
Debit/credit value : DR
Record(4)
Debit/Credit value : DR
</Header>
</Request_Key>
at the target i have created 2 IDOC for each Request_Key and i need to crete GL segment for each header record which contains the Debit/Credit value as DR
Target as follows:
first IDOC with GL segment for record(1)
sencond IDOC with 2 GL segments for Recorde 3 and 4.
i have tried with remove context and split value but not working.
please suggest the UDF to skop the GL segment for record 2 and create GL for record 3 and 4.
Thanks
Hi,
Use RemoveSuppress UDF.It will remove the Suppress value in the queue.
for (int i = 0; i < var1.length; i++) {
if (var1[i]!=ResultList.SUPPRESS )
{
result.addValue(var1[i]);
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.