Skip to Content

AIF Mapping not working as expected

Mar 27, 2017 at 05:06 AM


avatar image

Hello All,

We have a scenario where we are sending ES structure from PI(proxy) to SAP AIF and then ERP to create a purchase order.

There is a field in ES receivingplantID(not mapped to anything in PI and is to be passed at runtime via AIF value mapping) the value is derived via a table , If the value is hard coded in PI the interface runs successful else it fails in AIF with below errors:


One more observation, If the data is not hard coded in PI the item node in the ES structure is not getting any data while creation of PO. But I can see the data in outbound PI message.Value mapping is working fine as I have tested it in AIF/IFMON. Any suggestions?

capture.png (16.2 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

David Rittinghaus Mar 27, 2017 at 01:46 PM


did you assign the value mapping to the field in question in the structure mapping section ?

Are you sure that the values in the mapping are of the correct type ? Maybe you need a conversion exit function module call.

Kind Regards


Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hello David,

Yes the VM is assigned to the field, Please check screenshot below:

can you please explain a bit on "conversion exit function module call" I mean why it is needed here?

capture.png (25.7 kB)


the mapping looks good.

With that comment i meant that sometimes in the database there is a value like 0000123 and it is displayed as 123. But if you try to enter 123 it will say "no such plant" because the preceding zeros are missing.

You could also check which value is taken inside the value mapping by adding an entry to the return table in the action you're calling.