cancel
Showing results for 
Search instead for 
Did you mean: 

Help me out of this querey

Former Member
0 Kudos

Hello experts,

I have some requirment like a flat file coming with material data( material ID,.... etc), and has to updated into R/3. So before doing this check whther the fieldcoming( material ID) from flat file always contains a value or not.?

How to define a user defined funtions for this. I dont have much knowledge in java scripting, so help me out from this. Please give me the code if possible.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

dharamveer_gaur2
Active Contributor
0 Kudos

Hi

You Can check this in XI Mapping.

Answers (3)

Answers (3)

Former Member
0 Kudos

hi,

you can check value using exist tab under node function .

if the required field exist than do your mapping .

this will check the existrencs of field in xml.

if you requird to check it for any specific value than you need to use equal tab in mapping.

regards,

navneet

SudhirT
Active Contributor
0 Kudos

Hi ,

Exists is used for checking whether the node is present or not. not for checking the values in node

Thanks!

Former Member
0 Kudos

hi sudhir,

i said that equal tab is used for cheking the value for specific value not exist tab.

regards,

navneet

SudhirT
Active Contributor
0 Kudos

Hi Navneet,

My apologies , replied to wrong person , Just wanted to clarify.

Thanks!

Former Member
0 Kudos

Hi,

It's very simple you can use standard function : exists for this...

Regards

SudhirT
Active Contributor
0 Kudos

Hi Arjun,

You need not use UDF, do this in graphical mapping.

Put the condition

Source Field(Source Structure for which value check is req.) -> EqualS(Text Function)->Constant(Constant Function with no value delete default constant value)---> (Boolean Function)IF -


> Then -


> whatever your requirement is.

This way it can be done.

Thanks!