cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping problem in SAP PI

Former Member
0 Kudos

Hi Experts,

I am having a couple of problem while mapping two fileds in SAP PI.

1. I am mapping an IDoc filed(Source) with a file field(Target)

Now, the condition if there is no value from the source filed of Idoc say X then map with another source filed Y with the same target file filed.

But while using standard functions of SAP PI I am geeting error as boolean declaration not allowed here.

2. Another problem is while adding prefix to a target field it is always coming at the end.

Please help me out.

Thanks and regards,

Aniruddha Bhattacharya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thanks a lot again Jose, I will try that out and regarding my second question as adding a prefix?

Many thanks,

Regards

Aniruddha

former_member182503
Active Contributor
0 Kudos

Aniruddha,

Right now, how are you adding the prefix?

Best regards,

JN

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks a lot Jose, it has worked perfectly.

Regards,

Aniruddha

Former Member
0 Kudos

Just using the concat standard function, but its adding the fields in the beginning.

Regards,

Aniruddha

former_member182503
Active Contributor
0 Kudos

Aniruddha,

keep using the concac function but swap the order of the parameters.

Put the PREFIX on the first parameter of the concac function and the value on the second parameter.

BR,

José Nunes

former_member182503
Active Contributor
0 Kudos

Hi Aniruddha,

you can write a simple UDF to handle that.

The UDF will receive the two possible values for the target field, e.g., field_1 and field_2.

if (field_1 == null || field_1.equals("")) {
return field_2. } else { return field_1. }

Best regards,

JN

Former Member
0 Kudos

Hi!

Why not use standard functions?