cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Partner Function from C4C to S4

former_member484977
Participant
6,205

Hi experts.

We´re making an integration beetwen C4C and S4 and we´re sending customers from c4C to S4.

As per my understanding when creating a customer in S4, himself is assigned as sold to, bill to, prayer and ship to automatically, but when the customer is being sent from C4C to S4 i get the error:

"Mandatory partner function AG is missing for sales area &2"

"Mandatory partner function RE is missing for sales area &2"

"Mandatory partner function RG is missing for sales area &2"

"Mandatory partner function WE is missing for sales area &2"


This partner functions are cretaed automatically in S4 if i create the BP from tr XD01, but not when i send information from C4C to S4.Is it correct to asume that C4C has to send this partner functions? The mapping is correctly mainteined into C4C, but still i can not see the functions into the XML sent: pyload.txt

Or S4 has to be configured to auntomatically create that Partner functions?
Please help me.
BR

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

hci-1.pnghci-2.pnghci-3.png

Hi Angel,

You can find my HCI screen shots.

First I just copied "Partner Function" subtree and then disabled the standard one as in screen shot on S/4 HANA side ( target system). The important points are:

1- Partner function subtree should be mapped with your custom account group field to assign number range

2- Party role code is defined by default for example AG. You should copy another subtrees for RE,RG and WE as well. So there will be 4 different copy partner functions on HCI.

By the way this method working fine by sending just one sales data. If I send more than one sales org. then ı m facing same issue for 2. or 3. sales orgs as well. I m trying to solve it by custom mapping on HCI again. I will let you know when I solve that issue.

former_member484977
Participant
0 Kudos

Hi Mertkan, thank you so much.

I´m going to try this and also try to solve the more than one sales area issue, if i get it will let you know.

Thank you so much.

BR

former_member484977
Participant
0 Kudos

Hi Mertkan.

Your solution it´s working perfect.

Thank you so much bro.

Best regards.

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi Angel,

I just mapped partner functions for multiple sales organizations as well by adding below mapping and also in attached document. Its working fine for both scenarios now.

Account group -> Copy Value->Partner Functionhci-mapping-for-multiple-partner-functions.png

Former Member
0 Kudos

Hi Angel,

I just solved the exact same problem with HCI custom mapping. In my opinion all customizing fine on your side but for partner function replication you have to arrange some custom mappings on your integration tool. ( HCI, PI/PO or etc.)

former_member484977
Participant
0 Kudos

Thank yo so much Mertkan for your answer.

I´m using HCI the same as you, can yo please guide me on what you´ve done?

BR

former_member484977
Participant
0 Kudos

I Figure you set this partner functions as hardcode when a sales area is in the payload from c4c to s4. Am i right?

0 Kudos

Hey Angel,

As a first thought: If you have in C4C a customer 123 with Relationships (Partner functions) : Sold-to ABC, Ship-to XYZ, have you first ensured that Customers ABC and XYZ have already been replicated to S/4?

Thank you,

Carina.

former_member484977
Participant
0 Kudos

Hi Carina. Thanks for responding.

This is not my case, i´m just sending customers without any relationship to another customer, but in S4, when you create a new customer, is autoassigned to himself as his own prayer, sold-to, ship-to, which is not working when you send a customer from C4C.

BR

0 Kudos

Hey Angel,

Ok, got it. I initially understood that you are sending a Customer with relationships and those relationships were the problem.

In the payload I can see the RoleCode is:

<Role actionCode="04">
        <RoleCode>FLCU01</RoleCode>
      </Role>

In your code-list mapping for BusinessPartnerRole shared above I do not see this external ID.

Can you check:

1. What are the Account Group in S/4 --> map that in BusinessPartnerRole? for e,g AG in C4C --> FLCU01 in S/4.

2. Check if AG, RE, etc are Partner Functions or Account Groups?

Good luck,

Carina.

former_member484977
Participant
0 Kudos

Hi Carina.

Thanks for your response and sorry for the delay.

1. My account groups in S4 are GG1, GG2 and GG3, and for them i´ve created into C4C an extension field which is mapped to NumberRangeIntervalBusinessPartnerGroup.

FLCU01 is actually the rol for customer in S4, so when i send a customer from C4C to S4, is mapped to roll FLCU01:

2. AG. RE, etc actually are partner functions, that´s why when i send a customer with Sales area from C4C to S4, the error "Mandatory partner function AG is missing for sales area &2" is displayed.


Am i missing something?

BR

0 Kudos

Hey Angel,

For FLCU01 then it's ok, I could not see it in your initial printscreen.

If these are partner types then I would maintain the corresponding mapping in PartyRoleCode and BusinessPartnerRelationshipCategoryCode for AG, RE, etc.

Kind regards,

Carina.

former_member484977
Participant
0 Kudos

Hi Carina.

Thank you

I´ve also mapped in both data type:

BR

former_member484977
Participant
0 Kudos

Hi Carina.

Thanks for your help.

Actually i´ve mainteined both data types:

former_member272234
Active Participant
0 Kudos

Dear Angel

You have to maintain these roles in C4C Account so that they can be replicated to S4.

If you are not maintaining these roles, then BusinessPartnerRelationshipReplicationSelfInitiatedOut which is responsible for carrying these relationships will not be triggered at all to S4

Thanks and Regards

Sikander

former_member484977
Participant
0 Kudos

Hi, Sikander. Thanks for responding.

I´ve maintained this roles in account activity into C4C (Image 1)

l´ve also mapped in BusinesPartnerRole (image 2)

But still i´m facing the same issue, when a cutomer is sent from C4C to S4 with sales area, the partner functions error is shown

Also i´ve checked out the payload sent from C4C and does not contain any of this new roles

Did i miss something?

Hope for you to help me.

Best regards.

Former Member
0 Kudos

Dear Angel,

How did you fix this eventually? I ran into the same.

Thanks,

Rogier

former_member484977
Participant
0 Kudos

Dear Rogier, this issue is still not fixed. When solved i´ll let you know.

BR

former_member484977
Participant
0 Kudos

Hi Rogier.

Could you please check the solution proposed by Mertkan? It´s working for me.

BR

former_member210407
Active Participant
0 Kudos

Hello Angel,

I'm facing the exact same issue.
Did you found a way to make it work?

Best regards,
Benjamin

former_member484977
Participant
0 Kudos

Not yet bro, we raised a note and trying with other options.

When solved i´ll let you know.

BR

former_member210407
Active Participant

Hello,

I found a few things that may help you.
In S/4HANA you need to enable replication of non reflexive partner functions: See SAP Note 2573445 (https://launchpad.support.sap.com/#/notes/2573445).
This should prevent the error message "Mandatory partner function &1 is missing for sales area &2" in S/4 BP Inbound WS.
Please note that in that case you need to setup S/4 to automatically define the bill-to, ship-to (usually it is the same as the sold to).

You should also consider enabling Sales Area Dependant relationships for Ship to, Bill-to, ... on C4C side.
That way, if any of those partner functions are assign to a business Partner different from the sold to, a relationship will be created on C4C.
I don't know if works the other way around (defining an alternative ship to party in C4C and replicate in S/4). I think you have to test that.

I hope that helps.

Best regards,

Benjamin


former_member484977
Participant
0 Kudos

Hi Benjamin.

Actually this note is completly implemented but i´m still facing the same issue.

former_member484977
Participant
0 Kudos

Hi Benjamin.

Could you please check the solution proposed by Mertkan? It´s working for me.

BR