cancel
Showing results for 
Search instead for 
Did you mean: 

Blank values for fields missing in payload - ABAP Proxy to file scenario

Former Member
0 Kudos

Hi experts,

I have an issue in ABAP Proxy to file scenario where the blank value field is completely ignored in the payload and in the file.

I have my data type structure as

myroot.

f1

f2

f3

f4

values :

f1 = ABCD

f2 = EFGH

f3 = Blanks

f4 = XYZ

This is how the inbound Message Payload appears in SXMB_MONI.

As u see f3 is missing.

n0: <n0myMessage_Type xmlns:n0="http://myNameSpace" xmlns:prx="urn:sap.com:proxy:myproxy">

- <<myRoot>

<<f1>ABCD</f1>

<<f2>EFGH</f2>

<<<f4> XYZ </f4>

</myRoot>

Is there any setting to be done at the proxy side to get the balnk value fields also?

Thanks,

Mallika.

Edited by: Mallika Haridas on Aug 1, 2011 12:06 PM

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

I think leaving out the blanks are normal for ABAP proxies. What you can do is when you receive it on XI, use the node function mapWithDefault in your message mapping.

Hope this helps,

Mark

Former Member
0 Kudos

Thank you. It helped.

Answers (2)

Answers (2)

naveen_chichili
Active Contributor
0 Kudos

Hi Mallika,

As Mark said above you can use Node function MapwithDefault which would be able to populate blank values.

You can check the link for more details [Link|http://www.saptechnical.com/Tutorials/XI/NodeFunctions/Page1.htm]

>>>>Replaces empty contexts in the inbound queue with a default value, which you specify in the function parameters.

Example:

If u201CDefaultu201D is the default value and

A|B1,B2| |C| |D

is the inbound queue,

mapWithDefault returns the following outbound queue:

A | B1,B2 | Default | C | Default |D.

The function corresponds to the following combination of standard functions:

If(

[]field,

exists([]field),

Constant([value=default]))

Thanks and Regards,

Naveen

Former Member
0 Kudos

Hi Mallika,

I agree with Mark. When you trigger data from the ABAP proxy, then field which does not have data (with cardinality 0..1) will not be displayed in payload.

Either you need to make the field mandatory, or use Mapwithdefault (node function) in your Message Mapping.

Thanks,