cancel
Showing results for 
Search instead for 
Did you mean: 

SAP AIF Equipment Master - Partner Update

0 Kudos

Hi All


I am new to SAP AIF & need some assistance. I have tried to setup the inbound equipment master interface from ECC to S/4HANA system with Basic Type EQUIPMENT_CREATE01. The incoming IDOC does create the equipment in S/4 system successfully. However, post the equipment is created (or may be even while creating, if there is a way), I need to update the just created equipment with the partner details via the FM: PM_PARTNER_UPDATE. I am guessing I need to create a wrapper FM for this and declare somewhere in the AIF setup. How & where to do this? Can anyone help.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

sebastian_gottmann3
Participant
0 Kudos

Hi harshtalesra,

you can do that in AIF within your structure mapping and the actions.

The action is used to process the IDoc and post the equipment. Afterwards you can use and implement your second function module to update directly the posted equipment.

As a pre-requisite, you need to use AIF runtime and process the IDoc within AIF. Otherwise it is not feasible and your IDoc will just be monitored within AIF.

Let me know, if you need further help.

BR,
Sebastian

Answers (4)

Answers (4)

sebastian_gottmann3
Participant
0 Kudos

Hi harshtalesra ,

I can see, that the category is part of a sub-segment. So I believe, that you didn't build up the indirect mapping correctly. Then the value mapping is not performed.

Can you check your structure mapping?

0 Kudos

sebastian.gottmann3 - One more thing. My value mapping is not working.

The incoming IDOC has the equipment category as 'N' while I need to maintain to change it to 'C'.

I have maintained the value mapping table in /AIF/VMAP and other configurations related to it in /AIF/CUST->'Define Value Mappings' & 'Define Structure Mappings'.

What else am I missing here?

Thanks in advance.

0 Kudos

Thank You Peter.

sebastian.gottmann3 - You are right. I can try this in my ACTION FM after I am calling the FM: /AIF/IDOC_ACTION_FUNCTION for equipment creation.

Cheers

peter_atkin
Active Contributor
0 Kudos

Harsh Talesra,

Sorry, but I've never worked with AIF, however, here is some useful info: https://blogs.sap.com/2019/06/06/sap-application-interface-framework-all-you-need-to-know-about-sap-...

.

PeteA