cancel
Showing results for 
Search instead for 
Did you mean: 

AIF Mapping not working as expected

former_member406362
Discoverer
0 Kudos

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:

capture.png

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?

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi,

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

David

former_member406362
Discoverer
0 Kudos

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?

0 Kudos

Hi,

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.