cancel
Showing results for 
Search instead for 
Did you mean: 

Constant Value to the Source field

Former Member
0 Kudos
272

Hi

Is this Possible to assign the constant value to the field from the source

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Can you be more clear about your question?

Generally, target fields will get mapped with some values / source fields / constants.

Regads

Bhanu.

Former Member
0 Kudos

I want to assign the constant value to the source field but i dont want to assign to the any field on the target side...

is this possible

Former Member
0 Kudos

No, its not possible

Former Member
0 Kudos

create a dummy field on the target side and assign whatever constant value you want to assign using constant function, thats all you can do as a work around.

Former Member
0 Kudos

Try writing a custom module program which prepopulates the input with the constant value.

BR

Former Member
0 Kudos

Yeah,its pretty simple,you can have 2 message mappings.

in the first mapping disable all the fields except the one you want to populate with constant,this will be source to source(means both sender and receiver will have same structure as source data type).

The second mapping will be actual source to target message mapping.use these two mapping in interface mapping one after another.

Thanx

Aamir

Former Member
0 Kudos

I dont think 2 MM's will solve his case as he needs the value for internal monitoring and the values for nested maps cannot be seen or monitored, only the input and final output can be viewed.

Former Member
0 Kudos

if u really want to modify the Payload, then do it in AM. But just for a constant value I think it is not an appropriate option..

Thanks

farooq.

Former Member
0 Kudos

Well you can manually monitor nested mappings,take the payload from Inbound Message of sxmb_moni and test it under test tab of message mapping,the resultant XML on the receiver side can be saved and used as a source for second mapping.

Former Member
0 Kudos

Hi,

You can add the messages to mapping trace using MappingTrace object for internal monitoring.

If you don't want to assign it to target field and just use it for monitoring, add some information in mapping trace and set the appropriate trace level.

[http://help.sap.com/saphelp_nw70/helpdata/en/c8/98e7d5c1620642973565ea3dd319d1/content.htm]

Thanks,

Beena.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

if your requirement is to assign a constant value to source, then ,it is not possible.

if you want to assign a constant value to target then you can use constant function under constants function catagory

Thanks,

Madhu

Former Member
0 Kudos

Yes you should assign.

You mean assign constant value to the sender side field ? if yes not possible.

Former Member
0 Kudos

I dont want to send it to the target..

i create the SysOrgin as field from source i want to assign the constant value SAP to that so that for internal monitoring purpose ..

Former Member
0 Kudos

Hi,

you can do that by using boolean Functions(if then else, if without else...........

Thanks,

Madhu

Former Member
0 Kudos

Can you be more specific

Edited by: Srinivas Davuluri on Jul 15, 2008 1:13 PM