on 03-29-2008 8:48 AM
hi all,
I have field is source idoc posid and target field posid .
I need to check posid field has values , if it has value in the field i need to map to target or else i need to give a constant value to target field .
how i can achive this ,
please help ,
Thanks
> I have field is source idoc posid and target field posid .
>
> I need to check posid field has values , if it has value in the field i need to map to target or else i need to give a constant value to target field .
You need to use standard function available in graphical mapping e.g.
1. if (you will find this under Boolean function )
2. equalS (you will find this under text function )
3. Not (you will find this under Boolean function )
4. Constant (you will find this under Constants function )
Now use above mentioned functions like this.
posid --> equalS (map "Empty Costant" in the second input box of equals function) -
> Not -
> if -
> target. ( else map constant value).
Regards,
Sarvesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Brunda
just do the below mapping:
Constant[default value]
|
Source field---equals-----if-----Target field
| |
Constant[]-------| Source field
(null)
**Reward points if helpful
--Sankar Choudhury
Edited by: Sankar Choudhury on Apr 15, 2008 10:22 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Brunda,
No need for If then else, exists function and all. Simply do the below logic.
posid ---->MapWithDefault[]----->posid
Whatever constant u want,just fill it in MapWithDefault function.
raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Do like this..
Ur source input..postid mappit to funtion EXIST...so it is there then in IFTHEN ELSE funtion pass the Postid in then option........if it doesnt then ........pass the Constant to the else part......it it clear..
posit>exist>if and in then part mapp posid-->then in else part map constant-->else and pass the out put of if then else will pass to target side..
iif it is not clear update the thread...
Regards
Phani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks for reply,
exits fucntion check always check for node exitsence.
since i am using idoc as source the node posid always exits .
I want check if node contains any value in it . if does not conatain any value then i need to pass constant value in it.
eg idoc source node is always
<posid/> if no value .
Thanks,
Hi,
Give me ur mail id...i will send u the screen shot...how to map from source to target.
Regards,
Phani
**********
Please read the Forum's Rules of Engagement,
i.e.,
[/thread/117188 [original link is broken];
and refrain from using email correspondence as the main objective of the Forums is to share knowledge.
SDN PI/XI Forum Moderator
Hi Brunda reddy,
Here is ur logic:
Inut value posid and constant with null value-> equals ->not->ifwithelse-> target value
ifwithelse:
then->ur postid
else-> whichever value u want to pass.
thnx
chirag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.