cancel
Showing results for 
Search instead for 
Did you mean: 

How can we change the purchasing group which it is maintained in R/3?

Former Member
0 Kudos

Hello All.

In case of MM, purchasing group is assigned to material master.

It means purchasing group is maintained based on material code.

But SRM has different maintenance level.

As you know that purchasing group has the responsibility based on material group (Product category).

So we should change the purchasing group from R/3, when end user create shopping cart.

How can we change the purchasing group which it is maintained in material master?

Thank you,

Best regards,

SH.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello So Hee,

You have not written yr technical scenario: I am assuming classic.

Is it a business constraint that only the correct pur grp should flow from SRM for creation

of PR in R/3.

Can you not change the same at the stage of PO creation ME21N in R/3?

BR

Dinesh

<b>Reward if helps</b>

Former Member
0 Kudos

Hello Dinesh

Yes, We use the classic scenario.

After create SC, PR is created in R/3 as follow-on document.

So we should change the purchasing group, when user create shopping cart.

If we change the this data at the stage of PO creation, I think buyer can not search the correct open PR in R/3.

For example, purch. group K01 has the responsibility for material group K001.

But material code M10001(material group K001) has the Purch. group K02.

If enduser create shopping cart with material code M10001, purch group is assigned to K001 according to SRM standard logic.

But it's not correct purch. group based on material master in R/3.

To avoid this situation, we are looking for the solution.

Thank you

Best Regards

SH

Former Member
0 Kudos

Hello So Hee,

I am not a technical guy.

But for your requirement i am building a logic.

I am not sure whether it will work.

You need to check with your ABAPER.

It is as below:

When the SC is approved and the other configuration is correct ,

PR is created in ECC by the virtue of BAPI.

You want that the pur grp should be populated on the base of matl code and not on matl grp.

Hence in SC you will not fill up pur grp.

In the programme for BBPSC01 i.e. SC creation you will add modification that it will call a custom FM.

This custom FM will get the matl code from SC and will find the value of pur grp from R/3 MM01i.e. matl master(you may get in MARA).

Now in the BAPI you need to incorporate this additional value of yr pur grp field.

So the desired pur grp as per yr R/3 matl master will be populated in yr R/3 PR.

Again: this is all hypothesis.

That's all I can help you.

BR

Dinesh

<b>Reward if helps</b>

Ramki
Active Contributor
0 Kudos

Hi So Hee Lee

I understand your problem.

You have two solutions with BADI's (sorry, not config options!):

1) Change the purchasing group assignment in Shopping cart using BADI BBP_PGRP_FIND. (You can even call RFC FM to R/3 to find the right P.grp and assign the corresponding SRM p.grp)

2) Change the P.grp before creating PR in backend

Use BADI BBP_CREATE_BE_RQ_NEW for this.

You will need ABAPer for this

Best regards

Ramki

Former Member
0 Kudos

Thank you for your reply

I will use the bbp_doc_change_badi to change the purchasing group.

1) Call the customer FM to find the R/3 purchasgin group and Input the purchasing group into E-ITEM - BE_PUR_GROUP from MARC-EKGRP (Key: MATNR, WERKS).

2) But we don't know the org object ID. So Search HRT5500 – TABNR using purchasing group from R/3.

3)Search HRP5500 – OTYPE. HRP5500 – OBJID using HRT5500-TABNR

4)Input the HRP5500 – OTYPE. HRP5500 – OBJID into E_ORGDATA

&#61692; PROC_ORG_RESP_OT

&#61692; PROC_ORG_RESP_ID

&#61692; PROC_GROUP_OT

&#61692; PROC_GROUP_ID

That is our logic.

After test our logic, i will share the information.

Thank you

Ramki
Active Contributor
0 Kudos

Hi

You can use FM BBP_OM_FIND_PURCH_GRPS_BEI_2 to get the P.org & O.grp given the backend p.org & P.grp

Best regards

Ramki

Former Member
0 Kudos

Thank you

Very useful information.