cancel
Showing results for 
Search instead for 
Did you mean: 

initial value check

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

> 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

Answers (4)

Answers (4)

Former Member
0 Kudos

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

justin_santhanam
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

hi ,

I have used map default . but still it not passing default value to target .

posid->mapwith default-> posid

mapwith default i passed constant value .

Thanks,

Former Member
0 Kudos

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

Former Member
0 Kudos

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,

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

thanks for u reply,

Can plz explain cleary , i getting confuse with first line : "inut value posid ...

Thanks