cancel
Showing results for 
Search instead for 
Did you mean: 

Where is the sales area status in C4C (LifeCycleStatusCode)?

0 Kudos

Dear community,

I try to find the status of a sales area in C4C, but I can not find it.

When I set the flag in ERP (/DEBMAS06/IDOC/E1KNA1M/E1KNVVM/LOEVM), it is sent to C4C in the field /BusinessPartnerERPBulkReplicateRequest/BusinessPartnerERPReplicateRequestMessage/BusinessPartner/SalesArrangement/LifeCycleStatusCode

However, I can not find this field in C4C.

Can anyone tell me where this status is replicated to, please?

Thanks and regards,

Stefan

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hello Stefan,

I think you have already found the C4C field in the mapping.

I am not sure it is displayed in C4C at all.

The idea is, if Sales Area is marked for deletion in ERP, it gets corresponding lifecycle status in C4C (you can find the exact logic in field mapping). Basically Sales Area will not be displayed in C4C at all if it is deactivated in ERP.

Regards,

Maxim

0 Kudos

Hi Maxim,

thanks for your reply.

I tested it for a salesarea and the lifecycle is set to 4 in C4C when I change the status in ERP.

However, the salesarea is still visible in C4C.

Do I need to change an option in the scoping or finetuning?

Regards,

Stefan

0 Kudos

Hi Stefan,

I have actually noticed the following.

In Middleware, the field LOEVM from IDOC is mapped with the following fields in C4C:

- SalesArrangement-LifecycleStatusCode: the code will be set to 2 (Active) if deletion flag is false

- SalesArrangement-actionCode: ActionCode will be set to 05 (remove) if deletion flag is true.

So basically if Sales Area is not marked for the deletion, it is just saved with status "Active" in C4C. If it is deactivated in ERP (flag set to true), then the ActionCode will force the Sales Area to be removed from C4C, so it will no longer exist there.

I guess the reason for this is, in C4C there is no status management for Sales Areas, so it basically has 2 states: active or does not exist at all

Regards,

Maxim

0 Kudos

Hi Maxim,

the standard mapping in PI sets the status to 4 if LOEVM = TRUE.

We changed it to 5, now we get an error in C4C:

"Transition to status 5 not allowed".

Any idea?

Regards,

Stefan

0 Kudos

Hi Stefan,

I do use HCI as a middleware, maybe there are some differences.

Once again, in HCI it works the following way:

- SalesArrangement-LifecycleStatusCode: the code will be set to 2 (Active) if deletion flag is false

- SalesArrangement-actionCode: ActionCode will be set to 05 (remove) if deletion flag is true, else 04

Anyway I am sure it must work without any changes, as these are all the standard fields. If it does not - you can raise an incident.

Regards,

Maxim