cancel
Showing results for 
Search instead for 
Did you mean: 

how to pass data only blank spaces

Former Member
0 Kudos

Only mapped where CONFIG_ID=000001.

If field is not present, leave empty and pad with blank spaces

Thanks

Swathi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Swathi,

>> If field is not present, leave empty and pad with blank spaces

For this you can use the NodeFunction mapWithDefault and Give a blank space " " as parameter to it.

Thanks,

Aravind.

Former Member
0 Kudos

Hi Aravind

Field below

Only mapped where CONFIG_ID=000001.

If field is not present, leave empty and pad with blank spaces

"Where E1CUCFG-E1CUVAL-CHARC=PLY_MODEL

Left aligned

Pad remaining field length with blank spaces"

this is my requirement. plz could u explain how to do

former_member208856
Active Contributor
0 Kudos

Use Mapping for

IF CONFIG_ID --> NOT --> EQUALS --> CONSTANT (000001)

AND

E1CUCFG-E1CUVAL-CHARC -- EQUALS --> PLY_MODEL

Pass value

CONSTANT (" ").

Former Member
0 Kudos

Hi Swathi,

Use the Arithmetic Function equalsA to check the if CONFIG_ID = 000001. pass constant "000001" as second argument to equalsA function.

Output of the equalsA function map to Boolean function "if" which has then and else option.

Use this combination as your requirement.

Your requirement is not clear. Its better if you rephrase your question.

Regards,

Aravind

Former Member
0 Kudos

Thanks Aravind.

Based on your solution My issue is resolved.

Thanks&Regards

Swathi

Answers (3)

Answers (3)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Another simple way ...

Use Text function equalsS. One input is CONFIG_ID and another input is constant function using value(000001).

The output of equalsS is given to boolean function if else and map it to target field.

sugata_bagchi2
Active Contributor
0 Kudos

Hi Swathi,

you can also use an if-then-else with exists function.

but mapwithdefault is the easiest one to use.

Thanks

Sugata

Former Member
0 Kudos

Hi Swathi,

You Mapwithdefault- node function to attain the requirement.

In the properties of Mapwithdefault define the value to be sent when the field is empty.

Thanks,