on 10-16-2007 8:50 AM
Hi all,
I have a scenario like this
If i have 100 records in the file then in the idoc there will be 100 data segments to be created.
if say 5 records were error then i need to create an idoc with 95 data segments. and ignore the 5 error records.
how can we do this?
Actually,
As soon as the file is picked by XI, it does a lookup in the XI itself
I have a lookup table with the fields
CodeDomain Group
Code DomainID
ORIGID
DESTID
CURRVALUE
MAPPED VALUE
if the file doesnot contain a CURRVALUE then those records needs to be ignored and proceed processing the other subsequent records.
Please advice.
Thanks in advance..
Regards,
Kumar
in mapping to the segment of the idoc (root level ) create the target node only when your lookup valuei meanthe file doesnot contain a CURRVALUE then dnt map it..what i mean is
suppose field A in your Datatype contains field value CURRVALUE...
use if without else
if check the output of the lookup is equasls to CURRVALUE pass this to IF on the else part put the root node of the fileDT
in siple words create the target node wonly wehn your condition is true....
this will work fine
Message was edited by:
n Khan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Kumar,
It is very simple. you can do it very easly.
In you mapping, just validate the parent node of surce before mapping to the parent node of target (i.e.<b>IDOC</b>).
Say your source parent name is <b>ROOT</b> or <b>Records</b>, now as per your requirement do like this.
Use <b>IF without Else</b> function
<b>CURRVALUE -
> EQUALS ---> SPACE ---> NOT -
> IF, THEN ---> ROOT ---> IDOC</b>
By doing this, it will create the IDOC only for those records which will be having a value in CURRVALUE field.
Regards,
Sarvesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.