cancel
Showing results for 
Search instead for 
Did you mean: 

Vendor Account defaults in Change Request to 8888 - Treasury Vendor

riaan_oosthuizen2
Participant
0 Kudos

Hi Everyone,

When I create a CR for Vendor the account group defaults to 8888 - Treasury Vendor. It must have something to do with a patch level because I did not expierience the problem in a previous client.

I have already checked if the default comes from mapping or Validation and Derivation rules and could not find anything.

Any Ideas would be appreciated.

Thanks

Riaan

Accepted Solutions (1)

Accepted Solutions (1)

michael_theis
Active Contributor
0 Kudos

Hi Riaan,

first you need to differentiate between the Vendor Like UI and the common supplier UI.

In the supplier UI, the vendor's account group is always derived according to the chosen business partner grouping. Furthermore you cannot change the account group for the first assigned vendor of the business partner. This implementation is done to follow the rules of CVI.

In the vendor like UI the business partner fields, especially the grouping, is hidden. Since the vendor's account group is a very important attribute (e.g. it controls which partner functions shall be added, etc.), it is derived during the start-up of the UI. The derivation rule is the following:

  1. The system determines the default business partner grouping for internal number ranges.
  2. The system determines the vendor account group linked with the BP grouping according to CVI customizing (direction BP to Vendor).
  3. The system predefines the resulting vendor account group. Still you can change the account group to any other value.

Best regards

Michael

riaan_oosthuizen2
Participant
0 Kudos

Hi Michael,

Thanks for your response. The account group 8888 is not part of my business partner grouping and thus I assume the value is hidden. We are using vendor like UI and I would rather like to default the value from 8888 to Z001 because authorization fails immediately when I open my change request because account group 8888 is not part of the access given.

Is there any way that I can change the value and if it is hidden where do I find it to replace it with a different defaut value. I have even tried to add a derivation rule to change the value but obviously the default has a higher priority.

Thanks

Riaan

michael_theis
Active Contributor
0 Kudos

Hello Riaan,

your screenshot from Nov 20, 2013 6:28 AM shows vendor account group 8888. Assuming that BP grouping M001 is the default BP grouping for internal numbering, the system behaves as designed.

To change this behavior, you need to setup your system customizing accordingly. Please refer to the explanation of the derivation logic in my reply from Nov 22, 2013 7:40 AM.

Best regards

Michael

former_member196830
Active Participant
0 Kudos

Hello guys,

After I configured the Vendor MDG my default Vendor Account group is ZVND.

No I activated the Customer switch and I ran through the scenario, but the Customer Account Group that the system is trying to default is again ZVND, although it's not in the list of available options.

Why is this happening and how can I specify a proper one to be default for the Customers?

Thanks,

Boris

riaan_oosthuizen2
Participant
0 Kudos

Hi Borris,

Please check in Config .Cross Application Components - Sap Business Partner  - Business Partner - Number Ranges and Groupings  - Define Groupings and assign number ranges. In there you will find that your grouping ZVND is probably selected in the Int.Std.Grouping. This is why your account group is defaulting to ZVND. Unfortunately you can only have one Standard grouping in Business Partner and I assume it will be the default for Vendors and Customers in your change requests.

We have the same problem and once the Int.Std.Grouping is selected, you can't switch it off and only change the default to another group. In our Vendor UI, derivation only happens when we enter the account group and thus when we create a change request it defaults to the wrong account group.

We wrote a validation rule that indicates that the accountgroup  8888 is not allowed and that the correct account group should be entered, because . Unfortunately this will only come up once you hit the check buton or submit it if your settings are done correctly.

Thanks and best regards

Riaan

former_member196830
Active Participant
0 Kudos

Thank you Riaan,

That setting is the correct setting that drives the defaulting of the BP grouping and inherently the Account Group.

The way the system defaults it is it takes the Internal Number Range that has the radiobutton Int.Std.Grouping active and uses it.

Now that I have also activated the Customers UI, it defaults also the Customer Account Group from the same Grouping setting.

I tried to create a BRF+ derivation rule and default the value, but doesn't seem to be doing it.

I'll keep you posted.

If you find another way to default it, using the BADI for example, please advise.

Regards,

Boris

former_member196830
Active Participant
0 Kudos

Hi guys,

I was able to easily setup a BRF+ derivation rule that changes the BP Grouping to to one I need, but I have no means of checking if I'm dealing with a Customer or a Vendor when I'm in my rule.

Michael, there should be a standard way to approach this.

Please advise on what that way is. I believe that Customer and Vendor should be active and using different Business Partner Groupping in one system.

Perhaps I'm missing something?

Thanks,

Boris

michael_theis
Active Contributor
0 Kudos

Hi,

if you want to separate customer from vendors and each of it uses an own business partner, you can surely use different BP groupings.

if you want to have a single BP that is both a customer and a vendor, you have to use a single BP grouping - simply due to the fact that the BP grouping is a single attribute of the BP. You cannot assign multiple BP groupings to a single BP.

Best regards

Michael

former_member196830
Active Participant
0 Kudos

Hi Michael,

and thank you for replying to my previous question.

In our case, I do have two different BP Groupings - ZVND for Vendor and ZBIL for Customer.

I also have two different Account Groups - ZVND for Vendor and ZBIL for Customer.

They apparently have different Number ranges.

ZVND has Internal Number range, ZBIL has External number range.

I have ZVND's number range as the Standard Internal and ZBIL's number range as the default External.

In our scenario, we only have one Customer Account Group and that is ZBIL with external number range.

The problem I'm facing is that when I open the Create Customer screen, the system defaults the BP Grouping to ZVND, as it does for the Vendor.

There is no configuration for the Customer and ZVND, therefore the Grouping for customer is not assigned and there is a warning message on the screen that we want to hide.

If the users select the Account Group ZBIL from the dropdown box, everything works as it should.

Let me know if there is anything I can do to have the BP Grouping defaulted for the Customer scenario to the ZBIL Grouping.

Thank you in advance,

Boris

michael_theis
Active Contributor
0 Kudos

Hi Boris,

if I remember right, you're using the customer like respectivly the vendor like UIs? In that case you could change the defaulting of the BP grouping with some lines of ABAP. Take a look at method in "DERIVE_BP_GROUPING" class "CL_MDG_BS_BP_HANDLER". This one defaults the BP Grouping according to the given BP ID.

Or in other words:

The method determines the current BP ID and BP grouping (lines 24 to 48). If the current grouping is initial (that's of course always the case during creation) it uses the current BP ID (that is during creation usually an internal ID) to determine the related default BP grouping for internal numbering (lines 50 to 59) . The determined grouping is then assigned to the BP grouping (lines 63 to 72).

Now, if you'd like to change this default behaviour according to your requirement, you could consider implementing a custom enhancement of the method, e.g. using the implicit enhancement option at the method's end. Based upon the object's type (customer or vendor, you might find lines 21 and 22 helpful for the differentiation), you could define your own default grouping and overwrite the value determined by the SAP default code (e.g. modify lt_write and call io_write_data->write_data one more time).

Best regards

Michael

former_member196830
Active Participant
0 Kudos

Hi Michael,

You are right, that's exactly the case... We are using the Customer Like and Vendor Like UIs.

What you suggest is exactly what I was looking for

Thank you very much for helping out once again.

Best regards,

Boris

Answers (1)

Answers (1)

former_member196830
Active Participant
0 Kudos

Hi Riaan,

Vendor Account Group is not defined with a Derivation rule or in a BADI

The Vendor Account is defined in SPRO when you setup Define Number Assignment for direction BP to Vendor. There is a fast link to it if you go through MDGIMG transaction when you open the documentation for Master Data Governance for Supplier -> Integration with Vendor Master in ERP -> Set up Customer Vendor Integration for MDG for Supplier.

It's determined based on your Business Partenr Groupping.

In my case I allow multiple Vendro Accounts to be used and I have multiple Business Partner Grouppings to achieve that. In your case you probably have only one.

Best regards,

Boris

riaan_oosthuizen2
Participant
0 Kudos

Hi Boris,

Thanks for your reply

I have checked and also found that I have multiple values. I still don't understand how the system decides which one is the default value. In my instance it decided that grouping M001 should be the default value but as you can see the value is in the middle in the Assignment of Account Groups and Groupings, BP to Vendor.

I did find that in Numer assignment Vendor to BP that M001 is the first entry. Is it possibly the reason that it could default the first entry?

Best regards

Riaan

former_member196830
Active Participant
0 Kudos

Hi Riaan,

This is decided based on the BP Role Category.

When using the Vendor Like UI, you should only have one BP Role Category.

The previous step of your configuration should be the Set BP Role Category for Direction BP to Vendor in the activity documentation. It will take you to the proper SPRO activity node and you'll be able to run it.

In my case, I only left one BP Role Category - ZLVN01, which is a copy of the delivered one FLVN01 - Business Partner Vendor (FS: BP)

When you run the activity and press the "Back" button, you'll get to the list of all BP Role Categories. Make sure you delete all the ones you don't need and leave only one.

As a last step, run the Configure CVI for ERP Vendor UI activity to check.

I think that the way I set it up as default was by leaving only one if I remember correctly.

Good luck,

Boris