cancel
Showing results for 
Search instead for 
Did you mean: 

CR creation for Customer Master with multiple Company Codes and Sales Org "at the same time"

titu4mdg
Participant
0 Kudos

Hi Experts,

We are implementing MDG 1909 on S/4 HANA cloud single edition. MDG has to receive customer master data from a third-party system via CPI to create CRs and data enrichment. CPI can send only Customer General data(BP level data) to MDG or it can even send Company Code and Sales Org along with the Customer General data to MDG. Upon receiving from CPI(SOA messages), MDG will create Customer Master CR(programmatically) and later Data Specialist can enter other Org level data(for the Company Code and Sales Org received from CPI) in MDG and further data enrichment and so on....

Now, CPI is saying that, they may send multiple Company Codes and Sales Organizations at the same time in case of CREATE scenario and want to know from us if MDG can handle that scenario(Creating Customer CR with multiple Company Codes and Sales Org in MDG at the same time). I have the following Qs in this regard?

1) Can MDG create a Customer Master Change Request(I know how CR gets created programmatically) with multiple Company Codes and Sales Org at the same time? Can MDG handle such senario?

2) If the answer of the above Q is yes, then kindly tell me how technically....? Will I have to first create the Customer and get it saved in MDG with COMMIT and then again come back and extend it to one Company Code and Sales Org one at a time(in a loop)..OR we can directly create the Customer Mater CR with multiple Company Codes and Sales Orgs? In case of first technical approach(mentioned above), will it not become the EXTEND scenario inside a CREATE scenario?

Request your kind help.

Regards, Titu

Accepted Solutions (1)

Accepted Solutions (1)

former_member106
Contributor

Hi titu4mdg ,

Please find the answers below.

1) Can MDG create a Customer Master Change Request(I know how CR gets created programmatically) with multiple Company Codes and Sales Org at the same time? Can MDG handle such senario?

Ans : Yes, using the same CR, you can create multiple entries for an Type 4 entity - in your case company codes.

2) If the answer of the above Q is yes, then kindly tell me how technically....? Will I have to first create the Customer and get it saved in MDG with COMMIT and then again come back and extend it to one Company Code and Sales Org one at a time(in a loop)..OR we can directly create the Customer Mater CR with multiple Company Codes and Sales Orgs? In case of first technical approach(mentioned above), will it not become the EXTEND scenario inside a CREATE scenario?

Ans : You have to use the if_usmd_gov_api_entity~write_entity method, in this case, you would have to fill the it_data parameter will all of your company codes and its related attributes. It will work the same way, if you add single or multiple company codes. And this is not considered as an Extend Scenario, because you are creating the company code the same time the business partners are created.

Regards

Senthil.

titu4mdg
Participant
0 Kudos

Hi Senthil,

Thanks for your reply...I understood what you mentioned in your reply...but still have a couple of follow up Qs as following:

1) I was referring to my earlier Qs(https://answers.sap.com/questions/13393433/interface-between-cpi-to-mdg.html) which was answered and it was advised as follows(taken from the above post):-

**************************** Begin *************************

you do not need to write any code using Governance API. All these are taken care in the Standard Interface class. The badi MDG_SE_BP_BULK_REPLRQ_IN is used to map the extended fields (using mdg_bs_bp_s_extern structure). The STA badi is used to pass the custom CR type. All the other coding is already taken care, so you dont need to write anything. Creation of CR using Governance API is required, in case you are implementing a complete custom interface, where you need to write the inbound logic.

**************************** End *************************

So, if there is no code to be written(as we are using all standard fields, no custom fields ate coming from CPI) and Governance API will automatically create the Customer Master CR, so, now are you saying here in this scenario, we need to write some custom code after re-defining that WRITE_ENTITY()? Kindly little elaborate.

Regards, Titu

former_member106
Contributor
0 Kudos

Hi titu4mdg ,

Everywhere in your question you mentioned, CR's are created programmatically, so provided the answer according to that. If it is the case that the SOA Message is going to write the data, you do not need to write any code. CPI should provide the proper message with multiple values at company code and the SOA message should be able to handle it. Just to know more about your status, have you already implemented this concept and it is not working, so you are writing this question or you wanted to ensure things before you implement? The reason i am asking this because, we have already implemented such concept in our project and it is working without any issue.

Regards

Senthil.

titu4mdg
Participant

Hi Senthil,

Thanks for your reply..I just wanted to know before we go ahead and implement it. Thanks for always being so responsive.

I will again get back if we have any issue.

Regards, Titu

former_member106
Contributor
0 Kudos

Hi titu4mdg ,

You are always welcome.

Regards

Senthil.

Answers (0)